[nova] edit flavor
On Tue, 2019-08-06 at 10:47 +0000, Engelmann Florian wrote:
> I would like to edit flavors which we created with 0 disk size. Flavors with a disk size (root volume) of 0 are not
> handled well with, eg. Magnum. So I would like to add a root disk size to those flavors. The default precedure is to
> delete them and recreate them. But that's not what I want. I would like to edit them, eg in the database. Is there any
> possible impact on running instances using those flavors? I guess resize will work?
Flavor with disk 0 are intended to be used with boot form volume guests if mangnum does not support boot form volume
guest then it should not use those flavors.
if you edit it in the db it will not update the embeded flavor in the instnce record.
it may result in host being over substibed and it will not update the allocations in placement to reflect the new size.
a resize should fix that but if you are using boot form volume be aware that instance will be schdule based
on the local disk space available on the compute nodes so if you are using boot form volume it will not work as
expected. your best solution assuming you are using local storage is to create a new flavor and do a resize.
> All the best,