I was deploying a Mitaka Trusty 16.04 charm based Openstack cloud (using the cloud archives), including glance-simplestreams-sync, using keystone v3.
Once I had everything deployed, the glance-simplestreams-sync service couldn't authenticate because it's using keystone v2, not v3, as you can see from the following:
I was deploying a Mitaka Trusty 16.04 charm based Openstack cloud (using the cloud archives), including glance- simplestreams- sync, using keystone v3.
Once I had everything deployed, the glance- simplestreams- sync service couldn't authenticate because it's using keystone v2, not v3, as you can see from the following:
INFO * 08-10 23:16:01 [PID:33554] * root * glance- simplestreams- sync started. session * REQ: curl -i -X POST http:// x.y.z.240: 5000/v2. 0/tokens -H "Content-Type: application/json" -H "User-Agent: python- keystoneclient" -d '{"auth": {"passwordCrede ntials" : {"username": "image-stream", "password": "thisisnotapass word"}, "tenantId": "blahblahtenant idblahblah" }}' connectionpool * Starting new HTTP connection (1): x.y.z.240 connectionpool * Setting read timeout to None connectionpool * "POST /v2.0/tokens HTTP/1.1" 401 114 session * RESP: [401] CaseInsensitive Dict({' content- length' : '114', 'vary': 'X-Auth-Token', 'server': 'Apache/2.4.7 (Ubuntu)', 'date': 'Wed, 10 Aug 2016 23:16:01 GMT', 'www-authenticate': 'Keystone uri="http:// x.y.z.240: 5000"', 'x-openstack- request- id': 'req-f8aaf12d- 01ea-46be- 869a-6948ab3836 1b', 'content-type': 'application/json', 'x-distribution': 'Ubuntu'})
DEBUG * 08-10 23:16:01 [PID:33554] * keystoneclient.
INFO * 08-10 23:16:01 [PID:33554] * urllib3.
DEBUG * 08-10 23:16:01 [PID:33554] * urllib3.
DEBUG * 08-10 23:16:01 [PID:33554] * urllib3.
DEBUG * 08-10 23:16:01 [PID:33554] * keystoneclient.
RESP BODY: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}
DEBUG * 08-10 23:16:01 [PID:33554] * keystoneclient. session * Request returned failure status: 401 v2_0.client * Authorization Failed.
DEBUG * 08-10 23:16:01 [PID:33554] * keystoneclient.
Please update the charm to understand when its using keystone v3 and use the right auth methods.