unexpected output when wipe unassigned disk
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Won't Fix
|
Low
|
wanghao |
Bug Description
Brief Description
-----------------
Attempted to wipe a unassigned disk, run cmd "system host-disk-wipe --confirm <node> <disk id>", the output result was "None"
Severity
--------
Provide the severity of the defect.
Undetermined
Steps to Reproduce
------------------
1. On controller or compute node, find a unassigned disk uuid. e.g. "system host-disk-list controller 0"
2. Run "system host-disk-wipe --confirm <node> <disk id>"
3. Will see the output: "None"
Expected Behavior
------------------
output should be wipe disk results
Actual Behavior
----------------
output: "None"
Reproducibility
---------------
100% Reproducible
System Configuration
-------
Storage system: WCP_113-121 (Other storage lab had same results)
Branch/Pull Time/Commit
-------
STX_master 20190713T013000Z
Last Pass
---------
Timestamp/Logs
--------------
[2019-07-13 19:56:08,633] 301 DEBUG MainThread ssh.send :: Send 'system --os-username 'admin' --os-password 'Li69nux*' --os-project-name admin --os-auth-url http://
[2019-07-13 19:56:10,400] 423 DEBUG MainThread ssh.expect :: Output:
None
[sysadmin@
[2019-07-13 19:56:10,400] 301 DEBUG MainThread ssh.send :: Send 'echo $?'
[2019-07-13 19:56:10,503] 423 DEBUG MainThread ssh.expect :: Output:
1
[sysadmin@
[2019-07-13 19:56:10,565] 60 DEBUG MainThread conftest.
***Details: def test_host_
"""
This test attempts to run system host-disk-wipe on a node using any
unassigned disk.
Command format is:
system host-disk-wipe [--confirm] <hostname or id> <disk uuid>
Note, host-disk-wipe is only applicable to controller and compute nodes. It
cannot be used on the rootfs disk. It cannot be used for a disk that is
used by a PV or has partitions used by a PV.
Arguments:
- None
Test Steps:
1. Determine which disks are unassigned by comparing size_gib to
2. Attempt to wipe the disk
3. Expect it to pass
- None
"""
computes = system_
controllers = system_
hosts = controllers + computes
found_disk = False
for host in hosts:
disks = storage_
for disk_uuid in disks:
cmd = "host-disk-show {} {}".format(host, disk_uuid)
rc, out = cli.system(cmd)
if int(float(
> assert rc == 0, "Expected wipe disk to pass but instead failed"
E AssertionError: Expected wipe disk to pass but instead failed
E assert 1 == 0
testcases/
Test Activity
-------------
Storage Regression Testing
description: | updated |
description: | updated |
description: | updated |
tags: | added: stx.regression |
tags: | added: stx.retestneeded |
Minor / low priority as this is an unlikely operation