Difference between revisions of "OpenStack deployment with vagrant"
From Christoph's Personal Wiki
(New page: This article will cover the steps involved in getting OpenStack deployed using Vagrant and "<code>packstack</code>" from [https://www.rdoproject.org/ RDO]. <di...) |
|||
(One intermediate revision by the same user not shown) | |||
Line 9: | Line 9: | ||
** RDO release: rdo-release-kilo-1 (noarch; 12 May 2015) | ** RDO release: rdo-release-kilo-1 (noarch; 12 May 2015) | ||
+ | ==API calls== | ||
+ | $ ENDPOINT=<nowiki>http://192.168.100.10:5000</nowiki> | ||
+ | $ USERNAME=admin | ||
+ | $ PASSWORD=<redacted> | ||
+ | $ TOKEN=$(curl -sXPOST -H "Content-type: application/json" \ | ||
+ | -d '{"auth":{"tenantName": "admin", "passwordCredentials": \ | ||
+ | {"username": "${USERNAME}", "password": "${PASSWORD}"}}}' \ | ||
+ | "${ENDPOINT}/v2.0/tokens" | \ | ||
+ | python -c 'import sys,json;data=json.loads(sys.stdin.read());\ | ||
+ | print data["access"]["token"]["id"]') | ||
+ | |||
+ | $ curl -H"x-auth-token:$TOKEN" "${ENDPOINT}/v2.0" | ||
+ | $ curl -H"x-auth-token:$TOKEN" "${ENDPOINT}/v2.0/tenants" | ||
+ | $ curl -H"x-auth-token:$TOKEN" "${ENDPOINT}/v3/users" | ||
+ | |||
+ | ==See also== | ||
+ | * [[OpenStack deployment via packstack from RDO]] | ||
[[Category:OpenStack]] | [[Category:OpenStack]] |
Latest revision as of 19:50, 18 March 2016
This article will cover the steps involved in getting OpenStack deployed using Vagrant and "packstack
" from RDO.
WARNING: This article is very much under construction. Proceed with caution until this banner has been removed.
- Deploy assumptions:
- OS: Ubuntu 14.04.3 LTS (Trusty)
- Vagrant version: 1.7.4
- OpenStack release: "Kilo" (April 2015)
- RDO release: rdo-release-kilo-1 (noarch; 12 May 2015)
API calls
$ ENDPOINT=http://192.168.100.10:5000 $ USERNAME=admin $ PASSWORD=<redacted> $ TOKEN=$(curl -sXPOST -H "Content-type: application/json" \ -d '{"auth":{"tenantName": "admin", "passwordCredentials": \ {"username": "${USERNAME}", "password": "${PASSWORD}"}}}' \ "${ENDPOINT}/v2.0/tokens" | \ python -c 'import sys,json;data=json.loads(sys.stdin.read());\ print data["access"]["token"]["id"]')
$ curl -H"x-auth-token:$TOKEN" "${ENDPOINT}/v2.0" $ curl -H"x-auth-token:$TOKEN" "${ENDPOINT}/v2.0/tenants" $ curl -H"x-auth-token:$TOKEN" "${ENDPOINT}/v3/users"