Files under /etc/maas are not removed when maas is uninstalled
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Committed
|
High
|
Alessandro Marcolini | ||
3.5 |
Fix Committed
|
High
|
Alessandro Marcolini |
Bug Description
on maas 3.5 deb we are missing to delete some files under `/etc/maas` when we uninstall maas. If maas is reinstalled later, the same uid/gid of the old maas user might be assigned to another user (`avahi` for example)
ubuntu@leafeon:~$ ls -al /etc/maas
total 44
drwxr-xr-x 4 maas maas 4096 Apr 5 07:52 .
drwxr-xr-x 131 root root 12288 Apr 5 07:20 ..
-rw------- 1 avahi avahi 285 Apr 4 15:13 agent.yaml
drwxr-xr-x 2 maas maas 4096 Apr 2 21:18 certificates
-rw-r--r-- 1 root root 5204 Apr 2 21:18 drivers.yaml
drwxr-xr-x 2 root root 4096 Apr 5 07:13 preseeds
-rw-r----- 1 maas maas 40 Apr 5 07:16 rackd.conf
-rw-r----- 1 maas maas 156 Apr 5 07:15 regiond.conf
Related branches
- MAAS Lander: Needs Fixing
- Alessandro Marcolini: Approve
-
Diff: 27 lines (+5/-0)2 files modifieddebian/maas-common.postrm (+2/-0)
debian/maas-rack-controller.postrm (+3/-0)
- Jacopo Rota: Approve
- MAAS Lander: Approve
-
Diff: 27 lines (+5/-0)2 files modifieddebian/maas-common.postrm (+2/-0)
debian/maas-rack-controller.postrm (+3/-0)
summary: |
- Files under /run/lock are not removed when maas is uninstalled + Files under /etc/maas are not removed when maas is uninstalled |
description: | updated |
Changed in maas: | |
assignee: | nobody → Alessandro Marcolini (alemar99) |
Changed in maas: | |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
Changed in maas: | |
status: | Fix Released → Fix Committed |
We need to check how that will affect upgrades and maybe make a note if/what should be backed up before updating to a newer MAAS version