[Bug 719547] [NEW] euca2ools doesn't parse EC2_URL correctly
Andreas Hasenack
andreas at canonical.com
Tue Feb 15 19:36:15 UTC 2011
Public bug reported:
Binary package hint: euca2ools
The EC2_URL shell variable holds an URL to an EC2 or Eucalyptus
endpoint.
There is a problem with the URL parsing code where, if said URL doesn't
contain a port number, it thinks the whole URL is a hostname.
Example (with fake keys on purpose):
export EC2_URL="https://staging.landscape.canonical.com/cloud/ec2/landscape-devel/amra-uec/dev1"
export EC2_SECRET_KEY=1
export EC2_ACCESS_KEY=1
$ euca-describe-regions
(wait a long time).
[Errno -2] Name or service not known
Now change the EC2_URL so that is also includes the port number:
export EC2_URL="https://staging.landscape.canonical.com:443/cloud/ec2/landscape-devel/amra-uec/dev1"
And the expected answer comes right away:
$ euca-describe-regions
AuthFailure: No user with access key '1'
A packet sniffer shows that without the port number in the URL, euca2ools is trying to resolve the wrong hostname:
0.000000 10.0.1.7 -> 10.0.1.1 DNS Standard query AAAA staging.landscape.canonical.com/cloud/ec2/landscape-devel/amra-uec/dev1
0.009434 10.0.1.1 -> 10.0.1.7 DNS Standard query response, No such name
0.028092 10.0.1.7 -> 10.0.1.1 DNS Standard query A staging.landscape.canonical.com/cloud/ec2/landscape-devel/amra-uec/dev1
0.048702 10.0.1.1 -> 10.0.1.7 DNS Standard query response, No such name
I tried with both euca2ools 1.2-0ubuntu10.1 from lucid and
1.3.1-0ubuntu5 from natty.
** Affects: euca2ools (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to euca2ools in ubuntu.
https://bugs.launchpad.net/bugs/719547
Title:
euca2ools doesn't parse EC2_URL correctly
More information about the Ubuntu-server-bugs
mailing list