Glance starts but does not listen - doesn't bind to configured port 9292
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openstack-manuals |
Expired
|
Undecided
|
Unassigned |
Bug Description
Hi, Ubuntu 14.04.1 LTS, all configured as described in this guide up to this section
OpenStack (Icehouse) service glance-api start and service glance-registry start report no errors.
Processes are running
But neither is listening to port 9292, and so image-create in next section fails with [Errno 111] Connection refused
Meanwhile, in /var/log/
The block contains plenty of warnings but one Error and one Critical worth attention
2014-09-24 08:35:42.527 21646 ERROR glance.
2014-09-24 08:35:42.534 21646 WARNING glance.store.base [-] Failed to configure store correctly: Store sheepdog could not be configured correctly. Reason: Error in store configuration: [Errno 2] No such file or directory Disabling add method.
2014-09-24 08:35:42.537 21646 WARNING glance.store [-] Deprecated: glance.
2014-09-24 08:35:42.552 21646 WARNING glance.store [-] Deprecated: glance.
2014-09-24 08:35:42.561 21646 WARNING glance.store.base [-] Failed to configure store correctly: Store gridfs could not be configured correctly. Reason: Missing dependencies: pymongo Disabling add method.
2014-09-24 08:35:42.564 21646 WARNING glance.store [-] Deprecated: glance.
2014-09-24 08:35:42.998 21646 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-09-24 08:35:43.002 21646 WARNING glance.store [-] Deprecated: glance.
2014-09-24 08:35:43.036 21646 WARNING glance.store [-] Deprecated: glance.
2014-09-24 08:35:43.152 21646 WARNING glance.store [-] Deprecated: glance.
2014-09-24 08:35:43.164 21646 WARNING glance.store [-] Deprecated: glance.
2014-09-24 08:35:44.287 21646 WARNING keystoneclient.
2014-09-24 08:35:44.291 21646 CRITICAL glance [-] AttributeError: 'StrOpt' object has no attribute 'type'
The CRITICAL error is raised from deep within /usr/local/
where the statement
opt_types = dict((o.dest, o.type) for o in opts)
fails. My guess is this must be a syntax error in some config file, leading to wrong/corrupt opts, which causes dict(..) call to fail.
However I edited the config files exactly as described in the guide.
No applicable/relevant comment found on the web for this error message and CRITICAL condition.
As for the ERROR, it is caused by collie not found. Installing sheepdog the error changes: now collie is found, but it now dislikes "localhost" as ip address. Which of the "localhost" strings that are spread over the Glance-related config files ? I didn't change them, and this guide is not requiring to change localhost to another string, so I was assuming these default config files were ok.
Most importantly, as per this guide, I was supposed to set up a file-based storage. Is sheepdog involved in this storage model, or is it activated by mistake? (again, I didn't change any sheepdog-related option in the Glance config files).
thanks for any advice.
description: | updated |
What version of OpenStack?