HTTP 500 when `nova list --name` contains invalid regexp
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Confirmed
|
Wishlist
|
Roman Podoliaka |
Bug Description
Detailed bug description:
When a Nova CLI command contains a regexp, it fails with HTTP 500 error
Steps to reproduce:
root@node-6:~# nova list --name \*
ERROR (ClientException): Unexpected API Error. Please report this at http://
<class 'sqlalchemy.
Expected results:
Catch the syntax error in the command before the request is made
Actual result:
Request goes through, and returned with a HTTP 500 error. Nova API log is attached with more details.
Reproducibility:
100%
Workaround:
None
Impact:
Nothing major, but in this case, the HTTP 500 error triggered alerts in the monitoring system.
Description of the environment:
- Operation system: Ubuntu 14.04
- Versions of components: MOS 9.1
- Reference architecture: N/A
- Network model: N/A
- Related projects installed: N/A
Additional information:
N/A
Roman, could you please take a look? It looks like a general issue of all the versions of novaclient. Though, I'm not sure if it is even possible to "validate" a regular expression, but may be some sort of sanitizing of inputs...