snap upgrade requires 2x disk space
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
Medium
|
Alberto Donato |
Bug Description
I just refreshed my snap on a rack controller from 2.7.0 to 2.7.1. I have about 11G of images at the moment. During the upgrade I noticed the disk space nearly double:
du -sh /var/snap/
11G /var/snap/
512 /var/snap/
131K /var/snap/
9.9G /var/snap/
512 /var/snap/
75K /var/snap/
Is it possible to store the boot-resources outside of the current snap version maybe in /var/snap/
Related branches
- Alberto Donato: Approve
-
Diff: 839 lines (+145/-93)36 files modifiedMakefile (+2/-1)
services/http/run (+1/-1)
snap/hooks/install (+12/-2)
snap/local/tree/bin/maas-deb-migrate (+4/-5)
snap/local/tree/bin/run-dhcpd (+5/-5)
snap/local/tree/bin/run-dhcpd6 (+5/-5)
snap/local/tree/bin/run-rackd (+4/-3)
snap/local/tree/bin/run-regiond (+1/-0)
snap/local/tree/helpers/migrate-deb-to-snap (+1/-1)
snap/snapcraft.yaml (+2/-1)
src/maascli/__init__.py (+1/-0)
src/maasserver/ipc.py (+2/-4)
src/maasserver/region_script.py (+1/-0)
src/maasserver/tests/test_ipc.py (+3/-3)
src/maastesting/fixtures.py (+12/-0)
src/maastesting/scripts.py (+1/-0)
src/maastesting/testcase.py (+7/-1)
src/provisioningserver/auth.py (+2/-2)
src/provisioningserver/config.py (+2/-4)
src/provisioningserver/dhcp/__init__.py (+13/-13)
src/provisioningserver/dhcp/config.py (+2/-2)
src/provisioningserver/path.py (+13/-1)
src/provisioningserver/plugin.py (+2/-4)
src/provisioningserver/rack_script.py (+3/-0)
src/provisioningserver/rackdservices/lease_socket_service.py (+2/-2)
src/provisioningserver/rpc/clusterservice.py (+2/-2)
src/provisioningserver/rpc/tests/test_clusterservice.py (+2/-2)
src/provisioningserver/security.py (+2/-2)
src/provisioningserver/tests/test_config.py (+3/-4)
src/provisioningserver/tests/test_path.py (+15/-0)
src/provisioningserver/tests/test_security.py (+3/-3)
src/provisioningserver/utils/debug.py (+4/-6)
src/provisioningserver/utils/env.py (+3/-3)
src/provisioningserver/utils/tests/test_debug.py (+3/-6)
src/provisioningserver/utils/tests/test_env.py (+2/-2)
src/provisioningserver/utils/tests/test_fs.py (+3/-3)
- MAAS Lander: Approve
- Björn Tillenius: Approve
-
Diff: 839 lines (+145/-93)36 files modifiedMakefile (+2/-1)
services/http/run (+1/-1)
snap/hooks/install (+12/-2)
snap/local/tree/bin/maas-deb-migrate (+4/-5)
snap/local/tree/bin/run-dhcpd (+5/-5)
snap/local/tree/bin/run-dhcpd6 (+5/-5)
snap/local/tree/bin/run-rackd (+4/-3)
snap/local/tree/bin/run-regiond (+1/-0)
snap/local/tree/helpers/migrate-deb-to-snap (+1/-1)
snap/snapcraft.yaml (+2/-1)
src/maascli/__init__.py (+1/-0)
src/maasserver/ipc.py (+2/-4)
src/maasserver/region_script.py (+1/-0)
src/maasserver/tests/test_ipc.py (+3/-3)
src/maastesting/fixtures.py (+12/-0)
src/maastesting/scripts.py (+1/-0)
src/maastesting/testcase.py (+7/-1)
src/provisioningserver/auth.py (+2/-2)
src/provisioningserver/config.py (+2/-4)
src/provisioningserver/dhcp/__init__.py (+13/-13)
src/provisioningserver/dhcp/config.py (+2/-2)
src/provisioningserver/path.py (+13/-1)
src/provisioningserver/plugin.py (+2/-4)
src/provisioningserver/rack_script.py (+3/-0)
src/provisioningserver/rackdservices/lease_socket_service.py (+2/-2)
src/provisioningserver/rpc/clusterservice.py (+2/-2)
src/provisioningserver/rpc/tests/test_clusterservice.py (+2/-2)
src/provisioningserver/security.py (+2/-2)
src/provisioningserver/tests/test_config.py (+3/-4)
src/provisioningserver/tests/test_path.py (+15/-0)
src/provisioningserver/tests/test_security.py (+3/-3)
src/provisioningserver/utils/debug.py (+4/-6)
src/provisioningserver/utils/env.py (+3/-3)
src/provisioningserver/utils/tests/test_debug.py (+3/-6)
src/provisioningserver/utils/tests/test_env.py (+2/-2)
src/provisioningserver/utils/tests/test_fs.py (+3/-3)
Changed in maas: | |
assignee: | nobody → Alberto Donato (ack) |
summary: |
- [snap] snap upgrade requires 2x disk space + snap upgrade requires 2x disk space |
Changed in maas: | |
milestone: | 2.8.0rc1 → 2.8.0 |
Changed in maas: | |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
milestone: | 2.8.0 → 2.8.0rc2 |
Changed in maas: | |
status: | Fix Committed → Fix Released |
/var/lib/maas contains resources that MAAS needs on the filesystem to operate. These files are forwards and backwards compatible, I can't remember a time when we made a change to any of these files that would break another version of MAAS.
We should move all of /var/snap/ maas/*/ var/lib/ maas into /var/snap/ maas/common.