modify cluster create help

Bug #1634192 reported by Prithiv
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum
New
Undecided
Prithiv

Bug Description

Magnum cluster-create help shows cluster-template asn an optional arguments but seems like it is a required parameter.

root@node1:~/devstack$ magnum help cluster-create

usage: magnum cluster-create [--name <name>] --cluster-template
                             <cluster_template> [--node-count <node-count>]
                             [--master-count <master-count>]
                             [--discovery-url <discovery-url>]
                             [--timeout <timeout>]

Create a cluster.

Optional arguments:
  --name <name> Name of the cluster to create.
  --cluster-template <cluster_template>
                        ID or name of the cluster template.
  --node-count <node-count>
                        The cluster node count.
  --master-count <master-count>
                        The number of master nodes for the cluster.
  --discovery-url <discovery-url>
                        Specifies custom discovery url for node discovery.
  --timeout <timeout> The timeout for cluster creation in minutes. The
                        default is 60 minutes.

root@node1:~/devstack$ magnum cluster-create --name=test
usage: magnum cluster-create [--name <name>] --cluster-template
                             <cluster_template> [--node-count <node-count>]
                             [--master-count <master-count>]
                             [--discovery-url <discovery-url>]
                             [--timeout <timeout>]
error: argument --cluster-template is required

I propose to modify the help option and move cluster-template to positional arguments.

Prithiv (prithiv)
Changed in magnum:
assignee: nobody → Prithiv (prithiv)
Revision history for this message
Ricardo Rocha (rocha-porto) wrote :

In your output it shows it as mandatory (it's not in brackets).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.