Friday, 2024-05-17

opendevreviewmelanie witt proposed openstack/nova master: docs: Add more information about unified limits  https://review.opendev.org/c/openstack/nova/+/91991302:25
opendevreviewmelanie witt proposed openstack/nova master: docs: Add more information about unified limits  https://review.opendev.org/c/openstack/nova/+/91991303:32
opendevreviewmelanie witt proposed openstack/nova master: docs: Add more information about unified limits  https://review.opendev.org/c/openstack/nova/+/91991304:05
opendevreviewmelanie witt proposed openstack/nova master: docs: Add more information about unified limits  https://review.opendev.org/c/openstack/nova/+/91991304:26
opendevreviewRobert Hoffmann proposed openstack/nova master: Fix backups hanging in creating state  https://review.opendev.org/c/openstack/nova/+/91992307:41
opendevreviewRobert Hoffmann proposed openstack/nova master: Fix backups hanging in creating state  https://review.opendev.org/c/openstack/nova/+/91992310:05
opendevreviewMauricio Faria de Oliveira proposed openstack/nova master: libvirt: Filter out disabled guest CPU features in _get_cpu_feature_traits()  https://review.opendev.org/c/openstack/nova/+/91994913:13
opendevreviewAndrew Bonney proposed openstack/nova master: [WIP] Set port dns_name when unshelving instances  https://review.opendev.org/c/openstack/nova/+/91996114:10
opendevreviewsean mooney proposed openstack/nova master: [WIP] ensure correct cleanup of multi-attach volumes  https://review.opendev.org/c/openstack/nova/+/91632217:56
opendevreviewsean mooney proposed openstack/nova master: add functional repoducer for bug 2048837  https://review.opendev.org/c/openstack/nova/+/91997917:56
sean-k-mooneyi spend the better part of 6 hours trying to get that repoduce to pass ^ and then i realsied the reason i could not get it to pass was my fix didnt work...17:57
sean-k-mooneyon the plus side i now have a repoducer for the orginal bug...17:57
melwitttoo real17:59
sean-k-mooneymelwitt: you dont happen to knwo if we stash if a volume is a multi attach volume in the bdms do you18:05
melwittsean-k-mooney: there isn't a dedicated field for it that I see. I dunno if it could possibly be in the connection_info though18:07
sean-k-mooneyack no worries18:08
sean-k-mooneyit is in the conection info yes18:09
sean-k-mooneyactully we do cache that in the bdms right18:09
melwittyeah. sorry, connection_info is a field on the bdm. I was just saying there isn't a field that is only for multiattach18:10
sean-k-mooneyright so the simple way to fix the bug  is to take a lock on the volume when delete the instnace18:11
sean-k-mooneybasiclly  @utils.synchronized(f'disconnect_volume_{volume_id}')18:11
sean-k-mooneybut instead of doing that in the virt driver in _disconnect_volume18:12
melwittok I see18:12
sean-k-mooneyi need to do that in _delete_instance in the compute manger18:12
sean-k-mooneybut i only need to do that for multi attach volumes18:13
sean-k-mooneyi was orginally tring to do the locking as fine grained as possible18:14
sean-k-mooneybut that wont work18:15
melwittoh yeah. so you're thinking you can check bdm.connection_info to see if it's multiattach?18:15
sean-k-mooneyya18:15
sean-k-mooneythe other option is to basiclaly reuse or reinvent https://github.com/openstack/nova/blob/ab3ca1e2059f951b44d723c15a5065c6532540da/nova/virt/libvirt/volume/mount.py#L3318:16
melwittseems like that would work 🤔 18:16
sean-k-mooneythe _HostMountStateManager basicaly impelmentes refernce counting for host mounts18:17
sean-k-mooneybut we dont use that for anything other the nfs18:17
sean-k-mooneythe problem is this logic https://github.com/openstack/nova/blob/ab3ca1e2059f951b44d723c15a5065c6532540da/nova/virt/libvirt/driver.py#L2045-L206518:19
sean-k-mooneyif we have 2 vms on the same host using the same multi attach volume18:19
sean-k-mooneyand you delete both of them at the same time18:19
melwittah ok18:19
sean-k-mooneythen because we are looking at the host's instance list until know if we should do the disconenct there is a race18:20
sean-k-mooneyso to fix it we either need a refence count and delete it when that hits 0 or we need to just seriase the delete18:21
sean-k-mooneyi think the latter is simpler and safer18:21
melwittI agree18:21
sean-k-mooneyok now that i know someone else does not think this is an insane approch i think im going to call it a day18:23
melwitthaha :)18:23
sean-k-mooneythe worst part was i didnt even thing the issue was with my fix. i was confived the issue was with my repoducer test for so long18:23
melwittI know the feeling 😝 18:24
opendevreviewmelanie witt proposed openstack/nova master: docs: Add more information about unified limits  https://review.opendev.org/c/openstack/nova/+/91991319:26
opendevreviewmelanie witt proposed openstack/nova master: Consolidate vTPM and ephemeral encryption secret creation  https://review.opendev.org/c/openstack/nova/+/91209420:51
opendevreviewmelanie witt proposed openstack/nova master: Support create with ephemeral encryption for qcow2  https://review.opendev.org/c/openstack/nova/+/87093220:51
opendevreviewmelanie witt proposed openstack/nova master: libvirt: Add optional 'description' kwarg to create_secret()  https://review.opendev.org/c/openstack/nova/+/91998620:51
opendevreviewmelanie witt proposed openstack/nova master: Support (resize|cold migration) with ephemeral encryption for qcow2  https://review.opendev.org/c/openstack/nova/+/87093323:42
opendevreviewmelanie witt proposed openstack/nova master: Support live migration with ephemeral encryption for qcow2  https://review.opendev.org/c/openstack/nova/+/90551223:42
opendevreviewmelanie witt proposed openstack/nova master: Support rebuild with ephemeral encryption for qcow2  https://review.opendev.org/c/openstack/nova/+/87093923:42
opendevreviewmelanie witt proposed openstack/nova master: Add encryption support to qemu-img rebase  https://review.opendev.org/c/openstack/nova/+/87093623:42
opendevreviewmelanie witt proposed openstack/nova master: Add backing_encryption_secret_uuid to BlockDeviceMapping  https://review.opendev.org/c/openstack/nova/+/90796023:42
opendevreviewmelanie witt proposed openstack/nova master: Support encrypted backing files for qcow2  https://review.opendev.org/c/openstack/nova/+/90796123:42
opendevreviewmelanie witt proposed openstack/nova master: Support rescue with ephemeral encryption for qcow2  https://review.opendev.org/c/openstack/nova/+/87367523:42
opendevreviewmelanie witt proposed openstack/nova master: Validate key manager create access in API  https://review.opendev.org/c/openstack/nova/+/91998923:42
opendevreviewmelanie witt proposed openstack/nova master: Clean up unused ephemeral encryption libvirt secrets  https://review.opendev.org/c/openstack/nova/+/91999023:42
opendevreviewmelanie witt proposed openstack/nova master: libvirt: "Auto heal" ephemeral encryption secrets on guest launch  https://review.opendev.org/c/openstack/nova/+/91999123:42
opendevreviewmelanie witt proposed openstack/nova master: Support encrypted source images for qcow2  https://review.opendev.org/c/openstack/nova/+/91999223:42

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