When deploying trusty, curtin fails to configure the archive mirror to the one it is being told to. When deploying xenial with the same configuration, this is not the case.
The result of this is that curtin starts the installation, but fallbacks to 'archive.ubuntu.com' instead of accessing the defined mirror. Excerpt cloud-init logs:
When deploying trusty, curtin fails to configure the archive mirror to the one it is being told to. When deploying xenial with the same configuration, this is not the case.
MAAS sends the config to curtin like:
apt: sources_ list: false us.archive. ubuntu. com/ubuntu 10.90.90. 1:8000/ us.archive. ubuntu. com/ubuntu
preserve_
primary:
- arches: [default]
uri: http://
proxy: http://
security:
- arches: [default]
uri: http://
The result of this is that curtin starts the installation, but fallbacks to 'archive. ubuntu. com' instead of accessing the defined mirror. Excerpt cloud-init logs:
[...] security. ubuntu. com trusty-security InRelease [65.9 kB] archive. ubuntu. com trusty InRelease ppa.launchpad. net trusty InRelease [16.0 kB] archive. ubuntu. com trusty-updates InRelease [65.9 kB] ppa.launchpad. net trusty/main amd64 Packages [1139 B] security. ubuntu. com trusty- security/ main amd64 Packages [704 kB] archive. ubuntu. com trusty-backports InRelease [65.9 kB] archive. ubuntu. com trusty Release.gpg [933 B] archive. ubuntu. com trusty-updates/main amd64 Packages [1050 kB] security. ubuntu. com trusty- security/ restricted amd64 Packages [14.1 kB] security. ubuntu. com trusty- security/ universe amd64 Packages [201 kB] security. ubuntu. com trusty- security/ multiverse amd64 Packages [4803 B] archive. ubuntu. com trusty- updates/ restricted amd64 Packages [17.2 kB] archive. ubuntu. com trusty- updates/ universe amd64 Packages [439 kB] archive. ubuntu. com trusty- updates/ multiverse amd64 Packages [14.6 kB] archive. ubuntu. com trusty- backports/ main amd64 Packages [13.3 kB] archive. ubuntu. com trusty- backports/ restricted amd64 Packages [28 B] archive. ubuntu. com trusty- backports/ universe amd64 Packages [43.1 kB] archive. ubuntu. com trusty- backports/ multiverse amd64 Packages [1567 B] archive. ubuntu. com trusty Release [58.5 kB] archive. ubuntu. com trusty/main amd64 Packages [1350 kB] archive. ubuntu. com trusty/restricted amd64 Packages [13.0 kB] archive. ubuntu. com trusty/universe amd64 Packages [5859 kB] archive. ubuntu. com trusty/multiverse amd64 Packages [132 kB] signed- image-3. 13.0-139- generic linux-signed- image-generic sbsigntool signed- generic linux-signed- image-3. 13.0-139- generic signed- image-generic sbsigntool
Get:1 http://
Ign http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Get:23 http://
Fetched 10.1 MB in 5s (1843 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
linux-
The following NEW packages will be installed:
linux-
linux-
0 upgraded, 4 newly installed, 0 to remove and 12 not upgraded.
Need to get 62.2 kB of archives.
After this operation, 468 kB of additional disk space will be used.
[...].
Now, If I change the curtin configuration to the old format, I experience the same issue:
apt_mirrors: {ubuntu_archive: 'http:// us.archive. ubuntu. com/ubuntu', ubuntu_security: 'http:// us.archive. ubuntu. com/ubuntu'}
The result is the same as above.
Again, this does *NOT* happen when deploying xenial, only trusty (and hence precise).