[2.2] MAAS should delete cached apt lists before running apt update
Bug #1685399 reported by
Mike Pontillo
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Won't Fix
|
Undecided
|
Unassigned | ||
cloud-images |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I have a local Ubuntu mirror that sometimes lags slightly behind the official mirror.
Thus, if I commission a MAAS node while the local mirror is lagging behind the images synced to MAAS (which are expecting the current packages), "apt-get update" does not overwrite the local apt lists, prints errors about hash mismatches, and later may fail to download packages which are more up to date in the main archive than the local mirror.
There is a way to prevent this issue: the first thing we should always do, before performing any actions with 'apt', is:
rm -rf /var/cache/
apt-get update
summary: |
- [2.2] Commissioning should delete apt lists before proceeding + [2.2] Commissioning should delete apt lists before running apt update |
summary: |
- [2.2] Commissioning should delete apt lists before running apt update + [2.2] MAAS should delete cached apt lists before running apt update |
Changed in maas: | |
status: | New → Won't Fix |
milestone: | none → next |
Changed in cloud-images: | |
status: | New → Invalid |
Changed in maas: | |
milestone: | next → none |
To post a comment you must log in.
Why does MAAS needs to deal with this? What's your environment looking like?
My guess is that if you are using a custom mirror, you are doing one of two things:
1. DNS poisoning
2. pointing MAAS to your mirror.
If you are doing 2, why would maas need to remove anything provided that maas should be replacing eveyrthing in /etc/apt and should be updating against that.
If you are doing 1, it could be a problem, but doing dns poisoning is bad....
That said, why is this a MAAS issue and not an APT issue? This seems to me like this is something APT needs to deal with.. ?