Ask Your Question
0

glance image list failing after adding second control node

asked 2014-04-02 04:44:40 -0500

somesh gravatar image

updated 2014-08-19 12:53:13 -0500

briancline gravatar image

When there is one control node i.e control01, all commands related to glance and nova are working. I am able to create network, launch instances. But when I add another control node i.e control02, all the commands related to glance and nova is failing. Keystone is returning proper response.

172.17.2.201 is virtual ip Following is the response for all the commands :

keystone --os-username=admin --os-password=password --os-tenant-name=admin --os-auth-url=http://172.17.2.91:35357/v2.0 token-get
+-----------+------------------------------------------------------------------------------------------------+
|  Property |                                                                                                                                        Value                                                                                                               
                 |
+-----------+------------------------------------------------------------------------------------------------+
|  expires                                                                                                  
2014-04-03T09:23:17Z                                                                                                                              |

|     id    |     MIIK9gYJKoZIhvcNAQcCoIIK5zCCCuMCAQExCTAHBgUrDgMCGjCCCUwGCSqGSIb3DQEHAaCCCT0Eggk5eyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxNC0wNC0wMlQwOToyMzoxNy42OTM3OTciLCAiZXhwaXJlcyI6ICIyMDE0LTA0LTAzVDA5OjIzOjE3WiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogImFkbWluIHRlbmFudCIsICJlbmFibGVkIjogdHJ1ZSwgImlkIjogIjAzYTgwZTY1OGViNTQ1YmE5YTQ4M2YyNWFhYzhmZmFkIiwgIm5hbWUiOiAiYWRtaW4ifX0sICJzZXJ2aWNlQ2F0YWxvZyI6IFt7ImVuZHBvaW50cyI6IFt7ImFkbWluVVJMIjogImh0dHA6Ly8xNzIuMTcuMi4yMDE6ODc3NC92Mi8wM2E4MGU2NThlYjU0NWJhOWE0ODNmMjVhYWM4ZmZhZCIsICJyZWdpb24iOiAiUmVnaW9uT25lIiwgImludGVybmFsVVJMIjogImh0dHA6Ly8xNzIuMTcuMi4yMDE6ODc3NC92Mi8wM2E4MGU2NThlYjU0NWJhOWE0ODNmMjVhYWM4ZmZhZCIsICJpZC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ly8xNzIuMTcuMi4yMDE6NTAwMC92Mi4wIn1dLCAiZW5kcG9pbnRzX2xpbmtzIjogW10sICJ0eXBlIjogImlkZW50aXR5IiwgIm5hbWUiOiAia2V5c3RvbmUifV0sICJ1c2VyIjogeyJ1c2VybmFtZSI6ICJhZG1pbiIsICJyb2xlc19saW5rcyI6IFtdLCAiaWQiOiAiZmU2NDRiNTk3MjJkNDM4ZjkxN2NkMDUxZTdlNjMyNjkiLCAicm9sZXMiOiBbeyJuYW1lIjogImFkbWluIn1dLCAibmFtZSI6ICJhZG1pbiJ9LCAibWV0YWRhdGEiOiB7ImlzX2FkbWluIjogMCwgInJvbGVzIjogWyIxYmFkMzM3OWY1NDc0ZGJhOTU2ZmM1M2RjYzVkOGI5ZSJdfX19MYIBgTCCAX0CAQEwXDBXMQswCQYDVQQGEwJVUzEOMAwGA1UECAwFVW5zZXQxDjAMBgNVBAcMBVVuc2V0MQ4wDAYDVQQKDAVVbnNldDEYMBYGA1UEAwwPd3d3LmV4YW1wbGUuY29tAgEBMAcGBSsOAwIaMA0GCSqGSIb3DQEBAQUABIIBALpkK1vzlDIf0tQwDU9z+iyyRqUq-+R2DAu+62o4suRKvJGSo8XrLGtaRbzdpxKwseRdOslTgm4eL0vR6DtkxXmEnKEolI0fuoC+S+NyzETJ77OAxutU9Nhwcj-dlY-vWM1uDlWSSp5jx+BCY5DZouqNWCFJMdrNVur5prbFdRo7K+y1csWy2PVWpQUnvAu7gYOK9QTUTqQsgQ5sQguSkWr6F10VNB-+BdKYoY0d6HTPqXXvRz8VL9eebpm6hNTXrG5aeuAQJnIJvWIMEf+Ma2I0gwOx7I8N+gVUPVAqBRwwTDV6RECSSt0HMecWpqWfS4ZTOrx0qjiQnsV5jQiwrKs= |
| tenant_id |                                                                                                                        
03a80e658eb545ba9a483f25aac8ffad                                                                                                                       |

|  user_id  |                                                                                                                           fe644b59722d438f917cd051e7e63269                                                                                                                                                                                            
+-----------+------------------------------------------------------------------------------------------------+

keystone role list output:

keystone --os-token=keystone_admin_token --os-endpoint=http://172.17.2.201:35357/v2.0 role-list
+----------------------------------+----------+
|                id                |   name   |
+----------------------------------+----------+
| 9fe2ff9ee4384b1894a90878d3e92bab | _member_ |
| 1bad3379f5474dba956fc53dcc5d8b9e |  admin   |
+----------------------------------+----------+

keystone endpoint-list output

keystone --os-token=keystone_admin_token --os-endpoint=http://172.17.2.201:35357/v2.0 endpoint-list

+----------------------------------+-----------+-------------------------------------------+-------------------------------------------+-------------------------------------------+-------    |                id                |   region  |                 publicurl                 |                internalurl                |                          adminurl                 |            service_id            |
+----------------------------------+-----------+-------------------------------------------+-------------------------------------------+---------------------------------    
| 232591e0243b4cf49073cf2e98d757e9 | RegionOne |         http://172.17.2.201:9696/         |         http://172.17.2.201:9696/             |         http://172.17.2.201:9696/         | e9982714eea54ea1b9b15eb84c10c314 |
| 30118b5906f8441da46079ec24652be2 | RegionOne |       http://172.17.2.201:5000/v2.0       |       http://172.17.2.201:5000/v2.0       |       http://172.17.2.201:35357/v2.0      | 64862b99adae42f4b8d964b2aaa7e9c6 |
| 51e31a92a765473389c1705c7e24ab4f | RegionOne | http://172.17.2.201:8774/v2/%(tenant_id)s | http://172.17.2.201:8774    /v2/%(tenant_id)s | http://172.17.2.201:8774/v2/%(tenant_id)s | eac2d117cbd14bec9fc7a0f12a3a43b4 |
| 54d37aa4da6c4d1da4ff6bfc011e6954 | RegionOne |          http://172.17.2.201:9292         |          http://172.17.2.201:9292             |          http://172.17.2.201:9292         | 7341849119ef4be8ba72ec600ed8f47c |
| 609c3e932cb64d21985a4dd75a85242a | RegionOne |  http://172.17.2.201:8773/services/Cloud  |  http://172.17.2.201:8773/services/Cloud  |  http://172.17.2.201:8773/services/Admin  | d91e21b6e66c44d3a2a03551e5d38f75 |
| 800c0d12036642c88be320bbd7224dfb | RegionOne | http://172.17.2.201:8776/v1/%(tenant_id)s | http://172.17.2.201:8776/v1/%(tenant_id)s | http://172.17.2.201:8776/v1/%(tenant_id)s | 5254b6e4e169466a937e3827501b8215 |
+----------------------------------+-----------+-------------------------------------------+-------------------------------------------+-------------------------------------------+-------    ---------------------------+

keystone service-list output:

keystone --os-token=keystone_admin_token --os-endpoint=http://172.17.2.201:35357/v2.0 service-list

+----------------------------------+----------+----------+----------------------------+
|                id                |   name   |   type   |        description         |
+----------------------------------+----------+----------+----------------------------+
| 5254b6e4e169466a937e3827501b8215 |  cinder  |  volume  |       Cinder Service       |
| 7341849119ef4be8ba72ec600ed8f47c |  glance  |  image   |  Openstack Image Service   |
| 64862b99adae42f4b8d964b2aaa7e9c6 | keystone | identity | OpenStack Identity Service |
| e9982714eea54ea1b9b15eb84c10c314 | neutron  | network  | Neutron Networking Service |
| e3cb7997b6924c508d58e62766b868ea |   nova   | compute  | Openstack Compute Service  |
| eac2d117cbd14bec9fc7a0f12a3a43b4 |   nova   | compute  | Openstack Compute Service  |
| d91e21b6e66c44d3a2a03551e5d38f75 | nova_ec2 |   ec2    |        EC2 Service         |
+----------------------------------+----------+----------+----------------------------+

Glance image list output: When auth-url is url of control01 node

glance --debug --os-username=admin --os-password=password --os-tenant-name=admin --os-auth-url=http://172.17.2.91:35357/v2.0 image-list
curl -i -X GET -H 'X-Auth-Token:     MIIK9gYJKoZIhvcNAQcCoIIK5zCCCuMCAQExCTAHBgUrDgMCGjCCCUwGCSqGSIb3DQEHAaCCCT0Eggk5eyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxNC0wNC0wMlQwOToyODo0My4xOTc2MDkiLCAiZXhwaXJlcyI6ICIyMDE0LTA0LTAzVDA5OjI4OjQzWiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogImFkbWluIHRlbmFudCIsICJlbmFibGVkIjogdHJ1ZSwgImlkIjogIjAzYTgwZTY1OGViNTQ1YmE5YTQ4M2YyNWFhYzhmZmFkIiwgIm5hbWUiOiAiYWRtaW4ifX0sICJzZXJ2aWNlQ2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BWc+0wQAAisbOio-T2VN59e8Vq0TjYEgL7HdjjFd0ESBgOfZQDNsHsZlwEc3fRmiX9Ozoig7Rj3bYkLVDPVQz4ZiB1n0rSBlO74dfBdVWkGxjVL+C6SbXoVbqO5-n2IWoLrPTA=' -H 'Content-Type: application/json' -H 'User-Agent: python-glanceclient' http://172.17.2.201:9292/v1/images/detail?sort_key=name&sort_dir=asc&limit=20

HTTP/1.1 500 Internal Server Error
date: Wed, 02 Apr 2014 09:28:43 GMT
content-length: 0
content-type: text/plain
connection: close

Request returned failure status.
HTTPInternalServerError (HTTP 500)

Glance image list output when auth url is of control02 node or auth-url= 172.17.2.201 i.e virtual ip

 glance --debug --os-username=admin --os-password=password --os-tenant-name=admin --os-auth-url=http://172.17.2.92:35357/v2.0 image-list ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-04-02 12:02:04 -0500

Trump.zhang gravatar image

updated 2014-04-02 12:02:28 -0500

Can you try this:

  1. Get token from keystone through your vip? It seems you got token from keystone through one controller other than vip above.

  2. Use the token to access glance service through vip

edit flag offensive delete link more

Comments

I tried that, both returns same token, and even after that still glance throws same error

somesh gravatar imagesomesh ( 2014-04-02 23:40:56 -0500 )edit

Did you resolve this issue? I am also facing similar issue. When I run "openstack image list", I get "Unauthorized (HTTP 401)" error. I have 3 controllers with 2 load balancers (haproxy).

Elangovan Anganann gravatar imageElangovan Anganann ( 2017-06-21 21:12:34 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-04-02 04:44:40 -0500

Seen: 236 times

Last updated: Apr 02 '14