system host-disk-wipe does not update disk-partition-list inventory (only updated available_gib on the disk-list)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Confirmed
|
Low
|
Unassigned |
Bug Description
Brief Description
-----------------
system host-disk-wipe returns disk available size but the partition is still listed
(does not report disk change back to the conductor to update inventory)
Severity
--------
Major: cmd doesn't work
Steps to Reproduce
------------------
1. Lock controller-1 (optional)
2. system host-disk-list controller-1
This is one of the disks with 447.128 available_gib
| 8f58bae7-
| | | | | 13 | | | 480FGN | .2-ata-5.0
3. Create a new partition using this disk eg. size 40
As expected the available_gib is reduced to 407.128
$ system host-disk-
...
+------
8f58bae7b2ad-
| | | | | 13 | | | 480FGN | .2-ata-5
| | | | | | | | |
system host-disk-
uuid | device_path | device_nod | type_guid | type_nam | size_ | status |
| | | e | | e | gib | |
+------
| bb74e25a-
| | 00:1f.2-
| | | | | Volume |
4. Perform a wipe disk operation on the disk
$ system host-disk-wipe controller-1 8f58bae7-
WARNING: This operation is irreversible and all data on the specified disk will be lost.
Continue [yes/N]: yes
None
5. Notice that the available_gib have returned to 447.128 as expected.
$ system host-disk-list controller-1
| uuid | device_node | device_num | device_type | size_gib | available_gib | rpm | serial_id | device_path
...
| 8f58bae7-
| | | | | 13 | | | 480FGN | .2-ata-5.0 |
| | | | | | | | |
6. However, the disk partition is still reported as there (with size 40.0)
$ system host-disk-
+------
| uuid | device_path | device_node | type_guid | type_name | size_gib | status |
+------
| bb74e25a-
| | 2-ata-5.0-part1 | | | | | |
| | | | | | | |
+------
[sysadmin@
Tue Sep 17 14:36:42 UTC 2019
Expected Behavior
------------------
Expected the partition should no longer be listed in the inventory
(disk wipe and disk change should be reported back to the conductor to update the inventory)
Actual Behavior
----------------
Disk wipe without update disk partition inventory
Reproducibility
---------------
yes
System Configuration
-------
hw: 2+2+n
PV-1
wcp_113-121
Branch/Pull Time/Commit
-------
master as of 2019-09-11_20-00-00
Last Pass
---------
n/a
Timestamp/Logs
--------------
~14:36:40
Test Activity
-------------
description: | updated |
tags: | added: stx.retestneeded |
Changed in starlingx: | |
assignee: | Cindy Xie (xxie1) → Tingjie Chen (silverhandy) |
Marking as stx.3.0 / medium priority - disk-specific cmd not working.