Monday, 2017-06-26

*** edmondsw has joined #openstack-powervm00:45
*** edmondsw has quit IRC00:59
*** edmondsw has joined #openstack-powervm01:00
*** edmondsw has quit IRC01:05
*** Sphericus has joined #openstack-powervm01:48
*** fried_rice is now known as efried02:27
*** edmondsw has joined #openstack-powervm04:28
*** edmondsw has quit IRC04:32
*** edmondsw has joined #openstack-powervm06:16
*** edmondsw has quit IRC06:20
*** Sphericus has quit IRC06:47
*** k0da has joined #openstack-powervm07:32
*** edmondsw has joined #openstack-powervm08:04
*** edmondsw has quit IRC08:08
*** edmondsw has joined #openstack-powervm09:52
*** edmondsw has quit IRC09:56
*** smatzek has joined #openstack-powervm11:25
*** edmondsw has joined #openstack-powervm11:40
*** edmondsw has quit IRC11:44
*** jpasqualetto has joined #openstack-powervm12:01
*** edmondsw has joined #openstack-powervm12:01
*** edmondsw has quit IRC12:03
*** mdrabe has joined #openstack-powervm12:41
*** edmondsw has joined #openstack-powervm12:43
*** edmondsw_ has joined #openstack-powervm12:56
*** edmondsw_ has quit IRC12:59
*** esberglu has joined #openstack-powervm13:26
esbergluefried: edmondsw: Fyi This weekend a bunch of the zuul merger nodes froze up. I think it must be related to the network issues we were having last week13:28
efriedight13:28
esbergluThe same thing happened once before when the network was being iffy13:28
edmondswsomething we can get back up again quickly?13:29
esbergluedmondsw: Yeah. I just have to run the zuul merger playbook (15 minutes). I was just thinking of how to avoid this in the future13:29
esbergluAll we have to do is restart the zuul merger service13:29
edmondswavoid, or recover?13:29
esbergluRecover13:30
edmondswif you can devise an easy test, could make a cron job the runs the test and triggers the playbook13:30
esbergluYeah was just about to say that13:30
esbergluI just have to figure out how to detect that the service is mucked up13:31
*** edmondsw_ has joined #openstack-powervm13:31
*** thorst has joined #openstack-powervm13:31
esbergluBecause if you restart zuul-merger while it's doing a merge I'm pretty sure it will report to the job as a merge failure13:31
esbergluOtherwise we could just cron in such a way that they aren't restarting at the same time13:32
*** edmondsw_ has quit IRC13:32
*** k0da has quit IRC13:37
*** kylek3h has joined #openstack-powervm13:37
*** smatzek has quit IRC13:54
*** esberglu has quit IRC13:59
*** esberglu has joined #openstack-powervm14:00
*** esberglu has quit IRC14:04
*** edmondsw_ has joined #openstack-powervm14:05
*** edmondsw_ has quit IRC14:09
*** smatzek has joined #openstack-powervm14:14
*** esberglu has joined #openstack-powervm14:32
*** dwayne has joined #openstack-powervm14:40
edmondswesberglu left you some comments on 5507, just readme stuff14:48
esbergluedmondsw: Cool. I think that is a good enough solution for now. We can look into the cron thing if this becomes a persistent issue14:49
edmondswsure14:49
openstackgerritEric Berglund proposed openstack/nova-powervm master: DNM: ci check  https://review.openstack.org/32831514:57
*** k0da has joined #openstack-powervm15:04
openstackgerritEric Berglund proposed openstack/nova-powervm master: DNM: CI Check2  https://review.openstack.org/32831715:07
*** k0da has quit IRC15:24
*** dwayne has quit IRC16:21
openstackgerritEric Fried proposed openstack/nova-powervm master: Clean up log messages  https://review.openstack.org/47669516:39
openstackgerritEric Fried proposed openstack/nova-powervm master: Clean up log messages  https://review.openstack.org/47669516:42
*** dwayne has joined #openstack-powervm18:26
*** k0da has joined #openstack-powervm18:30
esbergluefried: edmondsw: thorst: The network issues took down more stuff than I realized. I think what happened was that they caused jobs to fail before they were cleaned up18:53
esbergluI'm rebuilding it now18:53
edmondswesberglu ack18:53
edmondswesberglu where does BASE_LOG_PATH come from? I see it referenced, but not set, in both neo-os-ci and powervm-ci18:54
esbergluedmondsw: BASE_LOG_PATH is passed into jenkins from zuul18:55
edmondswesberglu what does the value look like / mean?18:56
esbergluedmondsw: It's from the git ref18:56
esbergluex. refs/changes/15/328315/5418:56
esbergluBASE_LOG_PATH would be 15/328315/5418:56
edmondswseems like an odd name... what does it have to do with LOG?18:57
esbergluIt gets used to setup the logserver directories18:57
edmondswand if it doesn't start with a slash, why don't we have to add a slash here:18:58
esbergluSo if you have multiple patchsets they will have the same parent directory which is the change number18:58
edmondswif ! $FORCE || [ "$ZUUL_PROJECT""$BASE_LOG_PATH" ]; then18:58
esbergluedmondsw: It could start with a slash I would have to look18:58
edmondswif it does start with a slash, we don't need slashes in other places, e.g.:18:59
edmondswgit fetch https://review.openstack.org/$ZUUL_PROJECT refs/changes/$BASE_LOG_PATH18:59
esbergluedmondsw: Just checked, no leading slash19:00
edmondswhmm... so I'm not understanding that if conditional19:01
edmondswmust be my lack of bash mastery :)19:01
esbergluedmondsw: I think the second part (after ||) is just checking if they are defined19:03
esbergluThe reason for this is for manual runs19:03
esbergluSo I don't have to pass a bunch of parameters in19:03
edmondswthat makes sense19:03
esbergluThat's what the -f flag does19:03
esbergluMakes it so everything in that script still works without any zuul parameters19:03
edmondswesberglu so I did some playing around, and if you want to make sure that both ZUUL_PROJECT and BASE_LOG_PATH are set I think you would need to do something like this:  if [[ "$ZUUL_PROJECT" && "$BASE_LOG_PATH" ]]; then19:06
edmondswas it is, it looks like it will pass if either is set instead of requiring both19:07
esbergluedmondsw: From a manual test standpoint you would never set one without the other. If you set the BASE_LOG_PATH without setting ZUUL_PROJECT, it wouldn't know which project to apply the patch to19:09
esbergluIf you aren't setting BASE_LOG_PATH it means you want master19:10
edmondswesberglu not on purpose... ;)19:10
esbergluSo it doesn't matter what ZUUL_PROJECT19:10
esbergluSince you aren't actually checking out any changes19:10
*** smatzek has quit IRC19:11
esbergluedmondsw: I guess your idea saves people from operator error19:11
edmondswesberglu right19:12
esbergluAdded to TODO list19:12
edmondswand looks like the quotes aren't actually necessary... if [[ $ZUUL_PROJECT && $BASE_LOG_PATH ]]; then19:12
edmondswI can throw up a patch19:12
esbergluedmondsw: sweet thanks19:12
edmondswesberglu so I'm looking at 5502 and wondering about ordering of cherry-pick FETCH_HEAD vs. cherry-picks of patches19:13
edmondswesberglu whether it matters at all... seems like it might be better to do patches first19:14
esbergluedmondsw: If there's a merge conflict there's a merge conflict right? Order shouldn't matter19:15
edmondswesberglu and wondering about the fetches... I never use fetch, so I don't know exactly what that does, especially when you fetch twice (once for patching, once for the change you're testing19:15
edmondswesberglu that makes sense about merge conflicts on the actual cherry-picks... what about the fetches?19:15
esbergluedmondsw: fetch just sets the FETCH_HEAD variable which is then used when you do a git pull, checkout, etc.19:16
esbergluedmondsw: At least if I remember correctly19:16
edmondswesberglu really? Then why ever fetch... you can just cherry-pick without that19:16
edmondswI think it must do more than that19:17
esbergluedmondsw: I'm fairly certain it had to be there but I'm not sure why19:17
edmondswefried do you know?19:17
edmondswquestion started at 15:1319:18
esbergluedmondsw: It downloads the objects and references according to the docs19:18
edmondsw(14:13 for you)19:18
esbergluedmondsw: I think we had to do it that way because we are fetching changes from git.o.o19:18
esbergluWhile we cloned the projects from github19:18
esbergluDue to the network issues associated with g.o.o we talked about last week19:19
esbergluedmondsw: I can try a manual run without it at some point and see what happens19:19
edmondswesberglu I'm not necessarily suggesting we stop fetching... just wondering what it does and whether the order of fetching matters if we are going to fetch twice on the same project (once for the change, again for patches)19:20
esbergluedmondsw: I don't think so. When we were apply multiple patches to nova/pypowervm it wasn't causing us any trouble19:21
esberglu*applying19:21
edmondswesberglu k. Reading about git fetch, sounds like it is just fetching information like tags, not pulling code19:26
esbergluedmondsw: https://stackoverflow.com/questions/31882731/what-exactly-does-git-fetch-do-does-a-subsequent-fetch-overwrite-the-previous19:26
esbergluWe could just do 1 git fetch per project19:26
esbergluBut I think by specifying the refspec, it limits the amount of data being downloaded19:29
*** ChanServ has quit IRC19:30
*** smatzek has joined #openstack-powervm19:34
*** smatzek has quit IRC19:35
*** ChanServ has joined #openstack-powervm19:35
*** card.freenode.net sets mode: +o ChanServ19:35
*** smatzek has joined #openstack-powervm19:36
edmondswesberglu yeah, sounds like it19:37
edmondswI'm satisfied, +219:37
*** jpasqualetto has quit IRC20:06
edmondswesberglu I momentarily confused myself on 5510... ignore ps120:29
esbergluedmondsw: ack20:30
efriedHey, just got caught up.20:46
efried[ "$one""$two" ] passes if $one or $two (or both) are nonempty.20:47
efried[ $one && $two ] without quotes works as long as there's no spaces in the var contents.20:47
efriedgit fetch will pull down code and create a branch, but not change the branch you're sitting on (git checkout FETCH_HEAD to do that).20:47
efriedSo multiple fetches will pull down different code (e.g. different patches) which you can then cherry-pick onto the branch you're sitting on if you're trying to apply multiple patches.20:48
efriedactually, [ $one && $two ] is an error if either is empty.20:49
efriedSo don't do that.20:49
efriedActually, you can't use && within the single-bracket construct.20:49
efriedayee, you're using double brackets.20:50
efriedSo yeah, what you've got will work.  Though it's not a syntax I'm used to.21:00
edmondswefried so I should probably add the quotes back to cover cases where there are spaces...21:05
efriededmondsw Well, no.21:05
edmondswno?21:05
efriedFirst of all, there should never be spaces in those vars.21:05
efriedSecond, I actually tried it with spaces and it doesn't brok.21:05
efriedbreak.21:05
edmondswagreed... oh, ok21:05
edmondswesberglu I'll leg you merge 5510 when you are comfortable with it21:06
edmondswefried if fetch pulls down code... what code is it pulling down?21:06
efriededmondsw Whatever you're telling it to pull down.21:06
*** k0da has quit IRC21:07
edmondswif you just say "git fetch"21:07
efriedIf you say 'git fetch' with no target, it'll try to pull the latest code in the branch you're sitting on.21:07
efriedSo for example, if you're sitting in master and you say 'git fetch', it'll pull down the latest master code, but leave you sitting on the commit you were on (an old master commit).21:08
efriedThen you could say 'git pull' and you would be sitting on the latest.21:08
edmondswefried git fetch seems like a waste of your time in that point... just go straight to git pull21:10
efriedIn that scenario, absolutely.  I actually never use git fetch in real life.21:11
efriedIn the CI environment, it makes a ton of sense, though.  You want to fetch a bunch of different specific targets and cherry pick them all together.21:11
edmondswI thought git fetch was more for updating remotes, like when a new branch or tag is created21:11
efriedUpdating your local copy of what's in the remotes, yeah.21:12
efriedYou can say git fetch --all and it'll pull down everything the remote knows - but (and this is the crucial part of fetch) it won't move the branch you're sitting on.21:12
edmondswit must take years to really know the ins and outs of git...21:13
efriededmondsw I assume that's true, though I can't imagine 99.9% of people ever need that knowledge.21:15
efriedI feel like most people need to understand a handful of the functions that they use constantly, and don't need to worry about the other arcana.21:16
edmondswefried fair enough :)21:16
*** edmondsw has quit IRC21:17
*** smatzek has quit IRC21:18
efriedThere's also more than one way to do many, many things in git.  So everyone kinda figures out their own favorite way (e.g. to edit multiple patches in a series) and it's unimportant that they don't understand someone else's way.21:18
*** edmondsw has joined #openstack-powervm21:18
efriedThere's also more than one way to do many, many things in git.  So everyone kinda figures out their own favorite way (e.g. to edit multiple patches in a series) and it's unimportant that they don't understand someone else's way.21:18
*** edmondsw has quit IRC21:23
*** edmondsw has joined #openstack-powervm21:24
*** edmondsw has quit IRC21:28
*** edmondsw has joined #openstack-powervm21:31
*** esberglu has quit IRC21:32
*** esberglu has joined #openstack-powervm21:32
*** edmondsw has quit IRC21:35
openstackgerritEric Fried proposed openstack/nova-powervm master: Clean up log messages  https://review.openstack.org/47669521:35
*** esberglu has quit IRC21:37
*** thorst has quit IRC21:44
*** thorst has joined #openstack-powervm21:46
*** edmondsw has joined #openstack-powervm21:50
*** thorst has quit IRC21:50
*** edmondsw has quit IRC21:55
*** esberglu has joined #openstack-powervm21:57
*** esberglu has quit IRC21:58
*** esberglu has joined #openstack-powervm21:58
*** kylek3h has quit IRC22:01
*** kylek3h has joined #openstack-powervm22:02
*** thorst has joined #openstack-powervm22:05
*** kylek3h has quit IRC22:06
*** thorst has quit IRC22:09
*** edmondsw has joined #openstack-powervm22:18
*** edmondsw has quit IRC22:23
openstackgerritEric Fried proposed openstack/nova-powervm master: Clean up log messages  https://review.openstack.org/47669523:07

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