Ask Your Question

Ravindhar's profile - activity

2017-09-18 04:48:26 -0500 received badge  Notable Question (source)
2017-09-18 04:48:26 -0500 received badge  Popular Question (source)
2017-09-18 04:47:34 -0500 received badge  Supporter (source)
2017-02-15 07:09:19 -0500 commented question glanceclient.exc.HTTPUnauthorized: 401 Unauthorized

I tried with auth_url=http://xxxxx:35357/v3 with same params which i am using in shell but getting same issue curl command gave two versions

  • "href":
    "http://XX.XX.XX.XX:5000/v3/", it is stable
  • "href":
    "http://XX.XX.XX.XX:5000/v2.0/", it
    is deprecated
2017-02-14 23:52:25 -0500 commented question glanceclient.exc.HTTPUnauthorized: 401 Unauthorized

export OS_PROJECT_DOMAIN_NAME=Default export OS_USER_DOMAIN_NAME=Default export OS_PROJECT_NAME=admin export OS_USERNAME=admin export OS_PASSWORD=root123 export OS_AUTH_URL=http://XX.XX.XX.XX:35357/v3 export OS_IDENTITY_API_VERSION=3 export OS_IMAGE_API_VERSION=2

2017-02-14 23:36:07 -0500 commented question glanceclient.exc.HTTPUnauthorized: 401 Unauthorized

@Berns Bausch : I tried with your suggestion but getting same issue

glance = glclient.Client(version='2',endpoint='http://10.51.0.80:9292', username='admin', api_key='root123', auth_url='http://10.51.0.80:5000/v2.0',project_name='admin',region_name='dev_newton')
2017-02-14 09:46:58 -0500 asked a question glanceclient.exc.HTTPUnauthorized: 401 Unauthorized

Hi All, I am able to get the list of images using CLI and horizon but when I directly connect to glance client then I am getting above exception (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.) But my credentials are correct here is my code

import glanceclient.v2.client as glclient glance = glclient.Client(version='2',endpoint='http://XX.XX.XX.XX:9292', username='admin', password='XXXX', project_id='admin', auth_url='http://XX.XX.XX.XX:5000/v2.0',project_name='admin',tenant_id='admin',tenant_name='admin',user_domain_name='Default',project_domain_name='Default',region_name='dev_newton') images = glance.images.list()