Wrong error message when cannot create server
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-openstackclient |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I found a small osc bug when creating a server which fails:
$ openstack flavor create toobig --public --vcpus 16 --ram 51200 --disk 1
+------
| Field | Value |
+------
| OS-FLV-
| OS-FLV-
| description | None |
| disk | 1 |
| id | 3e7bf18b-
| name | toobig |
| os-flavor-
| properties | |
| ram | 51200 |
| rxtx_factor | 1.0 |
| swap | 0 |
| vcpus | 16 |
+------
$ openstack server create --flavor toobig --image cirros-
Error unshelving server: vm0
Here, the error message should say "creating", not "unshelving".
Above the flavor is intentionally too big for my environment, so the server create goes to status=ERROR with fault=NoValidHost. The following recent refactoring change seems to have introduced the wrong error message, where likely it was an unintended copy-paste error:
relevant versions:
python-
Submitting a fix soon.
Fix proposed to branch: master /review. opendev. org/c/openstack /python- openstackclient /+/905216
Review: https:/