Bug 1419683
Summary: | EC2 credentials create does not work with keystone v3 | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Jeremy <jmelvin> |
Component: | openstack-keystone | Assignee: | John Dennis <jdennis> |
Status: | CLOSED WORKSFORME | QA Contact: | nlevinki <nlevinki> |
Severity: | urgent | Docs Contact: | |
Priority: | high | ||
Version: | 8.0 (Liberty) | CC: | eglynn, jdennis, jmelvin, nkinder, panbalag, rduartes, srevivo |
Target Milestone: | async | Keywords: | Unconfirmed |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-03-16 15:56:33 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Jeremy
2017-02-06 18:19:06 UTC
This bugzilla has been removed from the release and needs to be reviewed and Triaged for another Target Release. Still no luck. I followed steps as LDAP admin since you mentioned project admin was having problems... Here's the RC file I created to match what was provided: export OS_USERNAME=ssccldresa export OS_PROJECT_NAME= export OS_AUTH_URL=https://aquarius.ssc.lmco.com:13000/v3 export OS_PASSWORD=******** export OS_IDENTITY_API_VERSION=3 export OS_DOMAIN_NAME=AD export OS_USER_DOMAIN_NAME=AD export OS_PROJECT_DOMAIN_NAME=AD export PS1='[ocd05rc_AD_Admin - \u@\h \W]$ ' export OS_REGION_NAME=regionOne export OS_AUTH_TYPE= Here's similar requests, and the failed outcome (with v3 and v2.0 URI's defined in nova.conf). I attempted to scope the creds to a USER and to a PROJECT, but neither worked as you demonstrated. It did, however, work using domain NAMES rather than IDs: [ocd05rc_AD_Admin - stack@ospd05 ~]$ openstack domain list +----------------------------------+------------+---------+----------------------------------------------------------------------+ | ID | Name | Enabled | Description | +----------------------------------+------------+---------+----------------------------------------------------------------------+ | 1bcb88d84628456a9b1fd31c268f1089 | heat_stack | True | | | c66d9f14c53c41128bfce37d1f2711e1 | AD | True | | | default | Default | True | Owns users and tenants (i.e. projects) available on Identity API v2. | +----------------------------------+------------+---------+----------------------------------------------------------------------+ [ocd05rc_AD_Admin - stack@ospd05 ~]$ openstack user list --domain c66d9f14c53c41128bfce37d1f2711e1 | grep 'e307033' | 1b52728e1719a87d84b4d3f84ec77e20204c347d371dcc5a2f2298bd009fd4e0 | e307033 | [ocd05rc_AD_Admin - stack@ospd05 ~]$ openstack project list | grep ocd05-AD-Test | 55ddfc1c92104b64ac6b59585f0cc648 | ocd05-AD-Test | [ocd05rc_AD_Admin - stack@ospd05 ~]$ openstack ec2 credentials create --project ocd05-AD-Test --project-domain c66d9f14c5ce37d1f2711e1 --user-domain c66d9f14c53c41128bfce37d1f2711e1 --user 1b52728e1719a87d84b4d3f84ec77e20204c347d371dcc5a2f2298bd009fd4e0 No user with a name or ID of '1b52728e1719a87d84b4d3f84ec77e20204c347d371dcc5a2f2298bd009fd4e0' exists. [ocd05rc_AD_Admin - stack@ospd05 ~]$ openstack ec2 credentials create --project ocd05-AD-Test --project-domain c66d9f14c5ce37d1f2711e1 No domain with a name or ID of 'c66d9f14c5ce37d1f2711e1' exists. [ocd05rc_AD_Admin - stack@ospd05 ~]$ [ocd05rc_AD_Admin - stack@ospd05 ~]$ openstack ec2 credentials create --project ocd05-AD-Test --project-domain AD +------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Field | Value | +------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | access | a050fc339a514bd8ab6c77928c740ad2 | | links | {u'self': u'https://aquarius.ssc.lmco.com:13000/v3/users/302475c5533cc99006a13dbf14880a1e367eeeb9ac3724133f8acc32c04b0126/credentials/OS-EC2/a050fc339a514bd8ab6c77928c740ad2'} | | project_id | 55ddfc1c92104b64ac6b59585f0cc648 | | secret | ee96097e63e34d20b7bce710904d529c | | trust_id | None | | user_id | 302475c5533cc99006a13dbf14880a1e367eeeb9ac3724133f8acc32c04b0126 | +------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ [ocd05rc_v3 - cloud-user@autoglance-ans-fpo7q7yucqnq ~]$ aws --endpoint-url https://aquarius.ssc.lmco.com:13773/services/Cloud/ ec2 describe-instances An error occurred (AuthFailure) when calling the DescribeInstances operation: Failure parsing response from keystone: 'access' [ocd05rc_v3 - cloud-user@autoglance-ans-fpo7q7yucqnq ~]$ aws --endpoint-url https://aquarius.ssc.lmco.com:13773/services/Cloud/ ec2 describe-instances An error occurred (AuthFailure) when calling the DescribeInstances operation: Unauthorized ###uploading associated keystone logs |