Tuesday, 2016-11-15

mordred++00:02
openstackgerritMerged openstack-infra/nodepool: Separate image upload logs into separate logger  https://review.openstack.org/39428500:15
jeblairjhesketh: i approved pabelanger's test changes that you +2d; feel free to -1 or +3 the rest as you review them.  :)00:25
openstackgerritMerged openstack-infra/zuul: Re-enable test_repo_deleted test  https://review.openstack.org/39670300:25
openstackgerritMerged openstack-infra/zuul: Re-enable test_check_smtp_pool test  https://review.openstack.org/39670700:26
openstackgerritMerged openstack-infra/zuul: Re-enable test_disable_at test  https://review.openstack.org/39678500:26
openstackgerritMerged openstack-infra/zuul: Re-enable test_live_reconfiguration test  https://review.openstack.org/39348800:26
openstackgerritMerged openstack-infra/zuul: Re-enable test_crd_check_reconfiguration test  https://review.openstack.org/39678800:26
openstackgerritMerged openstack-infra/zuul: Re-enable test_crd_check_unknown test  https://review.openstack.org/39679800:27
openstackgerritMerged openstack-infra/zuul: Re-enable test_crd_gate_unknown / test_crd_undefined_project  https://review.openstack.org/39679900:27
openstackgerritMerged openstack-infra/zuul: Re-enable test_head_is_dequeued_once test  https://review.openstack.org/39680300:27
openstackgerritMerged openstack-infra/zuul: Re-enable test_merger_repack_large_change test  https://review.openstack.org/39680500:27
openstackgerritMerged openstack-infra/zuul: Re-enable test_noop_job test  https://review.openstack.org/39680700:27
jheskethjeblair: sure, will do00:31
*** jamielennox is now known as jamielennox|away03:07
*** jamielennox|away is now known as jamielennox03:21
openstackgerritIan Wienand proposed openstack-infra/nodepool: Separate image upload logs into separate logger  https://review.openstack.org/39751603:50
*** jamielennox is now known as jamielennox|away04:15
*** jamielennox|away is now known as jamielennox04:17
*** bcoca has quit IRC04:23
*** jamielennox is now known as jamielennox|away04:40
*** jamielennox|away is now known as jamielennox05:03
*** abregman has joined #zuul06:15
tobiashjeblair, greghaynes, clarkb: thanks for your feedback06:53
tobiashI will try out the docker in chroot method (docker load on every slave boot would be too io consuming)06:54
tobiashfor the windows use case I will look into wgetting the image during dib build06:54
*** hashar has joined #zuul07:17
*** abregman has quit IRC08:17
*** abregman has joined #zuul08:53
*** abregman has quit IRC09:04
*** abregman has joined #zuul09:12
*** openstackgerrit has quit IRC09:18
*** openstackgerrit has joined #zuul09:19
* Zara reads zuul meeting logs-- fungi: using storyboard for agendas one day, 1) worklist-users currently need to be named explicitly (though support for teams in worklists is going ahead steadily), so they're less easily editable right now. 2) there's API support for worklist events but we don't yet expose anything in the UI, so while you can find the history, it's not easy to find it yet. so those are the s10:00
* Zara pecific changes we should make.10:00
Zara(and looks like the meeting is too late for me, but I can read logs for now!)10:03
openstackgerritJan Hruban proposed openstack-infra/zuul: Do not share the gerrit queue dbs in tests  https://review.openstack.org/39767711:02
openstackgerritJan Hruban proposed openstack-infra/zuul: Query changes only via relevant sources  https://review.openstack.org/39767811:02
openstackgerritJan Hruban proposed openstack-infra/zuul: Fix the file matcher for github  https://review.openstack.org/39767911:02
*** abregman is now known as abregman|mtg13:06
*** abregman|mtg is now known as abregman13:23
pabelangermorning13:38
*** yolanda has quit IRC13:39
*** bcoca has joined #zuul13:48
openstackgerritPaul Belanger proposed openstack-infra/nodepool: Initial support for bindep  https://review.openstack.org/39775413:50
pabelangerShrews: ^ bindep will help us get zookeeper onto our worker nodes.  Going to work on landing that today13:51
pabelangerclarkb: ^ I'm on the fence about adding diskimage-builder dependencies into nodepools bindep.txt file, maybe we also land it for diskimage-builder, then update our job to also iterate over its bindep.txt file?13:52
*** bcoca has left #zuul13:52
openstackgerritPaul Belanger proposed openstack-infra/nodepool: Initial support for bindep  https://review.openstack.org/33920013:53
pabelangerclarkb: Shrews: ^ better review, recycles original change-id13:53
*** yolanda has joined #zuul13:55
openstackgerritPaul Belanger proposed openstack-infra/nodepool: Initial support for bindep  https://review.openstack.org/33920014:04
pabelangerokay, I stand corrected. zookeeperd is already in bindep-fallback.txt :)14:04
pabelangerso, this is just an optimization14:05
*** yolanda has quit IRC14:07
*** yolanda has joined #zuul14:23
openstackgerritPaul Belanger proposed openstack-infra/zuul: Move code out of zuul/manager/__init__.py  https://review.openstack.org/34903714:27
openstackgerritPaul Belanger proposed openstack-infra/zuul: Remove v3 project template test  https://review.openstack.org/39572214:30
openstackgerritPaul Belanger proposed openstack-infra/zuul: Remove v3 project template test  https://review.openstack.org/39572214:34
openstackgerritPaul Belanger proposed openstack-infra/zuul: Move code out of zuul/manager/__init__.py  https://review.openstack.org/34903714:34
openstackgerritDavid Shrewsbury proposed openstack-infra/nodepool: Do not delete DIB images that are building.  https://review.openstack.org/39776614:36
Shrewsjeblair: pabelanger: ^^^ that fixes a pretty big issue where we were marking in progress builds as 'deleted' before they could finish building14:37
mordredShrews: they should build quicker14:37
Shrewsfo shizzle14:38
pabelangerShrews: we have some good test coverage around that today, curious why our testing didn't catch that. Possible they are currently disabled?14:41
Shrewspabelanger: i'm pretty darn certain we don't currently have any tests that check ZK data  :)   i saw it change in zookeeper while testing jeblair's changes14:42
pabelangerYa, looks like it14:42
Shrewswe should, ya know, enable tests and stuff14:44
pabelangerYa14:44
pabelangertrying to get unit tests working on fedora14:44
pabelangerbut, that is going to be a lot of churn14:44
pabelangerzookeeper things :)14:44
Shrewspabelanger: i'm going to start with test_commands.py14:45
pabelangerShrews: ack14:45
*** hashar is now known as hasharAway14:50
*** abregman is now known as abregman|brb15:13
Shrewspabelanger: jeblair: so, the current dib-image-delete command takes just an 'id' param. but the ids across images are no longer unique, so we need to require the image name, too. should we just add a new param for the image name? or re-purpose the id field to be combined image name and id (e.g., trusty-0000001)?15:18
Shrewsand ids are no longer int values15:18
pabelangerI'm leaning towards single args15:22
pabelangerespecially, if we render trusty-0000001 is any output15:22
Shrewswell, dib-image-list renders somewhat misleading info now: http://paste.openstack.org/show/589298/15:23
Shrewsbecause ID is not really unique15:24
Shrewsperhaps we should change that to combine Image and ID columns15:24
pabelangerya15:24
mordredShrews: it's devstack-trusty 0000000001 is the unique key right?15:24
Shrewsmordred: right15:24
pabelangerI don't mind combining them15:25
Shrewsi feel like that's the best option... but you all have the ops experience15:26
Shrewsso i defer to you15:26
pabelangerPersonally, it is easier to write bash script, if I only need to cut 1 item, them 2 :)15:27
Shrewslol, ++15:27
Shrewsmordred: combining them sound reasonable to you too?15:28
Shrewsnodepool dib-image-delete -id devstack-trusty-000000000115:29
Shrewsfor example15:29
mordredShrews: I think that's fine15:30
Shrewswow, my irc terminal window just _totally_ disappeared15:31
Shrewsfedora, you so cray cray15:31
fungiZara: thanks for spotting and responding to my half-baked musing on non-wiki agenda options15:44
Zaraheh15:45
*** openstackgerrit has quit IRC15:48
*** openstackgerrit has joined #zuul15:49
clarkbI'm not sure combining them with an arbitrary separator that you have to parse out makes sense (seems potentially error prone)15:53
clarkbwhy not just nodepool image-delete devstack-trusty 000000001 ?15:54
Shrewsclarkb: it's not arbitrary, it's what is used in the ondisk name15:54
clarkbShrews: ah ok if its already used somewhere then not as bad15:55
openstackgerritMerged openstack-infra/zuul: Add attempts logic for jobs  https://review.openstack.org/39505616:00
timrcHey sad I missed the meeting, I was tied up in another meeting, but.. I'd just like to put this out there: I think it'd be cool if, as work completes, and someone thinks its sufficiently cool, to maybe do a demo? I know that's a departure from how these meetings traditionally look. Demoing zuul things will also help us towards the goal of making it simple to deploy :P16:08
fungifor people who actually enjoy our q&a site... https://ask.openstack.org/question/9898816:10
fungiif i leave an answer there i'll more likely just direct them to irc or an ml16:11
pabelangeroh neat16:12
mordredthat's amazing.16:15
mordredtimrc: I don't think that's a terrible idea at all - although depending on the thing in question a demo may be tricky - or may be a thing we want to schedule for a later time if it would take a while to get going16:16
timrcfungi: I'm sort of against doing that, personally. It's nice to have those responses cataloged on the q&a site and searchable from Google.16:17
pabelangerShrews: okay, starting in test_nodepool.py. Have my ubuntu box setup16:17
timrcfungi: Really don't like consigning that sort of thing to irc logs (even if they are indexed by Google) it might be hard to get all the context16:17
Shrewsi'm not exactly sure how we'd demo some of these things, especially via irc.16:19
timrcmordred: Fair point. Maybe just signing up / scheduling demos during the meeting itself, then.16:19
timrcShrews: Yeah, it may require G+ hangout or some other technology that is jeblair-approved :)16:19
timrcscreen?16:19
timrcjk16:19
mordredwell actually - we've done screencasts over telnet port thing before16:20
mordredso you can netcat a port and see the terminal session on the other side16:20
mordreddid it for the AFS walkthrough16:20
pabelangerif we could have some sort of CLI trigger for zuul, in place of gerrit. That would take a large piece of out of play for demoing16:20
timrcmordred: That's amazing.16:21
fungitimrc: well, the traditional way to handle q&a is to add the questions and answers to an faq list in the project's docs16:21
fungiwhich provides them in a durable, visible place16:21
timrcfungi: That's cool. Yeah something is durable, has the question and answer together, and is indexable by your favorite search engine would be my criteria. But it makes me wonder why not just use the q&a site itself and just point to it from project docs?16:22
fungimainly because it's a web forum?16:23
fungii'm probably just biased against the quality of discussions that happen on web forums in general16:23
timrcAnd? Ah16:24
timrcAll I know is that I've relied on googling and finding answers on q&a sites in the past. I've found it pretty useful to be able to do that16:25
fungii tend to cringe at most of the answers i find to things on places like stackexchange and ubuntuforums16:26
fungiusually there's more noise (in the form of uninformed/incorrect answers) than signal16:26
timrcYeah, I tend to read the accepted answer and the comments below it but... I get what you're saying.16:26
*** abregman|brb is now known as abregman16:27
timrcIt is nice to have authorative answers mapped to specific questions and not have to dig or be uncertain about the information being provided.16:27
fungithe sheer number of actively dangerous "solutions" that i see proposed by well-meaning respondents who don't actually know what they're talking about is vast16:28
timrcKind of makes it incumbent of you to provide answers to zuul questions on those forums since we're not going to change people's behavior :)16:28
timrcI kid!16:28
fungiand the real challenge is figuring out what "authoritative" means when it's not curated by authorities on the topic (or more to the point, how can you tell that those curating the answers are authoritative?)16:29
clarkbre demo, not sure that meeting is great forum for that but we have done similar demo type things in the past successfully just scheduling around subset of individual's free time. And ya the screen or pipe script to socket type solutions work pretty well16:29
clarkb(you can also record with script and playback at a later date :) )16:29
timrcfungi: We just turn mordred into a dread pirate roberts of sorts and then anyone of us can answer? I don't know how the openstack forum works but other forums, including reddit and the ubuntu forum let you associate credentials with the user.16:30
timrcclarkb: ++16:31
openstackgerritDavid Shrewsbury proposed openstack-infra/nodepool: Use image name in DIB image IDs  https://review.openstack.org/39781716:31
Shrewspabelanger: mordred: jeblair: ^^^ I left the ID and Image fields separate, but changed ID to be the combined form16:31
fungitimrc: askbot has a karma system that's sort of supposed to indicate how many friends have liked your post, or whatever the term is16:32
Shrewsnow it looks like this: http://paste.openstack.org/show/589305/16:32
Shrewsmy thinking was that someone may be interested in image name only in the output, and that saves them from parsing it out16:34
mordredthat makes sense to me16:35
pabelangersame16:36
*** abregman has quit IRC16:40
jeblairShrews, clarkb, pabelanger: the combined id lgtm as well.  having said that, if we wanted to make a shorter unique ids for images, i think there are a couple of options for doing that, but they involve a small to moderate amount of coding.  i'm inclined to go with the solution Shrews has proposed.16:45
jeblairpabelanger, clarkb: can you take a look at https://review.openstack.org/396749 ?16:48
clarkbjeblair: ya I will add it to this morning's list. (I am currently recovering from monitor going crazy again, is apparently related to displayport bug and X being silly)16:52
pabelangerjeblair: +216:54
openstackgerritMerged openstack-infra/nodepool: Do not delete DIB images that are building.  https://review.openstack.org/39776617:03
pabelangerjeblair: Shrews: I guess, nodepool-builder is no longer option and we'll need to update our BaseTestCase to start it17:17
pabelangeroptional*17:17
pabelangerfor now, I'm just manually launching it17:17
jeblairpabelanger: oh, i meant to reply to an earlier thing -- for running tests on fedora, i would recommend just getting a zk running locally, then do "NODEPOOL_ZK_HOST=localhost ..." to run tests17:22
pabelangerjeblair: Ah, cool. I'll give that a go17:22
jeblairbecause i would like to make the unit tests use that and then just go ahead and remove the per-test zk fixture17:23
Shrewspabelanger: i prefer to use a docker image for zookeeper: https://hub.docker.com/r/jplock/zookeeper/17:34
Shrewsworks great for me. and easy to start/stop17:34
Shrewspabelanger: also, learn about zk-shell17:34
pabelangerjeblair: okay, that works as expected, thanks17:35
pabelangerShrews: Ya, I haven't tried docker yet; some day soon. I'll look into zk-shell shortly17:35
pabelangerclarkb: Shrews: jeblair: thoughts about making zuul / nodepool directory structure the same?  EG: nodepool/nodepool/tests vs zuul/tests17:37
jeblairpabelanger: the reason to put the tests in the package is if the tests are part of the package and expected to be consumable downstream.  they are not in the case of zuul.  maybe someday.  :)17:38
Shrewsjeblair: oh, this is interesting: http://logs.openstack.org/17/397817/1/check/nodepool-coverage-db-ubuntu-xenial/a57f23b/console.html#_2016-11-15_16_36_50_77497217:39
jeblairi love kazoo logs17:40
mordredShrews: it looks like the file doesn't exist17:41
jeblairhttp://logs.openstack.org/17/397817/1/check/nodepool-coverage-db-ubuntu-xenial/a57f23b/console.html#_2016-11-15_16_36_40_84944417:42
Shrewsmordred: DIAF. KTHXBAI17:42
jeblairthat's where it is deleted17:42
* Shrews hugs mordred17:42
jeblairShrews: is that with your 'don't delete building' change?17:43
Shrewsjeblair: yeah, so now i'm all puzzled17:43
mordredI love that the next line after "Removed" is "is ready"17:43
pabelangerjeblair: Shrews: okay, first issue with localhost zookeeper, looks like nodepool-builder is persisting data across testtools.run: http://paste.openstack.org/show/589313/17:43
mordredor is built, rather17:43
pabelangerguess I need to see how to make said path unique17:43
mordredI mean, I know it's the issue being investigated - but as 2 lines back to back in a log, it's lovely reading17:44
jeblairShrews: i don't think it is17:44
Shrewspabelanger: test runs are in nodepool_tests17:44
jeblairShrews: that change wasn't based on 397766 and 397766 merged after those tests started17:44
pabelangerShrews: Ah, so nodepool-builder is not using it it seems17:44
Shrewsjeblair: oh! you are correct, sir17:44
Shrewspabelanger: did you start nodepool by hand? the tests chroot to /nodepool_test... normally everything goes in /nodepool17:45
pabelangerShrews: .tox/py27/bin/python -m testtools.run nodepool.tests.test_nodepool.TestNodepool.test_node is how I ran my test17:46
pabelangerhowever17:46
pabelangerI needed to add self._useBuilder() to start nodepool-builder17:46
pabelangerI suspect, we need to update that to use the zk fixture17:46
openstackgerritDavid Shrewsbury proposed openstack-infra/nodepool: Use image name in DIB image IDs  https://review.openstack.org/39781717:47
Shrewsjeblair: i rebased it17:47
Shrewspabelanger: oh, if it's not using the fixture, then yeah17:50
clarkbjeblair: reviewed 396749, I +2'd because it mostly does what it says it does, but reading through the surrounding code I don't know that it does all the cleanup it could as a result. Also comments in https://review.openstack.org/#/c/396749/1/nodepool/builder.py may point out bugs in builder code? (not new bugs in this change so I didn't -1)17:57
clarkbShrews: you may be interested in comments in builder.py there ^17:58
Shrewsclarkb: responded. your noticing of things is outpacing of doing the things18:10
Shrews:)18:10
pabelangerShrews: jeblair are you okay with exposing zookeeper as an argument to builder.NodePoolBuilder()? Then we can pass in the fixture at test time18:10
Shrewss/of/our/18:11
Shrewspabelanger: As opposed to getting it from the config file?18:13
Shrewspabelanger: Being able to re-read the config file to get ZK changes is one of the features jeblair explicitly wanted. It's a pretty nifty one.18:14
Shrewsso passing it in negates that ability18:15
pabelangerokay18:15
pabelangerHmm, let me see how to support that18:15
clarkbShrews: responded to the builder.py comments, hopefully its a bit more clear? let me know if you want higher bandwidth communication. re the other things yes I figured its just really weird to em to spend effort on updating all that dead code18:17
Shrewsclarkb: why would you need/want to run a second manual build request if there is already an existing build request?18:18
Shrewsnot following18:18
clarkbShrews: because that first build requset has gone into a state where no subsequent action will be taken18:19
clarkbShrews: if it fails, there will be an open request and you cannot submit another manual request if I am reading that right18:19
Shrewsclarkb: oh, the state doesn't matter (at least, it shouldn't)18:19
clarkb(and if it fails without updating the data due to an exception or similar you will think the work is still in progress unless you introspect the host system)18:20
clarkbShrews: why not?18:20
Shrewsthe request will remain open until it succeeds18:20
clarkbI would assume any request for a manual build intends for it to succeed18:20
clarkbShrews: yes, but if I read the locking code correctly it will never try a second time18:20
clarkbso yes it will remain open until it succeeds, however I don't think it will ever succeed if I am reading that correctly18:21
Shrewsit WILL try a second time, because the build request still exists18:22
Shrewsthe checks on 390 and 396 will see the request is still open18:22
Shrewsthe request itself is a zookeeper node that is not removed until there is a successful build18:23
clarkboh ok, I was reading the build and the buildrequest as being the same node18:24
Shrewsso build 00003 may fail for reason X, but the next build 00004 might succeed18:24
clarkband got confuzzled, so the case to handle there is to properly update the state on exception18:24
Shrewsthat state should exist within the build (00003) node18:25
Shrews00003 should have state='failed'18:25
clarkbit won't if an exception short circuits that code path (more likely an issue with the upload side than the build side)18:25
Shrewsclarkb: yeah, the ZK stuff is a bit confusing at first without the full picture18:25
clarkbsetting state to failed depends on the return value for both of those operations so anything that raises past it will result in a non updated node18:26
clarkb(and you want an updated node so you can see 00003 failed and 00004 is now building and so on)18:26
Shrewsclarkb: the uploading code is definitely going to have bugs (but most of it is copy-pasta from the old code). but even if we don't mark it failed, it will remain 'uploading', which is a state we handle and recognize too18:27
Shrewsbut, let's have this conversation as we test that part of it18:27
clarkbShrews: yes, but humans won't grok it18:27
clarkbthey will say "why am I uploading 100 copies of the same image"18:27
clarkbabsically you want the data to reflect reality for humans debugging18:28
Shrewsclarkb: i agree18:28
clarkbeven if you handle the things more gracefully in the code18:28
clarkbShrews: the difference with the old code is that https://git.openstack.org/cgit/openstack-infra/nodepool/tree/nodepool/builder.py#n147 sends a work failure to nodepoold which then updates the database18:30
clarkbhwoever new code is interacting with the db directly so must handle that error checking locally18:30
Shrewsclarkb: we have no disagreement here. if _uploadImage() does not set the failure state properly, we should fix that18:31
clarkbcool18:31
clarkbI think build needs it too fwiw (just less likely to have problems with it beacusedib is more reliable than glance)18:31
Shrewsbuild *SHOULD* set failure state18:31
Shrewsas i've been able to test that18:31
Shrewsi haven't been able to test the upload code as well18:31
clarkbShrews: it does as long as no exceptions are raised18:32
Shrewsclarkb: i tried not to change exception handling for the initial iteration. if it bubbled up before, it bubbles up now18:32
clarkbit looks like subprocess' OSError is caught not sure if statsd or the zk things can raise18:33
clarkbShrews: sort of https://git.openstack.org/cgit/openstack-infra/nodepool/tree/nodepool/builder.py#n114 is the same as with upload, so I think we may need that there too18:34
clarkb(but its possible further reorganization plus preexisting OSError catching is sufficient now18:35
clarkbin any case being able to write tests to cover what happens when things fail will be helpful here18:36
clarkb(and that work is in progress)18:36
*** harlowja has quit IRC18:38
pabelangerShrews: now that we are using zookeeper, does that mean DibImage in nodedb will be removed?18:46
clarkbpabelanger: yes, as well as all the build image and upload image and check for missing image stuff in nodepool.py18:47
clarkbpabelanger: the snapshot image db table will also go away18:47
pabelangerokay, that is what I am looking at now. And noticed we're still looking to the database for state info18:47
Shrewspabelanger: yeah. we need to integrate the new builder into nodepoold still18:48
pabelangerk18:48
Shrewspabelanger: can you reapply the +A here? https://review.openstack.org/39781718:53
pabelangersure18:53
openstackgerritMerged openstack-infra/nodepool: Use image name in DIB image IDs  https://review.openstack.org/39781718:56
jheskethMorning19:00
*** harlowja has joined #zuul19:06
pabelangerclarkb: Shrews: so, if I'm looking at nodepool-builder now, is it safe to say both the builder / uploader are now responsible to check for missing images themself19:33
clarkbpabelanger: yes19:34
pabelangerclarkb: Shrews: meaning, we can remove that logic from nodepool.py19:34
pabelangerokay, that's what I suspected19:34
clarkbif you look at the existing code there is a check that says for every image do we have all the image types and is the image new enough19:34
clarkband builds accordingly if things don't line up as expected19:34
jeblairright.  now nodepoold is powerless in that respect.  if it doesn't have an image that it needs ready, it just needs to punt on the request and wait until a builder satisfies it.  much simpler.  :)20:07
openstackgerritJames E. Blair proposed openstack-infra/nodepool: Remove snapshot support  https://review.openstack.org/39671920:09
openstackgerritJames E. Blair proposed openstack-infra/nodepool: Remove diskimage parameter from config  https://review.openstack.org/39674920:09
jeblairpabelanger: ^ fixed your catch on 71920:10
pabelangerk20:11
pabelangerYay20:37
pabelanger.tox/py27/bin/python -m testtools.run nodepool.tests.test_nodepool.TestNodepool.test_node20:37
pabelangerRan 1 test in 5.265s20:38
pabelangerOK20:38
pabelanger:)20:38
pabelangersome ugly hacking however20:38
pabelangerlet me clean up the patch and upload for some eyes20:38
openstackgerritPaul Belanger proposed openstack-infra/nodepool: [WIP] Re-enable TestNodepool.test_node  https://review.openstack.org/39794420:45
pabelangerokay, that is pretty ugly20:45
jeblairpabelanger: the issue is that you need to run a NodePool and have it talk to the zookeeper used by the test, yeah?20:47
pabelangerjeblair: Yes, along with nodepool-builder too20:48
jeblairpabelanger: pabelanger the setup_config method should write out the zookeeper connection information to the config file used by the test20:49
jeblairthat should mean that you don't need to pass in a zookeeper object.  instead, nodepool can instantiate one on its own by using that config20:50
pabelangerjeblair: okay, let me try that20:50
mordredpabelanger: have I mentioned ttrun ?20:54
mordredpabelanger: "ttrun -epy27 nodepool.tests.test_nodepool.TestNodepool.test_node" is the same as what you typed above, fwiw - in case that's helpful to you in any way20:54
pabelangerah, cool20:54
openstackgerritJames E. Blair proposed openstack-infra/nodepool: Remove Zookeeper per-test fixture  https://review.openstack.org/39794820:59
mordredpabelanger: (you have to pip install it - but still)21:04
openstackgerritJames E. Blair proposed openstack-infra/nodepool: Reduce kazoo logging in tests  https://review.openstack.org/39795221:08
jeblairpabelanger, Shrews: i think/hope you're going to love that one ^.  i do.21:08
pabelangerjeblair: danke21:09
openstackgerritMerged openstack-infra/nodepool: Remove snapshot support  https://review.openstack.org/39671921:18
openstackgerritMerged openstack-infra/nodepool: Remove diskimage parameter from config  https://review.openstack.org/39674921:19
pabelangerjeblair: cool! I see how it works now. Thanks for the info21:22
openstackgerritPaul Belanger proposed openstack-infra/nodepool: [WIP] Re-enable TestNodepool.test_node  https://review.openstack.org/39794421:29
pabelangerShrews: jeblair: I noticed a trivial thing when converting to zk.getMostRecentImageUpload(), existing code usually is provider then image for args, but new zk functions are look to be image, then provider.  Do we care that changed?21:33
jeblairpabelanger: i noticed that too.  :)21:34
jeblairpabelanger: the new thing matches the rest of the zk api, i'd leave the signature as is (and make the change in the calling functions) for now21:34
pabelangerwfm21:35
jeblair(and, if we want to bikeshed on the best order for zk api methods, probably do that when Shrews is on vacation so he doesn't kill us)21:35
pabelangerhehe21:35
jeblairpabelanger: i think you should remove the rest of the image related stuff from nodepool.py before you make the change in 39794421:35
jeblairpabelanger: (i left some quick comments)21:35
pabelangerjeblair: sure, also thoughts on line 1407? I guess we don't need an image.id anymore21:37
jeblairpabelanger: that entire function should go away.  problem solved.  :)21:37
pabelangerneat21:37
jeblairpabelanger: basically, nodepoold doesn't have any image building responsibility.  all it can do is just wait for the right images to show up.21:37
clarkband it should already do that for the most part in the rest of the scheduler21:38
clarkballocation etc all know not to do things with a falvor if the image isn't there21:38
pabelangerjeblair: okay, let me check up the left over bits, see if the schedule launches something21:39
jeblairyep, these were just mostly the vestigal check for missing images bits21:39
pabelangerjeblair: what about periodic clean ups for dib images?21:45
jeblairpabelanger: builder handles that too21:47
pabelangerack21:47
openstackgerritPaul Belanger proposed openstack-infra/nodepool: Remove image building responsibility from nodepool.py  https://review.openstack.org/39796521:53
*** harlowja has quit IRC21:55
jeblairpabelanger: one more thing you can remove in that patch (see comment)21:57
pabelangerjeblair: k21:58
pabelangerjeblair: ImageBuildJob too in nodepool/jobs.py>21:59
pabelangeris that no longer needed?21:59
jeblairpabelanger: correct22:02
jeblairpabelanger: imageuploadjob as well22:02
Shrewsre: param order, i tried to keep them in the order they are in the zk path22:10
Shrewsdid i mess up somewhere?22:11
Shrewsoh, you're comparing to the old code22:12
Shrewsold code is old  :-P22:12
Shrewsbut i don't care if someone wants to change the order if it's more logical22:13
*** harlowja has joined #zuul22:13
openstackgerritJames E. Blair proposed openstack-infra/nodepool: Remove Zookeeper per-test fixture  https://review.openstack.org/39794822:17
openstackgerritJames E. Blair proposed openstack-infra/nodepool: Reduce kazoo logging in tests  https://review.openstack.org/39795222:17
openstackgerritJames E. Blair proposed openstack-infra/nodepool: Fix race condition in build cleanup  https://review.openstack.org/39797522:17
jeblairShrews: i found another sneaky cleanup bug ^22:18
Shrewsjeblair: ah, yeah. i'd say we're going to find a lot of those22:20
jeblairShrews: yeah, if it ends up being a problem, maybe we can think about either doing some batch processing (like, get all the nodes we're going to work with, then do the filtering on that same data set so we have a (more) consistent view), or different locking.  but for now, maybe just make sure they are well annotated as they come up and we can see how big of a problem it is.22:22
jeblair(this is us learning about zk!)22:22
jeblairthat, btw, was the only error in the 'remove zk test fixture' runs, so that's cool.  :)22:23
Shrewsi've been distracted by something for the last couple of hours, and now must go make dinner. will try to catch up on stuff later tonight22:24
jeblairShrews: cool, i think i've landed everything that was ready today.  no rush.  enjoy your evening.  :)22:25
openstackgerritPaul Belanger proposed openstack-infra/nodepool: Remove image building responsibility from nodepool.py  https://review.openstack.org/39796523:16
pabelangerjeblair: re: https://review.openstack.org/#/c/397944/2/nodepool/tests/fixtures/node.yaml yes, we need that code, fake-image-create needs it. I'm sure we can make it more user friendly23:22
jeblairpabelanger: huh.  ok.  yeah.  :)23:42
* SpamapS is wading into test_zuul_refs23:55
SpamapSjeblair: so I'm poking at test_zuul_refs as part of the work to look at removing ZuulTestCase.ref_has_change ...23:57
SpamapSjeblair: I dropped a rock down that well and not sure I heard a splash. Before I dive in.. any advice?23:58

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