euca2ools does not respect the --region option correctly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
euca2ools |
New
|
Undecided
|
Unassigned | ||
euca2ools (Ubuntu) |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
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/
def get_endpoint_
"""
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.
"""
try:
except socket.gaierror:
raise KeyError('Cannot resolve endpoint %s' % endpoint_dnsname)
return endpoint_url
System information:
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
$ dpkg-query --show euca2ools
euca2ools 2.0.0~bzr516-
tags: | added: canonistack |
Changed in euca2ools (Ubuntu): | |
importance: | Undecided → Wishlist |
status: | New → Triaged |
My fix for the hard coded region list at bazaar. launchpad. net/~smoser/ euca2ools/ remove- regionlist/ revision/ 496 actually had the ability to do this.
http://
upstream euca2ools didn't like the specific solution, so I pulled it from ubuntu rather than having delta.