Monday, 2023-04-03

opendevreviewAmit Uniyal proposed openstack/nova-specs master: Add cleanup flag to remove dangling volumes  https://review.opendev.org/c/openstack/nova-specs/+/87875706:20
*** dasm is now known as Guest975806:52
auniyalHi sean-k-mooney 07:41
auniyal https://review.opendev.org/c/openstack/nova/+/877500 - (Don't provide MTU value in metadata service if DHCP is enabled07:42
auniyal)07:42
auniyalis this required in yoga as well ?07:42
bauzasauniyal: if you read the bug report, you'll understand that it's not related to some Nova release, right ?07:47
bauzasit's due to the fact that we pass a wrong MTU to the metadata API, so cloud-init sets it 07:47
bauzassince the operator provided another MTU value for the DHCP domain, we need to use it07:48
* bauzas needs his 3rd coffee now, I'm not really good at writing 08:44
gibibauzas: I caught up on the Friday ptg etherpad. Sorry for missing the discussion in real time. 09:41
bauzasnp at all09:41
bauzashope your wife was ok09:42
bauzasanyway, /me needs to go off09:42
gibibauzas: I agree to try to discuss the limited scope lower constriants job during one of the weekly meetings09:42
bauzas(yet again taxi needs)09:42
* bauzas will add the ptg summary this afternoon (hopefully)09:42
dvo-plvsean-k-mooney: Hello. I have a question regarding third patry cicd from napatech 12:05
sean-k-mooneysure12:05
dvo-plvCould we create our own napatech tempest plugin, maybe just a copy of renegade job or rebase some otehr tests, what will be required, but with a modification for our configuration stesps, create vm with virtio-forwarder or set device_spec varainle, etc?12:06
sean-k-mooneyyou could but that shoudl not be required12:07
sean-k-mooneytempest allows you to set teh vnic type to use12:07
sean-k-mooneyhttps://github.com/openstack/tempest/blob/master/tempest/config.py#L814-L82112:08
sean-k-mooneyso if you set that to virtio-forwarder then it will use that when creating ports12:08
sean-k-mooneydvo-plv: https://docs.openstack.org/neutron/latest/contributor/policies/thirdparty-ci.htmlhttps://docs.openstack.org/neutron/latest/contributor/policies/thirdparty-ci.html is neutrons requimentss for third party ci12:09
dvo-plvI see, Could you also clarify what tests we have to execute for verification? smoke and renegade ?12:10
sean-k-mooneyim not sure what renegade is but smoke is not enough12:10
opendevreviewMerged openstack/nova stable/train: [compute] always set instance.host in post_livemigration  https://review.opendev.org/c/openstack/nova/+/86405512:10
sean-k-mooneyideally you woudl run the networkign and compute api tests and network basic ops as a minium12:10
dvo-plvI see, thanks12:11
dvo-plvDo you have some time for our blueprint with packed ring https://review.opendev.org/c/openstack/nova-specs/+/868377 ?12:13
damnthemhello. i'm having trouble figuring out why does during openstack server backup nova creates two copies of instance disk in temp folder (one, which is mirror name.delta, and second one, which is a "flat copy" of that mirror) https://opendev.org/openstack/nova/src/commit/29de62bf3b3bf5eda8986bc94babf1c94d67bd4e/nova/virt/libvirt/driver.py#L3310-L3365 There are comments in code that suggests that delta is part of backing chain b12:15
sean-k-mooneydvo-plv: ill try and find some time to do upstream view in general tomorrow morning. im not sure ill have time to do reviews today but ill try and do a review of openspecs tomorrow12:16
sean-k-mooneydamnthem: locally the vm will execute form the delta disk but we need to upload the flat image to glance12:17
sean-k-mooneyglance images cannot be delta disk over other images12:17
sean-k-mooneyat least not for qcow/raw images12:18
dvo-plvThank you, have a good day12:19
sean-k-mooneyif its boot from volume or nova is using rbd then we do the snapshot directly in the storage backend and do a thin snapshot12:19
sean-k-mooneyif the storage backend supports that12:19
opendevreviewliang jiechao proposed openstack/nova-specs master: Generic vdpa spec  https://review.opendev.org/c/openstack/nova-specs/+/87933812:37
damnthemsean-k-mooney: vm works locally from {instance}/disk isn't it? Also domxml and qemu-img info doesnt show any backing chains for mirror/delta. And dev.rebase creates full copy of image (mirror https://qemu-project.gitlab.io/qemu/interop/live-block-operations.html#live-disk-synchronization-drive-mirror-and-blockdev-mirror) https://opendev.org/openstack/nova/src/commit/29de62bf3b3bf5eda8986bc94babf1c94d67bd4e/nova/virt/libvirt/d12:47
opendevreviewliang jiechao proposed openstack/nova-specs master: Generic vdpa spec  https://review.opendev.org/c/openstack/nova-specs/+/87933812:48
sean-k-mooneydamnthem: the specific way we create snapshots is rather complicated and is done in a specic way for both legacy and technical reasons related to minimising the impact on the running guest12:50
Ugglagibi, Hi I'm looking at https://review.opendev.org/c/openstack/nova/+/855664/ , so it needs to be backported down to train ?12:51
sean-k-mooneydamnthem: https://github.com/openstack/nova/blob/29de62bf3b3bf5eda8986bc94babf1c94d67bd4e/nova/virt/libvirt/driver.py#L3286-L3369 this is the relevent code12:53
sean-k-mooneydamnthem: https://github.com/openstack/nova/commit/46de2d1e2d0abd6fdcd4da13facaf3225c721f5e was the orgianl patch that add live-snapshots and it descibe the limitation around blockrebase and shallow copies12:57
sean-k-mooneywe later optimised this futher in https://github.com/openstack/nova/commit/caf5faf55670ab212868498e421bedc074fafd89 to reduce the time we need to freeze the fs12:59
damnthemsean-k-mooney: Yeah i read that, and that's actually source of my confusion. Commit message says: "This process ultimately produces a CoW file, representing only the current delta between the root disk and backing file". But it's not in current state. There are 3 full copy at some point: instance disk, mirror and converted image from mirror. 13:02
sean-k-mooneyi need to prepare for a meeting shortly so perhaps others can continue this converstation. without digining into the code my understanding of the process a a high level is we do somthign like this13:08
sean-k-mooneyfirst we create a delat disk by using the same backing as the vm image13:09
sean-k-mooneythis basically recreates teh state to the vm before it started runing for the first tiem13:10
sean-k-mooneywe then do a blockdevie rebase on the delta disk to update it with the changes that have hppened since the vm booted.13:11
sean-k-mooneywe then freeze the guest filesystem and abort the rebase job13:12
sean-k-mooneyinstead of commiting it13:12
sean-k-mooneythen unfreeze the filesystem13:12
sean-k-mooneyat this point the vm is back to runing form the orginal instance disk13:12
sean-k-mooneyand we have a copy of the filesytem changes in the delta disk13:13
sean-k-mooneywe then update the ownwershp of the delta disk so that its owned by nova and revert the guest xml back ot what it was before the snapshot13:14
sean-k-mooneythen we flaten the delta disk into the final format for uploading13:14
sean-k-mooneyand delete the delta disk13:14
sean-k-mooneyfinally we upload the image to glance.13:15
sean-k-mooneyby creating the delta disk as an overlay of the backing file durint the snapshot we only need enough storage for the changes since the guest booted13:15
damnthemsean-k-mooney: thank you. I  think i  understood where is difference in my case and why it's works irrational for me.13:16
sean-k-mooneywhile we are doing the format convertion we need storage for the vm + deta disk + flattened image13:16
sean-k-mooneyand after the snap shot we are just back to the orginal disk13:17
*** Guest9758 is now known as dasm13:32
damnthemsean-k-mooney: to be short - we disabled used_cow_images, so backing stores disabled .So this whole image/snapshot juggling looks pointless from outside. Thank you for helping me figure this out13:33
sean-k-mooneydamnthem: so your using raw images13:40
sean-k-mooneythis is still useful in this case for older release as it reduces the time the mirror action takes13:40
opendevreviewAlexey Stupnikov proposed openstack/nova master: Process unlimited exceptions raised by unplug_vifs  https://review.opendev.org/c/openstack/nova/+/87935014:39
auniyalHi dansmith 14:41
dansmithhi14:41
auniyalregarding this: https://review.opendev.org/c/openstack/nova-specs/+/87875714:41
auniyalthanks for looking :) 14:42
auniyalas you said, now I too think the best way to update DB is with process of restarting instnace.14:42
auniyalI was looking for the place where, we can updated DB, on instance shutoff.14:42
auniyalI think it should be in compute/api as it has stop and start functionality.14:42
auniyalI was also looking for list of operation nova might perform on instance shutdown or start, but could not find one.14:42
auniyalIs this alright to add a decorator which perform all operations on instnace shutoff14:43
auniyalsomething like14:43
auniyal@post_shutoff_actions14:43
auniyaldef stop(instance):14:43
auniyalpass14:43
dansmithauniyal: compute/api is run on the caller, which means the api service would run that code for stop(), so no, I don't think that's best place14:44
dansmithshould be in manager14:44
auniyalat this https://opendev.org/openstack/nova/src/branch/master/nova/compute/manager.py#L331714:46
dansmithauniyal: perhaps, but it probably would be better on start, but more like the lower level spawn so that it catches reboot, start, etc15:02
auniyaldansmith, ack, 15:05
auniyalI didn't get, why we should not run DB update at caller (i.e controller as nova-api serice I believe !!) 15:06
auniyalis it because this action is DB related15:06
dansmithno, for several reasons:15:08
dansmithIt needs to call to cinder and the database so it may be slow/blocking and holding the API caller while you do that is not good15:08
dansmithit also means that it would only work for an actual api stop call and not for other things like reboot, or crash recovery, or guest-initiated reboot, etc15:09
auniyalack, got it, 15:11
opendevreviewAlexey Stupnikov proposed openstack/nova master: Process unlimited exceptions raised by unplug_vifs  https://review.opendev.org/c/openstack/nova/+/87935015:37
gibiUggla: I we we need https://review.opendev.org/c/openstack/nova/+/855664/ in train yes15:46
gibiUggla: is there a complication with the backport?15:47
Ugglagibi, all ports should be upstream ? Any downstream to do ?15:47
Ugglagibi, no I just try to check the "scope".15:49
gibiUggla: as we have train open upstream still we expected to land the fix upstream.15:57
gibiif there is high pressure to get the fix earlier downstream then you can propose the downstream backport before the upstream backport lands, but we still need the upstream backport too15:58
gibi(we probably discuss this downstream :D)15:58
Ugglaok sounds good.15:59
gibiUggla: thanks for picking that fix up15:59
Ugglagibi, you are welcome.16:00
gibi:)16:39

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!