Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
- Failed to add image. Got error:
- Response from Keystone does not contain a Glance endpoint.
- Note: Your image metadata may still be in the registry, but the image's status will likely be 'killed'.
- 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
- % Total % Received % Xferd Average Speed Time Time Time Current
- Dload Upload Total Spent Left Speed
- 100 353 0 246 100 107 6594 2868 --:--:-- --:--:-- --:--:-- 6833
- {
- "access": {
- "serviceCatalog": {},
- "token": {
- "expires": "2012-05-17T18:43:28Z",
- "id": "675946530e38459984195a23a45addac"
- },
- "user": {
- "id": "04a11d9bff8c4d779ba9ab3ee809c5d0",
- "name": "glance",
- "roles": [],
- "roles_links": [],
- "username": "glance"
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement