You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Possibly every since sys-cacher.install-client is being called in sys-pihole.install in R4.2.
Brief summary
Listing templates from Dom0 does not work if using certain qubes for certain functionality that should support it, as sys-pihole is being set as the updatevm.
Steps to reproduce
Install sys-pihole, configure it to be the updatevm and make sure it is using sys-cacher as the updates proxy. Make sure that sys-cachernetvm is set to sys-pihole.
Notice the template list is incomplete. Comment the proxy line in /etc/dnf/dnf.conf and try again and see that the list is complete.
Expected behavior
Complete list of templates available.
Actual behavior
Incomplete list of templates via qvm-template list, only showing installed templates.
dom0 calls sys-pihole via qvm-template, which calls sys-cacher via qubes.UpdatesProxy, which then calls sys-pihole again as the netvm.
Possible solution
There are two solutions:
do not cache updates from sys-pihole as it is probably the netvm of the sys-cacher
create a separate updatevm
The first option disadvantage is having a slower install as packages are fetched through the network if they are not cached.
The second option disadvantage is that the updatevm is never powered off automatically after being used, leaving it hanging around while setting the updatevm to be the same as the default_netvm is good as it does not require one more qube to be powered on, besides that there are no security benefits in having a separate updater qube for dom0 as it does not trust the DomU anyway.
Although there are two solutions to the problem, it doesn't answer clearly why the problem occurs? What happens in sys-pihole that when using sys-cacher, the fetching of the template list does not work, while updating dom0 does work?
The text was updated successfully, but these errors were encountered:
ben-grande
changed the title
dom0 qvm-template is incomplete when using an updatevm with sys-cacher configured
qvm-template list is incomplete when the updatevm has sys-cacher configured
Mar 14, 2024
Couldn't make a updatevm behave correctly with sys-cacher when using it for Template listing. Dom0 updates were never affected, but template listing/searching/installing was. It only happened if you installed the sys-cacher formula to the debian template before creating the sys-pihole StandaloneVM plus making sys-pihole the updatevm.
Why revisit this issue later:
Faster updates with cacher for the sys-pihole StandaloneVM.
Why not do it:
Using the UpdatesProxy on any qube can change the network chain and cause leaks to a network that is not the same as the netvm of said qube. In the default state it didn't happen because sys-cachernetvm is the default_netvmsys-pihole.
Git revision is specified in the git module to Salt not fail trying to
verify it is in HEAD when it is in a tag from a previous installation.
Fixes: #27
Software version
Possibly every since
sys-cacher.install-client
is being called insys-pihole.install
inR4.2
.Brief summary
Listing templates from Dom0 does not work if using certain qubes for certain functionality that should support it, as
sys-pihole
is being set as theupdatevm
.Steps to reproduce
Install
sys-pihole
, configure it to be theupdatevm
and make sure it is usingsys-cacher
as the updates proxy. Make sure thatsys-cacher
netvm
is set tosys-pihole
.Notice the template list is incomplete. Comment the proxy line in
/etc/dnf/dnf.conf
and try again and see that the list is complete.Expected behavior
Complete list of templates available.
Actual behavior
Incomplete list of templates via
qvm-template list
, only showing installed templates.dom0
callssys-pihole
viaqvm-template
, which callssys-cacher
viaqubes.UpdatesProxy
, which then callssys-pihole
again as thenetvm
.Possible solution
There are two solutions:
sys-pihole
as it is probably thenetvm
of thesys-cacher
updatevm
The first option disadvantage is having a slower install as packages are fetched through the network if they are not cached.
The second option disadvantage is that the
updatevm
is never powered off automatically after being used, leaving it hanging around while setting theupdatevm
to be the same as thedefault_netvm
is good as it does not require one more qube to be powered on, besides that there are no security benefits in having a separate updater qube for dom0 as it does not trust the DomU anyway.Although there are two solutions to the problem, it doesn't answer clearly why the problem occurs? What happens in
sys-pihole
that when usingsys-cacher
, the fetching of the template list does not work, while updating dom0 does work?The text was updated successfully, but these errors were encountered: