The datastore parameter for configuration-create is documented as optional but appears to be required
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-troveclient |
Fix Released
|
Low
|
Mayuri Ganguly |
Bug Description
From the help for the configuration-
vagrant@
usage: trove configuration-
Creates a configuration group.
Positional arguments:
<name> Name of the configuration group.
<values> Dictionary of the values to set.
Optional arguments:
--datastore <datastore> Datastore assigned to the configuration
--datastore_
--description <description> An optional description for the
When you execute the command as follows you get an error indicating the datastore argument is required.
vagrant@
ERROR: Please specify datastore. (HTTP 400)
If you add the datastore argument then the command succeeds.
vagrant@
+------
| Property | Value |
+------
| created | 2014-09-04T20:27:15 |
| datastore_name | mysql |
| datastore_
| datastore_
| description | None |
| id | 466b7ceb-
| instance_count | 0 |
| name | newgroup |
| updated | 2014-09-04T20:27:15 |
| values | {"collation_
+------
Not sure if the parameter is supposed to be optional or not but the documentation should be changed to match the code or the code changed to match the documentation.
Changed in python-troveclient: | |
assignee: | nobody → Mayuri Ganguly (mayuri-ganguly) |
status: | New → In Progress |
Changed in python-troveclient: | |
importance: | Undecided → Low |
Changed in python-troveclient: | |
milestone: | none → 1.2.0 |
status: | Fix Committed → Fix Released |
This happens as well with the datastore-version and size optional parameters.
[vkmc@heisenbug ~]$ trove create foo 2 ------- ------+ ------- ------- ------- ------- ------- ---+ ------- ------+ ------- ------- ------- ------- ------- ---+ 18da-4539- 95b5-df636b08bf 67 | ------- ------+ ------- ------- ------- ------- ------- ---+
ERROR: Please specify datastore. (HTTP 400)
[vkmc@heisenbug ~]$ trove create fun 2 --datastore mysql
ERROR: Default version for datastore 'mysql' not found. (HTTP 400)
[vkmc@heisenbug ~]$ trove create fun 2 --datastore mysql --datastore_version mysql-5.5
ERROR: Volume size was not specified. (HTTP 400)
[vkmc@heisenbug ~]$ trove create fun 2 --datastore mysql --datastore_version mysql-5.5 --size=2
+------
| Property | Value |
+------
| created | 2014-12-29T20:45:57 |
| datastore | mysql |
| datastore_version | mysql-5.5 |
| flavor | 2 |
| id | 18807037-
| name | fun |
| status | BUILD |
| updated | 2014-12-29T20:45:57 |
| volume | 2 |
+------
Simply making them required would solve the problem.