[nova-client] nova-client returns 500 Error in case of custom field in the glance image
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
In Progress
|
High
|
Kairat Kushaev |
Bug Description
If we add some custom field to the glance image through the Horizon (by mistake or specially) nova image-show returns 500 BadGateway. It can broke ceilometer when it tries to get the list of the instances.
Steps to reproduce:
1. Deploy environment
2. Login to Horizon
3. Open Images tab
4. Click update metadata
5. Add custom field -> "os_distro="
6. Add value -> rhel
7. Execute nova image-show <image_id>
Expected results:
The command should return the output
Actual result:
root@node-6:~# nova image-show 23ee6b59-
ERROR (ClientException): Unexpected API Error. Please report this at http://
<class 'glanceclient.
root@node-6:~# glance image-show 23ee6b59-
+------
| Property | Value |
+------
| checksum | 88d6c77b58fd40a
| container_format | bare |
| created_at | 2016-10-
| disk_format | qcow2 |
| id | 23ee6b59-
| min_disk | 0 |
| min_ram | 64 |
| name | TestVM |
| os_distro | rhel1 |
| os_distro= | rhel |
2016-10-20 12:35:33.604 743 ERROR nova.api.
2016-10-20 12:35:33.604 743 ERROR nova.api.
2016-10-20 12:35:33.604 743 ERROR nova.api.
2016-10-20 12:35:33.604 743 ERROR nova.api.
2016-10-20 12:35:33.604 743 ERROR nova.api.
2016-10-20 12:35:33.604 743 ERROR nova.api.
2016-10-20 12:35:33.604 743 ERROR nova.api.
2016-10-20 12:35:33.604 743 ERROR nova.api.
2016-10-20 12:35:33.604 743 ERROR nova.api.
2016-10-20 12:35:33.604 743 ERROR nova.api.
2016-10-20 12:35:33.604 743 ERROR nova.api.
2016-10-20 12:35:33.604 743 ERROR nova.api.
2016-10-20 12:35:33.604 743 ERROR nova.api.
2016-10-20 12:35:33.604 743 ERROR nova.api.
2016-10-20 12:35:33.604 743 ERROR nova.api.
2016-10-20 12:35:33.604 743 ERROR nova.api.
2016-10-20 12:35:33.604 743 ERROR nova.api.
2016-10-20 12:35:33.604 743 ERROR nova.api.
2016-10-20 12:35:33.604 743 ERROR nova.api.
2016-10-20 12:35:33.604 743 ERROR nova.api.
2016-10-20 12:35:33.604 743 ERROR nova.api.
2016-10-20 12:35:33.604 743 ERROR nova.api.
2016-10-20 12:35:33.604 743 ERROR nova.api.
2016-10-20 12:35:33.604 743 ERROR nova.api.
2016-10-20 12:35:33.604 743 ERROR nova.api.
2016-10-20 12:35:33.604 743 ERROR nova.api.
Impact:
It brakes ceilometer on the compute host
2016-10-20 12:37:05.331 32020 DEBUG novaclient-debug [req-80c09252-
"Accept: application/json" -H "X-Auth-Token: {SHA1}c4fa1fdfa
2016-10-20 12:37:05.443 32020 DEBUG novaclient-debug [req-80c09252-
X-OpenStack-
RESP BODY: {"flavor": {"name": "m1.tiny", "links": [{"href": "http://
BLED:disabled": false, "vcpus": 1, "swap": "", "os-flavor-
_http_log_response /usr/lib/
2016-10-20 12:37:05.444 32020 DEBUG novaclient-debug [req-80c09252-
User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}c4fa1fdfa
2016-10-20 12:37:05.896 32020 DEBUG novaclient-debug [req-80c09252-
X-OpenStack-
RESP BODY: {"computeFault": {"message": "Unexpected API Error. Please report this at http://
500}}
_http_log_response /usr/lib/
Changed in mos: | |
milestone: | none → 9.2 |
assignee: | Michael Kraynov (mkraynov) → MOS Nova (mos-nova) |
importance: | Undecided → High |
status: | Incomplete → Confirmed |
tags: | added: area-nova |
Changed in mos: | |
assignee: | MOS Glance (mos-glance) → Kairat Kushaev (kkushaev) |
Changed in mos: | |
assignee: | Fuel for Openstack (fuel) → Fuel Sustaining (fuel-sustaining-team) |
Changed in mos: | |
assignee: | MOS Glance (mos-glance) → Kairat Kushaev (kkushaev) |
tags: |
added: release-notes-done removed: release-notes |
Changed in mos: | |
milestone: | 9.x-updates → 9.2-mu-1 |
Michael - please provide MOS version and attach diagnostic snapshot.