Wednesday, 2017-09-20

jeblairi just found ze02 stuck on a git fetch00:39
jeblairi think that meant that all of the jobs it claimed were stuck waiting on that to complete00:39
jeblair(since they use the internal merger to set up their repos, and that is centralized and locked)00:40
jeblairso i think we may need to have the merger timeout on git fetch operations to protect us from that00:40
openstackgerritMerged openstack-infra/zuul feature/zuulv3: Add netaddr requirements for running ipv4|ipv6 filters  https://review.openstack.org/50452200:42
openstackgerritTristan Cacqueray proposed openstack-infra/zuul feature/zuulv3: web: add /tenants route  https://review.openstack.org/50326801:01
openstackgerritTristan Cacqueray proposed openstack-infra/zuul feature/zuulv3: web: add /{tenant}/status route  https://review.openstack.org/50326901:01
openstackgerritTristan Cacqueray proposed openstack-infra/zuul feature/zuulv3: web: add /{tenant}/jobs route  https://review.openstack.org/50327001:01
openstackgerritTristan Cacqueray proposed openstack-infra/zuul feature/zuulv3: web: add /{tenant}/builds route  https://review.openstack.org/46656101:01
openstackgerritTristan Cacqueray proposed openstack-infra/zuul feature/zuulv3: web: make console-stream tenant scoped  https://review.openstack.org/50545201:02
jamielennoxSpamapS, jlk: the problem with kube is that you are expecting to get something you can kubectl apply to in ci01:15
jamielennoxi think it's ok to say that each job should get a namespace that then gets torn down at the end01:16
jamielennoxand then you should be able to RBAC that the user only has priv within the namespace01:16
jamielennoxand anyone testing cross-namespace stuff has to figure out there own things01:16
jamielennoxin theory i think that's reasonable, in practice it changes nodepool's role which may or may not be a problem01:17
jamielennoxthere are questions then on what happens on executor vs on the node, and i have no idea because how exactly do you run functional tests against a deployed kube app?01:21
openstackgerritDavid Moreau Simard proposed openstack-infra/zuul-jobs master: Multi-node: Set up firewalls  https://review.openstack.org/50455301:48
openstackgerritDavid Moreau Simard proposed openstack-infra/zuul-jobs master: Multi-node: Set up connectivity with default OVS bridge  https://review.openstack.org/50455401:48
openstackgerritDavid Moreau Simard proposed openstack-infra/zuul-jobs master: Multi-node: Streamline multi-node-known-hosts  https://review.openstack.org/50462901:48
openstackgerritDavid Moreau Simard proposed openstack-infra/zuul-jobs master: Append /sbin and /usr/sbin to $PATH for 'ip' commands  https://review.openstack.org/50474301:48
openstackgerritDavid Moreau Simard proposed openstack-infra/zuul-jobs master: Multi-node: Set up hosts file  https://review.openstack.org/50455201:48
openstackgerritDavid Moreau Simard proposed openstack-infra/zuul-jobs master: Multi-node: Set up firewalls  https://review.openstack.org/50455301:48
openstackgerritDavid Moreau Simard proposed openstack-infra/zuul-jobs master: Multi-node: Set up connectivity with default OVS bridge  https://review.openstack.org/50455401:48
openstackgerritDavid Moreau Simard proposed openstack-infra/zuul-jobs master: Multi-node: Streamline multi-node-known-hosts  https://review.openstack.org/50462901:48
openstackgerritDavid Moreau Simard proposed openstack-infra/zuul-jobs master: Append /sbin and /usr/sbin to $PATH for 'ip' commands  https://review.openstack.org/50474301:49
openstackgerritDavid Moreau Simard proposed openstack-infra/zuul-jobs master: Pin ansible<2.4 in test-requirements for ansible-lint  https://review.openstack.org/50546702:12
mordredjamielennox, SpamapS, jlk: I think a job that wants to do kubectl apply things is a great thing we should have - but is also a whole new can of worms with tons of things to figure out. there's also the possibilty of just using k8s behind the scenes like we do with openstack today to get a container $somewhere that is ssh-able08614602:28
openstackgerritMerged openstack-infra/zuul-jobs master: Pin ansible<2.4 in test-requirements for ansible-lint  https://review.openstack.org/50546702:31
openstackgerritMerged openstack-infra/zuul-sphinx master: Support zuul.d directories  https://review.openstack.org/50479703:14
dmsimardjlk: made some minimal 2.4 progress on ara, two hurdles down. Giving up on the third one for now, I'll revisit later.03:31
dmsimardupdated the pad.03:31
*** yolanda has quit IRC03:34
*** yolanda has joined #zuul03:34
jamielennoxthe question is going to be then what from ansible makes sense. if i've done kubectl i don't expect to be able to ansible into those container03:42
jamielennoxhowever either way i think you probably need a runner there somewhere that is not a kube container03:43
jamielennoxlike build containers, kubectl apply, and then somewhere that a functional test suite can run from03:44
SpamapSmordred: you don't really SSH to containers.04:49
SpamapSthat implies systemd.. other things04:49
SpamapSjamielennox: a namespace per build is not a bad idea at all. But my point about k8s is more that users don't necessarily want to "test things on OpenStack", they want to "test things on reasonable facsimilies of servers" so they use OpenStack to do that.04:51
SpamapSLikewise, I think people don't really want to test how their software interacts with k8s. They just want to run something.04:52
jamielennoxSpamapS: i can fairly easily come up with a functional testing scenario for testing k8s like that and afaik there is nothings else that can do that05:00
jamielennoxlike tempest tests are in their own repo of code that you run after devstack-gate05:00
jamielennoxso the test path is tempest goes onto the node05:00
jamielennoxkubectl is invoked either from executor or node05:01
jamielennoxthen the test process is to run tempest against the thing that was deployed05:01
SpamapSI'm not sure what you're saying.05:02
SpamapSWhat I'm suggesting is that it's most important that people be able to run jobs inside containers. It's not very important that they get API access to k8s. If they want to test against versions of k8s, I suggest they use VMs, and deploy k8s to the specification they need it to work with.05:03
jamielennoxi'm saying that i don't think k8s is like openstack in that sense, for that target i really want to test that my kube scripts are correct05:04
SpamapSYou won't have any control over what version of k8s is deployed.05:04
SpamapSOr how it is configured.05:04
SpamapSIt's all int he Zuul operator's hands.05:04
jamielennoxthere is definitely an "i want to run tox and i don't really need a vm for that" but i don't think that's a k8s use case05:04
SpamapSRight, I was saying earlier, that's a docker swarm use case.05:05
jamielennoxagreed05:05
SpamapSBut, I think it's more likely you'll find k8s deployed than swarm.05:05
SpamapSand k8s is perfectly capable of doing that.05:05
SpamapSand you can do things like multi-container functional testing05:05
jamielennoxversions of k8s are the same as versions of ubuntu, the deployer is going to have to set that up for you05:05
SpamapSso you can have a job writer that drops a mysql service, a rabbitmq service, and then runs neutron's functional tests as a 3rd service utilizing those.05:06
SpamapS(well maybe not neutron... grr ovs)05:07
SpamapSbut there's really two separate things05:07
SpamapS1) Lighter weight "dumb" jobs that don't need VMs.05:07
SpamapS2) k8s/coe/etc. heavy jobs that don't want to deploy their own k8s/coe/etc.05:07
SpamapSI'm only interested in (1)05:08
jamielennoxah, ok05:08
SpamapSAnd I think using k8s for it means more adoption.05:08
jamielennoxthat's why we're missing each other, 1 i think is not that hard, 2 is interesting05:08
SpamapSYeah, (1) is easy05:08
SpamapSwant it yesterday ;)05:08
SpamapSwriting a spec begging for it actually :)05:09
SpamapS(an internal spec)05:09
jamielennoxright, ok. 2 is what i think brings more uniqueness to zuul05:09
jamielennoxbut yea, we're not there yet05:09
SpamapSzuul kinda doesn't need more uniqueness at this point :)05:10
SpamapSIt will05:10
SpamapSsome day soon05:10
tobiashI think in the long run both use cases should be supported05:10
SpamapSbut today.. it needs to stabilize and release a 3.0 and then start seeing if we can get more flowers to bloom.05:11
jamielennoxfor 1, kube is useful (and we want), but it seems like swarm can just be replaced by something exposing a docker socket and nodepool05:11
jamielennoxhere's 10 static machines with a docker socket, nodepool loads up a min-ready number of containers via that05:12
SpamapSYeah I kind of was suggesting that in the past. Just layer a docker driver over top of regular VM nodepool.05:13
tobiashthat sounds cool05:14
SpamapSThat would be a great way to get lightweight containery tests without having to fit it into k8s.05:14
SpamapSHowever, MANY potential users of Zuul will not have an OpenStack cloud.05:15
qwcTrue.05:20
*** yolanda has quit IRC06:27
*** yolanda has joined #zuul06:29
*** openstackgerrit has quit IRC07:02
*** hashar has joined #zuul07:40
*** electrofelix has joined #zuul09:34
*** hashar is now known as hasharAway09:52
*** toabctl has quit IRC10:01
*** jkilpatr has quit IRC10:44
*** jkilpatr has joined #zuul11:16
*** toabctl has joined #zuul11:17
*** yolanda has quit IRC11:18
*** yolanda has joined #zuul11:24
*** hasharAway is now known as hashar11:39
*** dkranz has joined #zuul12:44
*** hashar is now known as hasharAway13:22
*** openstackgerrit has joined #zuul13:31
openstackgerritMonty Taylor proposed openstack-infra/zuul feature/zuulv3: Handle first play in playbook matching no nodes  https://review.openstack.org/50562613:31
Shrewsmordred: seems 2.4 makes many things unhappy: http://logs.openstack.org/54/505354/1/check/tox-py35/8e3b3e1/testr_results.html.gz13:37
Shrewsmordred: will begin digging into some of those when i return from my morning run13:37
mordredShrews: yah - that patch above is from the first traceback I saw13:41
mordredShrews: which I think has actually always been there - but 2.4 will actually show us callback plugin tracebacks now! :)13:41
mordredShrews: anywho - if you didn't see I pushed up two patches on top of your 2.4 DNM patch13:42
dmsimardI think I managed to get ara passing integration and unit tests on 2.413:42
mordreddmsimard: woot!14:38
Shrewsmordred: rebased your 2.4 things to see what effect they'll have on the tests15:07
Shrewswe'll likely have to combine any fixes into one review at some point15:07
mordredShrews: totally agree15:08
mordredShrews: also - feel free to squash/modify/take-over anything I've got there15:09
Shrewssure15:09
Shrewshrm, well, they didn't eliminate any failures, but added on instead. progress!  :)15:25
Shrewsadded one*15:25
mordredShrews: woot!15:31
mordreddmsimard: don't know if you saw from earlier - but 2.4 added one very important thing ...15:31
mordreddmsimard: callback tracebacks are now actually emitted!!!!15:32
dmsimardmordred: wow15:32
dmsimardBest feature evet15:32
dmsimardever*15:32
mordredright?15:33
dmsimardmordred: however the deprecation notices are real https://twitter.com/dmsimard/status/91033715749518131215:34
dmsimardEverything, everywhere. Deprecated.15:35
dmsimardI actually had to redefine a function from Ansible to avoid printing 20 lines of deprecation when ara bootstrapped15:36
Shrewsjeblair: where is the job.timeout value used in zuul?15:42
Shrewsgrepping for timeout is... not helpful15:42
*** leifmadsen has quit IRC15:46
*** leifmadsen has joined #zuul15:47
jeblairShrews: executor/server.py15:49
Shrewsjeblair: yeah, looked there first. didn't see any timeout references for a job.15:55
* Shrews looks again15:56
Shrewsoh, it's hidden in args[]15:57
jeblairShrews: https://git.openstack.org/cgit/openstack-infra/zuul/tree/zuul/executor/server.py?id=feature/zuulv3#n110815:57
jeblairya15:57
Shrewsargs = json.loads(self.job.arguments)15:57
Shrewsyup15:57
jeblairShrews: https://git.openstack.org/cgit/openstack-infra/zuul/tree/zuul/executor/client.py?id=feature/zuulv3#n17015:58
jeblairthat's the transition from job.timeout to args (when we serialize to go over gearman)15:58
Shrewsseems 2.4 is reporting SUCCESS for timeouts instead of TIMED_OUT. trying to track that down15:58
Shrewsor perhaps the executor is now misinterpreting it15:59
jeblairShrews: the mechanism of timeouts is the watchdog killing the ansible process15:59
Shrewshrm15:59
jeblairShrews: if that happens, we shouldn't actually be getting anything from ansible -- we ask the watchdog if it timed out: https://git.openstack.org/cgit/openstack-infra/zuul/tree/zuul/executor/server.py?id=feature/zuulv3#n159916:00
jeblairShrews: so it's pretty surprising that behavior would change -- unless ansible is actually finishing before the timeout for some reason?  maybe what we're doing to slow things down doesn't work anymore?16:01
Shrewsjeblair: shell: sleep(60)16:01
Shrewsthat should still work16:02
jeblairi agree16:02
Shrewsoh, i might be chasing the wrong thing. I see this in the output: http://paste.openstack.org/show/621551/16:07
Shrewsi think i recall changes around hostvars in 2.416:08
*** hasharAway has quit IRC16:57
*** hashar has joined #zuul16:57
mordreddmsimard: AWESOME17:35
mordredShrews: that output is what https://review.openstack.org/#/c/505626/2 is supposed to deal with17:35
dmsimardmordred: ?17:36
Shrewsmordred: yeah, eventually put 2&2 together on that. still tracking this timeout thing17:39
mordreddmsimard: Everything, everywhere. Deprecated.17:39
dmsimardOh, yes. Everything.17:40
mordreddmsimard: do you have any handy examples of stuff you had todo to avoid the deprecation?17:40
*** electrofelix has quit IRC17:42
dmsimardmordred: just one thing that I don't think zuul would use, the entire patch for 2.4 support in ara is https://review.openstack.org/#/c/505480/17:43
dmsimardI basically redefined https://github.com/ansible/ansible/blob/devel/lib/ansible/constants.py#L18 to do nothing17:43
dmsimardIt's temporary anyway, it's just to get something out and working with 2.4, I'll do things properly in 1.0.17:44
dmsimardthere are deprecation notices all over the integration tests too but I haven't (and won't) address those just yet17:45
dmsimardA big reason of the deprecation spam is tied to includes which have been replaced by imports17:45
dmsimardlike to include tasks from another file is now "import_tasks", there's "import_role" and "import_playbook" too.17:46
jeblairtristanC: i still haven't had a chance to review the web stack, but we will want tests and docs to go along with them; maybe that's something you can start working on?17:47
mordreddmsimard: ah. fun17:53
Shrewsooh, i think the timeout thing is our hosts not matching, thus it skips the playbook, and SUCCESS is the result18:08
Shrewsneat18:08
ShrewsDEBUG    [build: 3bac474e4df340038de6564dbb3697f2] Ansible output: b'skipping: no hosts matched'18:10
Shrewsthere is also:18:10
ShrewsDEBUG    [build: a2cc1056fe9d4449a4022e209fc4cd43] Ansible output: b'[DEPRECATION WARNING]: [defaults]hostfile option, The key is misleading as it can also be a list of hosts, a directory or a list of paths . This feature will be removed in version 2.8. Deprecation warnings can be disabled by'18:10
pabelangerwell, neat...18:11
Shrewsbut, that *should* still work, according to the warning text18:12
Shrewsoh, this might be it: b' [WARNING]: Unable to parse /etc/ansible/hosts as an inventory source'18:13
pabelangerShrews: is this local testing of 2.4?18:13
Shrewsyeah18:13
pabelangerk18:13
pabelangerya, we shouldn't have anything in /etc/ansible/hosts18:14
pabelangerwe do setup hostfile IIRC18:14
Shrewsright18:14
Shrewsso, maybe their definition of "deprecation" is "we've already removed it! jokes on you!"18:15
pabelangerha18:15
pabelangerIs ansible-playbook -i inventory still valid?18:15
mordredwhat's the new option supposed to be?18:16
Shrewsyes. you can, in fact, use -i multiple times now18:16
Shrewsthere were LOTS of changes around inventory18:16
Shrewshttps://github.com/ansible/ansible/blob/devel/CHANGELOG.md18:16
Shrewsbeginning with "Inventory has been revamped:"18:16
pabelangerIt is now possible to specify mulitple inventory sources in the command line (-i /etc/hosts1 -i /opt/hosts2)18:18
pabelangerthat is fun18:18
mordredShrews: does that warning go away if we change hostfile= to inventory= in the ansible.cfg we write?18:31
openstackgerritDavid Moreau Simard proposed openstack-infra/zuul-jobs master: Multi-node: Set up hosts file  https://review.openstack.org/50455218:33
openstackgerritDavid Moreau Simard proposed openstack-infra/zuul-jobs master: Multi-node: Set up firewalls  https://review.openstack.org/50455318:33
openstackgerritDavid Moreau Simard proposed openstack-infra/zuul-jobs master: Multi-node: Set up connectivity with default OVS bridge  https://review.openstack.org/50455418:33
openstackgerritDavid Moreau Simard proposed openstack-infra/zuul-jobs master: Multi-node: Streamline multi-node-known-hosts  https://review.openstack.org/50462918:33
openstackgerritDavid Moreau Simard proposed openstack-infra/zuul-jobs master: Append /sbin and /usr/sbin to $PATH for 'ip' commands  https://review.openstack.org/50474318:33
Shrewsmordred: changing it to inventory causes all sorts of fail18:34
Shrewsstill poking18:34
tristanCjeblair: sure, I was waiting for some feedback regarding the zuul-web interfaces implementation before writting tests...18:40
tristanCIs there a reason why ZUUL_COMMIT is omited from http://git.openstack.org/cgit/openstack-infra/zuul/tree/zuul/ansible/filter/zuul_filters.py?h=feature/zuulv3#n20 ?18:43
jeblairtristanC: we no longer have the information that was in ZUUL_COMMIT18:52
tristanCjeblair: hum, the use-case was for CD job in post pipeline, where we rely on the ZUUL_COMMIT to deploy merged changes in order18:56
jeblairtristanC: zuul.newrev should work for that purpose18:56
tristanCoh indeed, thanks!18:57
jeblair(aka ZUUL_NEWREV)18:57
*** rbergeron has quit IRC19:20
*** rbergeron has joined #zuul19:20
Shrewsfyi, seems there may be a bug in ansible regarding 'all' in hosts file. working up a bug report now19:31
Shrewsjeblair: pabelanger: ^^^19:31
Shrewsfor 2.4, that is19:32
openstackgerritDavid Moreau Simard proposed openstack-infra/zuul-jobs master: Multi-node: Set up connectivity with default OVS bridge  https://review.openstack.org/50455419:34
openstackgerritDavid Moreau Simard proposed openstack-infra/zuul-jobs master: Multi-node: Streamline multi-node-known-hosts  https://review.openstack.org/50462919:34
openstackgerritDavid Moreau Simard proposed openstack-infra/zuul-jobs master: Append /sbin and /usr/sbin to $PATH for 'ip' commands  https://review.openstack.org/50474319:34
dmsimardjeblair, mordred: now that the zuul-sphinx zuul.d fix is in, it's really itching me to separate things but I'll hold off on it in the current multinode stacks.. but I'll submit something to do it after everything lands19:39
mordreddmsimard: yah - I think as soon as we get o-z-j stack cleared we should do the split patch19:42
mordreddmsimard: and similarly for project-config once it's clear of v3 patches19:43
dmsimardright19:43
dmsimardshould we agree on a convention for splitting ? are we splitting by components ? (nodes, nodesets, jobs, templates, projects, etc.) or by logical groups ? (base-integration, multinode-integration, etc.)19:43
dmsimardsince order matters, it's probably better to split by logical chunks19:44
mordredpabelanger: -1 on  https://review.openstack.org/#/c/504785  - but I thnk it's ready to land - I can also just update the patch if you'd prefer19:44
mordreddmsimard: I was doing components before - since order does not matter across them19:45
mordreddmsimard: logical groups seem like understanding ordering would be hard19:45
dmsimardmordred: ah, order matters only within the same set of components ? it doesn't matter when "merging" things ?19:46
dmsimardmordred: bah, I guess there's pros and cons, going for logical chunks also makes it semi-obvious where you need to go to check something19:46
mordreddmsimard: right - the most important thing is that order matters for jobs19:46
dmsimardOH, that reminds me, I have a special request19:46
mordreduhoh19:46
dmsimardyou know how in JJB we had the print-template macro, that gave you the template the job was from19:47
dmsimardI really want something like that that identifies where things are coming from19:47
pabelangermordred: sure, if you want too. Head deep into image failures19:47
mordredpabelanger: kk19:47
pabelangermordred: but, job did build properly19:47
dmsimardmordred: like... node from openstack-zuul-jobs, job from zuul-jobs, pipeline from project-config19:47
Shrewsfor anyone interested in the 2.4 inventory bug: https://github.com/ansible/ansible/issues/3065419:48
dmsimardmordred: otherwise it can get sorta confusing where you need to go look19:48
pabelangermordred: last step is to have zuul return docs-draft.openstack.org/85/504785/1/check/openstack-doc-build/97151a2/ for openstack-doc-build, current it does logs.openstack.org/85/504785/1/check/openstack-doc-build/97151a2/19:48
pabelangermordred: couldn't figure out how to make that happen19:48
mordreddmsimard: ah, interesting. we have that somewhat for playbooks - but I can see where you're going with that - it might be a bit harder to produce ...19:49
mordredpabelanger: ah - nod - SO ...19:49
mordredpabelanger: I think what we want there is success-url, no?19:50
mordredpabelanger: anywho- I'll follow up on those real quick19:51
mordredpabelanger: you pay attention to image failures :)19:51
mordredShrews: we should be able to work around that in the meantime by just generating an all group when we write out the inventory19:51
pabelangermordred: right, I think so. But looking at the current code, we'd need to use log_url, which is setup in base playbook. I _think_ we need to maybe we work the setting of that value?19:51
pabelangerkk19:51
dmsimardmordred: surely zuul knows which file things are being loaded from ?19:52
mordreddmsimard: oh - it surely does - I just don't think it's available in a consumable form in a convenient place right now19:56
* dmsimard nods19:56
jeblairjobs have an attribute that elucidates their inheritance hierarchy; step 1 is probably changing that from strings to structured data, then exposing it as a zuul var19:57
jeblair.inheritance_path19:57
Shrewsmordred: maybe? or we could flog bcoca to get a fix in. the latter seems more fun  :)19:58
mordredjeblair: ++19:58
mordredjeblair: I had a hunch you'd have a more complete answer than I19:58
jeblairdmsimard: i'm ready to be your root buddy; are you ready?19:58
jeblairmordred: what needs to happen before we can start throwing some auto-migrated jobs at v3?20:00
jeblairi reviewed a bunch of migartion changes earlier20:00
dmsimardjeblair: putting finishing touches on the multi node integration tests, soon :D20:01
jeblairhrm, i think zuul is stuck20:03
dmsimarddid I kill it ?20:03
mordredjeblair: I'm making another pass through the open ones - and also following up on this jeepyb/git thing real quick20:03
jeblairsomehow the item in post has an invalid configuration20:04
jeblairwhich is a neat trick.20:04
dmsimardjeblair: I'll go ahead and confirm that my new patchsets have not been enqueued indeed20:04
mordredjeblair: nice! did we manage to land something to project-config with a v3 config issue perhaps?20:05
jeblairmordred: nope, it's in zuul-jobs20:05
jeblairthere are likely 2 issues20:05
jeblairwhy it (thinks?) it has an invalid config20:06
jeblairand why it isn't removed from the pipeline20:06
jeblairi'm going to be digging into this for a bit20:06
mordredjeblair: kk. by the time you're done with that I'll likely be ready to start throwing some auto-migrated jobs20:07
Shrewsmordred: so, looks like the workaround is to use 'inventory =' instead of 'hostfile =', but that caused other issues that we'll have to begin tracking down20:15
openstackgerritJames E. Blair proposed openstack-infra/zuul feature/zuulv3: Support Gerrit 2.13 ref-updated events  https://review.openstack.org/50579520:19
dmsimardafk for a bit.20:20
jeblairthat's one issue ^20:20
*** pabelanger has quit IRC20:21
*** pabelanger has joined #zuul20:21
openstackgerritDavid Shrewsbury proposed openstack-infra/zuul feature/zuulv3: DNM: Test Ansible 2.4  https://review.openstack.org/50535420:24
mordredjeblair: oh - right - we upgraded to 2.13 :)20:24
Shrewsmordred: that ^^^ includes your https://review.openstack.org/505626 change now. feel free to abandon20:25
mordredShrews: cool20:25
Shrewsalso changes hostfile to inventory so we can see the entirety of the fail20:26
mordredcool. I wonder if we'll need to do the whole plugin config thing we were poking at the other day with the new openstack inventory plugin20:26
Shrewsmordred: refresh my memory on that?20:27
mordredShrews: well, we did "inventory_enabled = openstack" in the ansible.cfg to enable the new openstack inventory plugin20:28
mordredShrews: BUT - I would expect to not have to do that for inventories that are handled by the pre-plugin inventory code20:29
Shrewsmordred: oh right. yeah, we shouldn't have to do that20:29
mordredShrews: I see this in the yaml inventory plugin docs though:20:30
mordred        - It takes the place of the previously hardcoded YAML inventory.20:30
Shrewswell... mabye. the errors i saw were "cannot connect" or some such20:30
Shrewsmordred: my test case in that PR works w/o using inventory_enabled20:30
mordredcool.20:31
mordredShrews: oh - SO ...20:31
mordredShrews: together with the "all" issue ...20:31
mordredShrews: ifyou look at the description of the format for the new yaml plugin in lib/ansible/plugins/inventory/yaml.py20:32
Shrewsthis fixes the "all" issue when using "hostfile": https://github.com/ansible/ansible/pull/3065120:32
mordredoh - nevermind ... it's the same format :)20:32
mordredI was about to say I was wondering if we were sending old format to new parser or something20:33
mordredShrews: cool!20:33
*** dkranz has quit IRC20:41
openstackgerritJames E. Blair proposed openstack-infra/zuul feature/zuulv3: Fix infinite loop on reconfiguration exception  https://review.openstack.org/50580720:51
jeblairokay, there's the other one ^20:51
jeblairwe should land that and https://review.openstack.org/505795 asap20:52
* jlk reads, votes20:53
mordredjeblair: jlk and I have +3d both (although in alternating order)20:55
jlktag team!20:56
jeblairi'll restart when those land, then we'll probably need a bunch of rechecks20:57
mordredyah21:04
*** jkilpatr has quit IRC21:05
mordreddmsimard: in https://review.openstack.org/#/c/504787/5/tests/multi-node-known-hosts.yaml you say "Figure out why doing a plain lookup isn't working properly"21:17
dmsimardYeah.21:17
mordreddmsimard: I believe lookup executes on the executor, not the remote node21:17
dmsimardOh damn you're right21:17
mordredTODO -> done21:17
dmsimardAnd I just did a lookup in another place too21:18
* dmsimard needs more sleep21:18
mordredalso, TIL that you can put crazy jinja into a set_fact :)21:18
dmsimardYou can put crazy jinja in anything21:18
dmsimardLearned that from openstack-ansible, gotta give them credit21:18
dmsimardIt allows for some crazy flexibility21:19
mordredjeblair: do you have a second to ponder an issue with me?21:25
*** jkilpatr has joined #zuul21:25
jeblairmordred: yes!  what's that? :)21:49
*** hashar has quit IRC21:50
mordredWELL21:50
jeblairdmsimard: before i jump into nodeset stuff, do you want to do that thing on the executor?21:50
mordredjeblair: so (and I'm mostly summarizing a thing pabelanger discovered)21:50
mordredjeblair: if you look at http://git.openstack.org/cgit/openstack-infra/project-config/tree/zuul.yaml#n38021:51
mordredjeblair: we need to add success-url: "http://docs-draft.openstack.org/{{ log_path }}" ... except chicken-and-egg - we don't have log_path so we can't set it there21:52
mordredjeblair: so I think we might need to be able to set success-url via zuul_return? (and by I think, I mean that's what pabelanger was saying and I wasn't properly hearing)21:53
jeblairwe can't use zuul_return to set log_path in that job's post because base post will override it21:53
mordredright. we can't use it to set log_path21:53
mordredbut we could use it (with code added) to set success-url21:54
mordredOR - we can do something completely different21:54
jeblairmordred: i have 2 alternate suggestions:21:54
mordred\o/21:54
jeblair1) instead of setting success-url with zuul_return, set an arbitrary var with zuul_return and make all zuul_return vars available in the format url method (this should be really easy)21:55
jeblair2) have the base job only set log_url in zuul_return if it isn't already set21:55
jeblairthe downside to 1 is that if something goes wrong, and $docs_draft_url (or whatever we call it) isn't actually set by zuul_return, the success-url will reference an undefined variable.  and we, for good reason, don't do crazy jinja in zuul, so that will just have to fall back as if it weren't defined.  that's probably fine.21:56
jeblairreally, that's not much of a downside.  :)21:56
mordredyah21:57
mordred2 I don't think works - because we don't actually want to overide log_url ... oh- this is extra awkward21:57
mordredjeblair: there won't be anything reporting the location of the logs if we do success-url to https://docs-draft...21:58
mordredbutI guess that's consistent with today, right?21:58
jeblairwell, the nice thing about 2 is that we can have the docs-draft post playbook use whatever ansible/jinja logic we need to say "if this looks like it worked, set log_url here, otherwise, don't and let the base job do it)21:58
jeblairmordred: correct, that's today's behavior21:58
mordredgotcha. ok21:59
jeblairmordred: (success-url actually works a bit better if we use it the way we accidentally used it in v3 so far -- only reference files *under* the log publish location; i think we had a TODO to double check on sizes and retention to see if that's viable)21:59
jeblair(cause then it's easy to backspace up the url hierarchy)21:59
mordredyah. I kind of prefer that myself - if it's workable22:00
mordredI mean, I'm not sure what it is that's going to docs-draft that  might be larger than devstack logs already are ...22:00
jeblairthings have changed significantly with docs builds since we did that :)22:01
mordredyah22:01
jeblairlet's move this to #-infra22:01
*** tobiash has quit IRC22:11
openstackgerritMerged openstack-infra/zuul feature/zuulv3: Support Gerrit 2.13 ref-updated events  https://review.openstack.org/50579522:25
openstackgerritMerged openstack-infra/zuul feature/zuulv3: Fix infinite loop on reconfiguration exception  https://review.openstack.org/50580722:26
openstackgerritJames E. Blair proposed openstack-infra/zuul feature/zuulv3: Add job.nodeset parameter to supercede job.nodes  https://review.openstack.org/50584523:01
openstackgerritJames E. Blair proposed openstack-infra/zuul feature/zuulv3: Remove Job.nodes  https://review.openstack.org/50584623:01
jeblairmordred, dmsimard: ^23:01
openstackgerritJames E. Blair proposed openstack-infra/zuul feature/zuulv3: Add job.nodeset parameter to supercede job.nodes  https://review.openstack.org/50584523:27
openstackgerritJames E. Blair proposed openstack-infra/zuul feature/zuulv3: Remove Job.nodes  https://review.openstack.org/50584623:27

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