No EC2 credential download in Horizon?

asked 2016-12-09 09:21:57 -0500

biancogiovanni gravatar image

updated 2016-12-09 13:28:19 -0500

rbowen gravatar image

Hello,

I am having some problems with the EC2 API and/or credentials... I cannot download the EC2 credentials from:

http://<my IP address>/horizon/project/access_and_security/

i.e. there is NO button to initiate the download...

I am running OpenStack Kilo on Ubuntu 14.04.

I do have buttons to:

"Download OpenStack RC file"

"View Credentials"

"Download Juju environment file"

The ec2 is enabled in nova.conf:

enabled_apis=ec2,osapi_compute,metadata

and

ec2_private_dns_show_ip=True
ec2_host = 10.0.0.11
ec2_listen = 0.0.0.0
ec2_listen_port = 8773
ec2_path = /
ec2_port = 8773
ec2_strict_validation = True
ec2_timestamp_expiry = 300
\# ec2_workers = None   
keystone_ec2_insecure = False
keystone_ec2_url = http://localhost:5000/v2.0/ec2tokens
\# lockout_attempts = 5                                                  
\# lockout_minutes = 15  
# lockout_window = 15   
# region_list =

/etc/nova/api-paste.ini has:

#######
# EC2 #
#######

[composite:ec2]
use = egg:Paste#urlmap
/: ec2cloud

[composite:ec2cloud]
use = call:nova.api.auth:pipeline_factory
noauth = ec2faultwrap logrequest ec2noauth cloudrequest validator ec2executor
noauth2 = ec2faultwrap logrequest ec2noauth cloudrequest validator ec2executor
keystone = ec2faultwrap logrequest ec2keystoneauth cloudrequest validator ec2executor

The EC2 command work on the CLI:

jwhite@paha:~$ openstack ec2 credentials create 
+-----------+----------------------------------+
| Field     | Value                            |
+-----------+----------------------------------+
| access    | 1a2d38435c6a4c24b0398c808818239a |
| secret    | e0e759e45532403b85e5916c6b883189 |
| tenant_id | 4138af515889419ba1c349ac429902cd |
| trust_id  | None                             |
| user_id   | 4d04639926b447d280d2ba49fbb833e2 |
+-----------+----------------------------------+

jwhite@paha:~$ openstack ec2 credentials delete 1a2d38435c6a4c24b0398c808818239a

I can see that EC2 is enabled in /var/log/nova/nova-api.log:

2016-12-09 15:37:35.470 7012 INFO nova.ec2.wsgi.server [-] (7012) wsgi starting up on http://0.0.0.0:8773/

Can someone point out what I am missing to make this work?

Cheers, BiancoGiovanni.

edit retag flag offensive close merge delete