[openstack-dev] [kloudbuster] authorization failed problem

Alec Hothan (ahothan) ahothan at cisco.com
Wed Mar 23 15:35:04 UTC 2016

Hi Akshay

The URL you are using is a private address ( and is likely the reason it does not work.
If you run the kloudbuster App in the cloud, this app needs to have access to the cloud under test.
So even if you can access from your local browser (which runs on your workstation or laptop) it may not be accessible from a VM that runs in your cloud.
For that to work you need to get an URL that is reachable from the VM.

In some cases where the cloud under test is local, it is easier to just run kloudbuster locally as well (from the same place where you can ping
You can either use a local VM to run the kloudbuster image (vagrant, virtual box...) or just simpler, install kloudbuster locally using git clone or pip install (see the installation instructions in the doc http://kloudbuster.readthedocs.org/en/latest/).



From: Akshay Kumar Sanghai <akshaykumarsanghai at gmail.com<mailto:akshaykumarsanghai at gmail.com>>
Reply-To: "openstack-dev at lists.openstack.org<mailto:openstack-dev at lists.openstack.org>" <openstack-dev at lists.openstack.org<mailto:openstack-dev at lists.openstack.org>>
Date: Wednesday, March 23, 2016 at 6:59 AM
To: "Yichen Wang (yicwang)" <yicwang at cisco.com<mailto:yicwang at cisco.com>>, "openstack-dev at lists.openstack.org<mailto:openstack-dev at lists.openstack.org>" <openstack-dev at lists.openstack.org<mailto:openstack-dev at lists.openstack.org>>
Subject: [openstack-dev] [kloudbuster] authorization failed problem


I am trying to use cloudbuster for the scale testing of openstack setup.

I have a openstack setup with 1 controller, 1 network and 2 compute node. I am trying to use to use kloudbuster for scale testing of the setup. I created one VM with kloudbuster image. I accessed the web UI and clicked on "stage". This is the log:
:23,206 WARNING No public key is found or specified to instantiate VMs. You will not be able to access the VMs spawned by KloudBuster.
2016-03-22 14:01:30,464 WARNING Traceback (most recent call last):
  File \"/kb_test/kloudbuster/kb_server/kb_server/controllers/api_kb.py\", line 58, in kb_stage_thread_handler
    if kb_session.kloudbuster.check_and_upload_images():
  File \"/kb_test/kloudbuster/kb_server/kb_server/controllers/../../../kloudbuster/kloudbuster.py\", line 283, in check_and_upload_images
    keystone_list = [create_keystone_client(self.server_cred)[0],
  File \"/kb_test/kloudbuster/kb_server/kb_server/controllers/../../../kloudbuster/kloudbuster.py\", line 54, in create_keystone_client
    return (keystoneclient.Client(endpoint_type='publicURL', **creds), creds['auth_url'])
  File \"/usr/local/lib/python2.7/dist-packages/keystoneclient/v2_0/client.py\", line 166, in __init__
  File \"/usr/local/lib/python2.7/dist-packages/keystoneclient/utils.py\", line 337, in inner
    return func(*args, **kwargs)
  File \"/usr/local/lib/python2.7/dist-packages/keystoneclient/httpclient.py\", line 589, in authenticate
    resp = self.get_raw_token_from_identity_service(**kwargs)
  File \"/usr/local/lib/python2.7/dist-packages/keystoneclient/v2_0/client.py\", line 210, in get_raw_token_from_identity_service
    _(\"Authorization Failed: %s\") % e)
AuthorizationFailure: Authorization Failed: Unable to establish connection to

I used a rest client to find whether v2.0/tokens is working or not, it was working. I got the token . This is the openrc file I used:
export OS_PROJECT_DOMAIN_ID=default
export OS_USER_DOMAIN_ID=default
export OS_AUTH_URL=
export OS_TENANT_NAME=admin
#export OS_PROJECT_NAME=admin
export OS_USERNAME=admin
export OS_PASSWORD=sanghai
export OS_REGION_NAME=RegionOne

Please suggest a solution and let me know if I missed some details.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160323/eae01dd1/attachment.html>

More information about the OpenStack-dev mailing list