[openstack-dev] horizon folsom issue getting service catalog

andi abes andi.abes at gmail.com
Sun Jan 27 14:53:47 UTC 2013


I suspect the issue was that dash hit the service catalog before nova was
fully installed and registered in keystone, and the service catalog was
cached somewhere that I didn't know how to flush.


by the time everything is working ok, I do have a ""good"" set of endpoints:
+----------------------------------+-----------+--------------------------------------------+---------------------------------------------+---------------------------------------------+
|                id                |   region  |                 publicurl
                 |                 internalurl                 |
        adminurl                  |
+----------------------------------+-----------+--------------------------------------------+---------------------------------------------+---------------------------------------------+
| 0dcd4995507c4df88e8aafb9b273ba9d | RegionOne |
http://192.168.122.2:8774/v2/$(tenant_id)s |
http://192.168.124.81:8774/v2/$(tenant_id)s |
http://192.168.124.81:8774/v2/$(tenant_id)s |
| 35310295d0034bbebdc76804025c2697 | RegionOne |
http://192.168.122.2:8773/services/Cloud  |
http://192.168.124.81:8773/services/Cloud  |
http://192.168.124.81:8773/services/Admin  |
| 6fb4966b165c412d8b75eab15335ab0d | RegionOne |
http://192.168.122.3:9292/v1        |
http://192.168.124.82:9292/v1       |
http://192.168.124.82:9292/v1        |
| b3daccc34a8b4b2799fb572e1277a4ce | RegionOne |
http://192.168.122.2:5000/v2.0       |
http://192.168.124.81:5000/v2.0      |
http://192.168.124.81:35357/v2.0      |
| ee081b39ce9245f3b08a34884c78952c | RegionOne |
http://192.168.122.2:8776/v1/$(tenant_id)s |
http://192.168.124.81:8776/v1/$(tenant_id)s |
http://192.168.124.81:8776/v1/$(tenant_id)s |
| f71e5d10e65a412e97d5c779f507f3d7 | RegionOne |
http://192.168.122.2:8776/v1/$(tenant_id)s |
http://192.168.124.81:8776/v1/$(tenant_id)s |
http://192.168.124.81:8776/v1/$(tenant_id)s |
+----------------------------------+-----------+--------------------------------------------+---------------------------------------------+---------------------------------------------+



On Sun, Jan 27, 2013 at 12:04 AM, Dolph Mathews <dolph.mathews at gmail.com>wrote:

> The other half of the service catalog is the endpoints themselves; what
> does your endpoint-list look like?
>
>   # keystone endpoint-list
>
>
> -Dolph
>
>
> On Sat, Jan 26, 2013 at 5:34 PM, andi abes <andi.abes at gmail.com> wrote:
>
>> I hitting a funny condition, where dash fails to display /syspanel, with
>> the exception below.
>> I tried restarting things (apache, memcache) to no avail:
>>
>> [Sat Jan 26 16:40:13 2013] [error]     self.usage_list =
>> self.get_usage_list(start, end)
>> [Sat Jan 26 16:40:13 2013] [error]   File
>> "/usr/lib/python2.7/dist-packages/horizon/usage/base.py", line 128, in
>> get_usage_list
>> [Sat Jan 26 16:40:13 2013] [error]     return
>> api.usage_list(self.request, start, end)
>> [Sat Jan 26 16:40:13 2013] [error]   File
>> "/usr/lib/python2.7/dist-packages/horizon/api/nova.py", line 418, in
>> usage_list
>> [Sat Jan 26 16:40:13 2013] [error]     return [Usage(u) for u in
>> novaclient(request).usage.list(start, end, True)]
>> [Sat Jan 26 16:40:13 2013] [error]   File
>> "/usr/lib/python2.7/dist-packages/horizon/api/nova.py", line 200, in
>> novaclient
>> [Sat Jan 26 16:40:13 2013] [error]     (request.user.token.id,
>> url_for(request, 'compute')))
>> [Sat Jan 26 16:40:13 2013] [error]   File
>> "/usr/lib/python2.7/dist-packages/horizon/api/base.py", line 118, in url_for
>> [Sat Jan 26 16:40:13 2013] [error]     raise
>> exceptions.ServiceCatalogException(service_type)
>> [Sat Jan 26 16:40:13 2013] [error] ServiceCatalogException: Invalid
>> service catalog service: compute
>>
>> However, keystone service-list happily displays
>> root at d08-00-27-2d-c3-5c:~# keystone service-list
>>
>> +----------------------------------+-------------+----------+-------------------------------+
>> |                id                |     name    |   type   |
>>  description          |
>>
>> +----------------------------------+-------------+----------+-------------------------------+
>> | 34bc1094f51040bcb3ed74f48fc29b91 |    cinder   |  volume  |
>>  Openstack Cinder Service   |
>> | 49c1b6f3bec641fca058f9926d22c9db |     ec2     |   ec2    |    EC2
>> Compatibility Layer    |
>> | 8100f46e5ae7480db3901af157f6fbbf |    glance   |  image   |
>>  Openstack Glance Service   |
>> | a88aaf3dcdf9489cb3e5d2e2f78f33e1 |   keystone  | identity |   Openstack
>> Identity Service  |
>> | bae925f91af7457bb0b4a90bac2624d3 |     nova    | compute  |
>> Openstack Nova Service    |
>> | eafb5e26b0934066876cf7870ae81928 | nova-volume |  volume  | Openstack
>> Nova Volume Service |
>>
>> +----------------------------------+-------------+----------+-------------------------------+
>>
>>
>> Thoughts?
>>
>> _______________________________________________
>> OpenStack-dev mailing list
>> OpenStack-dev at lists.openstack.org
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>>
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130127/bcd1f013/attachment.html>


More information about the OpenStack-dev mailing list