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

jamthumper: wallyworld: so the reason the old code landed (without gomock in dependencies) is because it *didn't* have "pipefail", whatever patch that tried to introduce "pipefail" caused it to fail correctly, but doesn't seem committed to juju-qa-jenkins master branch.05:04
jamhowever, whatever added "set -o pipefail" just had a typo of "set +o pipefail" to turn it off again.05:04
thumperah05:04
thumperok05:04
jambut code has landed, and hopefully I updated and fixed the landing job.05:04
thumperthanks05:05
veebersjam, is this re: the juju merge job? I added pipefail handling today due to gofmt errors not failing the job.05:06
jamveebers: k. you didn't commit it to upstream/master AFAICT. , and you had a typo in it.05:06
veebersjam: 8sigh* I see, I broke it05:06
jamveebers: well, it broke correctly, because we were missing a godeps as well05:06
jambut I think I fixed both those issues05:06
veebersjam, sorry about that. Hah, lucked out. Ugh, did I not push either :-\05:06
jamveebers: I kept trying to grep for "set +o pipefile" and couldn't find it anywhere, but did find it on grumpig in /tmp/jenkins*.sh05:07
veebersjam: ugh. Sorry I got distracted, the push command sits there with no return to make it so :-\05:08
thumperveebers: so, with the 2.3.6 agents, I got IS to move the agent files05:08
thumperso the simplestream data probably still points to it, but they aren't there05:08
jamthumper: so its going to make my testing of how to get out of 2.3.6 a bit hard, but maybe I can make it fail05:08
veebersjam, is the removal of "set +e" correct? that will mean that the job will exit if make check fails (and thus won't get a test report written)05:08
jamveebers: I just replaced "set +e " with "set -o pipefail" and then "set +o pipefail". The bug was that you spelled the latter "pipefile" instead of "pipefail"05:09
thumperjam: you could always just build a 2.3.6 locally05:09
thumperand use --build-agent05:09
jamthumper: with the caveat of whether build-agent will work with an agent that it thinks exists in streams, but yes, something liket hat05:09
thumperit does...05:09
thumper99% sure05:09
veebersjam: ack, we still need "set +e" otherwise the script will exit immediately, the pipefail is so any non-zero exit codes 'bubble' up the pipe chain (so if 'make check' fails it's not masked by 'tee')05:10
jamveebers: interestingly enough, http://ci.jujucharms.com/job/github-merge-juju/382/console says that "set +o pipfile" doesn't actually cause the script to exit immediately05:12
jamveebers: so it may be that we need to change the script from what I did. you're welcome to override my commit with yours and just fix the typo.05:13
jamveebers: (you can see the error at the end of the console output, but it still marks the commit a success)05:13
veebersjam, ack. I'll comfirm the use of +e and pipefail. Sorry again for the pain, if I had pushed (or ideally not hamfisted that) it would have been all good05:14
jamveebers: mostly it was just confusing to see something and not be able to figure out where that was being set.05:17
jamso the final "push" to github would have helped05:17
jamveebers: makes me wonder if there should be more of a "publish it to jenkins via github" sort of thing.05:17
jamveebers: I'm certainly just as guilty about do I commit and push first, or publish first, or did I forget to commit & push when I publish, etc.05:17
veebersjam: yeah, I think having a landing job for the jenkins job builder config that deploys on merge/landing would be great05:17
veebersaye, you want to make sure your changes actually work. Could be tiresome to push and wait see if a check job succeeds. Although you can do the test locally easily enough05:18
veebersjam: seems "set +e" is the 'default'. I've added it back in so it's explicit and we won't get tripped up if the script surrounding it changes.05:20
* veebers has updated the job && pushed the changes.05:20
wgrantHow do I enable the audit log in 2.3?05:26
wgrantI have an audit.log but it is empty.05:26
jamwgrant: there seems to be "juju controller-config auditing-enabled" and "audit-log-capture-args" "audit-log-max-backups" "audit-log-exclude-methods=ReadOnlyMethods"06:00
jamwgrant: but probably "auditing-enabled=true"06:00
jamwallyworld: it looks ilke 'juju-force-upgrade' doesn't work because it has an assertion for "assert there is no current upgrade in progress"06:02
jamupgradeInfo, current, "d-"06:02
jamwallyworld: ok. I've worked out the upgrade and recovery steps and posted them to the bug.06:21
wallyworldjam: great, looking06:37
wallyworldjam: so we want to remove the prepared and applying txns? why prepared as well?06:40
jamwallyworld: all the prepared ones are *going* to be broken, they are just not applying yet because they ahave to apply the applying txn first06:41
jamwallyworld: everytime the upradesteps worker starts it creates a *new* txn that is going to do the same thing06:41
wallyworldand e are sure there aren't any prepared ones we should be keeping?06:41
jamit just doesn't notice until it goes to apply it that there are broken ones waiting.06:42
jamwallyworld: so if it is stuck in prepared, it couldn't be applied06:42
wallyworldok06:43
jamwallyworld: if we just did an upgrade, theoretically all real changes are either before the upgrade step broke everything, or after, things before the upgrade step should be fully applied06:43
jamwallyworld: things after, couldn't have touched anything, because they never made it out of prepared.06:43
wallyworldi was thinking other non related tasks may have tried to update settings, but seems unlikely06:43
jamwallyworld: so yes, it is possible someone did "juju upgrade-juju" and then something like "juju config a=b" and we'll lose that latter one06:43
wallyworldyeah. changes of that though seem slim06:44
jamwallyworld: we could have them audit the actual list of changes that would be applied, by including more of the txn details in the find()06:44
jamwallyworld: but I don't think anyone other than us really has the stomach for that06:44
jamand it sucks even for us, because real model settings docs have like 30 items in them06:45
wallyworldi was thinking we could make the find more selective, yeah. but i think what we have might be ok06:45
=== frankban|afk is now known as frankban
jamwallyworld: https://github.com/juju/juju/pull/8642 is merging 2.3 into develop, along with https://github.com/juju/juju/pull/8642/commits/6df4788963993eca81afc5bb1b165248604d154207:19
jamwhich just changes the settingsMap.GetBSON to always escape when writing07:20
jamwallyworld: for more restricting remove. we might be able to do something with o.c.???.container-image-stream ${exists: 1}07:25
jamwallyworld: I'd have to think quite a bit to figure out the exact syntax that would match07:25
jam*if* you stop the controller at *exactly* the right time it might also be possible to get a txn that is in Preparing (1) state. but it never gets blocked there, so is unlikely to exist07:29
stubtinwood: Can I get added to the relevant team for https://github.com/juju/charm-helpers ?07:40
tinwoodstub, sure; I'll see if I can do it, or prod the person who can.07:58
tinwoodstub, it's jamespage, marcoceppi or dpb1 that can add you to the charm-helpers team.07:59
jamespagestub: yeah I can do that08:03
jamespagestub: what's your github handle?08:05
utkingHey guys! We're having some troubles with openstack base08:10
stubjamespage: stub42, which you can confirm from my older commits of Canonical team membership08:10
stubc/of/or08:10
utkingit works perfect when deployed, but when we add nova-compute and ceph to the last node (4 nodes) neutron-gateway goes to blocked08:10
stub(heh, #3 committer)08:11
utkingservices not running that should be, neutron-dhcp-agent, neutron-metadata-agent, neutron-L3-agent08:11
utkingalso another ntp is added to the fourth node that fails with hook-failed08:12
utkingunit-nova-compute-0: 10:21:55 DEBUG unit.nova-compute/0.update-status ERROR no relation id specified08:22
utkingany ideas?08:22
utkingcan't gateway run on the same node as nova-compute?08:30
utkingopenstack-base is bugged at least08:48
jamespageutking: -> #openstack-charmers good place to get help on the openstack charms and bundles09:22
jamespagestub: invited09:23
jamespageutking: can you clarify what you mean by "when we add nova-compute and ceph to the last node"09:24
utkingAh, yes!09:46
utkingWe deploy openstack-base to 4 nodes09:46
utkinggateway on one, and 3 nova compute + ceph09:46
utkingthen we use add-unit nova-compute09:46
utkingto the latest node09:46
utkingbut then neutron gateway goes to blocked09:47
jamespageutking: yes - the bundle is split intentionally that way - you can't place nova-compute and ceph on the neutron-gateway unit10:04
jamespagethe charms won't co-exist on the same machine (nova-compute and neutron-gateway specifically)10:04
utkingah ok, how can we achieve this, if you won't mind me asking :)10:06
utkingguess we could try by doing it with add unit commands instead then10:11
TheAbsentOnecan an interface name contain a dash (-)? And are there any limitations like length to it, or is anything possible?10:53
utkingIs there any way we can configure the charms ourself so they can co-exist together?11:35
zeestratTheAbsentOne: Are you thinking about maas/juju or in general? Here's launchpad bug with some background info mostly on the length limitation: https://bugs.launchpad.net/juju/+bug/167232711:45
mupBug #1672327: Too long names for bridges <cdo-qa-blocker> <maas-provider> <openstack> <uosci> <juju:Fix Released by wpk> <MAAS:Fix Released by mpontillo> <https://launchpad.net/bugs/1672327>11:45
TheAbsentOnezeestrat: It's about the juju layer interfaces, as soon as I asked the question I realised mysql-shared has a hyphen and I felt stupid xD11:47
TheAbsentOnethanks though!11:48
zeestratTheAbsentOne: Ah, my bad, I just assumed you were talking about network interfaces :) I imagine there's some cap on the length, but there are a few wordy ones already: https://github.com/juju/layer-index11:50
TheAbsentOneyes exactly I took a look at the index too11:50
TheAbsentOnenow the question remains do I choose generic-db or generic-database as it seems there is no real convention about using abbreviations or not11:51
utkingIs there any way we can get this to work at all? it's for our bachelor thesis, and we really need to get a 4 node with compute openstack up and running12:14
utkinghttps://pastebin.com/XS0sm4uG12:14
utkingThis is our script :)12:14
stubTheAbsentOne: I'm pretty certain they are the same standard juju identifiers found everywhere, but I haven't looked at the code to see what the rules are. I do know _ and - are fine, and characters juju uses as delimeters are not (so no : or /). I personally assume no punctuation apart from _ and -, case insensitive, and sane lengths since humans need to read them.12:34
TheAbsentOneSeems about right stub thanks for that insight! neutron-plugin-api-subordinate is also a layername so I guess I wont run into issues about the length either, perfect! ;)12:39
jamespageutking: sorry  - in lots of channel - prefix my nick to get my attention12:56
jamespageutking: tl;dr no not without quite alot of coding work in the charms12:56
jamespagecory_fu: morning - quick q- I have a non-reactive charm interacting with my reactive implementation - I'm see string data items being double quoted '"str"' - is that intentional and how do I deal with that outside of reactive13:01
jamespagetinwood: might you have an idea ^^13:05
tinwoodhmm13:05
tinwoodjamespage, that's new.  Is that endpoint related?13:05
jamespagetinwood: I'm using a endpoint based interface on my provides end13:06
tinwoodjamespage, I'll have a quick check ...13:06
=== freyes__ is now known as freyes
jamespagetinwood: example data - http://paste.ubuntu.com/p/cJvht5dwjM/13:07
tinwoodjamespage, it's being jsonified in to_publish()13:09
tinwoodwhat does your endpoing look like13:09
jamespageit does to_publish13:09
jamespageoops13:09
tinwoodthere's a to_publish_raw too13:09
jamespagewhat should I be doing?13:09
tinwoodjamespage, https://github.com/juju-solutions/charms.reactive/blob/master/charms/reactive/endpoints.py#L41213:09
tinwoodit's for not using JSON -- i.e. for pre- endpoint charms.13:10
jamespagetinwood: or I could do the right thing on the other end of the relation13:11
jamespageeven thought its a non-reactive charm right?13:11
tinwoodjamespage, oh yes; you'd just need to do a json.loads('"string stuff"') and it would strip off the string and check it.13:12
tinwoodThat would work too.13:13
cory_fujamespage, tinwood: For reference, this is documented at https://charmsreactive.readthedocs.io/en/latest/charms.reactive.relations.html#charms.reactive.endpoints.RelatedUnit.received but it could definitely be better surfaced.13:38
tinwoodthanks cory_fu13:39
cory_fuWe should probably add a section on converting existing interfaces to Endpoint13:39
jamespagecory_fu: ta - another quick question13:40
jamespagecory_fu: we have an action that unlocks a new set of capabilities in a charm - can I get the action code to re-trigger the main hook state loop thing once its done?13:40
cory_fuOh, and the publish side of those docs is at https://charmsreactive.readthedocs.io/en/latest/charms.reactive.relations.html#charms.reactive.endpoints.Relation.to_publish13:40
cory_fujamespage: Yes.  Just call charms.reactive.main()13:41
jamespageawesome ta13:41
cory_fujamespage: np13:42
cory_fujamespage: Are you aware of using charm-env as your shebang line for actions?13:42
jamespagecory_fu: er no13:42
jamespagecory_fu: docref?13:43
jamespagecory_fu: I've been a bit way from the charm coalface for a few months...13:44
cory_fujamespage: There was an announcement a couple of weeks ago on the mailing list about changing the deault in layer:basic for use_venv to True, so unless you're explicitly setting that back to False, then your charm will use a venv that needs to be activated for your action.13:44
jamespageoh ok13:44
jamespagewe're not13:44
jamespageI wonder how its working?13:44
cory_fujamespage: To make that easy, there's a wrapper at /usr/local/sbin/charm-env that can be used in place of /usr/bin/env in your shebang13:44
cory_fujamespage: Unfortunately, I don't think charm-env is documented yet.  I will try to get that done today.13:45
jamespagecory_fu: ta13:45
cory_fujamespage: It's also useful when debugging charms, so you can do, e.g, juju run --unit charm/0 -- charm-env charms.reactive get_flags13:46
TheAbsentOnecory_fu: what is your timezone +/- I would love to have a private chat once my whole design is done to hear your thoughts. It will help me make choices as I'm a bit unsure what the best-practice approach is as of today13:46
cory_fujamespage: I'm not sure how it would be working either, unless you have another charm on that unit (subordinate, perhaps) that happens to be setting it to False or was built before the default change13:47
jamespagewell we use 'env' just not 'charm-env'13:47
cory_fuTheAbsentOne: Absolutely.  I'm east coast US, UTC-413:48
TheAbsentOnecory_fu: noted, thanks in advance big sir! ^^13:48
cory_fuTheAbsentOne: No problem.  Do be aware that I'll be travelling next week for a planning sprint, so will be in a different timezone (UTC+2) and not generally available except maybe in the evenings.13:49
TheAbsentOnecory_fu: Ohn you are coming to Europe? I'm from Belgium :P Thanks for telling though!13:51
cory_fuTheAbsentOne: Belgium is great.  I've been there once and loved it.  I'll be in Berlin this time, though.13:53
TheAbsentOneProbably at config management camp to present juju a few years back. Love the talks ;) Have a great time in Berlin, man!13:54
TheAbsentOneand btw cory_fu the beer in Belgium is better x)13:54
cory_fu=D13:55

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