Public bug reported:
1. Our production environment run with OpenStack Rocky.
2. Steps to reproduce the issue:
(1) Upload an image,e.g: CentOS7, with 10G min_disk and 1024M min_ram specified.
(2) Boot instance with flavor 1-512-5(CPU 1,RAM 512m, Disk 5G) and image
CentOS7, then nova raises error telling that flavor 1-512-5 doesn't meet
disk/ram requirement specified by CentOS7 image.
(3) Then try to boot instance with flavor 1-1024-10 and image CentOS7 , we'll
find it's OK.
(4) Then try to resize the instance to flavor 1-512-5, we will find it's OK and
flavor restriction is bypassed.
And consequence caused by this issue is obvious and critical:
In my opinion, the min_disk/min_ram options in image specification serve as a
guideline to properly allocate memory/disk and run instance, an inappropriate
resize can cause FS corruption and data loss.
** Affects: nova
Importance: Undecided
Assignee: pandatt (pandatt)
Status: Confirmed
** Tags: flavor lower resize
** Tags added: resize
** Tags added: flavor lower
** Changed in: nova
Assignee: (unassigned) => pandatt (pandatt)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1808728
Title:
Instance is allowed to resize to a flavor with lower disk /ram size
than that specified in source image, snapshot or backup
Status in OpenStack Compute (nova):
Confirmed
Bug description:
1. Our production environment run with OpenStack Rocky.
2. Steps to reproduce the issue:
(1) Upload an image,e.g: CentOS7, with 10G min_disk and 1024M min_ram
specified.
(2) Boot instance with flavor 1-512-5(CPU 1,RAM 512m, Disk 5G) and image
CentOS7, then nova raises error telling that flavor 1-512-5 doesn't meet
disk/ram requirement specified by CentOS7 image.
(3) Then try to boot instance with flavor 1-1024-10 and image CentOS7 , we'll
find it's OK.
(4) Then try to resize the instance to flavor 1-512-5, we will find it's OK
and flavor restriction is bypassed.
And consequence caused by this issue is obvious and critical:
In my opinion, the min_disk/min_ram options in image specification serve as a
guideline to properly allocate memory/disk and run instance, an inappropriate
resize can cause FS corruption and data loss.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1808728/+subscriptions
--
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp