trove create asks for size/instance volume though it is mentioned optional
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-troveclient |
Fix Released
|
Medium
|
Greg Lucas |
Bug Description
Description:
"trove help create" mentions only name and flavor_id as positional arguments but we get "ERROR: Validation error: instance 'volume' is a required property (HTTP 400)" on mentioning only name and flavor_id. The error is resolved on mentioning size in the client call.
venkater@
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> ...] Optional list of users in the form
--backup <backup> A backup ID.
--availabilit
--datastore <datastore> A datastore name or ID.
--datastore_
--nic <net-id=
--configuration <configuration>
--slave_of <master_id> ID of an existing instance to replicate
venkater@
venkater@
ERROR: Validation error: instance 'volume' is a required property (HTTP 400)
venkater@
+------
| Property | Value |
+------
| created | 2014-07-02T13:06:51 |
| datastore | mysql |
| datastore_version | 5.5 |
| flavor | 2 |
| id | b09b94fe-
| name | ps_test |
| status | BUILD |
| updated | 2014-07-02T13:06:51 |
| volume | 1 |
+------
venkater@
Changed in python-troveclient: | |
status: | New → Triaged |
importance: | Undecided → Medium |
milestone: | none → juno-2 |
Changed in python-troveclient: | |
milestone: | juno-2 → juno-3 |
Changed in python-troveclient: | |
milestone: | juno-3 → none |
status: | Fix Committed → Fix Released |
I agree this is confusing. The volume size is only required when trove_volume_ support is enabled, so it is not a required parameter in all cases.
We may just need a better help message here. I'd raised a related issue (https:/ /bugs.launchpad .net/trove/ +bug/1285240) and have seen other new trove users ask about the 'volume required' error.