New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qubes-dom0-update cumulative rpm size quota #3408

Open
xaki23 opened this Issue Dec 18, 2017 · 1 comment

Comments

Projects
None yet
3 participants
@xaki23

xaki23 commented Dec 18, 2017

Qubes OS version:

R4-RC3

Affected TemplateVMs:


Steps to reproduce the behavior:

install RC3
install fedora-26 template (works)
install fedora-26-minimal template
fails horribly with some quota-exceeded message after downloading

the problem here is the total sum of downloaded-since-last-reboot rpms in the updatevm cache exceeds 2GB (arbitrary limit enforced somewhere in the chain)
the step of pulling the rpms from updatevm to dom0 allway pulls all RPMs in the cache (instead of just the one(s) it cares about), a hardcoded something/*.rpm
and it seems the cache is not expired after a successful install

Expected behavior:

being able to install multiple huge rpms (like templates) in dom0

Actual behavior:

installation failing when reaching a cumulative rpm size limit

General notes:

workarounds:
restart updatevm to clean cache
manual cleanup of rpms in updatevm (dont miss the second copy in the tree)
passing --clean to qubes-dom0-update (and downloading all the repo metadata again)


Related issues:

@najamelan

This comment has been minimized.

Show comment
Hide comment
@najamelan

najamelan Dec 27, 2017

Note that the documentation already mentions this:

Disk Quota Exceeded (When Installing Templates)

If you install multiple templates you may encounter this error. The solution is to shut down the updateVM between each install:

install template and shutdown updateVM:
cmd.run:

  • name: sudo qubes-dom0-update -y fedora-24; qvm-shutdown {{ salt.cmd.run(qubes-prefs updateVM) }}

I can confirm this workaround:
Go into the updateVM and delete unneeded rpms in both:
/var/lib/qubes/dom0-updates/packages
/var/lib/qubes/dom0-updates/var/cache/yum/x86_64/4.0/qubes-templates-itl-fd404fe04a5ff777/packages

Note that the documentation already mentions this:

Disk Quota Exceeded (When Installing Templates)

If you install multiple templates you may encounter this error. The solution is to shut down the updateVM between each install:

install template and shutdown updateVM:
cmd.run:

  • name: sudo qubes-dom0-update -y fedora-24; qvm-shutdown {{ salt.cmd.run(qubes-prefs updateVM) }}

I can confirm this workaround:
Go into the updateVM and delete unneeded rpms in both:
/var/lib/qubes/dom0-updates/packages
/var/lib/qubes/dom0-updates/var/cache/yum/x86_64/4.0/qubes-templates-itl-fd404fe04a5ff777/packages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment