I have tried the image: 20191120T023000Z, but cannot reproduce the issue. @Wendy, can you varify it with latest image?
$ system host-disk-list compute-0 +--------------------------------------+-------------+------------+-------------+----------+---------------+--------------+-----------+--------------------------------------------+ | uuid | device_node | device_num | device_type | size_gib | available_gib | rpm | serial_id | device_path | +--------------------------------------+-------------+------------+-------------+----------+---------------+--------------+-----------+--------------------------------------------+ | cb52cb30-fd73-4ec3-b852-7cde53794cb5 | /dev/sda | 2048 | HDD | 200.0 | 100.976 | Undetermined | QM00005 | /dev/disk/by-path/pci-0000:00:03.0-ata-1.0 | | cd28624c-a15a-4b4a-9fa4-f65056d08667 | /dev/sdb | 2064 | HDD | 30.0 | 29.997 | Undetermined | QM00007 | /dev/disk/by-path/pci-0000:00:03.0-ata-2.0 |
$ system host-disk-partition-list compute-0 +--------------------------------------+--------------------------------------------------+-------------+--------------------------------------+---------------------+----------+--------+ | uuid | device_path | device_node | type_guid | type_name | size_gib | status | +--------------------------------------+--------------------------------------------------+-------------+--------------------------------------+---------------------+----------+--------+ | abdd328d-a1ee-44de-91e1-08c28f93f1fe | /dev/disk/by-path/pci-0000:00:03.0-ata-1.0-part5 | /dev/sda5 | ba5eba11-0000-1111-2222-000000000001 | LVM Physical Volume | 10.0 | In-Use | | 45316577-2aa3-4e61-8184-2144e3178265 | /dev/disk/by-path/pci-0000:00:03.0-ata-2.0-part1 | /dev/sdb1 | ba5eba11-0000-1111-2222-000000000001 | LVM Physical Volume | 10.0 | Ready | +--------------------------------------+--------------------------------------------------+-------------+--------------------------------------+---------------------+----------+--------+
# After create partition 10G, the sdb available size decrease into 19.997 GB. [sysadmin@controller-0 ~(keystone_admin)]$ system host-disk-list compute-0 +--------------------------------------+-------------+------------+-------------+----------+---------------+--------------+-----------+--------------------------------------------+ | uuid | device_node | device_num | device_type | size_gib | available_gib | rpm | serial_id | device_path | +--------------------------------------+-------------+------------+-------------+----------+---------------+--------------+-----------+--------------------------------------------+ | cb52cb30-fd73-4ec3-b852-7cde53794cb5 | /dev/sda | 2048 | HDD | 200.0 | 100.976 | Undetermined | QM00005 | /dev/disk/by-path/pci-0000:00:03.0-ata-1.0 | | cd28624c-a15a-4b4a-9fa4-f65056d08667 | /dev/sdb | 2064 | HDD | 30.0 | 19.997 | Undetermined | QM00007 | /dev/disk/by-path/pci-0000:00:03.0-ata-2.0 | +--------------------------------------+-------------+------------+-------------+----------+---------------+--------------+-----------+--------------------------------------------+
$ system host-disk-wipe compute-0 cd28624c-a15a-4b4a-9fa4-f65056d08667 WARNING: This operation is irreversible and all data on the specified disk will be lost. Continue [yes/N]: yes None
# After wipe, the available gib return to 29.997 GB. $ system host-disk-list compute-0 +--------------------------------------+-------------+------------+-------------+----------+---------------+--------------+-----------+--------------------------------------------+ | uuid | device_node | device_num | device_type | size_gib | available_gib | rpm | serial_id | device_path | +--------------------------------------+-------------+------------+-------------+----------+---------------+--------------+-----------+--------------------------------------------+ | cb52cb30-fd73-4ec3-b852-7cde53794cb5 | /dev/sda | 2048 | HDD | 200.0 | 100.976 | Undetermined | QM00005 | /dev/disk/by-path/pci-0000:00:03.0-ata-1.0 | | cd28624c-a15a-4b4a-9fa4-f65056d08667 | /dev/sdb | 2064 | HDD | 30.0 | 29.997 | Undetermined | QM00007 | /dev/disk/by-path/pci-0000:00:03.0-ata-2.0 | +--------------------------------------+-------------+------------+-------------+----------+---------------+--------------+-----------+--------------------------------------------+
# After wipe, the partition in sdb is gone. $ system host-disk-partition-list compute-0 +--------------------------------------+--------------------------------------------------+-------------+--------------------------------------+---------------------+----------+--------+ | uuid | device_path | device_node | type_guid | type_name | size_gib | status | +--------------------------------------+--------------------------------------------------+-------------+--------------------------------------+---------------------+----------+--------+ | abdd328d-a1ee-44de-91e1-08c28f93f1fe | /dev/disk/by-path/pci-0000:00:03.0-ata-1.0-part5 | /dev/sda5 | ba5eba11-0000-1111-2222-000000000001 | LVM Physical Volume | 10.0 | In-Use | +--------------------------------------+--------------------------------------------------+-------------+--------------------------------------+---------------------+----------+--------+
I have tried the image: 20191120T023000Z, but cannot reproduce the issue.
@Wendy, can you varify it with latest image?
$ system host-disk-list compute-0 ------- ------- ------- ------- ----+-- ------- ----+-- ------- ---+--- ------- ---+--- ------- +------ ------- --+---- ------- ---+--- ------- -+----- ------- ------- ------- ------- ------- ----+ ------- ------- ------- ------- ----+-- ------- ----+-- ------- ---+--- ------- ---+--- ------- +------ ------- --+---- ------- ---+--- ------- -+----- ------- ------- ------- ------- ------- ----+ fd73-4ec3- b852-7cde53794c b5 | /dev/sda | 2048 | HDD | 200.0 | 100.976 | Undetermined | QM00005 | /dev/disk/ by-path/ pci-0000: 00:03.0- ata-1.0 | a15a-4b4a- 9fa4-f65056d086 67 | /dev/sdb | 2064 | HDD | 30.0 | 29.997 | Undetermined | QM00007 | /dev/disk/ by-path/ pci-0000: 00:03.0- ata-2.0 |
+------
| uuid | device_node | device_num | device_type | size_gib | available_gib | rpm | serial_id | device_path |
+------
| cb52cb30-
| cd28624c-
$ system host-disk- partition- list compute-0 ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- ------- ------+ ------- ------+ ------- ------- ------- ------- ------- ---+--- ------- ------- ----+-- ------- -+----- ---+ ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- ------- ------+ ------- ------+ ------- ------- ------- ------- ------- ---+--- ------- ------- ----+-- ------- -+----- ---+ a1ee-44de- 91e1-08c28f93f1 fe | /dev/disk/ by-path/ pci-0000: 00:03.0- ata-1.0- part5 | /dev/sda5 | ba5eba11- 0000-1111- 2222-0000000000 01 | LVM Physical Volume | 10.0 | In-Use | 2aa3-4e61- 8184-2144e31782 65 | /dev/disk/ by-path/ pci-0000: 00:03.0- ata-2.0- part1 | /dev/sdb1 | ba5eba11- 0000-1111- 2222-0000000000 01 | LVM Physical Volume | 10.0 | Ready | ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- ------- ------+ ------- ------+ ------- ------- ------- ------- ------- ---+--- ------- ------- ----+-- ------- -+----- ---+
+------
| uuid | device_path | device_node | type_guid | type_name | size_gib | status |
+------
| abdd328d-
| 45316577-
+------
# After create partition 10G, the sdb available size decrease into 19.997 GB. controller- 0 ~(keystone_admin)]$ system host-disk-list compute-0 ------- ------- ------- ------- ----+-- ------- ----+-- ------- ---+--- ------- ---+--- ------- +------ ------- --+---- ------- ---+--- ------- -+----- ------- ------- ------- ------- ------- ----+ ------- ------- ------- ------- ----+-- ------- ----+-- ------- ---+--- ------- ---+--- ------- +------ ------- --+---- ------- ---+--- ------- -+----- ------- ------- ------- ------- ------- ----+ fd73-4ec3- b852-7cde53794c b5 | /dev/sda | 2048 | HDD | 200.0 | 100.976 | Undetermined | QM00005 | /dev/disk/ by-path/ pci-0000: 00:03.0- ata-1.0 | a15a-4b4a- 9fa4-f65056d086 67 | /dev/sdb | 2064 | HDD | 30.0 | 19.997 | Undetermined | QM00007 | /dev/disk/ by-path/ pci-0000: 00:03.0- ata-2.0 | ------- ------- ------- ------- ----+-- ------- ----+-- ------- ---+--- ------- ---+--- ------- +------ ------- --+---- ------- ---+--- ------- -+----- ------- ------- ------- ------- ------- ----+
[sysadmin@
+------
| uuid | device_node | device_num | device_type | size_gib | available_gib | rpm | serial_id | device_path |
+------
| cb52cb30-
| cd28624c-
+------
$ system host-disk-wipe compute-0 cd28624c- a15a-4b4a- 9fa4-f65056d086 67
WARNING: This operation is irreversible and all data on the specified disk will be lost.
Continue [yes/N]: yes
None
# After wipe, the available gib return to 29.997 GB. ------- ------- ------- ------- ----+-- ------- ----+-- ------- ---+--- ------- ---+--- ------- +------ ------- --+---- ------- ---+--- ------- -+----- ------- ------- ------- ------- ------- ----+ ------- ------- ------- ------- ----+-- ------- ----+-- ------- ---+--- ------- ---+--- ------- +------ ------- --+---- ------- ---+--- ------- -+----- ------- ------- ------- ------- ------- ----+ fd73-4ec3- b852-7cde53794c b5 | /dev/sda | 2048 | HDD | 200.0 | 100.976 | Undetermined | QM00005 | /dev/disk/ by-path/ pci-0000: 00:03.0- ata-1.0 | a15a-4b4a- 9fa4-f65056d086 67 | /dev/sdb | 2064 | HDD | 30.0 | 29.997 | Undetermined | QM00007 | /dev/disk/ by-path/ pci-0000: 00:03.0- ata-2.0 | ------- ------- ------- ------- ----+-- ------- ----+-- ------- ---+--- ------- ---+--- ------- +------ ------- --+---- ------- ---+--- ------- -+----- ------- ------- ------- ------- ------- ----+
$ system host-disk-list compute-0
+------
| uuid | device_node | device_num | device_type | size_gib | available_gib | rpm | serial_id | device_path |
+------
| cb52cb30-
| cd28624c-
+------
# After wipe, the partition in sdb is gone. partition- list compute-0 ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- ------- ------+ ------- ------+ ------- ------- ------- ------- ------- ---+--- ------- ------- ----+-- ------- -+----- ---+ ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- ------- ------+ ------- ------+ ------- ------- ------- ------- ------- ---+--- ------- ------- ----+-- ------- -+----- ---+ a1ee-44de- 91e1-08c28f93f1 fe | /dev/disk/ by-path/ pci-0000: 00:03.0- ata-1.0- part5 | /dev/sda5 | ba5eba11- 0000-1111- 2222-0000000000 01 | LVM Physical Volume | 10.0 | In-Use | ------- ------- ------- ------- ----+-- ------- ------- ------- ------- ------- ------- ------+ ------- ------+ ------- ------- ------- ------- ------- ---+--- ------- ------- ----+-- ------- -+----- ---+
$ system host-disk-
+------
| uuid | device_path | device_node | type_guid | type_name | size_gib | status |
+------
| abdd328d-
+------