Comment 0 for bug 1538011

Revision history for this message
hgangwx (hgangwx) wrote : Unexpected API Error returned when set metadata for aggregate

[Summary]
Unexpected API Error returned when set metadata for aggregate

[Topo]
devstack all-in-one node

[Description and expect result]
no Unexpected API Error returned when set metadata for aggregate

[Reproduceable or not]
reproduceable

[Recreate Steps]
1) create an aggregate, with metadata "abc":
root@45-59:~# nova aggregate-details agg1
+----+------+-------------------+-------+----------+
| Id | Name | Availability Zone | Hosts | Metadata |
+----+------+-------------------+-------+----------+
| 4 | agg1 | - | | 'abc=1' |
+----+------+-------------------+-------+----------+
root@45-59:~#

2)set metadata of the aggregate as "ABC", upper case of the
existing metadata "abc", an Unexpected API Error returned:
root@45-59:~# nova aggregate-set-metadata agg1 ABC=2
ERROR (ClientException): Unexpected API Error. Please report
 this at http://bugs.launchpad.net/nova/ and attach the Nova API
log if possible.<type 'exceptions.KeyError'> (HTTP 500) (Request-ID:
req-b45dddb2-24e6-4b8f-8901-2ed250ec787a)
root@45-59:~#

[Configration]
reproduceable bug, no need

[logs]
reproduceable bug, no need

[Root cause anlyze or debug inf]
reproduceable bug

[Attachment]
None