Difference between revisions of "OpenStack deployment with vagrant"

From Christoph's Personal Wiki
Jump to: navigation, search
(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...)
 
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"
  
 
[[Category:OpenStack]]
 
[[Category:OpenStack]]

Revision as of 00:03, 17 October 2015

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"