Issue Type: Improvement Improvement
Assignee: Francis Upton
Components: ec2-plugin
Created: 19/Jan/15 6:00 PM
Description:

The EC2 plugin is currently throwing the following error while trying to launch a build slave:

Jan 19, 2015 5:55:48 PM hudson.plugins.ec2.EC2Cloud provision
WARNING: Failed to count the # of live instances on EC2
com.amazonaws.AmazonClientException: Unable to execute HTTP request: eu-central-1.ec2.amazonaws.com: Name or service not known

Performing a resolve directly against the SOA nameservers results in no answer:

dig eu-central-1.ec2.amazonaws.com @r1.amazonaws.com

; <<>> DiG 9.9.2-P2 <<>> eu-central-1.ec2.amazonaws.com @r1.amazonaws.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33907
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 6, ADDITIONAL: 1
;; WARNING: recursion requested but not available

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;eu-central-1.ec2.amazonaws.com.	IN	A

;; AUTHORITY SECTION:
ec2.amazonaws.com.	907	IN	NS	ns-911.amazon.com.
ec2.amazonaws.com.	907	IN	NS	ns-912.amazon.com.
ec2.amazonaws.com.	907	IN	NS	ns-921.amazon.com.
ec2.amazonaws.com.	907	IN	NS	ns-923.amazon.com.
ec2.amazonaws.com.	907	IN	NS	ns-941.amazon.com.
ec2.amazonaws.com.	907	IN	NS	ns-942.amazon.com.

;; Query time: 25 msec
;; SERVER: 205.251.192.27#53(205.251.192.27)
;; WHEN: Mon Jan 19 17:57:13 2015
;; MSG SIZE  rcvd: 192

The AWS API docs specify EC2 hostnames like the following:

...
ec2.eu-central-1.amazonaws.com
...

So, the "ec2" and "eu-central-1" portions are flipped. I recommend that the API endpoints are updated to use the hostnames that are currently outlined in the API docs.

Environment: jenkins: 1.597
ec2-plugin: 1.24
Project: Jenkins
Priority: Blocker Blocker
Reporter: Jared Biel
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to