| Posted | Nick | Remark | |
|---|---|---|---|
| #openstack-nova - 2018-10-29 | |||
| 18:30:46 | mriedem | i think it would probably be simpler to isolate it within _update_vif_xml rather than plumb down through to the vif get_config stuff | |
| 18:31:01 | mriedem | i just wonder how whack-a-mole this is going to be going forward with any changes to that os-vif code | |
| 18:31:10 | mriedem | or if this mtu thing is an outlier | |
| 18:32:40 | mnaser | mriedem: it looks like the mtu is an outlier because $kvm things .. but i dunno | |
| 18:34:33 | mriedem | yeah i was just wondering based on that bz | |
| 18:34:35 | mriedem | which i skimmed | |
| 18:34:40 | mriedem | sounds like libvirt had to revert that | |
| 18:34:45 | mriedem | s/that/something/ | |
| 18:34:51 | mnaser | yep, they did back in 3.3 | |
| 18:34:56 | mnaser | so we really just repeated their bug a layer above | |
| 18:35:03 | mriedem | sweet | |
| 18:44:15 | openstackgerrit | Mohammed Naser proposed openstack/nova master: Add tests for bug #1800511 https://review.openstack.org/614004 | |
| 18:44:15 | openstack | bug 1800511 in OpenStack Compute (nova) rocky "VMs started before Rocky upgrade cannot be live migrated" [High,Triaged] https://launchpad.net/bugs/1800511 | |
| 18:47:57 | cfriesen | mriedem: missed your comment earlier. the XML that we send as part of the migration is used to start up qemu on the dest, this creates data structures in memory, and those data structures need to match the data structures for the guest on the source node. | |
| 18:48:51 | mriedem | cfriesen: sure but this isn't the only thing we change on the dest xml when we send it over | |
| 18:49:01 | mriedem | which is why i'm hoping the mtu thing is an outlier | |
| 18:50:23 | cfriesen | yeah, unless it changes the in-memory layout we don't really care. | |
| 18:51:13 | cfriesen | so we preserve things like device types, virtual machine type, CPU/RAM topology, etc. | |
| 18:51:31 | cfriesen | I wonder if the MTU size affects the layout of the NIC ring buffers | |
| 18:52:26 | mnaser | i mean i guess this explains why/what | |
| 18:52:28 | mnaser | https://bugzilla.redhat.com/show_bug.cgi?id=1449346 | |
| 18:52:28 | openstack | bugzilla.redhat.com bug 1449346 in libvirt "Addition of host_mtu=XXXX changes PCI ioport size & addresses for virtio-net device" [Unspecified,Closed: errata] - Assigned to laine | |
| 18:52:32 | openstackgerrit | Mohammed Naser proposed openstack/nova master: Avoid setting MTU if none was configured https://review.openstack.org/614008 | |
| 18:52:44 | mnaser | anyhow | |
| 18:53:00 | cfriesen | ah, that would do it | |
| 18:53:13 | mnaser | thats a fix with the test in the patch above it, i'd be more than happy to iterate if anyone has comments | |
| 18:53:28 | mnaser | considering this has put a big upgrade project to a halt :< | |
| 18:57:26 | mriedem | i'm on a call for the next hour or so but will try to take a look | |
| 18:58:13 | mnaser | cool, thank you, please highlight me if anything so i can iterate | |
| 19:08:50 | openstackgerrit | Matt Riedemann proposed openstack/nova master: WIP: Cross-cell resize https://review.openstack.org/603930 | |
| 19:08:50 | openstackgerrit | Matt Riedemann proposed openstack/nova master: Add Migration.cross_cell_move and get_by_uuid https://review.openstack.org/614012 | |
| 19:10:21 | cfriesen | mnaser: got a possible problem scenario for you. boot instance on upgraded nova, live-migrate to non-upgraded nova (this will preserve the MTU), then live-migrate back. I suspect the running guest will have MTU, but the generated XML won't. | |
| 19:11:11 | mnaser | cfriesen: isn’t that covered by the _with_mtu test case? | |
| 19:11:28 | mnaser | Where we have a source mtu and it is maintained for the live migration | |
| 19:13:11 | mnaser | It only omits it if the domain XML doesn’t have it, and if the domain XML doesn’t have it then the host_mtu is not set and we’re okay | |
| 19:13:45 | cfriesen | no, in the scenario I just described the running guest would have the MTU, but it's on an older nova that doesn't even try to generate the mtu in the xml | |
| 19:14:05 | cfriesen | unless we actually dump the xml from the running guest, in which case it might be okay | |
| 19:14:25 | cfriesen | can't remember the exact details right now | |
| 19:15:56 | mnaser | cfriesen: I’m assuming in all of this that the XML is being dumped from the running guest | |
| 19:16:22 | mnaser | Let me check | |
| 19:17:06 | cfriesen | yeah, it does. get_xml_desc() in guest.py | |
| 19:19:29 | mnaser | Yup. And it specifies dump_migratable=True | |
| 19:19:55 | mnaser | Which I assume means libvirt will be taking care of not making us do bad things | |
| 19:32:20 | mriedem | mnaser: comments inline | |
| 19:32:21 | mriedem | mostly just nits | |
| 19:36:22 | mriedem | cfriesen: you're talking about this right? https://github.com/openstack/nova/blob/a0eacbf7fff60282007ddca705ef7331e8a4a6f8/nova/virt/libvirt/migration.py#L83 | |
| 19:36:41 | mriedem | yeah that's what i was referring to earlier - before _update_vif_xml we'd just always send the source vif xml unchanged | |
| 19:37:25 | cfriesen | mriedem: yes | |
| 19:44:35 | mnaser | mriedem: cfriesen thanks for the reviews both, i tried to address but in case it wasn't clear in terms of comments, please let me know | |
| 19:44:44 | openstackgerrit | Mohammed Naser proposed openstack/nova master: Add tests for bug #1800511 https://review.openstack.org/614004 | |
| 19:44:44 | openstack | bug 1800511 in OpenStack Compute (nova) "VMs with vif_type bridge/tap started before Rocky upgrade cannot be live migrated" [High,In progress] https://launchpad.net/bugs/1800511 - Assigned to Mohammed Naser (mnaser) | |
| 19:44:44 | openstackgerrit | Mohammed Naser proposed openstack/nova master: libvirt: Avoid setting MTU during live migration if unset https://review.openstack.org/614008 | |
| 19:50:50 | cfriesen | mnaser: much better, one little comment | |
| 19:52:07 | mnaser | cfriesen: i guess i wanted to make sure that a normal reboot wouldn't do the trick (because the qemu-kvm process doesnt get restarted) | |
| 19:52:13 | mnaser | but i guess the follow up comment clears it up | |
| 19:52:47 | openstackgerrit | Mohammed Naser proposed openstack/nova master: libvirt: Avoid setting MTU during live migration if unset https://review.openstack.org/614008 | |
| 19:52:50 | mnaser | cfriesen: voila | |
| 19:52:51 | cfriesen | mnaser: a "nova reboot" without the "hard" option will reset things | |
| 19:52:59 | mnaser | really | |
| 19:53:04 | mnaser | i thought i tried to do an acpi reboot | |
| 19:54:20 | cfriesen | we try an ACPI shutdown | |
| 19:54:31 | cfriesen | then if that doesn't work we do a hard shutdown | |
| 19:54:39 | mnaser | aaaah | |
| 19:54:40 | mnaser | gotcha | |
| 19:54:44 | mnaser | so the reboot always restarts the process | |
| 19:54:54 | mnaser | cool, TIL! | |
| 19:56:11 | mriedem | pep8 is going to fail on https://review.openstack.org/#/c/614004/ | |
| 19:56:57 | mnaser | ah shit | |
| 19:57:42 | mnaser | ill run that locally | |
| 19:58:03 | mriedem | +2 on the top one | |
| 20:21:12 | openstackgerrit | Mohammed Naser proposed openstack/nova master: Add tests for bug #1800511 https://review.openstack.org/614004 | |
| 20:21:12 | openstackgerrit | Mohammed Naser proposed openstack/nova master: libvirt: Avoid setting MTU during live migration if unset https://review.openstack.org/614008 | |
| 20:21:13 | openstack | bug 1800511 in OpenStack Compute (nova) "VMs with vif_type bridge/tap started before Rocky upgrade cannot be live migrated" [High,In progress] https://launchpad.net/bugs/1800511 - Assigned to Mohammed Naser (mnaser) | |
| 20:21:30 | mnaser | mriedem: fixed your nit too if you feel like readding your +2 and cfriesen +1 :) | |
| 20:24:28 | mriedem | +Ws | |
| 20:24:30 | mriedem | oops | |
| 20:24:32 | mriedem | +2s | |
| 20:24:46 | mriedem | time to play the "find another core" game | |
| 20:36:22 | mnaser | mriedem: I guess all the IBM ones are busy today :p | |
| 20:38:34 | mriedem | too soon | |
| 20:42:25 | mnaser | It’s been quiet here today | |
| 20:42:41 | mnaser | And it’s getting late so I might have to settle for an EU core tomorrow :p | |
| 20:45:47 | melwitt | I can take a look. things have been a bit chaotic today | |
| 20:48:28 | mriedem | the one day sean-k-mooney isn't working 20 hours | |
| 20:49:16 | mriedem | mnaser: you've deployed this patch now and verified it fixes your upgrade issue? | |
| 20:49:30 | melwitt | do we want sean-k-mooney to test this first? | |
| 20:49:42 | mriedem | i think mnaser is testing it in prod | |
| 20:49:56 | mnaser | I have not tested in the environment to be honest | |
| 20:50:08 | mnaser | I can do that now tho | |
| 20:50:15 | mnaser | Gimme a few | |
| 20:50:28 | dansmith | seems pretty clear from the bug that this is the right thing to do | |
| 20:50:38 | melwitt | ok, asked in case that's why you mentioned sean-k-mooney | |
| 20:50:50 | dansmith | obviously a manual test would be nice | |
| 20:51:06 | dansmith | I dropped a +W on the top meaty one.. I can put an upgradeable +1 on the bottom one | |
| 21:03:25 | mnaser | (taking a bit of time, trying to find VMs that have been launched before which are testing) | |
| 21:14:33 | mnaser | dansmith: mriedem melwitt i've tested this one now locally on a vm that confirmed had no mtu set (virsh dumpxml, /proc/pid/cmdline had no host_mtu), live migrated with patch and migration completed succesfully | |
| 21:18:52 | mriedem | i mentioned sean-k-mooney because he added the mtu stuff for bridge/tap types | |
| 21:19:04 | mriedem | and is familiar with this live migration _update_vif_xml stuff | |
| 21:20:48 | melwitt | ack | |
| 21:23:51 | mriedem | while we're all here and having fun, we need to do a rocky release for several upgrade related issues, but need https://review.openstack.org/#/q/topic:bug/1798188+(status:open+OR+status:merged) as part of that, | |