EC2 API noauth user_id is invalid
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
Vish Ishaya |
Bug Description
I'm getting Smokestack failures w/ revision 1478 of nova using the new noauth manager. The issue seems to stem from the fact that the OSAPI and EC2 API's noauth code now generates and use different user_id's within the same project.
After creating a keypair I found the following in my key_pairs table:
mysql> select user_id from key_pairs;
+------
| user_id |
+------
| hdJbmeRuyJAkRtW
+------
---
The OSAPI noauth manager however still uses 'admin' as the user_id in the RequestContext. So using the same novarc file:
-You can create a keypair with the EC2 API.
-But you can no longer use that keypair via the OSAPI (because your user_id is different)
Related branches
- OpenStack release team: Pending requested
-
Diff: 45 lines (+12/-2)2 files modifiednova/auth/manager.py (+11/-2)
nova/tests/test_auth.py (+1/-0)
- Devin Carlen (community): Approve
- Brian Lamar (community): Approve
-
Diff: 45 lines (+12/-2)2 files modifiednova/auth/manager.py (+11/-2)
nova/tests/test_auth.py (+1/-0)
Changed in nova: | |
importance: | Undecided → High |
Changed in nova: | |
status: | New → Fix Committed |
Changed in nova: | |
milestone: | diablo-4 → 2011.3 |
status: | Fix Committed → Fix Released |
Thanks, dan. The issue is that NoAuth doesn't have any way to look up a user_id from an access key, so the novarc file is wrong. I will come up with a workaround for this.