Tuesday, 2017-01-24

openstackgerritJames E. Blair proposed openstack-infra/nodepool: Add files for zuul-nodepool integration test  https://review.openstack.org/42228400:07
openstackgerritMerged openstack-infra/nodepool: Move to fedora-25 for devstack testing  https://review.openstack.org/42019700:19
*** jamielennox is now known as jamielennox|away01:02
*** saneax is now known as saneax-_-|AFK01:06
*** jamielennox|away is now known as jamielennox01:17
*** harlowja has quit IRC02:44
*** harlowja has joined #zuul06:34
*** abregman has joined #zuul07:04
*** harlowja has quit IRC07:26
*** openstackgerrit has quit IRC08:03
*** saneax-_-|AFK is now known as saneax08:16
*** hashar has joined #zuul08:23
*** abregman has quit IRC08:27
*** abregman has joined #zuul08:34
jkthi there, I'm happy to see the progress on v309:53
jktI've been running a setup with turbo-hipster at KDE for a few years, and now I'm about to build some CI at another workplace and I wonder about what tool to use09:54
jktI've read through various mailing list posts and presentations, and it seems that v2.5 already uses Ansible in place of TH, which is nice, I guess09:55
jktif I'm starting now, and if I don't mind about stability etc that much right now, should I give this "OpenStack infra only on purpose" thing a try, or should I just use the old zuul with TH?09:56
* jkt waits for the west coast to wake up09:56
*** abregman has quit IRC11:29
*** abregman has joined #zuul11:35
*** abregman is now known as abregman|mtg12:18
*** abregman|mtg has quit IRC12:18
*** saneax is now known as saneax-_-|AFK12:22
Shrewsjkt: well, the general answer has been "you probably shouldn't use it b/c 2.5 is temporary, there's no documentation, no real support, and there's no migration path to v3". but that being said, it is open source and you can do whatever you want  :)12:53
Shrewsbut v3 is getting really close (still no set timeframe)12:53
*** isaacb has joined #zuul13:00
*** isaacb_ has joined #zuul13:00
*** isaacb has quit IRC13:06
jktShrews: thanks; I'm mostly OK with redoing some plumbing in a few weeks/months13:17
jktand anyway, I think I'll be fine with a static set of hosts for now as well, so TH and an old Zuul it is13:17
*** abregman has joined #zuul13:45
*** isaacb_ has quit IRC13:50
*** saneax-_-|AFK is now known as saneax13:52
*** isaacb_ has joined #zuul13:59
*** isaacb_ has quit IRC14:42
*** abregman is now known as abregman|afk15:30
jeblairjkt: hi!  it sounds like you're probably familiar enough with it that you probably won't dig yourself into a hole.  there's just a couple of things to be aware of:15:51
jeblairjkt: unlike TH, the zuul ansible launch server in v2.5 behaves like jenkins -- the launch server acts like a jenkins master, so it doesn't run on the worker nodes themselves.  nodepool assigns nodes to it, it ssh's into the nodes to run jobs, then nodepool deletes the nodes when complete.15:54
jeblairjkt: the jobs are written in a subset of jjb (basically just 'shell' builder), which the launcher automatically translates into ansible.  we're not going to support more of jjb because this component is temporary -- we wrote just enough to make openstack work.15:55
jeblairjkt: and finally, v2.5 should still work fine with turbo hipster, so if you wanted to start out with that, that should continue to work until v3.15:55
jktjeblair: thanks16:02
*** abregman|afk has quit IRC16:09
*** saneax is now known as saneax-_-|AFK16:46
*** saneax-_-|AFK is now known as saneax16:47
*** dmsimard is now known as dmsimard|off16:48
*** hashar is now known as hasharAway17:01
*** yolanda has quit IRC17:19
*** yolanda has joined #zuul17:22
*** openstackgerrit has joined #zuul17:27
openstackgerritDavid Shrewsbury proposed openstack-infra/nodepool: WIP: Assign node set to node requests  https://review.openstack.org/42350217:27
*** saneax is now known as saneax-_-|AFK17:28
*** hashar has joined #zuul17:37
*** hashar has quit IRC17:38
openstackgerritJames E. Blair proposed openstack-infra/nodepool: Add files for zuul-nodepool integration test  https://review.openstack.org/42228417:46
jeblairclarkb: for the nodepool integration test, what i want to do is write a zuul unit test that uses the real nodepool.  this way, we benefit from all the zuul fakes, but are able to test the zuul<->nodepool interaction.  but of course, i don't want this to run during the normal py27 job.17:50
jeblairclarkb: how should i accomplish that... a skip based on an env variable?  or update tox.ini to tell testr to exclude a test class?  or some other idea?17:50
jeblairShrews: ^17:50
jeblairif there's a tox.ini way to do it, that sounds like the right approach to me...17:51
clarkbjeblair: nova has a nova/tests/unit and nova/tests/functioanl17:52
jeblairyeah, it's probably similar to that pattern17:52
clarkbjeblair: then regular py27 job runs everything under unit/ and the functional job runs the tests under functional/ I kinda like that separate as it makes it clear what is what17:52
clarkbI'd have to look up what the specific selection mechanism is though17:53
Shrewssimilarly, shade has unit/functional/ansible17:53
jeblair   OS_TEST_PATH = ./shade/tests/functional17:54
jeblairand then in .testr.conf:  subunit.run discover -t ./ ${OS_TEST_PATH:-./shade/tests/unit}17:54
jeblairclarkb, Shrews: same mechanism in nova17:55
jeblairso i guess i'll shift everything down a directory and branch :)17:55
jeblairthanks!17:55
*** hasharAway has quit IRC18:05
openstackgerritJames E. Blair proposed openstack-infra/zuul: Add nodepool integration test script  https://review.openstack.org/42228818:19
openstackgerritJames E. Blair proposed openstack-infra/zuul: Move tests into test/unit  https://review.openstack.org/42478718:19
jeblairclarkb, Shrews: ^18:19
Shrewseveryone working on tests is going to conflict with that  :)18:21
clarkbsometimes C git can figure moves like that out iirc. But ya jgit not so much18:21
jeblairyep.  :|18:21
clarkbI need caffeine will review after i have that18:22
Shrewsjeblair: you don't have to change anything in tox.ini?18:22
Shrewsoh, i guess not until you add the new dirs18:23
jeblairShrews: not yet, since that's the default.  i'll need to add something for the nodepool test18:23
Shrewsright18:23
clarkbthinking about C git and how zuul may eventually do merges for us, does gerrit properly close out reviews when they are pushed by another entity into gerrit target branch? does it clean up the merge failure detection on its side?18:35
clarkbprobably things that we want to test on review-dev18:35
jeblairclarkb: yes, i previously tested those things, aside from merge failure detection cleanup (which didn't exist yet).18:35
clarkbjeblair: mostly worried if something is in a cannot merge state and then it gets merged by external entity that may trip up Gerrit18:36
jeblairyeah, that's worth seeing what happens.  but you'd probably be pushing a new patchset in that case (not a fast-forward), so i assume it would recalculate.18:37
jlkoh? Theres talk of having zuul directly merge, instead of asking gerrit to do it?18:38
clarkbI thought it would be a merge commit + old existing patchset18:38
jlk(well, gerrit or some other connection)18:38
clarkbjlk: there has been talk of it for a long time due to jgits behavior, its just never been a high priority because jgit works most of the time18:39
jlkjgit is what gerrit uses?18:39
clarkbyup18:39
jlkah, so this is being approached as a possible workaround/solution to a gerrit problem?18:40
jlknot necessarily a design model that other connections should follow?18:40
clarkbyes, though I imagine if gerrit did it we would try to switch other systems to it to for consistency18:40
jlkfair enough.18:41
jeblairtwo reasons: 1) jgit is not as good as cgit in performing merges.  2) this would be required for bi-directional cross-repo dependency18:41
jlkI _think_ it kind of works okay with github, but it requires a different set of rights to directly push instead of using the API to request a merge.18:41
jeblair(in that case, zuul wants to control the two-phase commit process)18:41
clarkbjlk: same situation with gerrit18:41
jlkalso I think it would require reproducing all the github branch protection things downstream which would be annoying.18:42
clarkbjlk: current setup is request merge via the submit api, pushing code requires (force) push access18:42
clarkbjlk: branch protection things?18:42
jlkYeah, github allows you to create branch protections for specific branches in a repo18:42
Shrewsjeblair: So, in studying the current use of ProviderManager in nodepoold, I'm a bit perplexed how it doesn't cause problems when a provider definition is changed, and the manager is changed/stopped out from underneath other threads using it.18:42
clarkbright what does that mean?18:42
jlkwhere merging is blocked until PR Reviews are in place, specific status checks on PR HEAD are in place, or even specific users doing the merge18:43
jlkclarkb: the web UI prevents merging until the "protection" barriers are met18:43
clarkbjlk: thats basically what zuul does18:43
clarkband gerrit does too18:43
jlk(and presumably you aren't allowed to push directly either)18:43
jlkyeah, but end users control github protections18:43
jeblairyeah, those should all be do-able in zuul18:43
jlkwhereas they don't have direct control over zuul/gerrit18:44
clarkbya zuul had support for that before github did I think18:44
jlkindeed18:44
jeblairzuul needs to support all of that anyway, regardless of whether it pushes18:44
jlkTotally can be done in zuul, but what I worry about is github endusers modifying protections behind zuul's back, and then there is a mismatch18:44
jeblairShrews: the existing threads maintain a reference to the old provider manager.  if they then attempt to use it after it has stopped, it may throw an error.  that may send the node into 'deleting' state.  a delete thread will pick that up and start cleaning it up (with a new provider manager).18:46
clarkbjlk: but that is the case regardless right?18:46
jeblairShrews: short version:  it *does* cause problems, but nodepool expects *everything* to cause a problem (hi openstack!) so it's no big deal.  :)18:46
Shrewsjeblair: oh, so we don't try to avoid the errors, but expect proper cleanup18:46
jeblairShrews: yep.18:47
clarkbyes lots of cleanup18:47
jeblairwe're really good at that now.18:47
jlkclarkb: yeah, I think so? I can't put my finger on it, but trying to push directly to github instead of using the API just feels weird to me. I'd have to play with it to get a better feeling on what all it changes.18:48
Shrewsjeblair: ok. i think i still may need to make changes to ProviderManager. I don't want it to manage EVERY provider listed, but only a single provider.18:51
Shrewsotherwise, each ProviderWorker thread will have threads for all providers rather than just the one18:52
jeblairShrews: that's kind of a strange class.  an actual *instance* of providermanager only deals with a single provider.  however, that class has two static methods which operate on all provider managers -- creating and stopping the real per-provider instances as needed.18:54
jeblairShrews: if you wanted to pull those static methods out to be more clear about what they are doing, i would be on board with that.  :)18:55
jheskethMorning18:58
*** hashar has joined #zuul18:58
openstackgerritJan Kundrát proposed openstack-infra/zuul: Fix passing labels to Gerrit when they are not defined in All-Projects  https://review.openstack.org/42480619:19
openstackgerritDavid Shrewsbury proposed openstack-infra/nodepool: Manage providers in ProviderWorker threads  https://review.openstack.org/42480819:24
jktis it always required to list a project explicitly within the projects: stanza?19:26
jktin other words, can I somehow get by without revealing an existence of a given project in my layout.yaml and still have that project covered by some default set of jobs?19:26
*** harlowja has joined #zuul19:41
Shrewsjeblair: for https://review.openstack.org/424808, it seems we have some shade integration tests poking into nodepool private structures (the config provider managers) and now failing with my change: http://logs.openstack.org/08/424808/1/check/gate-nodepool-python27-ubuntu-xenial/bcc81c9/testr_results.html.gz20:15
Shrewsjeblair: not entirely sure what we should do with those20:15
jeblairShrews: maybe change that to nodepool._provider_threads['real-provider'].manager ?20:20
Shrewsjeblair: i guess we could extend the poking down to the threads, but these tests really just seem to be testing ProviderManager. maybe i can refactor the nodepool stuff out20:22
jeblairShrews: alternatively, change those tests ...20:22
jeblairShrews: yes, i was just writing that :)20:23
jeblair++20:23
Shrewsjeblair: fixed 2 of the 3. the test_nodepool_osc_config_reload test is an odd one in that it really just seems to test that the config is actually reloaded. Not sure that test is really necessary, but... what do you think?20:41
Shrewsoy, this one is a PITA20:56
jeblairShrews: yah, i'm going to say that one is of dubious value20:58
Shrewsi mean, i tried passing the buck down to the threads, but it requires actually starting nodepool (it currently does not) which makes it bomb out on the clouds.yaml20:59
jeblairif you wanted to skip that one for now, i would not be opposed21:00
jeblairthen later we can see if anything else covers it, and if so, drop it.  or if not, figure out a better way of testing whatever it uniquely tests.21:00
openstackgerritDavid Shrewsbury proposed openstack-infra/nodepool: Manage providers in ProviderWorker threads  https://review.openstack.org/42480821:01
Shrewsoh, i deleted it. i can add it back and @skip it. 1 sec21:01
openstackgerritDavid Shrewsbury proposed openstack-infra/nodepool: Manage providers in ProviderWorker threads  https://review.openstack.org/42480821:03
jeblairit looks like the latest version of the integration test patch has both the builder and launcher running: http://logs.openstack.org/88/422288/7/experimental/gate-zuul-nodepool/bf5ca54/console.html21:11
clarkbjeblair: does that mean the scripts are ready for review? or do you want to keep iterating on that?21:12
jeblairclarkb: i think ready -- i will continue work (running zuul tests and collecting logs, etc) in further patches now.21:13
openstackgerritJames E. Blair proposed openstack-infra/zuul: Add nodepool integration test  https://review.openstack.org/42485921:39
clarkbjeblair: is there a navigation map for reviewing the integration test stuff?21:45
openstackgerritJames E. Blair proposed openstack-infra/zuul: Rename nodepool integration script  https://review.openstack.org/42486321:46
jeblairclarkb: let me make one21:46
clarkbtyty21:47
jeblairclarkb: "topic:nodepool-integration"21:49
jeblairclarkb: but also, there should be links backwards from the end:  424863  (either depends-on or git commits)21:49
jeblairclarkb: i'm going to update 42486321:51
openstackgerritJames E. Blair proposed openstack-infra/zuul: Rename nodepool integration script  https://review.openstack.org/42486321:51
jeblairclarkb: ^21:51
jeblairclarkb, Shrews: i think all of that is ready to go, and if we land it, we should see it sucessfully fail!  :)21:52
clarkbthe best kind of failure21:52
openstackgerritAdam Gandelman proposed openstack-infra/zuul: Move and re-enable test_build_configuration_branch tests  https://review.openstack.org/40937622:42
*** hashar has quit IRC22:51
clarkbjeblair: please see comments on https://review.openstack.org/#/c/424859/122:59
*** harlowja has quit IRC23:08
*** SpamapS has quit IRC23:27
jeblairclarkb: replied!23:31
*** SpamapS has joined #zuul23:31
jeblairokay, i've approved all of those except the last one23:32
jeblairi'll keep that around for testing after the others land23:33
jeblairadam_g, SpamapS: you may want to rebase your test fixes on https://review.openstack.org/42478723:33
clarkbthanks23:33
openstackgerritMerged openstack-infra/nodepool: Add files for zuul-nodepool integration test  https://review.openstack.org/42228423:36
openstackgerritMerged openstack-infra/zuul: Add nodepool integration test script  https://review.openstack.org/42228823:51
openstackgerritMerged openstack-infra/zuul: Move tests into test/unit  https://review.openstack.org/42478723:52
openstackgerritMerged openstack-infra/zuul: Add nodepool integration test  https://review.openstack.org/42485923:52
*** harlowja has joined #zuul23:58

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