[Bug 980940] [NEW] euca2ools does not respect the --region option correctly
Andrew Glen-Young
980940 at bugs.launchpad.net
Fri Apr 13 15:56:51 UTC 2012
Public bug reported:
The euc2ools commands do not support the --region flag for anything
other than EC2. I would like to define multiple regions and use these
commands against Eucalyptus and Openstack clouds (among others).
Currently the endpoint URL is hardcoded (see the function below).
/usr/lib/pyshared/euca2ools/commands/eucacommand.py:
def get_endpoint_url(self, region_name):
"""
Get the URL needed to reach a region with a given name.
This currently only works with EC2. In the future it may use other
means to also work with Eucalyptus.
"""
endpoint_template = 'https://ec2.%s.amazonaws.com/'
endpoint_url = endpoint_template % region_name
endpoint_dnsname = urlparse.urlparse(endpoint_url).hostname
try:
socket.getaddrinfo(endpoint_dnsname, None)
except socket.gaierror:
raise KeyError('Cannot resolve endpoint %s' % endpoint_dnsname)
return endpoint_url
System information:
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu precise (development branch)"
$ dpkg-query --show euca2ools
euca2ools 2.0.0~bzr516-0ubuntu3
** Affects: euca2ools (Ubuntu)
Importance: Undecided
Status: New
** Tags: canonistack
** Tags added: canonistack
--
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/980940
Title:
euca2ools does not respect the --region option correctly
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/euca2ools/+bug/980940/+subscriptions
More information about the Ubuntu-server-bugs
mailing list