yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #72217
[Bug 1762423] [NEW] Resize to swapless flavor still looking for swap
Public bug reported:
Description
===========
Resizing an instance with swap to a flavor without swap, the instance won't run because libvirt will still look after a swap file, for exemple, the default_swap_device in nova/instances table is still set to /dev/vdb after resizing.
The XML passed to libvirt still have the swap device defined.
Steps to reproduce
==================
* Create an instance with Swap
* Resize instance to a flavor without swap
* Try to start instance
Expected result
===============
The instance start without swap
Actual result
=============
Error in nova log
OSError: [Errno 2] No such file or directory: '/var/lib/nova/instances/66035f60-6e17-4f09-bb00-885e3cc5750f/disk.swap'
libvirt xml still have the swap defined
Environment
===========
rpm -qa | grep nova
openstack-nova-console-17.0.2-1.el7.noarch
openstack-nova-common-17.0.2-1.el7.noarch
openstack-nova-scheduler-17.0.2-1.el7.noarch
python2-novaclient-9.1.1-1.el7.noarch
python-nova-17.0.2-1.el7.noarch
openstack-nova-novncproxy-17.0.2-1.el7.noarch
openstack-nova-conductor-17.0.2-1.el7.noarch
openstack-nova-api-17.0.2-1.el7.noarch
openstack-nova-placement-api-17.0.2-1.el7.noarch
rpm -qa | grep libvirt
libvirt-daemon-kvm-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-secret-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-storage-iscsi-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-storage-scsi-3.2.0-14.el7_4.9.x86_64
libvirt-client-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-storage-disk-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-storage-logical-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-network-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-nwfilter-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-storage-mpath-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-storage-gluster-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-interface-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-storage-rbd-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-storage-3.2.0-14.el7_4.9.x86_64
libvirt-libs-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-storage-core-3.2.0-14.el7_4.9.x86_64
libvirt-python-3.2.0-3.el7_4.1.x86_64
libvirt-daemon-driver-nodedev-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-qemu-3.2.0-14.el7_4.9.x86_64
rpm -qa | grep cinder
python-cinder-12.0.0-1.el7.noarch
python2-cinderclient-3.5.0-1.el7.noarch
openstack-cinder-12.0.0-1.el7.noarch
rpm -qa | grep lvm
lvm2-libs-2.02.171-8.el7.x86_64
lvm2-2.02.171-8.el7.x86_64
** Affects: nova
Importance: Undecided
Status: New
** Description changed:
Description
===========
Resizing an instance with swap to a flavor without swap, the instance won't run because libvirt will still look after a swap file, for exemple, the default_swap_device in nova/instances table is still set to /dev/vdb after resizing.
The XML passed to libvirt still have the swap device defined.
Steps to reproduce
==================
* Create an instance with Swap
* Resize instance to a flavor without swap
* Try to start instance
Expected result
===============
The instance start without swap
Actual result
=============
- Error in nova log "File not found xxxx/swap.disk
+ Error in nova log
+ OSError: [Errno 2] No such file or directory: '/var/lib/nova/instances/66035f60-6e17-4f09-bb00-885e3cc5750f/disk.swap'
+
libvirt xml still have the swap defined
Environment
===========
rpm -qa | grep nova
openstack-nova-console-17.0.2-1.el7.noarch
openstack-nova-common-17.0.2-1.el7.noarch
openstack-nova-scheduler-17.0.2-1.el7.noarch
python2-novaclient-9.1.1-1.el7.noarch
python-nova-17.0.2-1.el7.noarch
openstack-nova-novncproxy-17.0.2-1.el7.noarch
openstack-nova-conductor-17.0.2-1.el7.noarch
openstack-nova-api-17.0.2-1.el7.noarch
openstack-nova-placement-api-17.0.2-1.el7.noarch
rpm -qa | grep libvirt
libvirt-daemon-kvm-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-secret-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-storage-iscsi-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-storage-scsi-3.2.0-14.el7_4.9.x86_64
libvirt-client-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-storage-disk-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-storage-logical-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-network-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-nwfilter-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-storage-mpath-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-storage-gluster-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-interface-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-storage-rbd-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-storage-3.2.0-14.el7_4.9.x86_64
libvirt-libs-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-storage-core-3.2.0-14.el7_4.9.x86_64
libvirt-python-3.2.0-3.el7_4.1.x86_64
libvirt-daemon-driver-nodedev-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-qemu-3.2.0-14.el7_4.9.x86_64
rpm -qa | grep cinder
python-cinder-12.0.0-1.el7.noarch
python2-cinderclient-3.5.0-1.el7.noarch
openstack-cinder-12.0.0-1.el7.noarch
- rpm -qa | grep lvm
+ rpm -qa | grep lvm
lvm2-libs-2.02.171-8.el7.x86_64
lvm2-2.02.171-8.el7.x86_64
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1762423
Title:
Resize to swapless flavor still looking for swap
Status in OpenStack Compute (nova):
New
Bug description:
Description
===========
Resizing an instance with swap to a flavor without swap, the instance won't run because libvirt will still look after a swap file, for exemple, the default_swap_device in nova/instances table is still set to /dev/vdb after resizing.
The XML passed to libvirt still have the swap device defined.
Steps to reproduce
==================
* Create an instance with Swap
* Resize instance to a flavor without swap
* Try to start instance
Expected result
===============
The instance start without swap
Actual result
=============
Error in nova log
OSError: [Errno 2] No such file or directory: '/var/lib/nova/instances/66035f60-6e17-4f09-bb00-885e3cc5750f/disk.swap'
libvirt xml still have the swap defined
Environment
===========
rpm -qa | grep nova
openstack-nova-console-17.0.2-1.el7.noarch
openstack-nova-common-17.0.2-1.el7.noarch
openstack-nova-scheduler-17.0.2-1.el7.noarch
python2-novaclient-9.1.1-1.el7.noarch
python-nova-17.0.2-1.el7.noarch
openstack-nova-novncproxy-17.0.2-1.el7.noarch
openstack-nova-conductor-17.0.2-1.el7.noarch
openstack-nova-api-17.0.2-1.el7.noarch
openstack-nova-placement-api-17.0.2-1.el7.noarch
rpm -qa | grep libvirt
libvirt-daemon-kvm-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-secret-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-storage-iscsi-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-storage-scsi-3.2.0-14.el7_4.9.x86_64
libvirt-client-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-storage-disk-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-storage-logical-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-network-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-nwfilter-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-storage-mpath-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-storage-gluster-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-interface-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-storage-rbd-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-storage-3.2.0-14.el7_4.9.x86_64
libvirt-libs-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-storage-core-3.2.0-14.el7_4.9.x86_64
libvirt-python-3.2.0-3.el7_4.1.x86_64
libvirt-daemon-driver-nodedev-3.2.0-14.el7_4.9.x86_64
libvirt-daemon-driver-qemu-3.2.0-14.el7_4.9.x86_64
rpm -qa | grep cinder
python-cinder-12.0.0-1.el7.noarch
python2-cinderclient-3.5.0-1.el7.noarch
openstack-cinder-12.0.0-1.el7.noarch
rpm -qa | grep lvm
lvm2-libs-2.02.171-8.el7.x86_64
lvm2-2.02.171-8.el7.x86_64
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1762423/+subscriptions