[chef] how to auth knife openstack with rackspace openstack


Chronological Thread 
  • From: Cooper Simmons < >
  • To:
  • Subject: [chef] how to auth knife openstack with rackspace openstack
  • Date: Wed, 30 May 2012 23:15:29 -0500

Hello all.

I'm a little confused from the README from knife-openstack: https://github.com/opscode/knife-openstack/blob/master/README.md

I'm tripped up on the authentication piece and I'm not sure what auth items these refer to:
knife[:openstack_access_key_id]
knife[:openstack_secret_access_key]
knife[:openstack_api_endpoint]

This is the data I get back from my auth post to https://identity.api.rackspacecloud.com/v2.0/tokens
I've excerpted what I thought was relevant, and changed the names to protect the innocent.

{
  "endpoints": [
    {
      "region": "DFW",
      "tenantId": "123456",
      "versionId": "2",
    }
  ],
  "name": "cloudServersOpenStack",
  "type": "compute"
}


  "token": {
    "expires": "2012-05-31T21:18:57.000-05:00",
    "id": "fe8a9999-999a-99b1-9abc-99e9cd95682c",
    "tenant": {
      "id": "id9999",
      "name": "name99"
    }
  },
  "user": {
    "id": "654321",
    "name": "myname",
    "roles": [
      {
        "description": "User Admin Role.",
        "id": "3",
        "name": "identity:user-admin"
      }
    ]
  }


This is the data I think is relevant but I've tried various combinations of these and always get:
ERROR: Excon::Errors::Unauthorized: Expected(200) <=> Actual(401 Unauthorized)

I'm assuming
knife[:openstack_api_endpoint]      = "https://dfw.servers.api.rackspacecloud.com/v2/123456"
I was also assuming openstack_secret_access_key is my API key which is not listed above.

Any info appreciated.
Thanks!





Archive powered by MHonArc 2.6.16.

§