flavor-delete output behavior is odd
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-novaclient |
Fix Released
|
Low
|
Matt Riedemann |
Bug Description
The nova flavor-delete CLI will output the deleted flavor information rather than confirm that the flavor was successfully deleted, or simply not show anything on successful deletion, which is odd from a user experience perspective. CLIs to delete resources usually just don't print anything on success.
Compare nova flavor-delete behavior vs openstack CLI flavor delete:
stack@rocky:~$ nova flavor-show flavor-with-specs
+------
| Property | Value |
+------
| OS-FLV-
| OS-FLV-
| description | - |
| disk | 64 |
| extra_specs | {"hw:key": "value"} |
| id | flavor-with-specs |
| name | flavor-with-specs |
| os-flavor-
| ram | 2048 |
| rxtx_factor | 1.0 |
| swap | |
| vcpus | 4 |
+------
stack@rocky:~$ nova flavor-delete flavor-with-specs
+------
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public | Description |
+------
| flavor-with-specs | flavor-with-specs | 2048 | 64 | 0 | | 4 | 1.0 | True | - |
+------
stack@rocky:~$ nova flavor-create flavor-with-specs flavor-with-specs 2048 64 4
+------
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public | Description |
+------
| flavor-with-specs | flavor-with-specs | 2048 | 64 | 0 | | 4 | 1.0 | True | - |
+------
stack@rocky:~$ openstack flavor delete flavor-with-specs
stack@rocky:~$
Changed in python-novaclient: | |
status: | New → Confirmed |
importance: | Undecided → Low |
Fix proposed to branch: master /review. openstack. org/561634
Review: https:/