Provide size as mandatory parameter while creating instance(troveclient)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack DBaaS (Trove) |
New
|
Undecided
|
Harshada Mangesh Kakad |
Bug Description
usage: trove create <name> <flavor_id>
Creates a new instance.
Positional arguments:
<name> Name of the instance.
<flavor_id> Flavor of the instance.
Optional arguments:
--size <size> Size of the instance disk in GB.
--databases <databases> [<databases> ...]
--users <users> [<users> ...]
--backup <backup> A backup UUID.
--availabilit
--datastore <datastore>
--datastore_
--nic <net-id=
--configuration <configuration>
As size here is optional parameter, if i try creating database instance with specifying the size it gives me an error as
$trove create test 8
ERROR: Validation error: instance 'volume' is a required property
Even in dashboard size is mandatory parameter
So even using troveclient, size should be a mandatory parameter.
The new usage could be :
usage: trove create <name> <size> <flavor_id>
Creates a new instance.
Positional arguments:
<name> Name of the instance.
<size> Size of the instance disk in GB.
<flavor_id> Flavor of the instance.
Optional arguments:
--databases <databases> [<databases> ...]
--users <users> [<users> ...]
--backup <backup> A backup UUID.
--availabilit
--datastore <datastore>
--datastore_
--nic <net-id=
--configuration <configuration>
And if no size id specified the error should be:
$ trove create test 8
usage: trove create <name> <size> <flavor_id>
error: too few arguments
Try 'trove help create' for more information.
Changed in trove: | |
assignee: | nobody → Harshada Mangesh Kakad (harshada-kakad) |