bad error response from system host-backend-modify operations
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Tingjie Chen |
Bug Description
Brief Description
-----------------
Bad response message on system storage-
Severity
--------
Low
Steps to Reproduce
------------------
1. Install only controller-0 ( config_controller)
2. As platform admin list the storage-backend to confirm backend ceph with replication and min_replication capabilities has been added,
task state is "provision-storage"
$ system storage-
3. Attempt to modify the replication and min_replication values for the backend ceph-store (negative scenarios)
a. attempt setting both values to the same
$ system storage-
'replication'
b. attempt setting min_replication value to something less than 2 or an empty value
$ system storage-
'replication'
$ system storage-
'replication'
c. attempt to specify a value for the replication that is not an integer
$ system storage-
invalid literal for int() with base 10: 'ddd'
Expected Behavior
------------------
Better response messages in each scenario
Actual Behavior
----------------
see step 3 above (bad error response messages)
Reproducibility
---------------
yes
System Configuration
-------
storage config (2+2+x)
Branch/Pull Time/Commit
-------
2019-09-04_00-10-00
Last Pass
---------
Timestamp/Logs
--------------
Test Activity
-------------
Changed in starlingx: | |
assignee: | Cindy Xie (xxie1) → Tingjie Chen (silverhandy) |
Changed in starlingx: | |
status: | Triaged → Confirmed |
Here is an additional scenario where there is a bad error message returned: backend- modify <name> replication=3 min_replication=1 backend- modify operation to update the min_replication value to 2
hw (ironpass 20-27)
1. 2 controllers installed (unlocked, enabled and available)
Note: The following command was used to set the replication factory (after install of controller-0)
$system storage-
2. Attempt system storage-
(before or after controller-1 has been installed)
Result: backend- modify ceph-store replication=3 min_replication=2
inadequate error message returned as follows:
$ system storage-
'replication'