ec2-set-apt-sources fails in new us-east-1d availability zone
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
EC2 init scripts |
Fix Released
|
Undecided
|
Unassigned | ||
Ubuntu on EC2 |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
This is a bug in Amazon's new us-east-1d availability zone, but I am curious if a change should be made to ec2-set-apt-sources to prevent it. The problem crops up because ec2-set-apt-sources assumes that it will figure out what the current availability zone is. If it doesn't find it, it doesn't have a 'failover' archive that it will use for apt sources.
I am running image 5d59be34, Ubuntu 8.04.2.
See, currently, if you try to get the availability-zone in the new availability zone that was just launched on June 9th (us-east-1d), you will get the following error:
$ curl http://
<?xml version="1.0" encoding=
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://
<html xmlns="http://
<head>
<title>404 - Not Found</title>
</head>
<body>
<h1>404 - Not Found</h1>
</body>
</html>
This obviously differs from the other zones where you would get:
$ curl http://
us-east-1c
When ec2-set-apt-sources does this it just fails because it does not set the archive successfully. Therefore, when you go to apt-get update, you get errors:
W: GPG error: http://
If you set a default archive (see attached hack for an example solution), the problem goes away.
So, the question is, should ec2-set-apt-sources have a failover archive and if so, what should it be? My feeling is that it should have at least SOMETHING to ensure that if Amazon does drop the ball with their API (like they currently have), the aptitude functions will still continue to operate properly, even if it is at the cost of transferring data inter-zone or beyond.
Changed in ubuntu-on-ec2: | |
status: | Confirmed → Fix Committed |
Changed in ec2-init: | |
status: | New → Fix Committed |
Thanks for the bug report. It does make sense for there to be a failover archive if amazon doesnt return the right information.
Regards
chuck