Ask Your Question
0

Trove instance status is BLOCKED

asked 2015-09-30 23:06:25 -0500

xinwenzeng gravatar image

updated 2015-09-30 23:14:35 -0500

Hi All !I have install trove-server in Controller node(Centos 6.5),and make a mysql image(installed trove-guestagent,Centos6.5).When I create a database instance,the instance status is BLOCKED,it confued me a week,please help me.All trove-api trove-conductor trove-taskmanager rabbitmq-server and trove-guestagent is ok.My openstack version is IceHouse.

[root@controller ~]# trove list
+--------------------------------------+------------------------+-----------+-------------------+---------+-----------+------+ | id | name | datastore | datastore_version | status | flavor_id | size | +--------------------------------------+------------------------+-----------+-------------------+---------+-----------+------+ | 09c4dedc-564e-493f-ab9c-612787872c8e | trove-mysql-instance-4 | mysql | mysql-5.1 | BLOCKED | 2 | 2 | +--------------------------------------+------------------------+-----------+-------------------+---------+-----------+------+

[root@controller trove]# trove datastore-list +--------------------------------------+-------+ | id | name | +--------------------------------------+-------+ | ae0feb3e-56b5-49bb-88a0-30859ef6fe90 | mysql | +--------------------------------------+-------+

Below is the configuration and log in trove-server:

[root@controller trove]# cat api-paste.ini

[composite:trove]

use = call:trove.common.wsgi:versioned_urlmap /: versions /v1.0: troveapi

[app:versions]

paste.app_factory = trove.versions:app_factory

[pipeline:troveapi]

pipeline = faultwrapper authtoken authorization contextwrapper ratelimit extensions troveapp [filter:extensions]

paste.filter_factory = trove.common.extensions:factory

[filter:authtoken]

signing_dir = /var/cache/trove admin_password = hello123 admin_user = trove admin_tenant_name = service admin_token = eb7ff63f3a03285f9414 paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory auth_host = 10.133.130.111 auth_port = 35357 auth_protocol = http

[filter:authorization]

paste.filter_factory = trove.common.auth:AuthorizationMiddleware.factory

[filter:contextwrapper]

paste.filter_factory = trove.common.wsgi:ContextMiddleware.factory

[filter:faultwrapper]

paste.filter_factory = trove.common.wsgi:FaultWrapper.factory

[filter:ratelimit]

paste.filter_factory = trove.common.limits:RateLimitingMiddleware.factory

[app:troveapp]

paste.app_factory = trove.common.api:app_factory

[filter:debug]

paste.filter_factory = trove.common.wsgi:Debug

[root@controller trove]# cat trove.conf

[DEFAULT]

trove_api_workers = 2 use_syslog = False debug = False verbose = True default_datastore = mysql sql_connection = mysql://trove:hello123@10.133.130.111/trove?charset=utf8 rabbit_password = guest rabbit_host = 10.133.130.111 rabbit_port = 5673 api_extensions_path = /usr/lib/python2.6/site-packages/trove/extensions/routes add_addresses = True default_neutron_networks = cb807ed8-5f63-42ae-ac4f-9dd0e2da97d7

[root@controller trove]# cat trove-taskmanager.conf

[DEFAULT]

use_syslog = False debug = True trove_auth_url = http://10.133.130.111:35357/v1.0 nova_proxy_admin_pass = hello123 nova_proxy_admin_tenant_name = admin nova_proxy_admin_user = admin sql_connection = mysql://trove:hello123@10.133.130.111/trove?charset=utf8 taskmanager_manager = trove.taskmanager.manager.Manager rabbit_password = guest rabbit_host = 10.133.130.111 rabbit_port = 5673

nova_compute_url = http://10.133.130.111:8774/v2 cinder_url = http://10.133.130.111:8776/v1 swift_url = http://10.133.130.111:8080/v1 trove_volume_support = False

[root@controller trove]# cat trove-conductor.conf

[DEFAULT]

use_syslog = False debug = True control_exchange = trove trove_auth_url = http://10.133.130.111:35357/v1.0 nova_proxy_admin_pass = hello123 nova_proxy_admin_tenant_name = admin nova_proxy_admin_user = admin sql_connection = mysql://trove:hello123@10.133.130.111/trove?charset=utf8 rabbit_password = guest rabbit_host = 10.133.130.111 rabbit_port = 5673

[root@controller trove]# cat /usr/share/trove/trove-dist-paste.ini

[composite:trove]

use = call:trove.common.wsgi:versioned_urlmap /: versions /v1.0: troveapi

[app:versions]

paste.app_factory = trove.versions:app_factory

[pipeline:troveapi]

pipeline = faultwrapper authtoken authorization contextwrapper ratelimit extensions troveapp

[filter:extensions]

paste.filter_factory = trove.common.extensions:factory

[filter:authtoken]

paste.filter_factory = keystoneclient.middleware.auth_token:filter_factory admin_password = hello123 admin_user = trove admin_tenant_name = service auth_host = 10.133.130.111 auth_port = 35357 auth_protocol = http

[filter:authorization]

paste.filter_factory = trove.common.auth:AuthorizationMiddleware.factory

[filter:contextwrapper]

paste.filter_factory = trove.common.wsgi:ContextMiddleware.factory

[filter:faultwrapper]

paste.filter_factory = trove.common.wsgi:FaultWrapper.factory

[filter:ratelimit]

paste.filter_factory = trove.common.limits:RateLimitingMiddleware.factory

[app:troveapp]

paste.app_factory = trove.common ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-10-02 21:57:48 -0500

xinwenzeng gravatar image

updated 2015-10-02 22:01:58 -0500

I have slove this problem: The guestagent instances must give privileges to trove,edit the /etc/sudoers,like below:

image description

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: 2015-09-30 23:06:25 -0500

Seen: 139 times

Last updated: Oct 02 '15