apt proxy addr was hardencoded

Bug #2071564 reported by maasuser1

This bug report will be marked for expiration in 49 days if no further activity occurs. (find out why)

6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Incomplete
Undecided
Unassigned

Bug Description

file: `/etc/apt/apt.conf.d/90curtin-aptproxy`
log: ```
$ sudo apt update
Err:1 http://archive.ubuntu.com/ubuntu focal InRelease
  Could not connect to 192.168.0.147:8000 (192.168.0.147). - connect (113: No route to host)
Err:2 http://download.zerotier.com/debian/focal focal InRelease
  Could not connect to 192.168.0.147:8000 (192.168.0.147). - connect (113: No route to host)
Err:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease
  Unable to connect to 192.168.0.147:8000:
Err:4 http://archive.ubuntu.com/ubuntu focal-security InRelease
  Unable to connect to 192.168.0.147:8000:
Err:5 http://archive.ubuntu.com/ubuntu focal-backports InRelease
  Unable to connect to 192.168.0.147:8000:
Reading package lists... Done
Building dependency tree
Reading state information... Done
11 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal/InRelease Could not connect to 192.168.0.147:8000 (192.168.0.147). - connect (113: No route to host)
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-updates/InRelease Unable to connect to 192.168.0.147:8000:
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-security/InRelease Unable to connect to 192.168.0.147:8000:
W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/focal-backports/InRelease Unable to connect to 192.168.0.147:8000:
W: Failed to fetch http://download.zerotier.com/debian/focal/dists/focal/InRelease Could not connect to 192.168.0.147:8000 (192.168.0.147). - connect (113: No route to host)
W: Some index files failed to download. They have been ignored, or old ones used instead.
```

As shown above, the MAAS region controller's IP addr was hard-coded to the APT config. So if a secondary controller was removed from the cluster, deployed machines will be unable to perform APT updates/installs.

To solve this issue, create a dedicated DNS alias pointed to all running controllers, and use that alias as the proxy addr.

Revision history for this message
Alexsander de Souza (alexsander-souza) wrote :

what's the MAAS URL? (see /var/snap/maas/current/regiond.conf or /etc/maas/regiond.conf)

Changed in maas:
status: New → Incomplete
Revision history for this message
maasuser1 (maasuser1) wrote :

```
# GNU nano 6.2 /var/snap/maas/current/regiond.conf
database_host: localhost
database_name: maasdb
database_pass: [redacted]
database_user: [redacted]
maas_url: http://192.168.0.2:5240/MAAS
```

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.