stx-openstack: Failed to parse multi-word options in container-backed CLIs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Low
|
Luan Nunes Utimura |
Bug Description
Brief Description
-----------------
When using container-backed OpenStack CLIs, it has been observed that commands with multi-word options are failing to run due to poor interpretation of parameters by the clients wrapper script.
Severity
--------
Minor.
Only affects commands with multi-word options and it can be worked around with quote escaping.
Steps to Reproduce
------------------
Logged in as `sysadmin`:
1) Source /var/opt/
2) Run command with multi-word options, e.g.:
```
openstack project create --description=
```
Expected Behavior
------------------
Project `my_project` is created successfully.
Actual Behavior
----------------
Options are poorly parsed and command is not executed.
Reproducibility
---------------
Reproducible.
System Configuration
-------
Seen on AIO-SX, but should affect all system configurations.
Branch/Pull Time/Commit
-------
StarlingX (master).
StarlingX OpenStack (master).
Last Pass
---------
N/A.
Timestamp/Logs
--------------
```
[sysadmin@
usage: openstack project create [-h] [-f {json,shell,
openstack project create: error: unrecognized arguments: by space my_project
command terminated with exit code 2
```
Test Activity
-------------
Regression Testing.
Workaround
----------
Run command with multi-word options with escaped quotes:
```
[sysadmin@
+------
| Field | Value |
+------
| description | words separated by space |
| domain_id | default |
| enabled | True |
| id | 1e84526b1aca437
| is_domain | False |
| name | my_project |
| options | {} |
| parent_id | default |
| tags | [] |
+------
```
Changed in starlingx: | |
assignee: | nobody → Luan Nunes Utimura (lutimura) |
tags: | added: stx.9.0 stx.distro.openstack |
summary: |
- stx-openstack: Failed to parse multi-word options in the container- - backed CLI + stx-openstack: Failed to parse multi-word options in container-backed + CLIs |
Changed in starlingx: | |
importance: | Undecided → Low |
Fix proposed to branch: master /review. opendev. org/c/starlingx /openstack- armada- app/+/895718
Review: https:/