euca2ools should include --region support

Bug #485113 reported by Scott Moser
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mitch Garnaat
euca2ools (Ubuntu)

Bug Description

Binary package hint: euca2ools

none of the euca2ools commands support '--region' flag.

This is less relevant to eucalyptus than it is to ec2, and arguably not at all
relevant to eucalyptus. That said, most ec2-* commands take '--region', which
essentially sets the EC2_URL flag accordingly. For example:

ec2-describe-instances <no-flag>

ec2-describe-instaces --region us-east-1

passing --region is more convienent than having to change EC2_URL for each.

Revision history for this message
Neil Soman (neilsoman) wrote :

"none of the euca2ools commands support '--region' flag."

euca-describe-availability-zones supports the --region flag.

Sure, this can be added to other commands.

It cannot be used in a consistent way with Eucalyptus and Amazon, however, since "--region" only supplies part of the EC2_URL. The rest is implicitly assumed to be ""

Sure, we could make hack-ish assumptions (for instance, if the region contains /services/Eucalyptus, use the entire URL, if not, append

Revision history for this message
Scott Moser (smoser) wrote :

it might be reasonable to allow the user to define a "url_base", and then the euca2ools would use this base and insert the region as ec2 does.

ie, by default 'url_base' would be ''.
When the user passes '--region us-east-1', then '' would be used.

This would allow the user (in a possibly contrived example) to use "regions" for Eucalyptus also, by simply setting up their dns entries for their separate cloud controllers.

  no region flag:
  --region foo:
  --region bar:

Chuck Short (zulcss)
Changed in euca2ools (Ubuntu):
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Scott Moser (smoser) wrote :

above, 'url_base' could include a "%s" to indicate where 'region' would be plugged in:
ec2 url_base:
my-uec url_base:

Neil Soman (neilsoman)
Changed in eucalyptus:
status: New → Confirmed
assignee: nobody → Mitch Garnaat (mitch-garnaat)
Revision history for this message
graziano obertelli (graziano.obertelli) wrote :

This I believe is a euca2ools issue.

affects: eucalyptus → euca2ools
Revision history for this message
Scott Moser (smoser) wrote :

This was fixed in upstream euca2ools in the 2.0 branch. It is present in precise now.

Changed in euca2ools (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Andy Grimm (agrimm) wrote :

This issue is now being tracked upstream at

Please watch that issue for further updates.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers