<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Futura, sans-serif;">
<div>
<div>Hi Akshay</div>
<div><br>
</div>
<div>The URL you are using is a private address (http://192.168.138.51:5000/v2.0) and is likely the reason it does not work.</div>
<div>If you run the kloudbuster App in the cloud, this app needs to have access to the cloud under test.</div>
<div>So even if you can access 192.168.138.51 from your local browser (which runs on your workstation or laptop) it may not be accessible from a VM that runs in your cloud.</div>
<div>For that to work you need to get an URL that is reachable from the VM.</div>
<div><br>
</div>
<div>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 192.168.138.51).</div>
<div>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/).</div>
<div><br>
</div>
<div>Regards,</div>
<div><br>
</div>
<div>   Alec</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div id="MAC_OUTLOOK_SIGNATURE"></div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:12pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Akshay Kumar Sanghai <<a href="mailto:akshaykumarsanghai@gmail.com">akshaykumarsanghai@gmail.com</a>><br>
<span style="font-weight:bold">Reply-To: </span>"<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>" <<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>><br>
<span style="font-weight:bold">Date: </span>Wednesday, March 23, 2016 at 6:59 AM<br>
<span style="font-weight:bold">To: </span>"Yichen Wang (yicwang)" <<a href="mailto:yicwang@cisco.com">yicwang@cisco.com</a>>, "<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>" <<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>><br>
<span style="font-weight:bold">Subject: </span>[openstack-dev] [kloudbuster] authorization failed problem<br>
</div>
<div><br>
</div>
<blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div>
<div dir="ltr">
<p style="margin:0px 0px 0.8em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:Ubuntu,'Bitstream Vera Sans','DejaVu Sans',Tahoma,sans-serif;font-size:12px;line-height:18px">
Hi,</p>
<p style="margin:0px 0px 0.8em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:Ubuntu,'Bitstream Vera Sans','DejaVu Sans',Tahoma,sans-serif;font-size:12px;line-height:18px">
I am trying to use cloudbuster for the scale testing of openstack setup.</p>
<p style="margin:0px 0px 0.8em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:Ubuntu,'Bitstream Vera Sans','DejaVu Sans',Tahoma,sans-serif;font-size:12px;line-height:18px">
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:<br>
: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.<br>
2016-03-22 14:01:30,464 WARNING Traceback (most recent call last):<br>
  File \"/kb_test/kloudbuster/kb_server/kb_server/controllers/api_kb.py\", line 58, in kb_stage_thread_handler<br>
    if kb_session.kloudbuster.check_and_upload_images():<br>
  File \"/kb_test/kloudbuster/kb_server/kb_server/controllers/../../../kloudbuster/kloudbuster.py\", line 283, in check_and_upload_images<br>
    keystone_list = [create_keystone_client(self.server_cred)[0],<br>
  File \"/kb_test/kloudbuster/kb_server/kb_server/controllers/../../../kloudbuster/kloudbuster.py\", line 54, in create_keystone_client<br>
    return (keystoneclient.Client(endpoint_type='publicURL', **creds), creds['auth_url'])<br>
  File \"/usr/local/lib/python2.7/dist-packages/keystoneclient/v2_0/client.py\", line 166, in __init__<br>
    self.authenticate()<br>
  File \"/usr/local/lib/python2.7/dist-packages/keystoneclient/utils.py\", line 337, in inner<br>
    return func(*args, **kwargs)<br>
  File \"/usr/local/lib/python2.7/dist-packages/keystoneclient/httpclient.py\", line 589, in authenticate<br>
    resp = self.get_raw_token_from_identity_service(**kwargs)<br>
  File \"/usr/local/lib/python2.7/dist-packages/keystoneclient/v2_0/client.py\", line 210, in get_raw_token_from_identity_service<br>
    _(\"Authorization Failed: %s\") % e)<br>
AuthorizationFailure: Authorization Failed: Unable to establish connection to <a rel="nofollow" href="http://192.168.138.51:5000/v2.0/tokens" style="color:rgb(0,51,170)">http://192.168.138.51:5000/v2.0/tokens</a></p>
<p style="margin:0px 0px 0.8em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:Ubuntu,'Bitstream Vera Sans','DejaVu Sans',Tahoma,sans-serif;font-size:12px;line-height:18px">
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:<br>
export OS_PROJECT_DOMAIN_ID=default<br>
export OS_USER_DOMAIN_ID=default<br>
#export OS_IMAGE_API_VERSION=2<br>
export OS_AUTH_URL=<a rel="nofollow" href="http://192.168.138.51:5000/v2.0" style="color:rgb(0,51,170)">http://192.168.138.51:5000/v2.0</a><br>
export OS_TENANT_NAME=admin<br>
#export OS_PROJECT_NAME=admin<br>
export OS_USERNAME=admin<br>
export OS_PASSWORD=sanghai<br>
export OS_REGION_NAME=RegionOne</p>
<p style="margin:0px 0px 0.8em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:Ubuntu,'Bitstream Vera Sans','DejaVu Sans',Tahoma,sans-serif;font-size:12px;line-height:18px">
Please suggest a solution and let me know if I missed some details.</p>
<p style="margin:0px 0px 0.8em;padding:0px;width:auto;max-width:45em;color:rgb(51,51,51);font-family:Ubuntu,'Bitstream Vera Sans','DejaVu Sans',Tahoma,sans-serif;font-size:12px;line-height:18px">
Thanks,<br>
Akshay</p>
</div>
</div>
</div>
</blockquote>
</span>
</body>
</html>