[nova] does resize work with swap & no-swap flavor combo for image-backed server having vol attached
Hi Team, I’ve encountered resize causing issues if source flavor has swap-disabled and target flavor have it enabled or vice-versa. It results into duplicate vdb error. Following are the steps:- 1 Create an image-backed(no volume attached) instance with flavor having swap disabled. 2 Create a volume and attach it with the instance (e.g. get attached at /dev/vdb). 3 Resize it to a bigger flavor which has swap & ephemeral enabled. 4 It results into error complaining about duplicate vdb:- libvirt.libvirtError: XML error: target 'vdb' duplicated for disk sources '/var/lib/nova/instances/1860acb4-012f-4528-b2ef-XXXXX/disk.swap' Should one not do resize with swap & no-swap flavor combo? Please provide thoughts/suggestions for the same. Thanks, Gaurav
Hi, This should have worked, since Antelope, which nova branch or version you are using. Can you please to create a bug with detailed logs at https://bugs.launchpad.net/nova Regards On Fri, Jan 9, 2026 at 8:29 PM <tomergaurav1031@gmail.com> wrote:
Hi Team,
I’ve encountered resize causing issues if source flavor has swap-disabled and target flavor have it enabled or vice-versa. It results into duplicate vdb error. Following are the steps:- 1 Create an image-backed(no volume attached) instance with flavor having swap disabled. 2 Create a volume and attach it with the instance (e.g. get attached at /dev/vdb). 3 Resize it to a bigger flavor which has swap & ephemeral enabled. 4 It results into error complaining about duplicate vdb:- libvirt.libvirtError: XML error: target 'vdb' duplicated for disk sources '/var/lib/nova/instances/1860acb4-012f-4528-b2ef-XXXXX/disk.swap'
Should one not do resize with swap & no-swap flavor combo? Please provide thoughts/suggestions for the same.
Thanks, Gaurav
Hey, Thanks for confirming. Filed the same - https://bugs.launchpad.net/nova/+bug/2138418. Thanks, Gaurav
this should be fixed by https://review.opendev.org/c/openstack/nova/+/929858 which is backproted to 2023.1 On 16/01/2026 05:48, tomergaurav1031@gmail.com wrote:
Hey,
Thanks for confirming. Filed the same - https://bugs.launchpad.net/nova/+bug/2138418.
Thanks, Gaurav
actully that a diffent error then the one we fixed previously https://bugs.launchpad.net/nova/+bug/1552777 in https://bugs.launchpad.net/nova/+bug/2138418 your seeign a duplicat evdb disk which imples we have a bug in how we are generat the disk names wehn we go form a vm with a root disk to one with root swap and ephermal. it would help to add your flaovrs so we can replcate that exactly and if you can let use know if config drive is ensbled that woudl hlep. this is probaly just an off by one error where we are either not accounting for the config drive or ephmeral disk being assing vdb and taht colliding with the swap disk as a result. On 16/01/2026 08:46, Sean Mooney wrote:
this should be fixed by https://review.opendev.org/c/openstack/nova/+/929858 which is backproted to 2023.1
On 16/01/2026 05:48, tomergaurav1031@gmail.com wrote:
Hey,
Thanks for confirming. Filed the same - https://bugs.launchpad.net/nova/+bug/2138418.
Thanks, Gaurav
participants (3)
-
Amit Uniyal
-
Sean Mooney
-
tomergaurav1031@gmail.com