| Posted | Nick | Remark | |
|---|---|---|---|
| #openstack-nova - 2020-06-10 | |||
| 15:06:19 | sean-k-mooney | so use -X | |
| 15:06:29 | sean-k-mooney | instead of -x | |
| 15:08:38 | openstackgerrit | Merged openstack/nova-specs master: Encrypted Emulated Virtual TPM https://review.opendev.org/728505 | |
| 15:09:06 | stephenfin | sean-k-mooney: What would -X do? the man page says something about merge strategy | |
| 15:09:33 | sean-k-mooney | git-review -x add the cherry picked line -X does not | |
| 15:10:13 | sean-k-mooney | oh sorry its the other way around | |
| 15:10:20 | sean-k-mooney | -X adds it and -x does not | |
| 15:10:33 | stephenfin | I don't think the -X is related, actually | |
| 15:10:38 | stephenfin | Reading the docs | |
| 15:10:50 | sean-k-mooney | so if you backporting using git review | |
| 15:10:51 | stephenfin | you won't get the line unless you specify -x | |
| 15:10:57 | sean-k-mooney | the workflow is checkout stable/whatever | |
| 15:11:04 | sean-k-mooney | then do git review -X | |
| 15:11:09 | stephenfin | ahhhh | |
| 15:11:12 | sean-k-mooney | to add the cherry picked lins | |
| 15:11:14 | stephenfin | I just use git-cherrypick | |
| 15:11:26 | sean-k-mooney | but if you do -x it does not add them | |
| 15:11:34 | sean-k-mooney | ya i was talkingbaout the arge for git review | |
| 15:11:39 | dansmith | I guess I'm confused.. why is it not helpful? When I'm browsing history at the command line, it's helpful.. otherwise I have to go into gerrit by change-id to find the siblings | |
| 15:11:40 | sean-k-mooney | not git cherry-pick | |
| 15:12:08 | sean-k-mooney | dansmith: im assuming stephne it ac case where it was wrong | |
| 15:12:24 | dansmith | when is it ever wrong? I can't think of a case. | |
| 15:12:31 | melwitt | most of the time, I like the cherry picked lines because it lets me easily see if the changes were picked from N branch to N - 1 branch. but agreed it's a pain when you have to update one | |
| 15:12:37 | sean-k-mooney | when people do it manually and get it wrong | |
| 15:12:55 | sean-k-mooney | i honestly dont mind either way to be honest | |
| 15:13:08 | stephenfin | dansmith: in general they're correct, but things break if you've to make any modification to an earlier patch | |
| 15:13:11 | sean-k-mooney | the only thing i find annoying is that gerrit does not do it the way we want | |
| 15:13:35 | dansmith | it also helps me see how far something was backported.. like if I'm looking at something on stein and it has N backport lines, I know that came from stein+N | |
| 15:14:29 | sean-k-mooney | stephenfin: maybe try using git review for backport for a while | |
| 15:14:34 | stephenfin | True, but you have that information in the cherry picks box on the right | |
| 15:14:39 | stephenfin | in the UI, that is | |
| 15:14:44 | dansmith | not in the command line tho | |
| 15:14:44 | dansmith | right | |
| 15:15:19 | stephenfin | fair point | |
| 15:15:32 | stephenfin | sean-k-mooney: in general, there's no issue. I just use 'git cherry-pick -x' | |
| 15:16:03 | stephenfin | but I've been bitten a few times now where I had a stack of stable changes and had to make a tweak to a single patch higher up | |
| 15:16:50 | stephenfin | so you've add the missing mock or the typo in your commit message or whatever else you missed | |
| 15:17:22 | stephenfin | and then you've to go update the cherry-picked lines in every backported patch plus any patch on top in each branch. not fun :) | |
| 15:17:32 | stephenfin | it'd be nice if it was optional | |
| 15:18:10 | stephenfin | as something that's nice-to-have but not really necessary, particularly if it incurs pain | |
| 15:18:34 | stephenfin | *when it incurs pain | |
| 15:21:08 | dansmith | well, my vote is that it's worthwhile bookkeeping | |
| 15:22:19 | stephenfin | Definitely worthwhile but not essential. I'd like to be able to loosen the cuffs on the occasion they start hurting | |
| 15:24:49 | elod | if i'm not mistaken, then gerrit adds the cherry-picked lines correctly, iff the original patch has merged. if the patch is not merged yet, it does not add the cherry-picked line, for logical reasons, as it might not be the one that gets merged | |
| 15:25:14 | stephenfin | elod: Ah, so that's how it makes the decision :) Can't confirm but makes sense | |
| 15:26:09 | stephenfin | Waiting for a patch series to land on stable/X before backporting to the stable/X-1 etc. is less than optional though. It causes unnecessary context switching for both submitter and reviewer, assuming the submitter even remembers to keep backporting things | |
| 15:27:00 | elod | that's true, we had the same discussion in our team :] | |
| 15:27:34 | stephenfin | Ha! I'm about to discuss it downstream too 😇 | |
| 15:27:34 | stephenfin | Ha! I'm about to discuss it downstream too 😇 | |
| 15:27:37 | dansmith | I'd much prefer to have the bookkeeping right and I think it's very unusual that backports to N releases are that urgent | |
| 15:28:25 | elod | otherwise, if a patch needs to be fixed, then all its backports need to be fixed, so that's another extra burden. so there are two sides | |
| 15:29:35 | elod | if we stick to policy and do the backporting branch-by-branch, when a patch has merged, then this is not an issue, though | |
| 15:29:39 | stephenfin | dansmith: so not including the cherry-picked from line would be very unusual too | |
| 15:29:48 | stephenfin | it'd be exceptional, not the norm | |
| 15:31:03 | stephenfin | elod: yes and no. It really depends on the nature of the change to the higher up patch | |
| 15:32:57 | stephenfin | Consider that series I reviewed from lyarwood yesterday. The extra 'cherry-picked from' line was something that affected all commit messages | |
| 15:32:57 | stephenfin | but there were other issues that were specific to certain backports like the 'Conflicts' and 'NOTE' sections being the wrong way round | |
| 15:33:56 | stephenfin | it's not black and white | |
| 15:34:19 | stephenfin | anyway, I've made my point :) now to forget about it until next time I hit this | |
| 15:35:56 | elod | if the editing of a 'middle' patch is allowed, then that could be a source of an inproper backport. i mean most of the time it's not a problem, but sometimes we forget to backport some new changes | |
| 15:36:34 | elod | the cherry-picked line is good to identify where the backport is coming from | |
| 15:37:18 | elod | and as dansmith said, it's good to see how many previous backports there are | |
| 15:38:44 | elod | but yes, if we want to backport to multiple branches at the same time, it could be painful :) | |
| 15:39:01 | stephenfin | yup, all fair points | |
| 15:39:09 | stephenfin | it'd just be nice have the optional, is all | |
| 15:39:15 | stephenfin | *the option | |
| 15:53:30 | openstackgerrit | Dan Smith proposed openstack/nova master: DNM: Try to make a glance multistore job https://review.opendev.org/734184 | |
| 16:13:21 | openstackgerrit | Jiri Suchomel proposed openstack/nova master: Add ability to download Glance images into the libvirt image cache via RBD https://review.opendev.org/574301 | |
| 16:16:14 | stephenfin | sean-k-mooney: your cherry-picked from lines are wrong in this https://review.opendev.org/#/c/728057/ | |
| 16:19:18 | sean-k-mooney | they may be yes | |
| 16:19:24 | sean-k-mooney | i did it via the gerrit ui | |
| 16:23:16 | openstackgerrit | Stephen Finucane proposed openstack/nova stable/train: Silence amqp heartbeat warning https://review.opendev.org/728057 | |
| 16:23:52 | mandre | hi, quick question regarding the hw_scsi_model and hw_disk_bus glance image annotations. Did nova always had support for them? and if we specify a virt driver that the hypervison doesn't support, does it fallback to the default driver? | |
| 16:24:05 | mandre | Context is, I'm wondering if it's safe to set the hw_scsi_model=virtio-scsi and hw_disk_bus=scsi annotations for my images, not knowing what the environment will be. | |
| 16:25:26 | sean-k-mooney | mandre: yes well for several years | |
| 16:25:37 | sean-k-mooney | it predates icehouse | |
| 16:26:09 | sean-k-mooney | mandre: technically you could detect it via the glance metadta api | |
| 16:26:25 | sean-k-mooney | but if the could cupport nova v2 api it also support them | |
| 16:26:43 | sean-k-mooney | mandre the issue is that the values are virt driver dependnet | |
| 16:27:00 | sean-k-mooney | so if you dont know what hyperviror your cloud is using you don tknow what value are vaild | |
| 16:27:24 | sean-k-mooney | if you know that its libvirt then those values will work | |
| 16:27:33 | mandre | cool, so that answers the first part of the question, we're not deploying on anything that is older that queens I think | |
| 16:28:26 | sean-k-mooney | as of ussuri maybe train we also report the support models to placment as traits | |
| 16:28:52 | sean-k-mooney | just an fyi but plamcnet is an admin only api normally so that may or may not be helpful to you | |
| 16:29:38 | mandre | right, we won't be able to use placement because we need to deploy as tenant | |
| 16:31:30 | sean-k-mooney | ya so if you know its libvirt then as i siad those values will work | |
| 16:31:37 | mandre | is there a way to progmatically discover the hypervisor as a tenant? | |
| 16:31:44 | sean-k-mooney | no | |
| 16:31:48 | sean-k-mooney | and that is intentional | |
| 16:31:52 | sean-k-mooney | as an admin yes | |
| 16:31:58 | sean-k-mooney | via the hyperviors api | |
| 16:32:15 | mandre | fair enough, just checking :) | |
| 16:32:35 | openstackgerrit | Stephen Finucane proposed openstack/nova stable/stein: libvirt: avoid cpu check at s390x arch https://review.opendev.org/701526 | |
| 16:33:00 | sean-k-mooney | mandre: you can boot a vm and then you can kind fo tell form inside the vm | |
| 16:34:29 | mandre | so if I set a driver via hw_scsi_model that the hypervisor doesn't support, it won't be able to boot the VM? or is there a fallback mechanism? | |
| 16:34:53 | sean-k-mooney | if you set it and its not supported it wont boot | |
| 16:35:02 | sean-k-mooney | because we could not fullfile your request | |
| 16:35:22 | mandre | OK | |
| 16:37:03 | sean-k-mooney | mandre: if you boot a vm with a default image and run lscpi like this http://paste.openstack.org/show/794593/ | |
| 16:37:19 | sean-k-mooney | and you see 00:02.0 PCI bridge: Red Hat, Inc. QEMU PCIe Root port for example | |