Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Difference in authtoken for different control nodes

I have two control nodes: control01: 172.17.2.91; and control02 : 172.17.2.92

Glance image list was failing.For more detail of glance error check this link So in control01 and control02 , I modified the keystone_auth in glance-api.conf and glance-registry.conf as below:

control01

[keystone_authtoken]
auth_host = 172.17.2.91
auth_port = 35357
auth_protocol = http
admin_tenant_name = services
admin_user = glance
admin_password = password
auth_uri=http://172.17.2.91:5000/

control02

[keystone_authtoken]
auth_host = 172.17.2.91
auth_port = 35357
auth_protocol = http
admin_tenant_name = services
admin_user = glance
admin_password = password
auth_uri=http://172.17.2.91:5000/

Now I executed glance image list command on both controllers. Control01 returned image list but control02 didn't. Below is the detail output:

control01

glance --debug --os-username=admin --os-password=pramati123 --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: MIIK9gYJKoZIhvcNAQcCoIIK5zCCCuMCAQExCTAHBgUrDgMCGjCCCUwGCSqGSIb3DQEHAaCCCT0Eggk5eyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxNC0wNC0wM1QwNjowMTozNy45MTc3MDEiLCAiZXhwaXJlcyI6ICIyMDE0LTA0LTA0VDA2OjAxOjM3WiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogImFkbWluIHRlbmFudCIsICJlbmFibGVkIjogdHJ1ZSwgImlkIjogIjk0NDhkYTg4OTMyNDRmYzZhMmI1ZDdiY2RmYjYzNzkzIiwgIm5hbWUiOiAiYWRtaW4ifX0sICJzZXJ2aWNlQ2F0YWxvZyI6IFt7ImVuZHBvaW50cyI6IFt7ImFkbWluVVJMIjogImh0dHA6Ly8xNzIuMTcuMi4yMDE6ODc3NC92Mi85NDQ4ZGE4ODkzMjQ0ZmM2YTJiNWQ3YmNkZmI2Mzc5MyIsICJyZWdpb24iOiAiUmVnaW9uT25lIiwgImludG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ient' http://172.17.2.201:9292/v1/images/detail?sort_key=name&sort_dir=asc&limit=20

HTTP/1.1 200 OK
date: Thu, 03 Apr 2014 06:01:38 GMT
content-length: 459
content-type: application/json; charset=UTF-8
x-openstack-request-id: req-808941c8-e3b0-4d44-ab22-8b4d3d1d2d78

{"images": [{"status": "active", "name": "cirros", "deleted": false, "container_format": "bare", "created_at": "2014-04-02T12:43:49", "disk_format": "qcow2", "updated_at": "2014-04-02T12:43:50", "min_disk": 0, "protected": false, "id": "3f56948e-27c7-4c54-bad6-a8a230c277a9", "min_ram": 0, "checksum": "d972013792949d0d3ba628fbe8685bce", "owner": "9448da8893244fc6a2b5d7bcdfb63793", "is_public": true, "deleted_at": null, "properties": {}, "size": 13147648}]}

+--------------------------------------+--------+-------------+------------------+----------+--------+
| ID                                   | Name   | Disk Format | Container Format | Size     | Status |
+--------------------------------------+--------+-------------+------------------+----------+--------+
| 3f56948e-27c7-4c54-bad6-a8a230c277a9 | cirros | qcow2       | bare             | 13147648 | active |
+--------------------------------------+--------+-------------+------------------+----------+--------+

control02

glance --debug --os-username=admin --os-password=pramati123 --os-tenant-name=admin --os-auth-url=http://172.17.2.92:35357/v2.0 image-list
curl -i -X GET -H 'X-Auth-Token:     MIIK9gYJKoZIhvcNAQcCoIIK5zCCCuMCAQExCTAHBgUrDgMCGjCCCUwGCSqGSIb3DQEHAaCCCT0Eggk5eyJhY2Nlc3MiOiB7InRva2VuIjogeyJpc3N1ZWRfYXQiOiAiMjAxNC0wNC0wM1QwNjowNDo0Ni4xMDUzMTUiLCAiZXhwaXJlcyI6ICIyMDE0LTA0LTA0VDA2OjA0OjQ2WiIsICJpZCI6ICJwbGFjZWhvbGRlciIsICJ0ZW5hbnQiOiB7ImRlc2NyaXB0aW9uIjogImFkbWluIHRlbmFudCIsICJlbmFibGVkIjogdHJ1ZSwgImlkIjogIjk0NDhkYTg4OTMyNDRmYzZhMmI1ZDdiY2RmYjYzNzkzIiwgIm5hbWUiOiAiYWRtaW4ifX0s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gxbk3579Bzkbb1FHiGcrD+wADP9RHRJ7E5KE9mxTGlK83sGAHMTNvJE67mSlSPomeNXw8ow4s3RKD6143Jj5nS7aEfEcbVmqQZG9in3VOUFI02p09zEdCoCcwErEQpJ75oM6RqyXNhnlowNim2HZz++Fpnpl8ePgknujT1am1g=' -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 401 Unauthorized
date: Thu, 03 Apr 2014 06:04:46 GMT
content-length: 253
content-type: text/plain; charset=UTF-8

401 Unauthorized

This server could not verify that you are authorized to access the document you requested. Either you supplied the     wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.



Request returned failure status.
Invalid OpenStack Identity credentials.

If you notice the auth_token, there is a difference between them, which I guess should not be there. I cross-checked all the glance conf file, there is no difference.

Can any one help me out of this issue. A help would be really appreciated.