2012-07-24 15:25:59 |
Scott Moser |
bug |
|
|
added bug |
2012-07-24 15:26:42 |
Scott Moser |
bug |
|
|
added subscriber Ante Karamatić |
2012-07-24 15:27:00 |
Scott Moser |
bug |
|
|
added subscriber Robie Basak |
2012-07-24 15:27:07 |
Scott Moser |
bug task added |
|
cloud-init |
|
2012-07-26 04:57:46 |
Serge Hallyn |
cloud-init (Ubuntu): importance |
Undecided |
High |
|
2012-08-16 12:23:18 |
James Page |
cloud-init (Ubuntu): importance |
High |
Medium |
|
2012-08-16 12:23:30 |
James Page |
cloud-init (Ubuntu): status |
New |
Triaged |
|
2012-08-16 13:38:49 |
Scott Moser |
description |
cloud-inits' mirror selection does not include any logic to account for arch.
the arm arch are not available on ec2 mirrors nor on *.archive.ubuntu.com .
The best work around at the moment is to disable mirror selection via:
apt_preserve_sources_list: True
For juju, that can be done by modifying juju/providers/common/utils.py to contain:
cloud_config = {
"apt-update": True,
"apt-upgrade": True,
"apt_preserve_sources_list": True,
"ssh_authorized_keys": authorized_keys,
"packages": [],
"output": {"all": "| tee -a /var/log/cloud-init-output.log"}} |
cloud-inits' mirror selection does not include any logic to account for arch.
the arm arch are not available on ec2 mirrors nor on *.archive.ubuntu.com .
The best work around at the moment is to disable mirror selection via:
apt_preserve_sources_list: True
For juju, that can be done by modifying juju/providers/common/utils.py to contain:
cloud_config = {
"apt-update": True,
"apt-upgrade": True,
"apt_preserve_sources_list": True,
"ssh_authorized_keys": authorized_keys,
"packages": [],
"output": {"all": "| tee -a /var/log/cloud-init-output.log"}}
Related bugs:
* bug 1028501 sources.list configuration does not cover security |
|
2012-08-16 13:50:26 |
Scott Moser |
cloud-init: status |
New |
Triaged |
|
2012-08-16 13:50:29 |
Scott Moser |
cloud-init: importance |
Undecided |
High |
|
2012-08-22 19:31:11 |
Launchpad Janitor |
branch linked |
|
lp:cloud-init |
|
2012-08-23 05:07:58 |
Launchpad Janitor |
branch linked |
|
lp:ubuntu/cloud-init |
|
2012-08-23 05:10:23 |
Launchpad Janitor |
cloud-init (Ubuntu): status |
Triaged |
Fix Released |
|
2012-08-31 15:17:52 |
Robie Basak |
nominated for series |
|
Ubuntu Precise |
|
2012-08-31 15:18:05 |
Robie Basak |
bug task added |
|
maas |
|
2012-08-31 15:33:42 |
Robie Basak |
tags |
|
arm |
|
2012-08-31 20:02:06 |
Scott Moser |
cloud-init: status |
Triaged |
Fix Committed |
|
2012-09-03 01:57:56 |
Julian Edwards |
maas: status |
New |
Triaged |
|
2012-09-03 01:57:59 |
Julian Edwards |
maas: importance |
Undecided |
High |
|
2012-09-17 19:00:01 |
Scott Moser |
bug task added |
|
cloud-init (Ubuntu Precise) |
|
2012-10-01 18:22:21 |
Scott Moser |
cloud-init: status |
Fix Committed |
Fix Released |
|
2012-10-05 15:10:10 |
Scott Moser |
cloud-init (Ubuntu Precise): status |
New |
Triaged |
|
2012-10-05 15:10:15 |
Scott Moser |
cloud-init (Ubuntu Precise): importance |
Undecided |
High |
|
2012-10-09 20:28:23 |
Francis J. Lacoste |
maas: status |
Triaged |
Fix Released |
|
2012-11-06 21:47:48 |
Launchpad Janitor |
branch linked |
|
lp:~smoser/ubuntu/precise/cloud-init/sru |
|
2012-11-08 21:33:02 |
Scott Moser |
description |
cloud-inits' mirror selection does not include any logic to account for arch.
the arm arch are not available on ec2 mirrors nor on *.archive.ubuntu.com .
The best work around at the moment is to disable mirror selection via:
apt_preserve_sources_list: True
For juju, that can be done by modifying juju/providers/common/utils.py to contain:
cloud_config = {
"apt-update": True,
"apt-upgrade": True,
"apt_preserve_sources_list": True,
"ssh_authorized_keys": authorized_keys,
"packages": [],
"output": {"all": "| tee -a /var/log/cloud-init-output.log"}}
Related bugs:
* bug 1028501 sources.list configuration does not cover security |
[Impact]
* The official Ubuntu mirrors for armhf and armel arch are on
ports.ubuntu.com where as i386 and amd64 are on archive.ubuntu.com.
Cloud-init has code that selects a local mirror, but that code in 12.04
did not take arch into into consideration at all.
As a result, if you're using cloud-init on arm with 12.04, you need to
either
a.) tell cloud-init to "preserve_sources_list"
b.) provide the correct 'mirror' in cloud-config syntax always when you
launch the instance, and this isn't really even sufficient as
cloud-init's template for sources.list references security.ubuntu.com
which is also not valid for arm.
The fix here is to make the mirror selection code architecture specific
and to also make it handle security.ubuntu.com separately. Looking at
the default configuration probably makes it obvious how it works:
| package_mirrors:
| - arches: [i386, amd64]
| failsafe:
| primary: http://archive.ubuntu.com/ubuntu
| security: http://security.ubuntu.com/ubuntu
| search:
| primary:
| - http://%(ec2_region)s.ec2.archive.ubuntu.com/ubuntu/
| - http://%(availability_zone)s.clouds.archive.ubuntu.com/ubuntu/
| security: []
| - arches: [armhf, armel, default]
| failsafe:
| primary: http://ports.ubuntu.com/ubuntu
| security: http://ports.ubuntu.com/ubuntu
[Test Case]
Simply letting cloud-init take its default behavior will show the
brokenness on arm. The code is not arch specific at all so launching
an EC2 instance (of i386 or amd64) will select the primary mirror
of http://us-east-1.ec2.archive.ubuntu.com and security.ubuntu.com for
security. This is clearly broken.
Showing the correct working path requires actually running cloud-init
within arm. This can be done using an arm image from
cloud-images.ubuntu.com.
[Regression Potential]
* Selection of the wrong mirror is really the potential failure path
here, and on arm in 12.04, cloud-init already selects the wrong mirror
so it is assured to not make the situation worse.
=== End SRU Information ===
cloud-inits' mirror selection does not include any logic to account for arch.
the arm arch are not available on ec2 mirrors nor on *.archive.ubuntu.com .
The best work around at the moment is to disable mirror selection via:
apt_preserve_sources_list: True
For juju, that can be done by modifying juju/providers/common/utils.py to contain:
cloud_config = {
"apt-update": True,
"apt-upgrade": True,
"apt_preserve_sources_list": True,
"ssh_authorized_keys": authorized_keys,
"packages": [],
"output": {"all": "| tee -a /var/log/cloud-init-output.log"}}
Related bugs:
* bug 1028501 sources.list configuration does not cover security |
|
2012-12-10 23:04:11 |
Steve Langasek |
cloud-init (Ubuntu Precise): status |
Triaged |
Fix Committed |
|
2012-12-10 23:04:13 |
Steve Langasek |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2012-12-10 23:04:17 |
Steve Langasek |
bug |
|
|
added subscriber SRU Verification |
2012-12-10 23:04:20 |
Steve Langasek |
tags |
arm |
arm verification-needed |
|
2012-12-12 22:01:32 |
Scott Moser |
tags |
arm verification-needed |
arm verification-done |
|
2013-01-08 19:15:30 |
Clint Byrum |
tags |
arm verification-done |
arm |
|
2013-01-08 19:15:33 |
Clint Byrum |
tags |
arm |
arm verification-needed |
|
2013-01-09 00:12:53 |
Scott Moser |
tags |
arm verification-needed |
arm verification-done |
|
2013-01-16 14:20:22 |
Colin Watson |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2013-01-16 14:20:17 |
Launchpad Janitor |
cloud-init (Ubuntu Precise): status |
Fix Committed |
Fix Released |
|
2013-08-28 11:32:39 |
Launchpad Janitor |
branch linked |
|
lp:~ubuntu-branches/ubuntu/precise/cloud-init/precise-proposed |
|
2023-05-09 21:28:40 |
James Falcon |
bug watch added |
|
https://github.com/canonical/cloud-init/issues/2276 |
|