/srv/irclogs.ubuntu.com/2018/04/13/#juju.txt

=== frankban|afk is now known as frankban
imran_khakooI'm seeing "E: Unable to locate package juju-mongodb3.2" when I bootstrap a new 18.04 controller. Any news on when this package will be available?10:09
parlosGood Morning!11:02
magicaltrout2hello folks15:11
magicaltrout2amulet15:11
magicaltrout2its asking me for juju-deployer15:11
magicaltrout2what faux pas am I making?15:11
magicaltrout2rick_h_: any clue?15:18
magicaltrout2are you supposed to use juju-deployer with juju 2.x & amulet?15:18
rick_h_magicaltrout2: otp, but I think that amulet never lost the deployer dep so it's working as expected?15:19
magicaltrout2well deployer wants paths that don't exist in juju 2.0 like .juju/environments.yaml etc15:20
cmarshi, does CDK & ceph work with azure storage? i'm trying to deploy ceph and attach storage, but it never seems to detect the block devices15:38
kwmonroemagicaltrout: yeah, amulet will use juju-deployer.  get it with pip3 install juju-deployer.15:42
kwmonroemagicaltrout: when you want to run it with juju 2.x, make sure you pass the -e <controller>:<model15:42
rmcdlist15:43
kwmonroemagicaltrout: if you're just running amulet tests directly, it should be smart enough to use the current model.  but if you're calling juju-deployer in your own script, make sure you stick in the -e.15:45
magicaltrouthmm thanks kwmonroe i'll give it another prod later15:51
=== frankban is now known as frankban|afk
hmlzeestrat: ping17:18
zeestrathml: pong18:07
hmlzeestrat: hi - question on your email , what cloud are you bootstrapping?18:08
zeestrathml: Localhost/lxd. Can't remember if I checked MAAS.18:11
hmlzeestrat: 2.4-beta1 is almost out the door, so i’m not sure anything can be added.  i’d recommend emailing the juju mail list for discussion and geting more spotlight on it.18:13
zeestrathml: Sounds good. Thanks for taking a look :)18:14
hmlzeestrat: i’ve also been playing the lxc profiles18:14
hmlsee if i can get constraints working for you that way18:14
hmlbut that limits individual memory constraints to a single model18:15
hmlnot optimal18:15
zeestrathml: Yeah, the problem is multiple different mem constraints in the same model. The workaround we have works so don't stress.18:15
hml:-)18:16
zeestrathml: Thanks again. Have a nice weekend!18:17
hmlzeestrat: you too!18:17
anankewas wondering if somebody could help me out figuring out general architecture question regarding juju and maas (very green on those subjects). say I have a dozen servers under maas management, and I want to use juju for various app deployments. I've bootstrapped juju onto maas, and it took on an entire physical node18:27
anankenow if I deploy any application stack with juju, each 'application' uses an entire physical node, which is a bit of an overkill of course. So my question is, what are some typical ways of combining maas+juju with virtualization, and would I be using juju to deploy them, or maas?18:31
anankemaas seems to have an option to manage kvm virtualization, but juju store doesn't have anything for that. there are container solutions, but maybe I'm overlooking something obvious18:32
zeestratananke: No, it's a bit of pain atm. Regarding the bootstrapped juju controller, folks usually create some kvm vm's on a dedicated machine or even on the MAAS controllers themselves and add them to MAAS so you have more machines to pick from. Then when you bootstrap juju, you can select those kvm vm's with a constraint or MAAS tag. Check out https://docs.maas.io/2.3/en/nodes-add#kvm-guest-nodes18:35
zeestratananke: I believe using kvm vm's got even easier with MAAS if you use their pod/composable hw setup: https://docs.maas.io/2.3/en/nodes-comp-hw18:36
anankezeestrat: thank you. I may have to revisit the white board and figure out if maas+juju are still worth exploring. I was hoping maas+juju would help manage that middle layer18:37
zeestratananke: Regarding deploying applications with juju, you can use the same kvm trick as with the bootstrapped juju controller but what most folk use and would be most appropriate is LXD containers. They are well supported and make it easy to deploy multiple applications on the same host.18:38
anankezeestrat: thanks, that makes sense. I haven't spent much time with lxd, but it's certainly something we'd be willing to learn18:41
zeestratNo worries. At work, we dedicate 2 boxes for a bit of redundancy (can do on 1) for MAAS controllers and juju controllers with kvm. For the rest we use LXD.18:41
anankewonder if maas+openstack+juju combinations are common. seems there are guides on how to deploy openstack on maas, but not sure if those three can be glued together18:42
anankezeestrat: that's what I was planning on doing too, have a couple controllers per rack. I have two racks of equipment in two discrete facilities, dedicated mostly for testing various things. maas & juju seemed like a good fit, and they appear to be well polished18:43
zeestratananke: That's exactly what we do. MAAS manages the hardware and juju deploys openstack on the hardware from MAAS.18:43
anankezeestrat: and then does juju communicate with openstack for deploying apps, or how is that done? I wonder if there are any blueprints for that setup18:45
zeestratananke: Are you thinking of deploying openstack or deploying apps on top of openstack? Juju will do both, just good to know what you're looking for :)18:46
anankezeestrat: frankly, either or, whatever makes more sense. being able to deploy apps on top of openstack would be ideal18:47
hmlananke: you can use juju to deploy openstack on your maas hardware, then turn around and have juju use the openstack to deploy applications.18:48
anankeI'm coming from the traditional HPC clustering world, which has a very different approach to many things. we would like to create an on-prem cloud solution, first to serve our IT needs, second to potentially have a self-service cloud for our researchers18:49
zeestratananke: I'd check out the openstack deployment guide if you're looking to deploy: https://docs.openstack.org/charm-deployment-guide/latest/. For more general info about the openstack juju charms (the recipes/playbooks used by juju) see: https://docs.openstack.org/charm-guide/latest/. For deploying apps on top of openstack see: https://jujucharms.com/docs/stable/help-openstack18:49
anankezeestrat: thanks, I was looking at the first document already earlier today, I'll check out the other one too. just trying to get my head wrapped around how all of this could function18:49
anankehml: ahh, that makes sense18:49
hmlfor juju maas, openstack, lxd, aws, gce, azure are all clouds… you can bootstrap with them then deploy18:50
anankeI should redo the juju setup then, and have it use lxd on the maas controller, instead of an entire physical node18:52
hmlyou can deploy units to lxd containers on machines already deployed18:52
hmlinstead of new machines for each unit18:52
hmlcheck out the —to directive18:53
anankehml: right, that makes sense. however, I'm not familiar with lxd at all, and was hoping there was an existing solution with either maas or juju to manage lxd on those machines18:53
hmlananke: you can try ‘juju add-unit <application> —to lxd:0’18:54
hmlthat would add a unit of something to a new lxd container on machine 018:54
hmlthere are many permutations of specifying where a new unit will go… check out juju help add-unit18:56
anankewhile I fumble through documentation, what's the relation of '0' in juju to maas? I imagine I would be able to query available systems from juju18:56
anankeforgive the naive questions, I just started with juju this morning18:57
hmlnot a problem  :-)18:57
hml0 is what juju defines as machine 018:57
hmlif you run juju status 018:57
hmlyou can find which machine/isntance in your maas config is being used18:57
zeestratananke: Just note that if you want to bootstrap juju on a MAAS controller, then your best bet is kvm as MAAS doesn't support lxd containers.18:58
anankezeestrat: thanks18:58
hmlzeestrat: you can still use lxd on a machine already deployed though yes?  just not use lxd as a maas machine?18:59
zeestrathml: Yes, just not as a MAAS machine which you need for bootstrapping juju.18:59
hmllxd can be confusing, since we can use as a cloud, or to add containers to juju machines19:00
hmlused in multiple ways19:00
anankehmm, juju status 0 reveals nothing different than juju status <any number here>. https://paste.ofcode.org/yPdkLET3NNfTKjJwaHvRPq19:00
hml:-)19:00
zeestratIt's a bit confusing (it sure confused me in the start).19:00
hmlananke: oops.. sorry  - you have to deploy a charm first… :-)19:00
hmljuju deploy ubuntu —to lxd19:01
hmlwill deploy a maas machine - then install ubuntu  charm on an lxd container on top of the machine19:01
anankeERROR unrecognized args: ["lxd"]19:01
hmlweird… dash dash to?19:02
anankehmm. this is maas 2.3.0 with whatever latest stable juju was19:02
hmlmy irc client is autocorrecting on me19:02
anankehml: ahh, some weird encoding took place. I retyped that, seems to be running now19:02
bdxkwmonroe: happy friday19:03
anankelooks like maas booted a system, and is installing ubuntu. yay19:03
kwmonroebdx: o/19:03
bdxexperiencing some issues with hadoop on openstack19:04
bdxjuju status | http://paste.ubuntu.com/p/DNdJprKXHH/19:04
bdxkwmonroe: got a bug coming your way19:04
bdxhave you seen this before https://paste.ubuntu.com/p/TMCVJJb4jv/19:05
bdx?19:05
anankehml: thank you so much, this is helping me figure out how I can approach this stack19:05
bdxwhen I look in /var/log/hadoop-hdfs/hadoop-hdfs-namenode-juju-6e95f5-hadoop-test-5.out19:05
hml:-)19:05
bdxhttps://paste.ubuntu.com/p/JvbskWgKSd/19:06
bdxcat /var/log/hadoop-hdfs/hadoop-hdfs-namenode-juju-6e95f5-hadoop-test-5.out ^19:06
bdxkwmonroe: is this telling me that xenial-cloud-img has different/more restrictive ulimit defaults that stop hdfs from starting?19:07
kwmonroebdx: i don't think so.. the .out is terrible.  see if there's more info in the .log (should be in the same dir)19:09
kwmonroebdx: if i had to guess, your NN can't resolve it's own address.  i know that is particularly painful in openstack envs19:09
kwmonroei mean, trying to deploy hadoop in openstack envs..19:10
bdxOh I bet19:10
kwmonroewhich is https://github.com/juju-solutions/jujubigdata/issues/6219:10
kwmonroewhich is ... still not fixed :/19:10
bdxcat /var/log/hadoop-hdfs/hadoop-hdfs-namenode-juju-6e95f5-hadoop-test-5.log | http://paste.ubuntu.com/p/FWgwPc2Yxr/19:10
bdxtotally19:10
bdxI wonder if I can hook up the designate bits and make my way19:10
bdxill be looking into this19:11
bdxguess I wont be filing any bugs for you:)19:11
kwmonroeoh there's plenty filed already.  dont you fret.19:11
bdxCaused by: java.net.UnknownHostException: juju-6e95f5-hadoop-test-5: Name or service not known19:11
bdxboom19:11
bdxok19:12
bdxkwmonroe: its all about https://jujucharms.com/neutron-api/#charm-config-enable-ml2-dns20:28
bdxthey made it simpel for the internal resolution20:28
bdxreal nice20:28
bdxdesignate looks like it s for external dns20:28
bdxkwmonroe: I was able to get around it with that config20:29
kwmonroewhoa - super cool bdx!  i kept hoping it would fix itself (or at least get easier).  turns out waiting pays off!20:37
bdx+!20:58
bdx+1 same20:58

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!