Action definition list does not know namespace field
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mistral |
Fix Released
|
Medium
|
ali abdelal |
Bug Description
When running `openstack action definition list` with python-
> Field(s) namespace are invalid.
This does not occur with python-
I guess this would work with any version of mistral < train.
I identified the following change in python-
Related change on mistral side: https:/
Commands needed to reproduce on my side (with mistral rocky on API side):
$ pip3 install python-
$ openstack action definition list --limit=5
+------
| ID | Name | Is system | Input | Description | Tags | Created at | Updated at |
+------
| 0638bfcc-
| a-434e95d97c8b | h | | action_... | hy... | | | |
| 093170bf-
| 3-c560a6254ef7 | d | | **kwarg... | with a... | | | |
| 0c720401-
| 9-aa2bb4a6e571 | statistics | | | statistics... | | | |
| 117cfd46-
| 7-ddf6db30103a | | | action_region="" | | | | |
| | | | | :param ... | | | |
| 125c4989-
| b-6021d438ead4 | ate | | **... | serve... | | | |
+------
$ pip3 install python-
$ openstack action definition list --limit=5
Field(s) namespace are invalid.
$ openstack action definition list --limit=5 --debug
[...]
https:/
RESP: [400] Connection: keep-alive Content-Length: 92 Content-Type: application/json Date: Fri, 27 Mar 2020 10:27:14 GMT Server: nginx/1.17.8 Strict-
RESP BODY: {"debuginfo": null, "faultcode": "Client", "faultstring": "Field(s) namespace are invalid."}
Request returned failure status: 400
Field(s) namespace are invalid.
Traceback (most recent call last):
File "/home/
resp = self.http_
File "/home/
resp = func(self, *args, **kwargs)
File "/home/
return self.session.
File "/home/
return self.request(url, 'GET', **kwargs)
File "/home/
raise exceptions.
keystoneauth1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/
result = cmd.run(
File "/home/
return super(Command, self).run(
File "/home/
column_names, data = self.take_
File "/home/
ret = self._get_
File "/home/
**base.
File "/home/
response_
File "/home/
self.
File "/home/
error_
mistralclient.
clean_up List: Field(s) namespace are invalid.
END return value: 1
Exact curl command:
$ curl -g -i -X GET 'https:/
HTTP/1.1 400 Bad Request
Content-Length: 92
Content-Type: application/json
Date: Fri, 27 Mar 2020 10:30:17 GMT
X-IPLB-Instance: 30321
Strict-
{"debuginfo": null, "faultcode": "Client", "faultstring": "Field(s) namespace are invalid."}
Same curl without namespace:
$ curl -g -i -X GET 'https:/
HTTP/1.1 200 OK
Content-Length: 2072
Content-Type: application/json
Date: Fri, 27 Mar 2020 10:31:43 GMT
X-IPLB-Instance: 30324
Strict-
{"actions": [...]}
Changed in mistral: | |
importance: | Undecided → Medium |
assignee: | nobody → ali abdelal (alielal) |
milestone: | none → ussuri-3 |
Changed in mistral: | |
status: | New → In Progress |
Changed in mistral: | |
status: | In Progress → Fix Released |
BTW I see the same behavior with mistral client (without openstack):
$ mistral action-list
WARNING (keystone) Only one of project_name or project_id should be set,project_name will be ignored
ERROR (app) Field(s) namespace are invalid.