/srv/irclogs.ubuntu.com/2016/09/27/#juju.txt

=== rmcall_ is now known as rmcall
=== dpm is now known as dpm-afk
=== frankban|afk is now known as frankban
=== zeus is now known as Guest71546
=== marcoceppi_ is now known as marcoceppi
stubmarcoceppi: hey. I'm just sorting the ntp related charms so good timing. I've just refreshed cs:~ntp-team/ntpmaster ready for promulgation. ntp next, so I'll review (ha) and merge your mp first12:09
stub(still not sold on this -team vs -charmers, since the set of maintainers of the software vs the charm are totally distinct)12:11
marcoceppistub: I agree,but UX and design folks said -charmers rated poorly given they didn't understand what that was12:11
marcoceppistub: and the majority of charms we'll want to get upstream to take over - or at least help maintain12:12
stubk12:12
stubStill feels rude to be making false claims, since the charm store isn't the only place this is visible. Doubt it makes trouble in reality though.12:15
stubThe first real conflict will be between the snap package maintainers and charm maintainers for some product, since I doubt an upstream will take on both simultaneously12:17
stubReal solution seems to be to use the team's displayname rather than the id, but the charm store might not have that information since it is syncing team membership via openid extensions rather than querying the Launchpad API.12:21
=== rogpeppe1 is now known as rogpeppe
marcoceppistub: yeah, but worth bringing up12:30
stubI filed a bug :)12:30
=== dpm-afk is now known as dpm
pascalmazonhi, I have a question regarding juju store and resources13:03
pascalmazonI'm developping a charm that uses 3 resources.13:06
pascalmazonI've pushed my charm onto cs:~6wind/trusty/virtual-accelerator-1213:06
pascalmazonI'm trying to charm-release it, but it complains that resources are missing from publish request:13:06
pascalmazondo I really need to send resources to the store along with my charm? (I would have to use boilerplate files, as my resources contain credentials for using our proprietary software)13:07
magicaltroutpascalmazon: you can just upload empty files13:11
magicaltroutor some placeholder13:11
magicaltroutand have your charm check the content13:11
stokachudid the juju api for deploy change recently requiring series to not be empty?13:12
rick_h_stokachu: following trunk or in rc1 from b18?13:17
stokachurc1 from b1813:17
rick_h_stokachu: not aware of any changes but info to narrow down have to check commits tbh13:17
rick_h_we were very careful on the path to rc there13:17
=== jasondotstar_ is now known as jasondotstar
stokachuok np13:17
stokachuit's nbd i can fix it in our api code13:18
stokachurick_h_: http://paste.ubuntu.com/23242144/13:19
stokachuthats the api server error when we tried to deploy that charm via conjure-up13:19
stokachunot sure why that doesn't default to xenial13:19
stokachuhttps://api.jujucharms.com/charmstore/v5/canonical-kubernetes/archive/bundle.yaml is the bundle13:19
stokachuthis works in regular juju deploy though13:19
=== Guest71546 is now known as zeus
marcoceppirick_h_: stokachu what about multi-series subordinates?13:20
stokachuthe kubernetes worker looks like it's xenial only13:21
rick_h_stokachu: hmm, so looks like a change from a long while ago: https://github.com/juju/juju/commit/ff86e5c5413b2920986dc2769d57c6adadf8237f13:21
stokachuthe bundle has a series: xenial defined13:21
stokachumaybe we just need to specify that in our api call13:22
rick_h_stokachu: I see, so maybe there's something with that not carrying through the bundle.13:22
stokachuyea i think we just need to pull the default series in the bundle and make sure it's set for each deploy call that doesn't have a series in the charm id13:23
stokachuim just surprised i didn't hit this earlier13:23
rick_h_stokachu: yea, maybe the bundle normally had series in the charm urls?13:23
stokachuyea i bet all the other bundles we use have the series in the charm urls13:23
charles3hey tvansteenburgh got a hot second?14:03
tvansteenburghcharles3: yup14:04
=== charles3 is now known as lazyPower
lazyPowertvansteenburgh: its been a while since i've tried to co-locate a service in a bundle. I'm getting the return from amulet when trying to deploy the bundle: 2016-09-27 13:59:53 Invalid application placement easyrsa to lxd:etcd/014:04
lazyPoweris this known behavior, or should I file a bug about this?14:04
tvansteenburghlazyPower: you have latest deployer?14:05
lazyPowerdouble checking, 1 sec14:05
lazyPoweri didn't, it just pulled an update. However i get the same result14:06
tvansteenburghlazyPower: gimme a min14:06
lazyPowerack. https://gist.github.com/4447433ddce4729c88a737524ed7f0c9  -- bundle for reference14:07
lazyPowermagicaltrout: now that our k8s formation has kind of settled, is it time to get some of your mesos in my kubernetes? or is it time to get some of my kubernetes in your mesos14:07
tvansteenburghlazyPower: s/applications/services/14:13
lazyPowerah, same bug that bit amulet bit deployer?14:15
lazyPowers/bug/change/14:15
tvansteenburghlazyPower: yeah.14:17
tvansteenburghlazyPower: thanks for the heads-up, i'll file a bug14:17
lazyPowertvansteenburgh: does deployer/amulet also need to be updated for the new nomenclature of colocation? s/lxc/lxd?14:20
lazyPowerhttp://paste.ubuntu.com/23242376/14:20
tvansteenburghlazyPower: no, that was already done14:22
lazyPowerok cool. I'll just update teh bundle for now. If you're busy i can also file that bug about s/application/services/14:22
tvansteenburghlazyPower: already filed, thanks14:22
lazyPoweryou da man14:22
tvansteenburghlazyPower: your placement should work if you s/applications/services. let me know if it doesn't14:23
bdx_hey whats up everyone?14:26
bdx_I've got some nonsense going on here around aws spaces and subnets14:27
bdx_check it out14:27
lazyPowertvansteenburgh: doesn't appear to - that output was with this bundle https://gist.github.com/3bcb688d317589e502a41c734f28f73414:28
lazyPowerwell, i commented out the lxd to get this run goin, but i digress, it was uncommented and compained.14:28
tvansteenburghlazyPower: ok, looking14:29
rock__Hi. we created a charm that will install and configure one of our storage driver as backend for openstack cinder. And it also modify nova.conf file. I integrated my charm with Openstack bundle. From relations section  how can I provide relation from our charm to cinder and nova services separately.14:32
lutostagSo who's knowlegeable about multi-series charms? (do they work in juju1? -- is there an incompat between juju1 and juju2 with the metadata.yaml format with series a list vs string?)14:32
bdx_here is my space and subnet14:34
bdx_http://paste.ubuntu.com/23242403/14:34
rick_h_lutostag: so Juju 1.25 (.4+ I think) should auto pick the first one in the list and run with that14:35
bdx_previously, as you can see here -> http://paste.ubuntu.com/23242441/14:35
rick_h_lutostag: but it's not a fully supported feature as that was a 2.0 feature14:35
rick_h_bdx_: ? what's up?14:37
bdx_well I guess juju status doesn't show the private ip, here is a screen shot of the aws console showing the instance is in the correct subnet/space -> https://postimg.org/image/pkhhfjzvh/14:38
hmlis there an equivalent to “juju resolved --retry” in juju 2.0 rc1?14:38
bdx_so whats going on here, is my instances no longer will deploy to the space/subnet I have defined in my model14:39
lazyPowerrock__: there is a cinder-client layer that should provide most if not all of that template for you14:39
bdx_I run the same command I ran to get the 0th instance deployed to my defined space/subnet on subsequent instance deploys, but my instances are getting deployed to random subnets now14:40
rick_h_hml: just juju resolve should auto retry.14:40
rick_h_bdx_: does it show in the yaml output?14:40
rick_h_bdx_: /me goes to look there was a bug about not all addresses showing in status14:40
hmlrick_h_: thanks14:41
bdx_rick_h_: this should answere all of your questions ->  http://paste.ubuntu.com/23242465/14:41
rick_h_bdx_: what's juju status --format=yaml14:42
bdx_rick_h_: http://paste.ubuntu.com/23242474/14:42
rock__lazypower: OK. Thank you.14:43
rick_h_bdx_: so the machine has multiple addresses, you're not seeing the one you want that's on the space correct?14:43
magicaltroutlazyPower: sounds good although we have a go live this week. The stuff still remains pretty much as it was I have plans to circle back around to it next week14:44
bdx_rick_h_: more than that14:44
bdx_rick_h_: not only is the instance not deploying to the specified space/subnet, I'm getting the private ip in juju status14:44
bdx_instead of the public like the other instances14:45
bdx_instance*14:45
bdx_rick_h_: this is a wild one .... sucks it had to show itself when I'm in florida setting up our dev teams with juju :-(14:45
rick_h_bdx_: yes, looks like: https://bugs.launchpad.net/juju/+bug/1512875 as far as the reporting14:46
mupBug #1512875: juju 1.25.0 using MAAS 1.9-beta2 juju incorrectly reports the private address <addressability> <maas-provider> <networking> <juju:Triaged by rharding> <juju-core:Won't Fix> <https://launchpad.net/bugs/1512875>14:46
bdx_rick_h_: thats 1 bug that I'm experiencing for sure14:46
rick_h_maybe, bah14:46
rick_h_bdx_: yea, the other thing is that you're using spaces with just machines. So are you using the spaces constraing with add-machine?14:47
bdx_or some variant of it14:47
bdx_rick_h_: yea, I am14:47
rick_h_yea, so there's a few things. 1) juju not picking the 'preferred' address for the display. That's a known issue. 2) That we only show one address in status and should show all addresses a machine has. 3) not sure why the spaces constraint would not get you a machine not in the space :/14:48
MrDanhei, I deployed Openstack but neturon-gateway did not deloy l2, dhcp or metadata14:49
bdx_I was getting machines in the correct space up till this morning when I went to run a demo14:49
MrDanany known issue?14:49
rick_h_MrDan: yes, known issue with the Neutron gateway charm and not liking the bridged interfaces setup by RC114:49
rick_h_bdx_: yea, sorry, that one doesn't ring any bells and not sure we've seen that one.14:50
MrDanwhat can I do as a workaround?14:50
rick_h_MrDan: https://bugs.launchpad.net/juju/+bug/162703714:50
mupBug #1627037: rc1 bridges all nics, breaks neutron-gateway <cdo-qa-blocker> <eda> <landscape> <uosci> <v-pil> <juju:In Progress by frobware> <https://launchpad.net/bugs/1627037>14:50
bdx_rick_h_: ok, I'll file a bug later today when I have a min14:50
bdx_rick_h_: thanks14:50
rick_h_bdx_: k, sorry man14:51
rick_h_MrDan: there's a couple of notes in the bug. We're working on updating for RC2 and working with the charmers of neutron gateway to correct it soon.14:51
rick_h_MrDan: best thing is to backtrack RC or look at the maas hacks in the bug.14:51
MrDanok, thanks14:52
lazyPowermagicaltrout: no rush, we're still launching ourselves. today is the day14:53
magicaltroutjust insinuated the board at the ASF was an old boys club, I expect rockets to land on my house shortly14:56
magicaltroutgood bye all14:56
MrDancna the neutron-gateway be worked aroud if I have only one NIC configured on that host?15:00
rick_h_MrDan: I don't think so as it'll still see a bridge on that one interface15:01
rick_h_MrDan: and will refuse to use it15:01
MrDanah, so the issue is that the public interface, eth0 in my case, should not be bridged as neutron-gateway charm skipps bridge networks15:06
rick_h_MrDan: right, and juju auto bridges so that things work as expected when deployed into containers/etc.15:08
rick_h_MrDan: the long term fix is to represent L2 interfaces in the model, but until then the charmers are looking to drop the bridge for neutron specifically15:09
=== daniel1 is now known as Odd_Bloke
MrDani see, so basically right now openstack is not deployable atm with latest packets15:52
marcoceppiMrDan: yeah, if you can beta18 is a good candidate16:08
hmlmarcoceppi: where can we download beta18?16:20
marcoceppihml: let me check if it's still in the ppa16:21
rick_h_hml: we can also look to get you a binary if you need, or build it from the tag? https://github.com/juju/juju/tree/juju-2.0-beta1816:24
beisnerthedac, thanks for landing the mysql c-h sync @ https://code.launchpad.net/~1chb1n/charms/trusty/mysql/newton/+merge/306554 - marcoceppi, what do we need to do to get that rev into the cs?16:25
hmlrick_h: okay, if it’s not in the ppa i’ll build one - question though…16:25
rick_h_hml: shoot16:25
beisnermarcoceppi, it looks like i've got perms to charm push it, just not sure of the expected process/flow on that one16:25
hmlrich_h: when I do a bootstrap - it appears that juju is looking to download the latest, which makes me nervuous16:26
rick_h_hml: hmm, if it's custom built I thought it would not auto use the matching tools16:26
rick_h_anastasiamac: can you speak to the changes wallyworld did here? ^16:26
hmlrick_h_: i’m using a custom build right now and got “ cmd cmd.go:129 Looking for packaged Juju agent version 2.0-rc2 for amd64”16:27
hmlrich_h_: though in the end it uses my local juju build16:27
rick_h_hml: :/ hmm maybe it's just part of the Id process?16:27
rick_h_hml: it used to be you used --upload-tools to make sure it used your local binary16:27
rick_h_hml: if it's finding the right binary I that's working as intended then16:27
anastasiamacrick_h_: those changes are black magic for me, sorry :D16:27
* rick_h_ doesn't have a ton of experience with the new flow there16:27
rick_h_anastasiamac: k16:27
rick_h_anastasiamac: ty16:27
anastasiamacrick_h_: natefinch has had more epxosure and mayb of more help here ^^16:28
anastasiamacexposure even LD16:28
hmlrick_h_: it does in the end… but if i’m using the installed version of juju - and it’s looking to upgrade every time - eeks.  :-)16:28
marcoceppihml: I have a beta18 binary if you'd like16:31
hmlmarcoceppi: cool, how can I get it?16:31
=== xnox_ is now known as xnox
=== beisner- is now known as beisner
=== med_ is now known as Guest44064
=== zeus is now known as Guest66430
=== Guest66430 is now known as zeus`
=== zeus` is now known as zeus
natefinchhi, sorry, was at lunch... rick_h_, anastasiamac, hml - use --build-agent to force juju to upload a locally built jujud17:06
natefinch(it always rebuilds, so you need the source, and need to be able to build it, but otherwise, works like --upload-tools)17:06
=== stokachu_ is now known as stokachu
=== aluria` is now known as aluria
=== kragniz1 is now known as kragniz
=== zeus- is now known as zeus`
=== Spads_ is now known as Spads
=== spammy is now known as Guest51211
=== zeus- is now known as zeus`
=== zeus` is now known as zeus
=== tvansteenburgh1 is now known as tvansteenburgh
=== med_ is now known as Guest79278
=== frankban is now known as frankban|afk
=== med_ is now known as Guest40876
=== beisner- is now known as beisner
hatchIn juju 2, what is the correct way to remove an application and a unit that's in error, say a install hook error.19:30
=== med_ is now known as Guest45789
rick_h_hatch: you have to resolve it first. --retry is not built into resolve19:43
rick_h_hatch: so you can juju resolved app/unit19:44
rick_h_hatch: or juju resolved --no-retry if you don't want to bother19:44
hatchrick_h_: so when I tried `juju resolved app/unit` it just kept retrying the hook19:45
hatchI had to run --no-retry19:45
hatchso to remove a unit in error I had to run `juju resolved app/unit --no-retry` a few times after `juju remove-application app`19:46
hatchis this intentional?19:46
hatchit's quite unintuitive19:46
rick_h_hatch: so the normal wish is to retry. The thing is that it goes through each hook19:47
hatchright, but the application has already been marked to be destroyed19:47
hatchso why would we care if the unit is any good?19:48
rick_h_hatch: so if you fail/retry a config-changed and then it hits a relation hook it'll get stuck and you have to resolved agagin19:48
rick_h_hatch: right, but destroying it invokes hooks19:48
rick_h_hatch: so it's stuck going through them thus the few resolved tries19:48
hatchwould it make sense to have a warning returned when you destroy an application on how to actually get it gone if any of the units are in error?19:48
rick_h_hatch: the thing is that it's all async. when you go to destroy it, you don't really know what's up.19:49
hatchhmm19:49
rick_h_hatch: there might be a case in there to figure out sometimes, but not consistent19:49
hatchyeah...ok19:50
hatchthis is an interesting problem19:50
hatchmaybe a always-on notice19:50
hatch"if something fails when tearing down, do x"19:50
rick_h_hatch: maybe push charm authors to test their charms :)19:50
rick_h_hatch: there's definitely room for improvement19:51
rick_h_something for 2.119:51
hatchlol19:51
hatchyeah I was just trying what I usually do 'spam resolved'19:51
hatchbut that didn't work because I needed --no-retry19:51
rick_h_hatch: right, that's what's new in rc119:51
hatchso I thought that was odd19:51
hatchin the 'normal' case that makes sense19:51
rick_h_hatch: normally you have to --retry but that's now the default because usually, you want that on19:51
hatchto retry be the default19:52
hatchright19:52
hatchso maybe if the application is in a dying status and units are in error when you run `resolved` it just does that19:52
hatchor would you want to potentially still run the hook?19:52
=== valeech_ is now known as valeech
rick_h_hatch: well for things that might need to cleanup, hit an API when going down, etc. It makes sense to hook hook exec'ing as it goes down19:55
rick_h_"hey, I'm going down, take me out of the load balancer"19:55
hatchyeah, that's an excellent point19:56
hatchtough problem here19:56
hatchheh19:56
hatchtouch ux problem that is19:56
hatchtouch19:56
hatchtough19:56
hatchlol19:56
* hatch can't type19:56
=== JoseeAntonioR is now known as jose
cholcomberelation_set still works in reactive land right?20:38
=== scuttle is now known as scuttlemonkey
magicaltrouthey arosales did that ibm talk you gave get recorded?21:04
=== Guest51211 is now known as spammy
lazyPowermagicaltrout: he's out at strata this week21:38
lazyPowerI see some stills from it but no media that i can tell. I'll sync with james over that and see if we have any assets from that talk21:38
magicaltroutta21:41
magicaltroutlooked interesting thats all21:41
magicaltroutslides, video whatever21:41
spaokdoes anyone know if you can create LXD machines from a bundle.yaml for juju deploy without having to specify machines? seems just doing a contraint for container=lxd doesn't work21:57
hatch_spaok: so you want to create empty unused machines?22:18
=== hatch_ is now known as hatch
spaoknaw, I want juju deploy to create containers for the services its deploying, I know can use the to:\n   - lxd:0  type of syntax, but that requires a machine to be defined first22:19
hatchspaok: it does, because the placement of containers on machines is typically important22:21
hatchspaok: if you use the GUI to generate the bundle placement then you might find that easier22:21
=== Guest45789 is now known as med_
spaokwe are trying to setup automation for openstack deployment, so we want to just target machines tagged in maas, but we don't want to have to pre-populate a bundle file with machines, cause the counts may change22:22
hatchahhh, I'm not sure of any way around that to be honest. It might be worth an email to the list or a feature request22:24
rick_h_spaok: check the constraints docs22:25
spaokrick_h_: ya, gone through it backwards, forwards, up and down22:25
spaokcan't find a way22:25
rick_h_spaok: i think theres a :lxd syntax for --to22:25
rick_h_spaok: hmm ok.22:25
spaokthere is, but to use it you need to define machines22:26
spaokideally if I could use contraints + to: lxd22:26
rick_h_spaok: so you want each unit on a new machine but in a container?22:27
rick_h_spaok: ah sorry, not xonstraints docs but the olacement docs22:27
spaokbasically ya22:27
spaokit works with the direct commands22:28
spaokfor instance, juju deploy cs:xenial/glance --to lxd --constraints tags=lxc,rack222:28
spaokwill create a container on the machine tagged lxc22:29
rick_h_i see gotcha22:29
MrDanDanjuju deploy --to=lxd:[node name]22:30
spaokMrDanDan: question is, how do I do it in a bundle.yaml without needed to define all the machines22:30
MrDanDanand specify the app after, of course22:30

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