Activity log for bug #1774249

Date Who What changed Old value New value Message
2018-05-30 18:40:46 Matthew Booth bug added bug
2018-05-31 08:35:03 jichenjc nova: status New Confirmed
2018-05-31 08:35:05 jichenjc nova: importance Undecided Medium
2018-05-31 08:35:09 jichenjc nova: assignee jichenjc (jichenjc)
2018-05-31 08:39:14 OpenStack Infra nova: status Confirmed In Progress
2018-06-22 10:30:22 OpenStack Infra nova: assignee jichenjc (jichenjc) Lee Yarwood (lyarwood)
2018-07-16 07:00:45 OpenStack Infra nova: assignee Lee Yarwood (lyarwood) jichenjc (jichenjc)
2018-07-25 08:37:01 OpenStack Infra nova: assignee jichenjc (jichenjc) Lee Yarwood (lyarwood)
2018-10-18 13:20:58 Krzysztof Pawlowski bug added subscriber Krzysztof Pawlowski
2019-02-12 14:36:27 OpenStack Infra nova: assignee Lee Yarwood (lyarwood) Vladyslav Drok (vdrok)
2019-03-07 22:28:47 Matt Riedemann tags libvirt resize
2019-03-07 22:29:46 Matt Riedemann nova: assignee Vladyslav Drok (vdrok)
2019-03-07 22:29:49 Matt Riedemann nova: status In Progress Confirmed
2019-03-08 00:58:55 Matt Riedemann nova: status Confirmed In Progress
2019-03-08 00:59:00 Matt Riedemann nova: assignee Vladyslav Drok (vdrok)
2019-04-17 15:29:25 Matt Riedemann nominated for series nova/pike
2019-04-17 15:29:25 Matt Riedemann bug task added nova/pike
2019-04-17 15:29:25 Matt Riedemann nominated for series nova/rocky
2019-04-17 15:29:25 Matt Riedemann bug task added nova/rocky
2019-04-17 15:29:25 Matt Riedemann nominated for series nova/stein
2019-04-17 15:29:25 Matt Riedemann bug task added nova/stein
2019-04-17 15:29:25 Matt Riedemann nominated for series nova/ocata
2019-04-17 15:29:25 Matt Riedemann bug task added nova/ocata
2019-04-17 15:29:25 Matt Riedemann nominated for series nova/queens
2019-04-17 15:29:25 Matt Riedemann bug task added nova/queens
2019-04-17 15:29:33 Matt Riedemann nova/ocata: status New Triaged
2019-04-17 15:29:36 Matt Riedemann nova/pike: status New Triaged
2019-04-17 15:29:40 Matt Riedemann nova/queens: status New Triaged
2019-04-17 15:29:42 Matt Riedemann nova/rocky: status New Triaged
2019-04-17 15:29:44 Matt Riedemann nova/stein: status New Triaged
2019-04-17 15:29:54 Matt Riedemann nova/ocata: importance Undecided Medium
2019-04-17 15:29:56 Matt Riedemann nova/pike: importance Undecided Medium
2019-04-17 15:29:58 Matt Riedemann nova/queens: importance Undecided Medium
2019-04-17 15:30:00 Matt Riedemann nova/rocky: importance Undecided Medium
2019-04-17 15:30:05 Matt Riedemann nova/stein: importance Undecided Medium
2019-05-20 10:16:16 OpenStack Infra nova: assignee Vladyslav Drok (vdrok) Lee Yarwood (lyarwood)
2019-05-20 13:14:39 Matt Riedemann nova: assignee Lee Yarwood (lyarwood) Vladyslav Drok (vdrok)
2019-05-21 10:56:14 OpenStack Infra nova: status In Progress Fix Released
2019-05-21 12:07:51 OpenStack Infra nova/stein: status Triaged In Progress
2019-05-21 12:07:51 OpenStack Infra nova/stein: assignee Lee Yarwood (lyarwood)
2019-05-21 12:08:07 OpenStack Infra nova/rocky: status Triaged In Progress
2019-05-21 12:08:07 OpenStack Infra nova/rocky: assignee Lee Yarwood (lyarwood)
2019-05-21 12:08:25 OpenStack Infra nova/queens: status Triaged In Progress
2019-05-21 12:08:25 OpenStack Infra nova/queens: assignee Lee Yarwood (lyarwood)
2019-05-23 04:28:42 OpenStack Infra nova/stein: status In Progress Fix Committed
2019-06-11 23:17:13 OpenStack Infra nova/rocky: status In Progress Fix Committed
2019-06-28 22:00:09 OpenStack Infra nova/queens: status In Progress Fix Committed
2019-09-27 15:23:26 Matthew Booth nova: status Fix Released In Progress
2019-09-27 15:25:23 Matthew Booth nova/stein: status Fix Committed In Progress
2019-09-27 15:25:26 Matthew Booth nova/rocky: status Fix Committed In Progress
2019-09-27 15:25:33 Matthew Booth nova/queens: status Fix Committed In Progress
2019-09-27 16:06:52 OpenStack Infra nova: assignee Vladyslav Drok (vdrok) Matthew Booth (mbooth-9)
2019-11-14 20:34:37 OpenStack Infra nova: status In Progress Fix Released
2020-03-06 03:30:13 OpenStack Infra tags libvirt resize in-stable-train libvirt resize
2020-03-09 21:19:22 OpenStack Infra nova/stein: status In Progress Fix Committed
2020-03-10 12:41:58 OpenStack Infra nova/rocky: status In Progress Fix Committed
2020-03-11 05:07:30 OpenStack Infra nova/queens: status In Progress Fix Committed
2020-07-21 13:01:38 OpenStack Infra nova/pike: status Triaged In Progress
2020-07-21 13:01:38 OpenStack Infra nova/pike: assignee Sasha Andonov (sandonov)
2020-07-23 10:47:58 OpenStack Infra nova/pike: status In Progress Fix Committed
2020-11-24 13:50:23 Elod Illes nova/stein: status Fix Committed Fix Released
2020-11-24 14:14:12 Elod Illes nominated for series nova/train
2020-11-24 14:14:12 Elod Illes bug task added nova/train
2020-11-24 14:14:20 Elod Illes nova/train: status New Fix Released
2021-09-22 11:20:38 Alin-Gabriel Serdean description Original reported in RH Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1584315 Tested on OSP12 (Pike), but appears to be still present on master. Should only occur if nova compute is configured to use local file instance storage. Create instance A on compute X Resize instance A to compute Y Domain is powered off /var/lib/nova/instances/<uuid A> renamed to <uuid A>_resize on X Domain is *not* undefined On compute X: update_available_resource runs as a periodic task First action is to update self rt calls driver.get_available_resource() ...calls _get_disk_over_committed_size_total ...iterates over all defined domains, including the ones whose disks we renamed ...fails because a referenced disk no longer exists Results in errors in nova-compute.log: 2018-05-30 02:17:08.647 1 ERROR nova.compute.manager [req-bd52371f-c6ec-4a83-9584-c00c5377acd8 - - - - -] Error updating resources for node compute-0.localdomain.: DiskNotFound: No disk at /var/lib/nova/instances/f3ed9015-3984-43f4-b4a5-c2898052b47d/disk 2018-05-30 02:17:08.647 1 ERROR nova.compute.manager Traceback (most recent call last): 2018-05-30 02:17:08.647 1 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 6695, in update_available_resource_for_node 2018-05-30 02:17:08.647 1 ERROR nova.compute.manager rt.update_available_resource(context, nodename) 2018-05-30 02:17:08.647 1 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 641, in update_available_resource 2018-05-30 02:17:08.647 1 ERROR nova.compute.manager resources = self.driver.get_available_resource(nodename) 2018-05-30 02:17:08.647 1 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 5892, in get_available_resource 2018-05-30 02:17:08.647 1 ERROR nova.compute.manager disk_over_committed = self._get_disk_over_committed_size_total() 2018-05-30 02:17:08.647 1 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 7393, in _get_disk_over_committed_size_total 2018-05-30 02:17:08.647 1 ERROR nova.compute.manager config, block_device_info) 2018-05-30 02:17:08.647 1 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 7301, in _get_instance_disk_info_from_config 2018-05-30 02:17:08.647 1 ERROR nova.compute.manager dk_size = disk_api.get_allocated_disk_size(path) 2018-05-30 02:17:08.647 1 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/virt/disk/api.py", line 156, in get_allocated_disk_size 2018-05-30 02:17:08.647 1 ERROR nova.compute.manager return images.qemu_img_info(path).disk_size 2018-05-30 02:17:08.647 1 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/virt/images.py", line 57, in qemu_img_info 2018-05-30 02:17:08.647 1 ERROR nova.compute.manager raise exception.DiskNotFound(location=path) 2018-05-30 02:17:08.647 1 ERROR nova.compute.manager DiskNotFound: No disk at /var/lib/nova/instances/f3ed9015-3984-43f4-b4a5-c2898052b47d/disk And resource tracker is no longer updated. We can find lots of these in the gate. Note that change Icec2769bf42455853cbe686fb30fda73df791b25 nearly mitigates this, but doesn't because task_state is not set while the instance is awaiting confirm. Original reported in RH Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1584315 Tested on OSP12 (Pike), but appears to be still present on master. Should only occur if nova compute is configured to use local file instance storage. Create instance A on compute X Resize instance A to compute Y   Domain is powered off   /var/lib/nova/instances/<uuid A> renamed to <uuid A>_resize on X   Domain is *not* undefined On compute X:   update_available_resource runs as a periodic task   First action is to update self   rt calls driver.get_available_resource()   ...calls _get_disk_over_committed_size_total   ...iterates over all defined domains, including the ones whose disks we renamed   ...fails because a referenced disk no longer exists Results in errors in nova-compute.log:     2018-05-30 02:17:08.647 1 ERROR nova.compute.manager [req-bd52371f-c6ec-4a83-9584-c00c5377acd8 - - - - -] Error updating resources for node compute-0.localdomain.: DiskNotFound: No disk at /var/lib/nova/instances/f3ed9015-3984-43f4-b4a5-c2898052b47d/disk     2018-05-30 02:17:08.647 1 ERROR nova.compute.manager Traceback (most recent call last):     2018-05-30 02:17:08.647 1 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/manager.py", line 6695, in update_available_resource_for_node     2018-05-30 02:17:08.647 1 ERROR nova.compute.manager rt.update_available_resource(context, nodename)     2018-05-30 02:17:08.647 1 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/compute/resource_tracker.py", line 641, in update_available_resource     2018-05-30 02:17:08.647 1 ERROR nova.compute.manager resources = self.driver.get_available_resource(nodename)     2018-05-30 02:17:08.647 1 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 5892, in get_available_resource     2018-05-30 02:17:08.647 1 ERROR nova.compute.manager disk_over_committed = self._get_disk_over_committed_size_total()     2018-05-30 02:17:08.647 1 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 7393, in _get_disk_over_committed_size_total     2018-05-30 02:17:08.647 1 ERROR nova.compute.manager config, block_device_info)     2018-05-30 02:17:08.647 1 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/virt/libvirt/driver.py", line 7301, in _get_instance_disk_info_from_config     2018-05-30 02:17:08.647 1 ERROR nova.compute.manager dk_size = disk_api.get_allocated_disk_size(path)     2018-05-30 02:17:08.647 1 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/virt/disk/api.py", line 156, in get_allocated_disk_size     2018-05-30 02:17:08.647 1 ERROR nova.compute.manager return images.qemu_img_info(path).disk_size     2018-05-30 02:17:08.647 1 ERROR nova.compute.manager File "/usr/lib/python2.7/site-packages/nova/virt/images.py", line 57, in qemu_img_info     2018-05-30 02:17:08.647 1 ERROR nova.compute.manager raise exception.DiskNotFound(location=path)     2018-05-30 02:17:08.647 1 ERROR nova.compute.manager DiskNotFound: No disk at /var/lib/nova/instances/f3ed9015-3984-43f4-b4a5-c2898052b47d/disk And resource tracker is no longer updated. We can find lots of these in the gate. Note that change Icec2769bf42455853cbe686fb30fda73df791b25 nearly mitigates this, but doesn't because task_state is not set while the instance is awaiting confirm. ================================================================================= [Impact] See above [Test Plan] Deploy Openstack Queens with one compute node. Create a VM instance. Eg: openstack server create --wait --image $image_name --flavor $flavor --key-name testkey --nic net-id=${net_id} test-instance-1234 Get the details for that instance and copy the instance_name. Eg: openstack server show test-instance-1234 -c OS-EXT-SRV-ATTR:instance_name -f value Get the disk location used based on the instance name we retrieved before. Eg: disk_location=`juju run -a nova-compute -- virsh domblklist $var_name | grep nova | awk -v N=2 '{print $N}'` Move that file in a different location. Eg: juju run -a nova-compute -- mv $disk_location "$disk_location"_backup Check the nova compute logs on the compute node for a warning. Eg: juju run -a nova-compute -- grep "DiskNotFound" /var/log/nova/nova-compute.log The output should look like the following: ``` 2021-09-22 11:07:46.009 26176 WARNING nova.virt.libvirt.driver [req-6e8eb87e-4024-4908-9b7f-0648ecd03eaf - - - - -] Periodic task is updating the host stats, it is trying to get disk info for instance-00000001, but the backing disk storage was removed by a concurrent operation such as resize. Error: No disk at /var/lib/nova/instances/3bd9578f-e7d7-48bc-bdef-d2d4cb25ea29/disk: DiskNotFound: No disk at /var/lib/nova/instances/3bd9578f-e7d7-48bc-bdef-d2d4cb25ea29/disk ``` [Where problems could occur] Users which were relying on an error could be affected.
2021-09-22 11:22:16 Alin-Gabriel Serdean bug task added cloud-archive
2021-09-22 11:22:39 Alin-Gabriel Serdean nominated for series cloud-archive/queens
2021-09-22 11:22:39 Alin-Gabriel Serdean bug task added cloud-archive/queens
2021-09-22 11:27:05 Alin-Gabriel Serdean attachment added bionic-queens.debdiff https://bugs.launchpad.net/cloud-archive/+bug/1774249/+attachment/5526972/+files/bionic-queens.debdiff
2021-09-27 14:52:13 Corey Bryant cloud-archive: status New Invalid
2021-09-27 14:53:10 Corey Bryant cloud-archive/queens: status New Fix Released
2021-09-27 15:02:22 Corey Bryant cloud-archive/queens: status Fix Released Triaged
2021-09-27 15:02:44 Corey Bryant bug task added nova (Ubuntu)
2021-09-27 15:03:00 Corey Bryant nominated for series Ubuntu Bionic
2021-09-27 15:03:00 Corey Bryant bug task added nova (Ubuntu Bionic)
2021-09-27 15:03:14 Corey Bryant nova (Ubuntu Bionic): importance Undecided High
2021-09-27 15:03:14 Corey Bryant nova (Ubuntu Bionic): status New Triaged
2021-09-27 15:03:26 Corey Bryant nova (Ubuntu): status New Invalid
2021-09-27 18:04:38 Corey Bryant bug added subscriber Ubuntu Stable Release Updates Team
2021-10-13 14:17:37 Robie Basak nova (Ubuntu Bionic): status Triaged Fix Committed
2021-10-13 14:17:41 Robie Basak bug added subscriber SRU Verification
2021-10-13 14:17:45 Robie Basak tags in-stable-train libvirt resize in-stable-train libvirt resize verification-needed verification-needed-bionic
2021-10-19 10:22:54 Alin-Gabriel Serdean tags in-stable-train libvirt resize verification-needed verification-needed-bionic in-stable-train libvirt resize
2021-10-20 08:24:42 Alin-Gabriel Serdean tags in-stable-train libvirt resize in-stable-train libvirt resize verification-done-bionic verification-needed
2021-10-20 20:48:16 Launchpad Janitor nova (Ubuntu Bionic): status Fix Committed Fix Released
2021-10-20 20:48:24 Brian Murray removed subscriber Ubuntu Stable Release Updates Team
2021-12-23 02:15:07 Brett Milford bug added subscriber Brett Milford
2022-01-19 19:52:55 Corey Bryant cloud-archive/queens: status Triaged Fix Committed
2022-01-19 19:52:59 Corey Bryant tags in-stable-train libvirt resize verification-done-bionic verification-needed in-stable-train libvirt resize verification-done-bionic verification-needed verification-queens-needed
2022-08-01 11:04:19 OpenStack Infra nova/pike: status Fix Committed Fix Released
2022-11-11 18:12:10 OpenStack Infra cloud-archive/queens: status Fix Committed Fix Released
2022-11-11 18:20:30 OpenStack Infra nova/rocky: status Fix Committed Fix Released