-
Bug
-
Resolution: Not a Bug
-
Undefined
-
None
-
None
-
False
-
-
False
-
?
-
?
-
?
-
?
-
None
-
-
-
Moderate
Description of problem
The disk size set in falvor do not take effect when creating instance from volume on osp18
Version-Release number of selected component (if applicable):
OSP18
How reproducible:
100%
Steps to reproduce:
1. Log into osp18 controller pod and create a flavor as below, can see the disk size is 50G
sh-5.1$ openstack flavor list ...... | e85c1fbf-9939-4a93-8baf-1a96ef6c9a61 | medium | 8192 | 50 | 0 | 4 | True |
2. Create an instance from a volume using falvor medium and disk size of volume is 40G
sh-5.1$ openstack server create --flavor medium --volume rhel9.5-volume --nic net-id=08fce52a-995a-4d2b-8624-8f2d646388a0 --availability-zone nova rhel9.5-instance
+-------------------------------------+-----------------------------------------------+
| Field | Value |
+-------------------------------------+-----------------------------------------------+
| OS-DCF:diskConfig | MANUAL |
| OS-EXT-AZ:availability_zone | nova |
| OS-EXT-SRV-ATTR:host | None |
| OS-EXT-SRV-ATTR:hypervisor_hostname | None |
| OS-EXT-SRV-ATTR:instance_name | |
| OS-EXT-STS:power_state | NOSTATE |
| OS-EXT-STS:task_state | scheduling |
| OS-EXT-STS:vm_state | building |
| OS-SRV-USG:launched_at | None |
| OS-SRV-USG:terminated_at | None |
| accessIPv4 | |
| accessIPv6 | |
| addresses | |
| adminPass | zs6QU5Zh2PMn |
| config_drive | |
| created | 2024-07-04T04:07:07Z |
| flavor | medium (e85c1fbf-9939-4a93-8baf-1a96ef6c9a61) |
| hostId | |
| id | 2ae46d4b-83a0-46ce-a756-76cfb08fc306 |
| image | N/A (booted from volume) |
| key_name | None |
| name | rhel9.5-instance |
| progress | 0 |
| project_id | cd932bbef4a740f8b8b9ac105085a222 |
| properties | |
| security_groups | name='default' |
| status | BUILD |
| updated | 2024-07-04T04:07:07Z |
| user_id | 7cb0aefae485438a820e98c77e7f1cb1 |
| volumes_attached | |
+-------------------------------------+-----------------------------------------------+
3. Check the disk of instance after finishing launching, found the disk size of instance is 40G
[root@rhel9-5-instance ~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS sr0 11:0 1 474K 0 rom vda 252:0 0 40G 0 disk ├─vda1 252:1 0 1G 0 part /boot └─vda2 252:2 0 9G 0 part ├─rhel-root 253:0 0 8G 0 lvm / └─rhel-swap 253:1 0 1G 0 lvm [SWAP]
Additional info:
1. The disk size set in falvor takes effect when creating instance from image on osp18
2. I remember that the disk size set in falvor can take effect when creating instance from volume on osp17