<div>Hi!</div><div><br></div><div>Do you use special service users or admin_token for services auth in keystone?</div><div><br></div>Anyway you need to check glance configuration files.<div><br></div><div><b>glance-api-paste.ini, glance-registry-paste.ini</b></div>
<div><br></div><div><div>[filter:authtoken]</div><div>paste.filter_factory = keystone.middleware.auth_token:filter_factory</div><div>service_protocol = http</div><div>service_host = 127.0.0.1</div><div>service_port = 5000</div>
<div>auth_host = 127.0.0.1</div><div>auth_port = 35357</div><div>auth_protocol = http</div><div>auth_uri = <a href="http://127.0.0.1:5000/">http://127.0.0.1:5000/</a></div><div><i><b>admin_tenant_name = service</b></i></div>
<div><i><b>admin_user = glance</b></i></div><div><i><b>admin_password = glance</b></i></div><div><i><b><br></b></i></div><div><i><b>or </b></i></div><div><i><b><br></b></i></div><div><i><b>admin_token = ADMIN</b></i></div>
<div><br></div><div>Also check that <b>glance-api.conf</b> and <b>glance-registry.conf</b> have this</div><div><br></div><div><div>[paste_deploy]</div><div>flavor = keystone</div></div><div><br></div><div>Thanks, Roman Sokolkov</div>
<br><div class="gmail_quote">2012/7/5 Trinath Somanchi <span dir="ltr"><<a href="mailto:trinath.somanchi@gmail.com" target="_blank">trinath.somanchi@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p>I installed Glance... While uploading image got this error...</p><div class="HOEnZb"><div class="h5">
<div class="gmail_quote">On Jul 5, 2012 5:35 PM, "Atul Jha" <<a href="mailto:Atul.Jha@csscorp.com" target="_blank">Atul.Jha@csscorp.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">






<div>
<div style="direction:ltr;font-size:10pt;font-family:Tahoma">Are you installing/working on the Glance release of Openstack?<br>
<br>
<br>
<div style="font-size:16px;font-family:Times New Roman">
<hr>
<div style="direction:ltr"><font color="#000000" face="Tahoma"><b>From:</b> openstack-bounces+atul.jha=<a href="mailto:csscorp.com@lists.launchpad.net" target="_blank">csscorp.com@lists.launchpad.net</a> [openstack-bounces+atul.jha=<a href="mailto:csscorp.com@lists.launchpad.net" target="_blank">csscorp.com@lists.launchpad.net</a>] on behalf of Trinath Somanchi [<a href="mailto:trinath.somanchi@gmail.com" target="_blank">trinath.somanchi@gmail.com</a>]<br>


<b>Sent:</b> Thursday, July 05, 2012 5:14 PM<br>
<b>To:</b> <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
<b>Subject:</b> [Openstack] Glance Image Upload error.<br>
</font><br>
</div>
<div></div>
<div>Hi-<br>
<br>
I have followed this document page to upload images into glance.<br>
<br>
<a href="http://docs.openstack.org/diablo/openstack-compute/install/content/uploading-to-glance.html" target="_blank">http://docs.openstack.org/diablo/openstack-compute/install/content/uploading-to-glance.html</a><br>
<br>
I have issued the commands as below following the document above.<br>
<br>
<b>root@OpenstackController:~/Image# curl -d '{"auth":{"passwordCredentials":{"username": "admin", "password": "admin"}}}' -H "Content-type: application/json"
<a href="http://10.232.90.82:35357/v2.0/tokens" target="_blank">http://10.232.90.82:35357/v2.0/tokens</a> | python -mjson.tool<br>
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current<br>
                                 Dload  Upload   Total   Spent    Left  Speed<br>
100   319    0   244  100    75    548    168 --:--:-- --:--:-- --:--:--   548<br>
{<br>
    "access": {<br>
        "serviceCatalog": {}, <br>
        "token": {<br>
            "expires": "2012-07-06T09:43:20Z", <br>
            "id": "ab758cd3be864b17821ce073ea4358e5"<br>
        }, <br>
        "user": {<br>
            "id": "668f5d9ca716417fa16208828c5acea8", <br>
            "name": "admin", <br>
            "roles": [], <br>
            "roles_links": [], <br>
            "username": "admin"<br>
        }<br>
    }<br>
}<br>
<br>
<br>
</b>But, I'm getting the following error<br>
<br>
<b>root@OpenstackController:~/Image# glance add -A ab758cd3be864b17821ce073ea4358e5 name="kernel" is_public=true container_format=bare disk_format=raw < uImage<br>
=============================================================================================================================[100%] 35.0M/s, ETA  0h  0m  0s<br>
Uploading image 'kernel'<br>
Failed to add image. Got error:<br>
You are not authenticated.<br>
Details: 401 Unauthorized<br>
<br>
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.<br>


<br>
 Authentication required  <br>
</b><br>
<br>
<br>
This error might occur when there exists an error in environmental variables.<br>
<br>
But when I access the env vars they are accessible and not other errors exists.<br>
<br>
The following ENV vars are set.<br>
<br>
<b>export SERVICE_ENDPOINT=<a href="http://localhost:35357/v2.0" target="_blank">http://localhost:35357/v2.0</a><br>
export SERVICE_TOKEN=admin<br>
export OS_TENANT_NAME=admin<br>
export OS_USERNAME=admin<br>
export OS_PASSWORD=admin<br>
export OS_AUTH_URL="<a href="http://localhost:5000/v2.0/" target="_blank">http://localhost:5000/v2.0/</a>"<br>
</b><br>
Can you any one kindly help me on debugging/solving this issue.<br>
<br>
Thanking you,<br clear="all">
<br>
-- <br>
Regards,<br>
----------------------------------------------<br>
Trinath Somanchi,
<div><a href="tel:%2B91%209866%20235%20130" value="+919866235130" target="_blank">+91 9866 235 130</a></div>
<br>
</div>
</div>
</div>
<a href="http://www.csscorp.com/common/email-disclaimer.php" target="_blank">http://www.csscorp.com/common/email-disclaimer.php</a>
</div>

</blockquote></div>
</div></div><br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Regards, Roman Sokolkov<br>
</div>