Merge ~troyanov/maas:backport-3b58876-3.5 into maas:3.5
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Approved by: | Anton Troyanov | ||||||||
Approved revision: | d350bce5f74735fd0dbe7822ad4a75b8571f8b4a | ||||||||
Merge reported by: | MAAS Lander | ||||||||
Merged at revision: | not available | ||||||||
Proposed branch: | ~troyanov/maas:backport-3b58876-3.5 | ||||||||
Merge into: | maas:3.5 | ||||||||
Diff against target: |
234 lines (+19/-24) 13 files modified
debian/maas-agent.dirs (+0/-1) debian/maas-agent.postinst (+1/-3) debian/maas-common.dirs (+0/-1) debian/maas-dhcp.apparmor (+5/-5) debian/maas-dhcp.maas-dhcpd.service (+2/-2) debian/maas-dhcp.maas-dhcpd6.service (+2/-2) debian/maas-dhcp.postinst (+0/-1) debian/maas-dhcp.postrm (+1/-1) debian/maas-proxy.dirs (+0/-1) debian/maas-rack-controller.maas-rackd.service (+1/-0) src/maasagent/cmd/maas-agent/main.go (+3/-3) src/maasagent/cmd/maas-agent/main_test.go (+3/-3) src/maasagent/internal/httpproxy/service.go (+1/-1) |
||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jacopo Rota | Approve | ||
Review via email: mp+462578@code.launchpad.net |
Commit message
fix: /run/maas should be owned by maas
`/run` is usually a tmpfs mount, and it is not persistent across reboots, so
`/run/maas` should not be created using .dirs, .install or .postinst scripts.
MAAS has various services that store their directories and files under
`/run/maas`, but because some services are run as root (e.g. dhcp), this leads
to ownership issues when `mkdir -p` is used (e.g. DHCP will create
`/run/maas/dhcp`)
In order to solve ownership issue, this commit changes DHCP service directory
to `/run/maas-dhcp` while keeping `/run/maas` only for files related to MAAS
itself (not external 3rd party services)
Resolves LP:2056222
Resolves LP:2056225
(cherry picked from commit 3b58876f7dbf6d4
approving backport