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">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">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">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/">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>+91 9866 235 130</div><br>