Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

[trove] mongodb cluster-grow failed

I have installed trove following http://docs.openstack.org/mitaka/install-guide-rdo/trove.html and successfully created a mongodb cluster with a query router, a configuration server and a three-member replica set. However, it fails when I try to grow the cluster with CLI: trove cluster-grow my_cluster_id --instance "name=my_name,flavor=my_flavor_id,volume=my_size"

The error info is as follows: ERROR: An instance with the options [u'volume', u'flavorRef', u'name'] is missing the MongoDB required option type. (HTTP 400)

Does my operation have some problem? Give me a hand, please! Thank you very much!

[trove] mongodb cluster-grow failed

I have installed trove following http://docs.openstack.org/mitaka/install-guide-rdo/trove.html and successfully created a mongodb cluster with a query router, a configuration server and a three-member replica set. However, it fails when I try to grow the cluster with CLI: trove cluster-grow my_cluster_id --instance "name=my_name,flavor=my_flavor_id,volume=my_size"

The error info is as follows: ERROR: An instance with the options [u'volume', u'flavorRef', u'name'] is missing the MongoDB required option type. (HTTP 400)

Does my operation have some problem? Give me a hand, please! Thank you very much! much!


The error log as follows:

{"grow": [{"volume": {"size": "10"}, "flavorRef": "6", "name": "test"}]}'

id : 'd3590ffd-8a33-43ff-bbf4-262d65520db6'

action /usr/lib/python2.7/site-packages/trove/cluster/service.py:58 2016-09-09 10:19:55.899 26067 DEBUG trove.common.strategies.cluster.strategy [-] Loading class trove.common.strategies.cluster.experimental.mongodb.api.MongoDbAPIStrategy load_api_strategy /usr/lib/python2.7/site-packages/trove/common/strategies/cluster/strategy.py:29 2016-09-09 10:19:55.909 26067 DEBUG trove.common.notification [-] Sending event: dbaas.cluster_grow.start, {'client_ip': '192.168.11.11', 'server_type': 'api', 'tenant_id': u'4e078778d23d4277a88c954e17cbb94e', 'cluster_id': u'd3590ffd-8a33-43ff-bbf4-262d65520db6', 'server_ip': 'controller:8779', 'request_id': 'req-47132b43-8c5a-49ee-9938-8af5ac7d42d3'} _notify /usr/lib/python2.7/site-packages/trove/common/notification.py:392 2016-09-09 10:19:55.911 26067 DEBUG trove.common.notification [-] Sending event: dbaas.cluster_grow.error, {'client_ip': '192.168.11.11', 'server_type': 'api', 'tenant_id': u'4e078778d23d4277a88c954e17cbb94e', 'exception': ['Traceback (most recent call last):\n', ' File "/usr/lib/python2.7/site-packages/trove/common/strategies/cluster/experimental/mongodb/api.py", line 230, in action\n for item in param])\n', ' File "/usr/lib/python2.7/site-packages/trove/common/strategies/cluster/experimental/mongodb/api.py", line 205, in _parse_grow_item\n \'query_router\'])\n', ' File "/usr/lib/python2.7/site-packages/trove/common/strategies/cluster/experimental/mongodb/api.py", line 188, in _check_option\n % {\'given\': item.keys(), \'expected\': key}\n', "TroveError: An instance with the options [u'volume', u'flavorRef', u'name'] is missing the MongoDB required option type.\n"], 'server_ip': 'controller:8779', 'request_id': 'req-47132b43-8c5a-49ee-9938-8af5ac7d42d3', 'message': "An instance with the options [u'volume', u'flavorRef', u'name'] is missing the MongoDB required option type."} _notify /usr/lib/python2.7/site-packages/trove/common/notification.py:392 2016-09-09 10:19:55.912 26067 DEBUG trove.common.wsgi [-] Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/trove/common/wsgi.py", line 250, in execute_action *action_args) File "/usr/lib/python2.7/site-packages/trove/common/base_wsgi.py", line 393, in execute_action return self.dispatch(self.controller, action, request, *action_args) File "/usr/lib/python2.7/site-packages/trove/common/base_wsgi.py", line 402, in dispatch return method(args, *kwargs) File "/usr/lib/python2.7/site-packages/trove/cluster/service.py", line 66, in action cluster.action(context, req, *body.items()[0]) File "/usr/lib/python2.7/site-packages/trove/common/strategies/cluster/experimental/mongodb/api.py", line 230, in action for item in param]) File "/usr/lib/python2.7/site-packages/trove/common/strategies/cluster/experimental/mongodb/api.py", line 205, in _parse_grow_item 'query_router']) File "/usr/lib/python2.7/site-packages/trove/common/strategies/cluster/experimental/mongodb/api.py", line 188, in _check_option % {'given': item.keys(), 'expected': key} TroveError: An instance with the options [u'volume', u'flavorRef', u'name'] is missing the MongoDB required option type. execute_action /usr/lib/python2.7/site-packages/trove/common/wsgi.py:256 2016-09-09 10:19:55.913 26067 DEBUG trove.common.wsgi [-] Caught Trove Error An instance with the options [u'volume', u'flavorRef', u'name'] is missing the MongoDB required option type. execute_action /usr/lib/python2.7/site-packages/trove/common/wsgi.py:257 2016-09-09 10:19:55.913 26067 DEBUG trove.common.wsgi [-] Mapped Error to <class 'webob.exc.httpbadrequest'=""> execute_action /usr/lib/python2.7/site-packages/trove/common/wsgi.py:259 2016-09-09 10:19:55.916 26067 INFO eventlet.wsgi [-] 192.168.11.11 - - [09/Sep/2016 10:19:55] "POST /v1.0/4e078778d23d4277a88c954e17cbb94e/clusters/d3590ffd-8a33-43ff-bbf4-262d65520db6 HTTP/1.1" 400 309 0.039015

[trove] mongodb cluster-grow failed

I have installed trove following http://docs.openstack.org/mitaka/install-guide-rdo/trove.html and successfully created a mongodb cluster with a query router, a configuration server and a three-member replica set. However, it fails when I try to grow the cluster with CLI: trove cluster-grow my_cluster_id --instance "name=my_name,flavor=my_flavor_id,volume=my_size"

The error info is as follows: follows:

ERROR: An instance with the options [u'volume', u'flavorRef', u'name'] is missing the MongoDB required option type. (HTTP 400)

400)

Does my operation have some problem? Give me a hand, please! Thank you very much!


The error log as follows:

{"grow": [{"volume": {"size": "10"}, "flavorRef": "6", "name": "test"}]}'

"test"}]}' id : 'd3590ffd-8a33-43ff-bbf4-262d65520db6'

'd3590ffd-8a33-43ff-bbf4-262d65520db6' action /usr/lib/python2.7/site-packages/trove/cluster/service.py:58 2016-09-09 10:19:55.899 26067 DEBUG trove.common.strategies.cluster.strategy [-] Loading class trove.common.strategies.cluster.experimental.mongodb.api.MongoDbAPIStrategy load_api_strategy /usr/lib/python2.7/site-packages/trove/common/strategies/cluster/strategy.py:29 2016-09-09 10:19:55.909 26067 DEBUG trove.common.notification [-] Sending event: dbaas.cluster_grow.start, {'client_ip': '192.168.11.11', 'server_type': 'api', 'tenant_id': u'4e078778d23d4277a88c954e17cbb94e', 'cluster_id': u'd3590ffd-8a33-43ff-bbf4-262d65520db6', 'server_ip': 'controller:8779', 'request_id': 'req-47132b43-8c5a-49ee-9938-8af5ac7d42d3'} _notify /usr/lib/python2.7/site-packages/trove/common/notification.py:392 2016-09-09 10:19:55.911 26067 DEBUG trove.common.notification [-] Sending event: dbaas.cluster_grow.error, {'client_ip': '192.168.11.11', 'server_type': 'api', 'tenant_id': u'4e078778d23d4277a88c954e17cbb94e', 'exception': ['Traceback (most recent call last):\n', ' File "/usr/lib/python2.7/site-packages/trove/common/strategies/cluster/experimental/mongodb/api.py", line 230, in action\n for item in param])\n', ' File "/usr/lib/python2.7/site-packages/trove/common/strategies/cluster/experimental/mongodb/api.py", line 205, in _parse_grow_item\n \'query_router\'])\n', ' File "/usr/lib/python2.7/site-packages/trove/common/strategies/cluster/experimental/mongodb/api.py", line 188, in _check_option\n % {\'given\': item.keys(), \'expected\': key}\n', "TroveError: An instance with the options [u'volume', u'flavorRef', u'name'] is missing the MongoDB required option type.\n"], 'server_ip': 'controller:8779', 'request_id': 'req-47132b43-8c5a-49ee-9938-8af5ac7d42d3', 'message': "An instance with the options [u'volume', u'flavorRef', u'name'] is missing the MongoDB required option type."} _notify /usr/lib/python2.7/site-packages/trove/common/notification.py:392 2016-09-09 10:19:55.912 26067 DEBUG trove.common.wsgi [-] Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/trove/common/wsgi.py", line 250, in execute_action *action_args) **action_args) File "/usr/lib/python2.7/site-packages/trove/common/base_wsgi.py", line 393, in execute_action return self.dispatch(self.controller, action, request, *action_args) **action_args) File "/usr/lib/python2.7/site-packages/trove/common/base_wsgi.py", line 402, in dispatch return method(args, *kwargs) method(*args, **kwargs) File "/usr/lib/python2.7/site-packages/trove/cluster/service.py", line 66, in action cluster.action(context, req, *body.items()[0]) File "/usr/lib/python2.7/site-packages/trove/common/strategies/cluster/experimental/mongodb/api.py", line 230, in action for item in param]) File "/usr/lib/python2.7/site-packages/trove/common/strategies/cluster/experimental/mongodb/api.py", line 205, in _parse_grow_item 'query_router']) File "/usr/lib/python2.7/site-packages/trove/common/strategies/cluster/experimental/mongodb/api.py", line 188, in _check_option % {'given': item.keys(), 'expected': key} TroveError: An instance with the options [u'volume', u'flavorRef', u'name'] is missing the MongoDB required option type. execute_action /usr/lib/python2.7/site-packages/trove/common/wsgi.py:256 2016-09-09 10:19:55.913 26067 DEBUG trove.common.wsgi [-] Caught Trove Error An instance with the options [u'volume', u'flavorRef', u'name'] is missing the MongoDB required option type. execute_action /usr/lib/python2.7/site-packages/trove/common/wsgi.py:257 2016-09-09 10:19:55.913 26067 DEBUG trove.common.wsgi [-] Mapped Error to <class 'webob.exc.httpbadrequest'=""> 'webob.exc.HTTPBadRequest'> execute_action /usr/lib/python2.7/site-packages/trove/common/wsgi.py:259 2016-09-09 10:19:55.916 26067 INFO eventlet.wsgi [-] 192.168.11.11 - - [09/Sep/2016 10:19:55] "POST /v1.0/4e078778d23d4277a88c954e17cbb94e/clusters/d3590ffd-8a33-43ff-bbf4-262d65520db6 HTTP/1.1" 400 309 0.039015

0.039015