fuel2 role create command has unclear syntax
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Confirmed
|
Low
|
Vitalii Kulanov |
Bug Description
The first problem is incorrect help message:
[root@nailgun ~]# fuel2 role create
usage: fuel2 role create [-h] -r RELEASE -n NAME -f {json,yaml} [-d DIRECTORY]
fuel2 role create: error: argument -r/--release is required
Argument "-n" is used for determining FILE, not for a NAME of new role. The name of new role is described in a file and can be different from filename.
The second problem related with mandatory argument "-f". It adds specified extension to the filename. For example, we have file "/tmp/create_
[root@nailgun ~]# fuel2 role create -n /tmp/create_
Could not read description for role '/tmp/create_
As you can see, argument "-f" adds a specified extension to the file name and it's can confuse user.
Changed in fuel: | |
importance: | Undecided → Low |
milestone: | none → 10.1 |
description: | updated |
Changed in fuel: | |
assignee: | nobody → Fuel Sustaining (fuel-sustaining-team) |
status: | New → Confirmed |
tags: | added: area-python |
Changed in fuel: | |
assignee: | Fuel Sustaining (fuel-sustaining-team) → Vitalii Kulanov (vitaliy-t) |
tags: | added: module-client |
It seems I used command incorrectly. Right way:
[root@nailgun ~]# fuel2 role create -n reate_role -r 2 -f yaml -d /tmp
But anyway in such case we have to upload our file with role in specific folder: release_ {release_ number} /{role_ name}.yaml
We should describe it in help message.