-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Cannot change revisions_to_keep for a storage pool #3256
Comments
I'm already working on this. Better not change this (or any other) value manually in qubes.xml, because driver may want to apply some constrains, or do some conversion when changing it. |
Do not check for accepted value only in constructor, do that in property setter. This will allow enforcing the limit regardless of how the value was set. This is preparation for dynamic revisions_to_keep change. QubesOS/qubes-issues#3256
Do not check for accepted value only in constructor, do that in property setter. This will allow enforcing the limit regardless of how the value was set. This is preparation for dynamic revisions_to_keep change. QubesOS/qubes-issues#3256
This one pool/volume property makes sense to change dynamically. There may be more such properties, but lets be on the safe side and take whitelist approach - allow only selected (just one for now), instead of blacklisting any harmful ones. QubesOS/qubes-issues#3256
Do not check for accepted value only in constructor, do that in property setter. This will allow enforcing the limit regardless of how the value was set. This is preparation for dynamic revisions_to_keep change. QubesOS/qubes-issues#3256
This one pool/volume property makes sense to change dynamically. There may be more such properties, but lets be on the safe side and take whitelist approach - allow only selected (just one for now), instead of blacklisting any harmful ones. QubesOS/qubes-issues#3256
@marmarek is it supposed to work? In 4.0 rc4, |
|
@marmarek I tried to change manually qubes.xml ( Any manual operations to make the backend take it in consideration atm? I'm looking into that feature to make some changes to dom0 to update Qubes Network Server internals, and revert easily when messing up. |
Setting |
You can also use Admin API directly, until proper UI get implemented:
|
This allows to get and set volumes properties. Fixes QubesOS/qubes-issues#3256
This allows to get and set volumes properties. Fixes QubesOS/qubes-issues#3256
This allows to get and set volumes properties. Fixes QubesOS/qubes-issues#3256
Since Volume.is_outdated() is a method, not a property, add a function for handling serialization. And at the same time, fix None serialization (applicable to 'source' property). QubesOS/qubes-issues#3256
Since Volume.is_outdated() is a method, not a property, add a function for handling serialization. And at the same time, fix None serialization (applicable to 'source' property). QubesOS/qubes-issues#3256
Automated announcement from builder-github The package
|
Automated announcement from builder-github The package
|
Automated announcement from builder-github The package
|
Automated announcement from builder-github The component
|
Automated announcement from builder-github The package
|
Automated announcement from builder-github The package
|
Automated announcement from builder-github The package
|
Automated announcement from builder-github The package
|
Automated announcement from builder-github The component
|
Automated announcement from builder-github The package
Or update dom0 via Qubes Manager. |
Qubes OS version:
R4.0 RC2
Affected TemplateVMs:
none (dom0 issue)
Steps to reproduce the behavior:
Try to change the number of
revisions_to_keep
for a storage pool with theqvm-pool
commandExpected behavior:
That there is a relatively easy way to modify (or at least increase) the number of revisions kept
Actual behavior:
None such exists - probably editing
qubes.xml
directly will do the job, but not sure if that won't mess something up.General notes:
I am not sure that it's a good idea to mess with storage pool options after a pool is created, too many things can go wrong. The exception I think is increasing
revisions_to_keep
, even decreasing it can be problematic if not handled correctly. So handling such a special case inqvm-pool
might not be the best way to proceed...A workaround that I think could be used right now looks like this:
revisions_to_keep
valueIt's a bit of a mess, especially when cloning templates :) Is there an easier way to accomplish this?
Related issues:
None that I could find
The text was updated successfully, but these errors were encountered: