When I try to glance index, I get the following entry in my /var/log/keystone/keystone.log:
(root): 2012-10-05 10:21:24, 300 ERRPR u'tenand_id' Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/keystone/common/wsgi.py", line 184, in __call__ result = method(context, **params) File "/usr/lib/python2.7/dist-packages/keystone/service.py", line 301, in authenticate metadata=metadata_ref) File "/usr/lib/python2.7/dist-packages/keystone/common/manager.py", line 48, in _wrapper return f(*args, **kw) File "/usr/lib/python2.7/dist-packages/keystone/catalog/backends/sql.py", line 169, in get_catalog catalog[region][srv_type]['internalURL'] = internal_url % d KeyError: u'tenand_id' Any idea on what might be causing this? 2012/10/5 Daniel Oliveira <dvalbr...@gmail.com> > My glance-api-paste.ini already had the credentials when I posted the > problem. Also, my python-glance package is Essex, just like the other > openstack packages. After giving *glance -d index* as input, I noticed > something that's pretty much obvious: The error comes from the response to > the attempt at authenticating the user. I'm gonna double-check the > credentials in the config files, then gonna report here. > > 2012/10/4 Jon Thomas <jtho...@redhat.com> > >> On Thu, 2012-10-04 at 11:41 -0500, Ahmed Al-Mehdi wrote: >> > Hi Janis, >> > >> > >> > Just fyi, in the Folsom release the lines with the "%…%" in >> > glance-api.conf and glance-api-paste.ini are not present. Document >> > instructs user to add the three relevant lines to [filter.authtoken] >> > section. >> > >> It looked to me that there were some config file changes in folsom. >> >> glance index works fine for me and I have in glance-api-paste.ini >> >> [filter:authtoken] >> paste.filter_factory = keystone.middleware.auth_token:filter_factory >> delay_auth_decision = true >> admin_tenant_name = service >> admin_user = glance >> admin_password = servicepass >> >> and in glance-api.conf there is no [filter:authtoken]. However there is >> [keystone_authtoken], but it's unchanged >> >> [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% >> >> Another possiblity for the 500 error might be that the >> python-glanceclient package is essex, not folsom. I had a 500 error with >> nova that was due to the python-novaclient package being essex, while >> nova packages were folsom. >> >> > >> > Regards, >> > Ahmed. >> > >> > >> > >> > From: J?nis ?e??eris <janis.genge...@gmail.com> >> > Date: Thursday, October 4, 2012 7:24 AM >> > To: Daniel Oliveira <dvalbr...@gmail.com> >> > Cc: "openstack@lists.launchpad.net" <openstack@lists.launchpad.net> >> > Subject: Re: [Openstack] Just a newbie getting some error messages >> > >> > >> > >> > When you have fresh install you will usually have something like this >> > in glance-api.conf >> > >> > >> > [filter: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% >> > >> > >> > and something similar inside glance-api-paste.ini >> > >> > >> > So if you have these lines with %SERVICE_USER%, %SERVICE_PASSWORD%, % >> > SERVICE_TENANT_NAME%, you need to replace them all with real user >> > credentials that have been configured in Keystone. >> > >> > >> > Here you can see sample config files with the sections configured: >> > >> http://docs.openstack.org/trunk/openstack-compute/install/content/glance-api-paste-file.html >> > >> http://docs.openstack.org/trunk/openstack-compute/install/content/glance-api-conf-file.html >> > >> > On Thu, Oct 4, 2012 at 4:36 PM, Daniel Oliveira <dvalbr...@gmail.com> >> > wrote: >> > Hello Janis, >> > >> > >> > I'm not sure if I understood what I should replace. Do you >> > mean replacing, for example: >> > >> > >> > the line >> > admin_user = glance >> > in the [filter:authtoken] section >> > >> > >> > for the line >> > admin_user = %glance? >> > >> > >> > and so on for the other credentials? >> > >> > 2012/10/4 J?nis ?e??eris <janis.genge...@gmail.com> >> > Hi Daniel, >> > >> > >> > Do you have set up [filter:authtoken] section in >> > glance-api-paste.ini? You need to replace the strings >> > with percent signs with correct auth credentials. >> > >> > >> > To get more precise output use, 'glance -d index', >> > that will show additional debug information. >> > >> > On Thu, Oct 4, 2012 at 4:07 PM, Daniel Oliveira >> > <dvalbr...@gmail.com> wrote: >> > >> > Hello, >> > >> > >> > I've been trying to install OpenStack on a >> > server by following the manual installation >> > tutorial on openstack.org for Ubuntu Server >> > 12.04 (and that's the OS I'm using, >> > obviously). But when it comes to test whether >> > Glance was installed successfully >> > ( >> http://docs.openstack.org/essex/openstack-compute/install/apt/content/images-verifying-install.html), >> I get the following error message: >> > >> > >> > Failed to show index. Got error: >> > Unexpected responde: 500 >> > >> > >> > The same happens when I try to do glance >> > index, which I guess should produce no output >> > instead. I really need some help on this, >> > since I'm not that experient with linux. Sorry >> > for any grammar errors, english is not my >> > native language ^_^. Thanks in advance, >> > >> > >> > -- >> > My best regards, >> > >> > >> > Daniel Oliveira. >> > >> > >> > >> > >> > _______________________________________________ >> > Mailing list: https://launchpad.net/~openstack >> > Post to : openstack@lists.launchpad.net >> > Unsubscribe : https://launchpad.net/~openstack >> > More help : >> > https://help.launchpad.net/ListHelp >> > >> > >> > >> > >> > >> > -- >> > --janis >> > >> > >> > >> > >> > -- >> > My best regards, >> > >> > >> > Daniel Oliveira. >> > >> > >> > >> > >> > >> > >> > -- >> > --janis >> > _______________________________________________ >> > Mailing list: https://launchpad.net/~openstack >> > Post to : openstack@lists.launchpad.net >> > Unsubscribe : https://launchpad.net/~openstack >> > More help : https://help.launchpad.net/ListHelp >> >> >> > > > -- > My best regards, > > Daniel Oliveira. > > -- My best regards, Daniel Oliveira.
_______________________________________________ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp