verified fixed in http://ec2-images.ubuntu.com/karmic/20090811.2/ubuntu- ec2-karmic-amd64.img.gz (ec2-init 0.4.99-0ubuntu2)
$ dpkg-query --showformat '${version}\n' --show "ec2-init" 0.4.99-0ubuntu2
ec2init/__init__.py now has method get_mirror_from_availability_zone that does:
def get_mirror_from_availability_zone(self, availability_zone): if availability_zone.startswith("us"): return 'http://us.ec2.archive.ubuntu.com/ubuntu/' elif availability_zone.startswith("eu"): return 'http://eu.ec2.archive.ubuntu.com/ubuntu/'
return 'http://archive.ubuntu.com/ubuntu/'
the above essentially does the same as the listed hack.
I'll just note here, that some debug/apparently-dead code leaked in on this. __init__.py has a 'location_archive_map' which is completely unused.
verified fixed in http:// ec2-images. ubuntu. com/karmic/ 20090811. 2/ubuntu- amd64.img. gz (ec2-init 0.4.99-0ubuntu2)
ec2-karmic-
$ dpkg-query --showformat '${version}\n' --show "ec2-init"
0.4.99-0ubuntu2
ec2init/__init__.py now has method get_mirror_ from_availabili ty_zone that does:
def get_mirror_ from_availabili ty_zone( self, availability_zone): zone.startswith ("us"): us.ec2. archive. ubuntu. com/ubuntu/ ' zone.startswith ("eu"): eu.ec2. archive. ubuntu. com/ubuntu/ '
if availability_
return 'http://
elif availability_
return 'http://
return 'http:// archive. ubuntu. com/ubuntu/ '
the above essentially does the same as the listed hack.
I'll just note here, that some debug/apparentl y-dead code leaked in on this. archive_ map' which is completely unused.
__init__.py has a 'location_