Comment 0 for bug 1469179

Revision history for this message
Feodor Tersin (ftersin) wrote :

instance.root_gb means size of host local disk used by the instance root disk. All code that uses this attribute treats it that way.

Volume-backed instances have root disks placed in Cinder. Therefore obviously root_gb should be 0 for them. However currently this is not so. The same applies to min_size and size image attributes, used for boot from a volume.

As a result the code which uses these attributes works incorrectly. Some problems are already detected [1], other are not yet [2].

To fix all these problems fully it is proposed to set root_gb, min_size, size to 0 for volume-backed instances.

[1] https://bugs.launchpad.net/nova/+bug/1334974
https://bugs.launchpad.net/nova/+bug/1459491
https://bugs.launchpad.net/nova/+bug/1466305
https://bugs.launchpad.net/nova/+bug/1457517
[2] https://github.com/openstack/nova/blob/master/nova/notifications.py#L407
https://github.com/openstack/nova/blob/master/nova/scheduler/host_manager.py#L250