[PKG-Openstack-devel] Bug#740614: Bug#740614: Bug#740614: glance: does not handle requests after installation

Thomas Goirand zigo at debian.org
Tue Mar 4 15:25:11 UTC 2014


On 03/04/2014 07:55 PM, Lucas Nussbaum wrote:
> On 04/03/14 at 19:22 +0800, Thomas Goirand wrote:
>> On 03/04/2014 12:28 AM, Lucas Nussbaum wrote:
>>> Package: glance
>>> Version: 2013.2.2-2
>>> Severity: serious
>>> Justification: renders package unusable
>>>
>>> Hi,
>>>
>>> After installing glance, I get the following errors in the log:
>>> 2014-03-03 16:11:23.179 17528 WARNING glance.store.base [-] Failed to configure store correctly: Store sheepdog could not be configured correctly. Reason: Error in store configuration: Unexpected error while running command.
>>> Command: collie
>>> Exit code: 127
>>> Stdout: ''
>>> Stderr: '/bin/sh: 1: collie: not found\n' Disabling add method.
>>> 2014-03-03 16:11:23.202 17528 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-03-03 16:11:23.448 17528 WARNING keystoneclient.middleware.auth_token [-] Configuring auth_uri to point to the public identity endpoint is required; clients may not be able to authenticate against an admin endpoint
>>>
>>> Installing sheepdog fixes the first warning.
>>>
>>> installing python-cinderclient apparently fixes the second warning.
>>>
>>> Configuring auth_uri in glance-api.conf fixes the third one:
>>> [keystone_authtoken]
>>> auth_host = 127.0.0.1
>>> auth_port = 35357
>>> auth_protocol = http
>>> auth_uri = http://127.0.0.1:35357
>>>
>> If I understand well, you've been able to fix everything. How come then
>> it's a "serious" issue that makes "package unusable"?
> 
> because without additional tweaking, the package doesn't work at all?

It does work for me. Also, I find it very weird that you are suggesting
auth_uri isn't good by default, because by default (I've just checked),
there's no such directive at all shipped by the package.

The default in the package is (located in /usr/share/glance-common):

[keystone_authtoken]
auth_host = 127.0.0.1
auth_port = 35357
auth_protocol = http
admin_tenant_name = %SERVICE_TENANT_NAME%
admin_user = %SERVICE_USER%
admin_password = %SERVICE_PASSWORD%

This is the exact copy of the upstream configuration file btw. As you
can see, there's no such thing as "auth_uri" (which would otherwise
override auth_host, auth_port and auth_protocol). Also, in what you have
pasted, it seems to be missing the admin tenant information. Probably
you should just purge glance-common and reinstall it to make sure it's
configured correctly (there's debconf prompts to do that...).

I'm therefore closing the bug. Feel free to discuss the issue more
though, if you still think there's a problem in the packaging.

Cheers,

Thomas Goirand (zigo)



More information about the Openstack-devel mailing list