Activity log for bug #1693679

Date Who What changed Old value New value Message
2017-05-26 04:57:25 Rikimaru Honjo bug added bug
2017-05-26 04:58:10 Rikimaru Honjo nova: assignee Rikimaru Honjo (honjo-rikimaru-c6)
2017-05-26 05:08:13 OpenStack Infra nova: status New In Progress
2017-05-31 02:53:14 Rikimaru Honjo description Description =========== disk_available_least is a free disk size information of hypervisors. This is calculated by the following formula: disk_available_least = <free disk size> - <Total gap between virtual disk size and actual disk size for all instances> But stopped instance's virtual disk sizes are not calculated now. So disk_available_least will be larger than actual free disk size. As a result, instances will be scheduled beyond the actual free disk size if stopped instances are on a host. I think that this is a bug. Because stopped instances are on a host unlike shelved instances. Steps to reproduce ================== 1. Call hyper visor show API for any hypervisor. And, check the value of disk_available_least. 2. Create a instance with qcow2 image on 1's hypervisor. 3. Wait for over 1 minute. 4. Call hyper visor show API. And, check that disk_available_least is smaller than step 1's value. 5. Call Stop Server API for the instance. 6. Wait until instance's state is changed to STOPPED. 7. Wait for over 1 minute. 8. Call hyper visor show API. And, check the value of disk_available_least. Expected result =============== disk_available_least value is same as step 8. Because stopped instance is still on the host. Actual result ============= disk_available_least value is bigger than step4's value in step 8. Environment =========== * I used latest devstack. * I used libvirt + kvm. * I used qcow2 image. Logs & Configs ============== I think that this bug affects for all settings. Description =========== disk_available_least is a free disk size information of hypervisors. This is calculated by the following formula: disk_available_least = <free disk size> - <Total gap between virtual disk size and actual disk size for all instances> But stopped instance's virtual disk sizes are not calculated now. So disk_available_least will be larger than actual free disk size. As a result, instances will be scheduled beyond the actual free disk size if stopped instances are on a host. I think that this is a bug. Because stopped instances are on a host unlike shelved instances. Steps to reproduce ================== 1. Call hyper visor show API for any hypervisor.    And, check the value of disk_available_least. 2. Create a instance with qcow2 image on 1's hypervisor. 3. Wait for over 1 minute. 4. Call hyper visor show API.    And, check that disk_available_least is smaller than step 1's value. 5. Call Stop Server API for the instance. 6. Wait until instance's state is changed to STOPPED. 7. Wait for over 1 minute. 8. Call hyper visor show API.    And, check the value of disk_available_least. Expected result =============== disk_available_least value is same as step 8. Because stopped instance is still on the host. Actual result ============= disk_available_least value is bigger than step4's value in step 8. Environment =========== * I used latest devstack. * I used libvirt + kvm. * I used qcow2 image. Logs & Configs ============== I think that this bug affects for all settings. When was this bug made? ======================= Following patch made this bug: https://review.openstack.org/#/c/105127/ Stopped instance's disk sizes were calculated until merging the above patch in Juno cycle.
2017-06-07 01:42:19 melanie witt nova: importance Undecided Medium
2017-06-07 01:42:53 melanie witt tags libvirt
2017-06-09 10:24:36 OpenStack Infra nova: status In Progress Fix Released
2017-06-14 13:13:30 Matt Riedemann nominated for series nova/newton
2017-06-14 13:13:30 Matt Riedemann bug task added nova/newton
2017-06-14 13:13:30 Matt Riedemann nominated for series nova/ocata
2017-06-14 13:13:30 Matt Riedemann bug task added nova/ocata
2017-06-14 13:13:38 Matt Riedemann nova/newton: status New In Progress
2017-06-14 13:13:41 Matt Riedemann nova/ocata: status New In Progress
2017-06-14 13:13:45 Matt Riedemann nova/newton: importance Undecided Medium
2017-06-14 13:13:48 Matt Riedemann nova/ocata: importance Undecided Medium
2017-06-14 13:13:52 Matt Riedemann nova/newton: assignee Takashi NATSUME (natsume-takashi)
2017-06-14 13:13:57 Matt Riedemann nova/ocata: assignee Takashi NATSUME (natsume-takashi)
2017-06-14 15:43:21 OpenStack Infra nova/ocata: status In Progress Fix Committed
2017-08-11 17:54:03 OpenStack Infra nova/newton: assignee Takashi NATSUME (natsume-takashi) Matt Riedemann (mriedem)
2017-08-12 13:08:07 OpenStack Infra nova/newton: status In Progress Fix Committed