Creating metadef namespace with resource type raises 500 when called twice
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
In Progress
|
Undecided
|
Kamil Rykowski |
Bug Description
When you are trying to create a namespace with associated resource type and you send the request to the API twice you will get 500 response on the second call. Interesting behavior, because if you just want to create a namespace without any associated resource type it will pass on every call.
Tested on the latest master branch.
Reproduce:
URL: http://
Method: POST
Payload:
{
{
}
]
}
Traceback:
<...>
File "/opt/stack/
rs_
File "/opt/stack/
meta_
File "/opt/stack/
md_
File "/opt/stack/
meta_
File "/opt/stack/
return super(MetadefRe
File "/opt/stack/
meta_
File "/opt/stack/
self.
File "/opt/stack/
context, namespace_name, values, session)
File "/opt/stack/
context, namespace_name, session)
File "/opt/stack/
namespace_rec = _get_by_
File "/opt/stack/
namespace_rec = query.one()
File "/usr/local/
"Multiple rows were found for one()")
MultipleResults
Changed in glance: | |
status: | New → In Progress |
Fix proposed to branch: master /review. openstack. org/190125
Review: https:/