Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JENKINS-26414 - Add support for new C4 instance types #141

Merged
merged 1 commit into from
Mar 19, 2015

Conversation

cbek
Copy link
Contributor

@cbek cbek commented Mar 18, 2015

  • upgrade aws-java-sdk ot version 1.9.24

https://issues.jenkins-ci.org/browse/JENKINS-26414

* upgrade aws-java-sdk ot version 1.9.24
@buildhive
Copy link

Jenkins » ec2-plugin #95 SUCCESS
This pull request looks good
(what's this?)

@jenkinsadmin
Copy link
Member

Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests

francisu added a commit that referenced this pull request Mar 19, 2015
JENKINS-26414 - Add support for new C4 instance types
@francisu francisu merged commit b59267e into jenkinsci:master Mar 19, 2015
@francisu
Copy link
Member

Thanks for your contribution!

@nexus49
Copy link

nexus49 commented Mar 20, 2015

Experiencing authentication issues with the updated sdk version when provisioning a computer:

com.amazonaws.AmazonServiceException: AWS was not able to validate the provided access credentials (Service: AmazonEC2; Status Code: 401; Error Code: AuthFailure; Request ID: cbe99ae9-fb3b-45c1-a4e7-3c3e79c939b5)
    at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:1078)
    at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:726)
    at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:461)
    at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:296)
    at com.amazonaws.services.ec2.AmazonEC2Client.invoke(AmazonEC2Client.java:10549)
    at com.amazonaws.services.ec2.AmazonEC2Client.describeKeyPairs(AmazonEC2Client.java:7218)
    at com.amazonaws.services.ec2.AmazonEC2Client.describeKeyPairs(AmazonEC2Client.java:10193)
    at hudson.plugins.ec2.EC2PrivateKey.find(EC2PrivateKey.java:135)
    at hudson.plugins.ec2.SlaveTemplate.getKeyPair(SlaveTemplate.java:722)
    at hudson.plugins.ec2.SlaveTemplate.provisionSpot(SlaveTemplate.java:546)
    at hudson.plugins.ec2.SlaveTemplate.provision(SlaveTemplate.java:285)
    at hudson.plugins.ec2.EC2Cloud.doProvision(EC2Cloud.java:283)

The same credentials work fine with the 1.8.3 version.

@nexus49
Copy link

nexus49 commented Mar 20, 2015

adding below as proposed in https://forums.aws.amazon.com/thread.jspa?messageID=601048 fixes the issue for me:

--- a/src/main/java/hudson/plugins/ec2/EC2Cloud.java
+++ b/src/main/java/hudson/plugins/ec2/EC2Cloud.java
@@ -474,6 +474,7 @@ public abstract class EC2Cloud extends Cloud {
     public synchronized static AmazonEC2 connect(AWSCredentialsProvider credentialsProvider, URL endpoint) {
         awsCredentialsProvider = credentialsProvider;
         ClientConfiguration config = new ClientConfiguration();
+        config.setSignerOverride("QueryStringSignerType");
         ProxyConfiguration proxyConfig = Jenkins.getInstance().proxy;
         Proxy proxy = proxyConfig == null ? Proxy.NO_PROXY : proxyConfig.createProxy(endpoint.getHost());
         if (! proxy.equals(Proxy.NO_PROXY) && proxy.address() instanceof InetSocketAddress) {

@cbek
Copy link
Contributor Author

cbek commented Mar 20, 2015

@nexus49 - Thanks!
Created a PR #142

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants