yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #10257
[Bug 1284542] Re: g-api cannot start when using stack.sh to install, throw "Failed to load transport driver "glance.openstack.common.rpc.impl_kombu": No 'oslo.messaging.drivers' driver found"
I have fixed it by delete all the code in /opt/stack/, then rerun
stack.sh
** Changed in: glance
Status: New => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1284542
Title:
g-api cannot start when using stack.sh to install, throw "Failed to
load transport driver "glance.openstack.common.rpc.impl_kombu": No
'oslo.messaging.drivers' driver found"
Status in OpenStack Image Registry and Delivery Service (Glance):
Invalid
Bug description:
Today I git pull the latest files in devstack and run stack.sh to
install openstack:
2014-02-25 17:09:15.199 | + screen -S stack -p g-reg -X stuff 'cd /opt/stack/glance; /usr/local/bin/glance-registry --config-file=/etc/glance/glance-registry.conf & echo $! >/opt/stack/status/stack/g-reg.pid; fg || echo "g-reg failed to s'art" | tee "/opt/stack/status/stack/g-reg.failure"
2014-02-25 17:09:15.201 | + screen_it g-api 'cd /opt/stack/glance; /usr/local/bin/glance-api --config-file=/etc/glance/glance-api.conf'
2014-02-25 17:09:15.203 | + SCREEN_NAME=stack
2014-02-25 17:09:15.205 | + SERVICE_DIR=/opt/stack/status
2014-02-25 17:09:15.207 | ++ trueorfalse True True
2014-02-25 17:09:15.209 | ++ local default=True
2014-02-25 17:09:15.211 | ++ local testval=True
2014-02-25 17:09:15.213 | ++ [[ -z True ]]
2014-02-25 17:09:15.214 | ++ [[ 0 no No NO false False FALSE =~ True ]]
2014-02-25 17:09:15.215 | ++ [[ 1 yes Yes YES true True TRUE =~ True ]]
2014-02-25 17:09:15.216 | ++ echo True
2014-02-25 17:09:15.217 | ++ return
2014-02-25 17:09:15.217 | + USE_SCREEN=True
2014-02-25 17:09:15.218 | + is_service_enabled g-api
2014-02-25 17:09:15.219 | + services=g-api
2014-02-25 17:09:15.220 | + for service in '${services}'
2014-02-25 17:09:15.221 | + [[ ,rabbit,mysql,key,n-api,n-crt,n-obj,n-cpu,n-cond,n-sch,horizon,g-api,g-reg, =~ ,g-api, ]]
2014-02-25 17:09:15.221 | + return 0
2014-02-25 17:09:15.222 | + screen_rc g-api 'cd /opt/stack/glance; /usr/local/bin/glance-api --config-file=/etc/glance/glance-api.conf'
2014-02-25 17:09:15.223 | + SCREEN_NAME=stack
2014-02-25 17:09:15.224 | + SCREENRC=/home/lizhuohua/devstack/stack-screenrc
2014-02-25 17:09:15.224 | + [[ ! -e /home/lizhuohua/devstack/stack-screenrc ]]
2014-02-25 17:09:15.225 | + grep g-api /home/lizhuohua/devstack/stack-screenrc
2014-02-25 17:09:15.226 | ++ echo -ne '\015'
2014-02-25 17:09:15.227 | + NL=$'\r'
2014-02-25 17:09:15.228 | + echo 'screen -t g-api bash'
"'14-02-25 17:09:15.228 | + echo 'stuff "cd /opt/stack/glance; /usr/local/bin/glance-api --config-file=/etc/glance/glance-api.conf
2014-02-25 17:09:15.229 | + [[ -n /opt/stack/logs ]]
2014-02-25 17:09:15.231 | + echo 'logfile /opt/stack/logs/screen-g-api.2014-02-25-170615.log'
2014-02-25 17:09:15.232 | + echo 'log on'
2014-02-25 17:09:15.233 | + [[ True = \T\r\u\e ]]
2014-02-25 17:09:15.233 | + screen -S stack -X screen -t g-api
2014-02-25 17:09:15.234 | + [[ -n /opt/stack/logs ]]
2014-02-25 17:09:15.235 | + screen -S stack -p g-api -X logfile /opt/stack/logs/screen-g-api.2014-02-25-170615.log
2014-02-25 17:09:15.236 | + screen -S stack -p g-api -X log on
2014-02-25 17:09:15.237 | + ln -sf /opt/stack/logs/screen-g-api.2014-02-25-170615.log /opt/stack/logs/screen-g-api.log
2014-02-25 17:09:15.238 | + sleep 1.5
2014-02-25 17:09:16.713 | ++ echo -ne '\015'
2014-02-25 17:09:16.715 | + NL=$'\r'
2014-02-25 17:09:16.717 | + screen -S stack -p g-api -X stuff 'cd /opt/stack/glance; /usr/local/bin/glance-api --config-file=/etc/glance/glance-api.conf & echo $! >/opt/stack/status/stack/g-api.pid; fg || echo "g-api failed to start" | te' "/opt/stack/status/stack/g-api.failure"
2014-02-25 17:09:16.719 | + echo 'Waiting for g-api (9.123.137.81:9292) to start...'
2014-02-25 17:09:16.721 | Waiting for g-api (9.123.137.81:9292) to start...
2014-02-25 17:09:16.723 | + timeout 60 sh -c 'while ! wget --no-proxy -q -O- http://9.123.137.81:9292; do sleep 1; done'
2014-02-25 17:10:16.717 | + die 210 'g-api did not start'
2014-02-25 17:10:16.719 | + local exitcode=0
2014-02-25 17:10:16.721 | + set +o xtrace
2014-02-25 17:10:16.723 | [Call Trace]
2014-02-25 17:10:16.725 | ./stack.sh:1104:start_glance
check the log in /opt/stack/logs/screen-g-api.2014-02-25-170615.log:
cd /opt/stack/glance; /usr/l ^Mocal/bin/glance-api --config-file=/etc/glance/glance-api.conf & echo $! >/opt/st ^Mack/status/stack/g-api.pid; fg || echo "g-api failed to start" | tee "/opt/stack ^M/status/stack/g-api.failure"
[1] 24970
/usr/local/bin/glance-api --config-file=/etc/glance/glance-api.conf
2014-02-25 17:09:17.008 24970 DEBUG glance.store [-] Attempting to import store glance.store.filesystem.Store _get_store_class /opt/stack/glance/glance/store/__init__.py:143
2014-02-25 17:09:17.034 24970 DEBUG glance.store [-] Registering store <class 'glance.store.filesystem.Store'> with schemes ('file', 'filesystem') create_stores /opt/stack/glance/glance/store/__init__.py:173
2014-02-25 17:09:17.034 24970 DEBUG glance.store.base [-] Late loading location class glance.store.filesystem.StoreLocation get_store_location_class /opt/stack/glance/glance/store/base.py:82
2014-02-25 17:09:17.035 24970 DEBUG glance.store.location [-] Registering scheme file with {'store_class': <class 'glance.store.filesystem.Store'>, 'location_class': <class 'glance.store.filesystem.StoreLocation'>} register_scheme_map /opt/stack/glance/glance/store/location.py:86
2014-02-25 17:09:17.035 24970 DEBUG glance.store.location [-] Registering scheme filesystem with {'store_class': <class 'glance.store.filesystem.Store'>, 'location_class': <class 'glance.store.filesystem.StoreLocation'>} register_scheme_map /opt/stack/glance/glance/store/location.py:86
2014-02-25 17:09:17.035 24970 DEBUG glance.store [-] Attempting to import store glance.store.http.Store _get_store_class /opt/stack/glance/glance/store/__init__.py:143
2014-02-25 17:09:17.083 24970 DEBUG glance.store [-] Registering store <class 'glance.store.http.Store'> with schemes ('http', 'https') create_stores /opt/stack/glance/glance/store/__init__.py:173
2014-02-25 17:09:17.084 24970 DEBUG glance.store.base [-] Late loading location class glance.store.http.StoreLocation get_store_location_class /opt/stack/glance/glance/store/base.py:82
2014-02-25 17:09:17.084 24970 DEBUG glance.store.location [-] Registering scheme http with {'store_class': <class 'glance.store.http.Store'>, 'location_class': <class 'glance.store.http.StoreLocation'>} register_scheme_map /opt/stack/glance/glance/store/location.py:86
2014-02-25 17:09:17.084 24970 DEBUG glance.store.location [-] Registering scheme https with {'store_class': <class 'glance.store.http.Store'>, 'location_class': <class 'glance.store.http.StoreLocation'>} register_scheme_map /opt/stack/glance/glance/store/location.py:86
2014-02-25 17:09:17.084 24970 DEBUG glance.store [-] Attempting to import store glance.store.rbd.Store _get_store_class /opt/stack/glance/glance/store/__init__.py:143
2014-02-25 17:09:17.086 24970 DEBUG glance.store [-] Registering store <class 'glance.store.rbd.Store'> with schemes ('rbd',) create_stores /opt/stack/glance/glance/store/__init__.py:173
2014-02-25 17:09:17.086 24970 DEBUG glance.store.base [-] Late loading location class glance.store.rbd.StoreLocation get_store_location_class /opt/stack/glance/glance/store/base.py:82
2014-02-25 17:09:17.086 24970 DEBUG glance.store.location [-] Registering scheme rbd with {'store_class': <class 'glance.store.rbd.Store'>, 'location_class': <class 'glance.store.rbd.StoreLocation'>} register_scheme_map /opt/stack/glance/glance/store/location.py:86
2014-02-25 17:09:17.086 24970 DEBUG glance.store [-] Attempting to import store glance.store.s3.Store _get_store_class /opt/stack/glance/glance/store/__init__.py:143
2014-02-25 17:09:17.087 24970 DEBUG glance.store [-] Registering store <class 'glance.store.s3.Store'> with schemes ('s3', 's3+http', 's3+https') create_stores /opt/stack/glance/glance/store/__init__.py:173
2014-02-25 17:09:17.087 24970 DEBUG glance.store.base [-] Late loading location class glance.store.s3.StoreLocation get_store_location_class /opt/stack/glance/glance/store/base.py:82
2014-02-25 17:09:17.087 24970 DEBUG glance.store.location [-] Registering scheme s3 with {'store_class': <class 'glance.store.s3.Store'>, 'location_class': <class 'glance.store.s3.StoreLocation'>} register_scheme_map /opt/stack/glance/glance/store/location.py:86
2014-02-25 17:09:17.087 24970 DEBUG glance.store.location [-] Registering scheme s3+http with {'store_class': <class 'glance.store.s3.Store'>, 'location_class': <class 'glance.store.s3.StoreLocation'>} register_scheme_map /opt/stack/glance/glance/store/location.py:86
2014-02-25 17:09:17.088 24970 DEBUG glance.store.location [-] Registering scheme s3+https with {'store_class': <class 'glance.store.s3.Store'>, 'location_class': <class 'glance.store.s3.StoreLocation'>} register_scheme_map /opt/stack/glance/glance/store/location.py:86
2014-02-25 17:09:17.088 24970 DEBUG glance.store [-] Attempting to import store glance.store.swift.Store _get_store_class /opt/stack/glance/glance/store/__init__.py:143
2014-02-25 17:09:17.090 24970 DEBUG glance.store [-] Registering store <function Store at 0x1654cf8> with schemes ('swift+https', 'swift', 'swift+http') create_stores /opt/stack/glance/glance/store/__init__.py:173
2014-02-25 17:09:17.090 24970 DEBUG glance.store.base [-] Late loading location class glance.store.swift.StoreLocation get_store_location_class /opt/stack/glance/glance/store/base.py:82
2014-02-25 17:09:17.090 24970 DEBUG glance.store.location [-] Registering scheme swift+https with {'store_class': <function Store at 0x1654cf8>, 'location_class': <class 'glance.store.swift.StoreLocation'>} register_scheme_map /opt/stack/glance/glance/store/location.py:86
2014-02-25 17:09:17.090 24970 DEBUG glance.store.location [-] Registering scheme swift+http with {'store_class': <function Store at 0x1654cf8>, 'location_class': <class 'glance.store.swift.StoreLocation'>} register_scheme_map /opt/stack/glance/glance/store/location.py:86
2014-02-25 17:09:17.091 24970 DEBUG glance.store.location [-] Registering scheme swift with {'store_class': <function Store at 0x1654cf8>, 'location_class': <class 'glance.store.swift.StoreLocation'>} register_scheme_map /opt/stack/glance/glance/store/location.py:86
2014-02-25 17:09:17.091 24970 DEBUG glance.store [-] Attempting to import store glance.store.sheepdog.Store _get_store_class /opt/stack/glance/glance/store/__init__.py:143
2014-02-25 17:09:17.092 24970 DEBUG glance.openstack.common.processutils [-] Running cmd (subprocess): collie execute /opt/stack/glance/glance/openstack/common/processutils.py:142
2014-02-25 17:09:17.115 24970 DEBUG glance.store [-] Registering store <class 'glance.store.sheepdog.Store'> with schemes ('sheepdog',) create_stores /opt/stack/glance/glance/store/__init__.py:173
2014-02-25 17:09:17.115 24970 DEBUG glance.store.base [-] Late loading location class glance.store.sheepdog.StoreLocation get_store_location_class /opt/stack/glance/glance/store/base.py:82
2014-02-25 17:09:17.116 24970 DEBUG glance.store.location [-] Registering scheme sheepdog with {'store_class': <class 'glance.store.sheepdog.Store'>, 'location_class': <class 'glance.store.sheepdog.StoreLocation'>} register_scheme_map /opt/stack/glance/glance/store/location.py:86
2014-02-25 17:09:17.116 24970 DEBUG glance.store [-] Attempting to import store glance.store.cinder.Store _get_store_class /opt/stack/glance/glance/store/__init__.py:143
2014-02-25 17:09:17.353 24970 WARNING glance.store.base [-] Failed to configure store correctly: Store cinder could not be configured correctly. Reason: Cinder storage requires a context. Disabling add method.
2014-02-25 17:09:17.353 24970 DEBUG glance.store [-] Registering store <class 'glance.store.cinder.Store'> with schemes ('cinder',) create_stores /opt/stack/glance/glance/store/__init__.py:173
2014-02-25 17:09:17.353 24970 DEBUG glance.store.base [-] Late loading location class glance.store.cinder.StoreLocation get_store_location_class /opt/stack/glance/glance/store/base.py:82
2014-02-25 17:09:17.353 24970 DEBUG glance.store.location [-] Registering scheme cinder with {'store_class': <class 'glance.store.cinder.Store'>, 'location_class': <class 'glance.store.cinder.StoreLocation'>} register_scheme_map /opt/stack/glance/glance/store/location.py:86
2014-02-25 17:09:17.353 24970 DEBUG glance.api.policy [-] Loading policy from /etc/glance/policy.json _read_policy_file /opt/stack/glance/glance/api/policy.py:107
2014-02-25 17:09:17.354 24970 DEBUG glance.api.policy [-] Loaded policy rules: {u'get_task': '@', u'get_image_location': '@', u'add_image': '@', u'modify_image': '@', u'manage_image_cache': 'role:admin', u'delete_member': '@', u'get_member': '@', u'delete_image': '@', u'publicize_image': '@', u'get_images': '@', u'add_member': '@', u'set_image_location': '@', u'get_image': '@', u'modify_member': '@', u'context_is_admin': 'role:admin', u'upload_image': '@', u'modify_task': '@', u'get_members': '@', u'get_tasks': '@', u'add_task': '@', u'default': '@', u'delete_image_location': '@', u'copy_from': '@', u'download_image': '@'} load_rules /opt/stack/glance/glance/api/policy.py:86
2014-02-25 17:09:17.354 24970 DEBUG glance.common.config [-] Loading glance-api-keystone+cachemanagement from /etc/glance/glance-api-paste.ini load_paste_app /opt/stack/glance/glance/common/config.py:176
2014-02-25 17:09:18.318 24970 DEBUG glance.api.policy [-] Loading policy from /etc/glance/policy.json _read_policy_file /opt/stack/glance/glance/api/policy.py:107
2014-02-25 17:09:18.319 24970 DEBUG glance.api.policy [-] Loaded policy rules: {u'get_task': '@', u'get_image_location': '@', u'add_image': '@', u'modify_image': '@', u'manage_image_cache': 'role:admin', u'delete_member': '@', u'get_member': '@', u'delete_image': '@', u'publicize_image': '@', u'get_images': '@', u'add_member': '@', u'set_image_location': '@', u'get_image': '@', u'modify_member': '@', u'context_is_admin': 'role:admin', u'upload_image': '@', u'modify_task': '@', u'get_members': '@', u'get_tasks': '@', u'add_task': '@', u'default': '@', u'delete_image_location': '@', u'copy_from': '@', u'download_image': '@'} load_rules /opt/stack/glance/glance/api/policy.py:86
2014-02-25 17:09:18.339 24970 DEBUG stevedore.extension [-] found extension EntryPoint.parse('qpid = oslo.messaging._drivers.impl_qpid:QpidDriver') _load_plugins /opt/stack/stevedore/stevedore/extension.py:156
2014-02-25 17:09:18.339 24970 DEBUG stevedore.extension [-] found extension EntryPoint.parse('zmq = oslo.messaging._drivers.impl_zmq:ZmqDriver') _load_plugins /opt/stack/stevedore/stevedore/extension.py:156
2014-02-25 17:09:18.339 24970 DEBUG stevedore.extension [-] found extension EntryPoint.parse('kombu = oslo.messaging._drivers.impl_rabbit:RabbitDriver') _load_plugins /opt/stack/stevedore/stevedore/extension.py:156
2014-02-25 17:09:18.340 24970 DEBUG stevedore.extension [-] found extension EntryPoint.parse('rabbit = oslo.messaging._drivers.impl_rabbit:RabbitDriver') _load_plugins /opt/stack/stevedore/stevedore/extension.py:156
2014-02-25 17:09:18.340 24970 DEBUG stevedore.extension [-] found extension EntryPoint.parse('fake = oslo.messaging._drivers.impl_fake:FakeDriver') _load_plugins /opt/stack/stevedore/stevedore/extension.py:156
2014-02-25 17:09:18.340 24970 CRITICAL glance [-] Failed to load transport driver "glance.openstack.common.rpc.impl_kombu": No 'oslo.messaging.drivers' driver found, looking for 'glance.openstack.common.rpc.impl_kombu'
g-api failed to start
I think the error is caused by the last line:
Failed to load transport driver "glance.openstack.common.rpc.impl_kombu": No 'oslo.messaging.drivers' driver found, looking for 'glance.openstack.common.rpc.impl_kombu'
g-api failed to start
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1284542/+subscriptions
References