container-inherit-properties=apt-sources doesn't take effect when deploying focal on jammy or jammy on focal
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Triaged
|
Undecided
|
Joseph Phillips |
Bug Description
$ juju version
2.9.42-ubuntu-amd64
Air-gapped deployment with a mirror simply fails in this scenario.
How to reproduce:
1. set a mirror server in MAAS as if it's an air-gapped environment with a local archive mirror
$ maas admin package-repository update main_archive \
url=http://
2. set container-
$ juju add-model test
$ juju model-config container-
3. deploy focal and jammy machines
$ juju deploy --series focal ubuntu ubuntu-focal
$ juju deploy --series jammy ubuntu ubuntu-jammy
4. deploy focal and jammy containers on both focal and jammy hosts
juju add-unit ubuntu-focal --to lxd:0
juju add-unit ubuntu-focal --to lxd:1
juju add-unit ubuntu-jammy --to lxd:0
juju add-unit ubuntu-jammy --to lxd:1
$ juju machines
Machine State Address Inst id Series AZ Message
0 started 192.168.151.102 native-tomcat focal default Deployed
0/lxd/0 started 192.168.151.106 juju-bd1a29-0-lxd-0 focal default Container started
0/lxd/1 started 192.168.151.107 juju-bd1a29-0-lxd-1 jammy default Container started
1 started 192.168.151.103 aware-zebra jammy default Deployed
1/lxd/0 started 192.168.151.104 juju-bd1a29-1-lxd-0 focal default Container started
1/lxd/1 started 192.168.151.105 juju-bd1a29-1-lxd-1 jammy default Container started
Then check whether archive.ubuntu.com or mirror.
$ juju run --all -- grep -m1 archive.ubuntu.com /etc/apt/
- MachineId: 0/lxd/0
Stdout: |
deb http://
- MachineId: 1/lxd/1
Stdout: |
deb http://
- MachineId: "0"
Stdout: |
deb http://
- MachineId: 0/lxd/1
Stdout: |
deb http://
- MachineId: "1"
Stdout: |
deb http://
- MachineId: 1/lxd/0
Stdout: |
deb http://
The following two containers are using unexpected archive.ubuntu.com
0/lxd/1 -> jammy on focal
1/lxd/0 -> focal on jammy
Changed in juju: | |
assignee: | nobody → Joseph Phillips (manadart) |
tags: | added: deploy maas-provider |
Changed in juju: | |
status: | New → Triaged |
There is no difference in the curtin generated config.
focal host
maas admin machine get-curtin-config "$(maas admin machines read hostname= native- tomcat | jq -r .[].system_id)"
jammy host
maas admin machine get-curtin-config "$(maas admin machines read hostname= aware-zebra | jq -r .[].system_id)"
$ head -n 28 *-host- curting- config. yaml curting- config. yaml <== sources_ list: false 192.168. 151.1:8000/ mirror. archive. ubuntu. com/ubuntu $RELEASE universe main
==> focal-host-
apt:
preserve_
proxy: http://
sources_list: 'deb http://
multiverse restricted
# deb-src http:// mirror. archive. ubuntu. com/ubuntu $RELEASE universe main multiverse
restricted
deb http:// mirror. archive. ubuntu. com/ubuntu $RELEASE-updates universe main multiverse
restricted
# deb-src http:// mirror. archive. ubuntu. com/ubuntu $RELEASE-updates universe main
multiverse restricted
deb http:// mirror. archive. ubuntu. com/ubuntu $RELEASE-security universe main multiverse
restricted
# deb-src http:// mirror. archive. ubuntu. com/ubuntu $RELEASE-security universe main
multiverse restricted
deb http:// mirror. archive. ubuntu. com/ubuntu $RELEASE-backports universe main multiverse
restricted
# deb-src http:// mirror. archive. ubuntu. com/ubuntu $RELEASE-backports universe
main multiverse restricted
'
==> jammy-host- curting- config. yaml <== sources_ list: false 192.168. 151.1:8000/ mirror. archive. ubuntu. com/ubuntu $RELEASE universe main
apt:
preserve_
proxy: http://
sources_list: 'deb http://
multiverse restricted
# deb-src http:// mirror. archive. ubuntu. com/ubuntu $RELEASE universe main multiverse
restricted
deb http:// mirror. archive. ubuntu. com/ubuntu $RELEASE-updates universe main multiverse
restricted
# deb-src http:// mirror. archive. ubuntu. com/ubuntu $RELEASE-updates universe main
multiverse restricted
deb http:// mirror. archive. ubuntu. com/ubuntu $RELEASE-security universe main multiverse
restricted
# deb-src http:// mirror. archive. ubuntu. com/ubuntu $RELEASE-security universe main
multiverse restricted
deb http:// mirror. archive. ubuntu. com/ubuntu $RELEASE-backports universe main multiverse
restricted
# deb-src http:// mirror. archive. ubuntu. com/ubuntu $RELEASE-backports universe
main multiverse restricted
'