Bug 1331627 - Adding an EC2 resource fails with error "AuthFailure => AWS was not able to validate the provided access credential"
Summary: Adding an EC2 resource fails with error "AuthFailure => AWS was not able to v...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Compute Resources
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified vote
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-29 05:14 UTC by Dan Macpherson
Modified: 2016-05-16 02:23 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-16 02:23:01 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Dan Macpherson 2016-04-29 05:14:56 UTC
I'm testing the EC2 Compute Resources in Satellite 6.2. However, I try to add my EC2 account details and click Load Regions. It fails to load the regions and returns the following error:

"AuthFailure => AWS was not able to validate the provided access credentials"

production.log shows the following:

2016-04-29 05:07:59 [app] [I] Started PUT "/compute_resources/test_connection" for 192.168.125.1 at 2016-04-29 05:07:59 +1000
2016-04-29 05:07:59 [app] [I] Processing by ComputeResourcesController#test_connection as */*
2016-04-29 05:07:59 [app] [I]   Parameters: {"utf8"=>"✓", "authenticity_token"=>"tSKnqYsuUAcjsA5Zz7+7A6oGaIbDc/nLHnm50Zt/iYU=", "compute_resource"=>{"name"=>"EC2", "provider"=>"EC2", "description"=>"", "user"=>"AKIAIXCHKTHSDRW7JFWA", "password"=>"[FILTERED]", "location_ids"=>[""], "organization_ids"=>["", "3"]}, "fakepassword"=>"[FILTERED]", "cr_id"=>"null"}
2016-04-29 05:07:59 [app] [I] CR_ID IS null
2016-04-29 05:08:10 [app] [I]   Rendered compute_resources/form/_ec2.html.erb (5482.1ms)
2016-04-29 05:08:10 [app] [I]   Rendered taxonomies/_loc_org_tabs.html.erb (29.8ms)
2016-04-29 05:08:10 [app] [I]   Rendered compute_resources/_form.html.erb (5531.8ms)
2016-04-29 05:08:10 [app] [I] Completed 200 OK in 11318ms (Views: 5529.0ms | ActiveRecord: 17.4ms)

Version-Release number of selected component (if applicable):
foreman-ec2.noarch.1.11.0.17-1.el7sat

How reproducible:
Always

Steps to Reproduce:
1. Add EC2 provider in UI
2. Click "Load Regions"

Actual results:
Error appears

Expected results:
No error appears, region list should appear

Additional info:
foreman-ec2 didn't seem to be install with a default Satellite 6.2 Beta installation, so I installed this package separately.

Comment 1 Dan Macpherson 2016-04-29 05:17:49 UTC
I should also note, I tested out my AWS key pair with the aws command line tool and they seem to work fine. I've tried multiple times re-entering my AWS key pair and it doesn't seem to work. I'm pretty sure this isn't a PEBKAC error.

Comment 2 Dan Macpherson 2016-05-16 02:23:01 UTC
Found out what was causing it. My Satellite Server's time was off by two hours, which screwed up the authentication. After installing and configuring ntpd, the authentication worked!


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