trove create instance 'volume' is a required property
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-troveclient |
Triaged
|
Low
|
mariam john |
Bug Description
I get this error when trying to create an instance with:
$ trove create fu 1
DEBUG (shell:660) Validation error: instance 'volume' is a required property (HTTP 400)
Traceback (most recent call last):
File "/usr/lib/
sys.argv[1:]))
File "/usr/lib/
args.
File "/usr/lib/
datastore_
File "/usr/lib/
return self._create(
File "/usr/lib/
resp, body = self.api.
File "/usr/lib/
return self._cs_
File "/usr/lib/
**kwargs)
File "/usr/lib/
raise exceptions.
BadRequest: Validation error: instance 'volume' is a required property (HTTP 400)
ERROR: Validation error: instance 'volume' is a required property
The trove-api service has this to say:
{"instance": {"flavorRef": "1", "name": "fu"}} authorize /usr/lib/
2014-01-08 14:15:01.554 5717 DEBUG routes.middleware [-] No route matched for POST /0eae85e31bff4b
2014-01-08 14:15:01.555 5717 DEBUG routes.middleware [-] Matched POST /0eae85e31bff4b
2014-01-08 14:15:01.555 5717 DEBUG routes.middleware [-] Route path: '/{tenant_
2014-01-08 14:15:01.555 5717 DEBUG routes.middleware [-] Match dict: {'action': u'create', 'tenant_id': u'0eae85e31bff4
2014-01-08 14:15:01.556 5717 DEBUG trove.common.wsgi [-] Getting schema for type:create get_schema /usr/lib/
2014-01-08 14:15:01.556 5717 DEBUG trove.common.wsgi [-] Found Schema: none get_schema /usr/lib/
2014-01-08 14:15:01.558 5717 INFO trove.common.wsgi [-] Validation error: instance 'volume' is a required property
2014-01-08 14:15:01.558 5717 DEBUG trove.common.wsgi [-] Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
raise exception.
BadRequest: Validation error: instance 'volume' is a required property
execute_action /usr/lib/
2014-01-08 14:15:01.558 5717 DEBUG trove.common.wsgi [-] Caught Trove Error Validation error: instance 'volume' is a required property execute_action /usr/lib/
2014-01-08 14:15:01.558 5717 DEBUG trove.common.wsgi [-] Mapped Error to <class 'webob.
The help doesn't mention the volume property and I have no idea what that is.
description: | updated |
description: | updated |
Changed in python-troveclient: | |
assignee: | Auston McReynolds (amcrn) → nobody |
status: | New → In Progress |
Changed in python-troveclient: | |
importance: | Undecided → Low |
status: | In Progress → Triaged |
Changed in python-troveclient: | |
assignee: | nobody → mariam john (mariamj) |
This is referring to the fact that you must pass a "--size" argument for the volume.
The reason why the size argument isn't marked as required in the python-troveclient is that volume-support can be toggled off in Trove via https:/ /github. com/openstack/ trove/blob/ master/ etc/trove/ trove.conf. sample# L54.
The message is confusing however, considering it's referring to a 'volume property', when the argument in the cli is 'size' not 'volume'.