Stopped instance's disk sizes are not calculated for disk_available_least
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Rikimaru Honjo | ||
Newton |
Fix Committed
|
Medium
|
Matt Riedemann | ||
Ocata |
Fix Committed
|
Medium
|
Takashi Natsume |
Bug Description
Description
===========
disk_available_
This is calculated by the following formula:
disk_available_
But stopped instance's virtual disk sizes are not calculated now.
So disk_available_
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_
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_
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_
Expected result
===============
disk_available_
Because stopped instance is still on the host.
Actual result
=============
disk_available_
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:/
Stopped instance's disk sizes were calculated until merging the above patch in Juno cycle.
Changed in nova: | |
assignee: | nobody → Rikimaru Honjo (honjo-rikimaru-c6) |
Changed in nova: | |
importance: | Undecided → Medium |
tags: | added: libvirt |
Fix proposed to branch: master /review. openstack. org/468269
Review: https:/