[python-fuelclient] New CLI 'fuel2 graph upload' command doesn't take into account required args
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
Medium
|
Vitalii Kulanov |
Bug Description
Detailed bug description:
New CLI 'fuel2 graph upload' command doesn't take into account required args (-e ENV | -r RELEASE | -p PLUGIN).
If we try to execute command:
[root@fuel ~]# fuel2 graph upload --file new_graph.yaml
Deployment graph was uploaded from new_graph.yaml
Steps to reproduce:
1. Deploy Fuel (e.g. 1 master + 5 nodes).
2. Create new env.
3. Create some empty file (new_graph.yaml).
4. Try to upload new_graph.yaml with omitted required args (-e ENV | -r RELEASE | -p PLUGIN).
Expected results:
fuel2 graph upload: error: one of the arguments -e/--env -r/--release -p/--plugin is required
Actual result:
Deployment graph was uploaded from new_graph.yaml
Reproducibility:
Always
Description of the environment:
cat /etc/fuel_build_id:
206
cat /etc/fuel_
206
cat /etc/fuel_release:
10.0
cat /etc/fuel_
newton-10.0
Additional information:
Here is a brief command usage example:
[root@fuel ~]# fuel2 graph upload --file
usage: fuel2 graph upload [-h] [-e ENV | -r RELEASE | -p PLUGIN] [-t TYPE] -f
fuel2 graph upload: error: argument -f/--file: expected one argument
Mutually exclusive group [-e ENV | -r RELEASE | -p PLUGIN] erroneously marked as not required.
Changed in fuel: | |
assignee: | nobody → Vitalii Kulanov (vitaliy-t) |
Changed in fuel: | |
milestone: | none → 10.0 |
importance: | Undecided → Medium |
Fix proposed to branch: master /review. openstack. org/323809
Review: https:/