Keyauth support not available for Openstack providers

Bug #1135335 reported by Antonio Rosales
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Go OpenStack Exchange
Fix Released
Medium
Данило Шеган
juju-core
Fix Released
High
Данило Шеган

Bug Description

The boiler plate template for HP Cloud has a section for key pair authentication:
    # auth-mode: keypair
    # Usually set via the env variable AWS_ACCESS_KEY_ID, but can be specified here
    # access-key: <secret>
    # Usually set via the env variable AWS_SECRET_ACCESS_KEY, but can be specified here
    # secret-key: <secret>

however when I try to use keypair authentication I get the error:
$ juju --debug bootstrap -e hpcloud
2013/02/27 18:53:59 JUJU environs/openstack: opening environment "hpcloud"
2013/02/27 18:53:59 JUJU juju bootstrap command failed: secret-key: expected nothing, got "<redacted>"
error: secret-key: expected nothing, got "<redacted>"

I am able to deploy on HP Cloud with keyparis on Py-Juju, and I successfully deployed on AWS, but I confirmed in #juju-dev authenticating with keypairs is not yet enabled. Thus, I am filing this bug to track the work to enable keypair authentication on HP Cloud (openstack).

I am running the recent released Juju-Core version: 1.9.9-2~923~quantal1

-Thanks,
Antonio

Related branches

summary: - Openstack does not support keyauth
+ Keyauth support not available for Openstack providers
Martin Packman (gz)
Changed in goose:
importance: Undecided → Medium
status: New → Triaged
Changed in goose:
assignee: nobody → Данило Шеган (danilo)
Revision history for this message
Данило Шеган (danilo) wrote :

From reading the docs at https://juju.ubuntu.com/docs/provider-configuration-openstack.html we will need to support the following env variables (everything supports being defined in environment.yaml):

 * "access_key": NOVA_API_KEY env variable
 * "secret_key": EC2_SECRET_KEYS env variable (or AWS_SECRET_ACCESS_KEY, judging by code of JujuPy [providers/openstack/credentials.py])
 * "project-name": OS_TENANT_NAME (but also NOVA_PROJECT_NAME, NOVA_PROJECT_ID)
 * "authorized-keys": not part of the credentials, and I assume it's already supported (documenting it for the sake of completeness)

Revision history for this message
Данило Шеган (danilo) wrote :
Changed in juju-core:
assignee: nobody → Данило Шеган (danilo)
status: New → Incomplete
Changed in juju-core:
status: Incomplete → In Progress
Changed in goose:
status: Triaged → In Progress
Changed in goose:
status: In Progress → Fix Committed
Changed in juju-core:
status: In Progress → Fix Committed
Tim Penhey (thumper)
Changed in juju-core:
status: Fix Committed → Fix Released
Changed in goose:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.