Ask Your Question
0

[trove] mongodb cluster-grow failed

asked 2016-09-07 02:35:49 -0600

liuqing123 gravatar image

updated 2016-09-12 11:15:40 -0600

rbowen gravatar image

I have installed trove following http://docs.openstack.org/mitaka/inst... 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!


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 ...
(more)
edit retag flag offensive close merge delete

Comments

where was this error, could you please also share the log file where this error occurred.

amrith gravatar imageamrith ( 2016-09-08 06:39:58 -0600 )edit

I have added the error log, thank you! @amrith

liuqing123 gravatar imageliuqing123 ( 2016-09-08 21:41:58 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-10-11 10:23:13 -0600

@liuqing123 You need to provide a type of the instance you want to add.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-09-07 02:35:49 -0600

Seen: 120 times

Last updated: Sep 12 '16