Bug 1653043 - "Download ec2 credentials" option not visible even when ec2api service is enabled
Summary: "Download ec2 credentials" option not visible even when ec2api service is ena...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-django-horizon
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: ---
Assignee: Radomir Dopieralski
QA Contact: Beth White
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-25 04:04 UTC by Lars Kellogg-Stedman
Modified: 2022-01-19 15:14 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-01-19 15:10:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker OSP-10378 0 None None None 2022-01-19 15:14:53 UTC

Description Lars Kellogg-Stedman 2018-11-25 04:04:27 UTC
Description of problem:

  The option to download EC2 credentials in Horizon, on the /dashboard/project/api_access/ page, is not available even when the ec2api service is enabled.

Version-Release number of selected component (if applicable):

  python-django-horizon-13.0.1-2.el7ost.noarch

Additional info:

We have the ec2api service enabled in our Director deployment. Our deploy command line includes:

  -e $TEMPLATES/environments/services/ec2-api.yaml

With the ec2api service enabled, keystone includes the following service:

  +----------------------------------+------------+-----------------+
  | ID                               | Name       | Type            |
  +----------------------------------+------------+-----------------+
  | 65c10a45c49a44a2bdba0b5a5d2f3c29 | ec2api     | ec2api          |

Unfortunately, Horizon keys the available of the EC2 Credentials option off a service named "ec2".  E.g. here:

  https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/project/api_access/tables.py#L44

And here:

  https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/project/api_access/views.py#L203

Either horizon should be looking for the "ec2api" service, or the ec2api templates should create an "ec2" service.

Comment 1 Lars Kellogg-Stedman 2018-12-03 19:11:54 UTC
To work around this issue, one can create a dummy catalog entry for the "ec2" service type:

    EC2_URL=$(openstack endpoint list --interface public --service ec2api -f value -c URL)
    EC2_REGION=$(openstack endpoint list --interface public --service ec2api -f value -c Region)
    
    openstack service create --name ec2-compat ec2
    openstack endpoint create ec2-compat --region "$EC2_REGION" public \
      "$EC2_URL"

With this catalog entry in place, the ec2 related items will be available in the Horizon UI.


Note You need to log in before you can comment on or make changes to this bug.