Malformed url if IRONIC_URL contains the API version as part of the URL
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-ironicclient |
Fix Released
|
Medium
|
Jim Rollenhagen |
Bug Description
$ ironic --help
...
--ironic-url IRONIC_URL
stack@stack:
stack@stack:
DEBUG (session:269) REQ: curl -i -X POST
....
'User-Agent: python-
{"error_message": "{\"debuginfo\": null, \"faultcode\": \"Client\", \"faultstring\": \"Invalid input for field/attribute chassis_uuid. Value: 'v1'. unable to convert to uuid\"}"}
WARNING (http:167) Request returned failure status.
Invalid input for field/attribute chassis_uuid. Value: 'v1'. unable to convert to uuid (HTTP 400)
stack@stack:
Note that if the API version (/v1) is specified as part of the endpoint's URL the client won't detect it and will append another /v1 in front of the URL when building it. E.g:
http://
WORKAROUND:
Don't put the api version as part of the endpoint
stack@stack:
stack@stack:
+------
| uuid | instance_uuid | power_state | provision_state | maintenance |
+------
| 2566c730-
| 12aa5621-
+------
stack@stack:
Changed in python-ironicclient: | |
importance: | Undecided → Medium |
Changed in python-ironicclient: | |
status: | New → Triaged |
Changed in python-ironicclient: | |
milestone: | none → 0.7.0 |
status: | Fix Committed → Fix Released |
Fix proposed to branch: master /review. openstack. org/107715
Review: https:/