← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1079611] Re: Download Juju Environment Config gives wrong credentials

 

We dropped this feature a couple of releases ago; marking won't fix.

** Changed in: horizon (Ubuntu)
       Status: Triaged => Won't Fix

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1079611

Title:
  Download Juju Environment Config gives wrong credentials

Status in OpenStack Dashboard (Horizon):
  Invalid
Status in “horizon” package in Ubuntu:
  Won't Fix

Bug description:
  When I download the Juju configuration using "Download Juju
  Environment Config" in the dashboard, the EC2 credentials (combined-
  key and secret-key) are wrong. If I download using "Download EC2
  Credentials" then they are correct.

  Comparing the code for these two, they are suspiciously different:

  EC2:

          def find_or_create_access_keys(request, tenant_id):
              keys = api.keystone.list_ec2_credentials(request, request.user.id)
              for key in keys:
                  if key.tenant_id == tenant_id:
                      return key
              return api.keystone.create_ec2_credentials(request,

  Juju:

          def find_or_create_access_keys(request, tenant_id):
              keys = api.keystone.list_ec2_credentials(request, request.user.id)
              if keys:
                  return keys[0]
              else:
                  return api.keystone.create_ec2_credentials(request,

  Copying the EC2 logic into the Juju file fixes it. This is with
  version 2012.2-0ubuntu2~cloud0, but it looks like it's the same in
  trunk.

  Thanks,

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1079611/+subscriptions