Advertisement
Guest User

Untitled

a guest
May 16th, 2012
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. root@controller:/tmp/images# glance --os_username=adminUser --os_password=secretword --os_tenant=openstackDemo --os_auth_url=http://127.0.0.1:5000/v2.0 add name="tty-linux-kernel" disk_format=aki container_format=aki < ttylinux-uec-amd64-12.1_2.6.35-22_1-vmlinuz
  2. Failed to add image. Got error:
  3. Response from Keystone does not contain a Glance endpoint.
  4. Note: Your image metadata may still be in the registry, but the image's status will likely be 'killed'.
  5.  
  6.  
  7.  
  8. root@controller:/tmp/images# curl -d '{"auth": {"tenantName": "adminTenant", "passwordCredentials":{"username": "glance", "password": "glance"}}}' -H "Content-type: application/json" http://192.168.1.212:35357/v2.0/tokens | python -mjson.tool
  9. % Total % Received % Xferd Average Speed Time Time Time Current
  10. Dload Upload Total Spent Left Speed
  11. 100 353 0 246 100 107 6594 2868 --:--:-- --:--:-- --:--:-- 6833
  12. {
  13. "access": {
  14. "serviceCatalog": {},
  15. "token": {
  16. "expires": "2012-05-17T18:43:28Z",
  17. "id": "675946530e38459984195a23a45addac"
  18. },
  19. "user": {
  20. "id": "04a11d9bff8c4d779ba9ab3ee809c5d0",
  21. "name": "glance",
  22. "roles": [],
  23. "roles_links": [],
  24. "username": "glance"
  25. }
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement