Closed c0mmando closed 1 week ago
Please follow these steps: TROUBLESHOOT.md#get-salt-management-information.
Please follow these steps: TROUBLESHOOT.md#get-salt-management-information.
Global management_dispvm qube: default-mgmt-dvm
Global management_dispvm template: debian-12-xfce
Global management_dispvm template features:
template-name debian-12-xfce
template-release 202312171103
os-distribution debian
os-version 12
Wanted qube: fedora-40-minimal
Global management_dispvm qube: default-mgmt-dvm
this is the Qubes default management VM after a fresh install
Fedora Minimal can't be targeted by Debian management qube.
Switch the template of the management qube to the Full Fedora Template or run our "mgmt" formula, it will take care of producing a mgmt qube that works.
On Wed, Jun 26, 2024, 3:00 AM c0mmando @.***> wrote:
Please follow these steps: TROUBLESHOOT.md#get-salt-management-information https://github.com/ben-grande/qusal/blob/main/docs/TROUBLESHOOT.md#get-salt-management-information .
Global management_dispvm qube: default-mgmt-dvm Global management_dispvm template: debian-12-xfce Global management_dispvm template features: template-name debian-12-xfce template-release 202312171103 os-distribution debian os-version 12 Wanted qube: fedora-40-minimal Global management_dispvm qube: default-mgmt-dvm
this is the Qubes default management VM after a fresh install
— Reply to this email directly, view it on GitHub https://github.com/ben-grande/qusal/issues/69#issuecomment-2190316651, or unsubscribe https://github.com/notifications/unsubscribe-auth/BCE2O4KIDPH5D2ZBQHK7Q2DZJIHCJAVCNFSM6AAAAABJYUIQTKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJQGMYTMNRVGE . You are receiving this because you commented.Message ID: @.***>
Thanks for your response. I'll install mgmt before sys cacher from now on in the bootstrapping processes and see if that solves the issue. You may want to swap the install order in the bootstrap guide.
Pushing a commit to reorder the bootstrap guide. Please report back if everything went fine or not.
Everything went fine with Fedora, however debian-12-minimal threw some errors during the sys-cacher install script. debian-12-xfce worked without issue.
$ qvm-mgmt debian-12-minimal
Global management_dispvm qube: dvm-mgmt
Global management_dispvm template: tpl-mgmt
Global management_dispvm template features:
os-distribution fedora
os-version 40
template-name fedora-40-minimal
template-release 202404260902
Wanted qube: debian-12-minimal
Global management_dispvm qube: dvm-mgmt
$ qvm-mgmt debian-12-xfce
Global management_dispvm qube: dvm-mgmt
Global management_dispvm template: tpl-mgmt
Global management_dispvm template features:
os-distribution fedora
os-version 40
template-name fedora-40-minimal
template-release 202404260902
Wanted qube: debian-12-xfce
Global management_dispvm qube: dvm-mgmt
2024-06-27 02:08:05,923 calling 'state.apply sys-cacher.install-client'...
2024-06-27 02:08:33,911 output: debian-12-minimal:
2024-06-27 02:08:33,911 output: ----------
2024-06-27 02:08:33,911 output: ID: sys-cacher-install-client-scripts
2024-06-27 02:08:33,911 output: Function: file.recurse
2024-06-27 02:08:33,911 output: Name: /usr/bin/
2024-06-27 02:08:33,912 output: Result: False
2024-06-27 02:08:33,912 output: Comment: Recurse failed: none of the specified sources were found
2024-06-27 02:08:33,912 output: Started: 02:08:33.068632
2024-06-27 02:08:33,912 output: Duration: 31.698 ms
2024-06-27 02:08:33,912 output: Changes:
2024-06-27 02:08:33,912 output: ----------
2024-06-27 02:08:33,912 output: ID: sys-cacher-install-client-repository-definitions
2024-06-27 02:08:33,912 output: Function: cmd.run
2024-06-27 02:08:33,912 output: Name: apt-cacher-ng-repo
2024-06-27 02:08:33,912 output: Result: False
2024-06-27 02:08:33,912 output: Comment: One or more requisite failed: sys-cacher.install-client.sys-cacher-install-client-scripts
2024-06-27 02:08:33,912 output: Started: 02:08:33.103109
2024-06-27 02:08:33,912 output: Duration: 0.004 ms
2024-06-27 02:08:33,912 output: Changes:
2024-06-27 02:08:33,912 output: ----------
2024-06-27 02:08:33,912 output: ID: sys-cacher-install-client-systemd
2024-06-27 02:08:33,912 output: Function: file.managed
2024-06-27 02:08:33,912 output: Name: /usr/lib/systemd/system/qusal-apt-cacher-ng-repo.service
2024-06-27 02:08:33,912 output: Result: True
2024-06-27 02:08:33,912 output: Comment: File /usr/lib/systemd/system/qusal-apt-cacher-ng-repo.service is in the correct state
2024-06-27 02:08:33,912 output: Started: 02:08:33.103203
2024-06-27 02:08:33,912 output: Duration: 3.896 ms
2024-06-27 02:08:33,912 output: Changes:
2024-06-27 02:08:33,912 output: ----------
2024-06-27 02:08:33,912 output: ID: sys-cacher-install-client-systemd-start-qusal-apt-cacher-ng-repo.service
2024-06-27 02:08:33,913 output: Function: service.enabled
2024-06-27 02:08:33,913 output: Name: qusal-apt-cacher-ng-repo.service
2024-06-27 02:08:33,913 output: Result: True
2024-06-27 02:08:33,913 output: Comment: Service qusal-apt-cacher-ng-repo.service is already enabled, and is in the desired state
2024-06-27 02:08:33,913 output: Started: 02:08:33.139695
2024-06-27 02:08:33,913 output: Duration: 22.963 ms
2024-06-27 02:08:33,913 output: Changes:
2024-06-27 02:08:33,913 output:
2024-06-27 02:08:33,913 output: Summary for debian-12-minimal
2024-06-27 02:08:33,913 output: ------------
2024-06-27 02:08:33,913 output: Succeeded: 2
2024-06-27 02:08:33,913 output: Failed: 2
2024-06-27 02:08:33,913 output: ------------
2024-06-27 02:08:33,913 output: Total states run: 4
2024-06-27 02:08:33,913 output: Total run time: 58.561 ms
2024-06-27 02:08:33,913 exit code: 20
The error you are encountering due to a buggy Salt version that Qubes still uses.
I've updated qvm-mgmt
. Can you please reinstall it?
sudo qubesctl state.apply dom0.helpers
My output:
$ qvm-mgmt debian-12-minimal
GLOBAL
management_dispvm: dvm-mgmt
management_dispvm template: tpl-mgmt
management_dispvm template features:
os-distribution: fedora
os-version: 40
template-name: fedora-40-minimal
template-release: 202404260902
WANTED
qube: debian-12-minimal
class: TemplateVM
template-name: debian-12-minimal
template-release: 202308031621
os-distribution: debian
os-version: 12
debian-12-minimal management_dispvm: dvm-mgmt
$ qctlus debian-12-minimal sys-cacher.install-client
debian-12-minimal:
----------
ID: sys-cacher-install-client-scripts
Function: file.recurse
Name: /usr/bin/
Result: True
Comment: Recursively updated /usr/bin/
Started: 00:00:00.00000
Duration: 106.338 ms
Changes:
----------
/usr/bin/apt-cacher-ng-repo:
----------
diff:
---
+++
@@ -1,7 +1,7 @@
DIFF REDACTED FOR BREVITY
----------
ID: sys-cacher-install-client-repository-definitions
Function: cmd.run
Name: apt-cacher-ng-repo
Result: True
Comment: configuration remained untouched
Started: 00:00:00.00000
Duration: 53.172 ms
Changes:
----------
ID: sys-cacher-install-client-systemd
Function: file.managed
Name: /usr/lib/systemd/system/qusal-apt-cacher-ng-repo.service
Result: True
Comment: File /usr/lib/systemd/system/qusal-apt-cacher-ng-repo.service updated
Started: 00:00:00.00000
Duration: 9.882 ms
Changes:
----------
diff:
New file
mode:
0644
----------
ID: sys-cacher-install-client-systemd-start-qusal-apt-cacher-ng-repo.service
Function: service.enabled
Name: qusal-apt-cacher-ng-repo.service
Result: True
Comment: Service qusal-apt-cacher-ng-repo.service has been enabled, and is in the desired state
Started: 00:00:00.00000
Duration: 528.199 ms
Changes:
----------
qusal-apt-cacher-ng-repo.service:
True
Summary for debian-12-minimal
------------
Succeeded: 4 (changed=3)
Failed: 0
------------
Total states run: 4
Total run time: 697.591 ms
/usr/lib/python3.12/site-packages/salt/utils/jid.py:19: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
return datetime.datetime.utcnow()
On tpl-mgmt
, my salt version reports 3006-8.1
, what does your version reports?
dnf list --installed salt*
Installed Packages
salt.noarch 3006.8-1.fc40 @updates
salt-ssh.noarch 3006.8-1.fc40 @update
I suppose it is the same version because you just installed the mgmt
qube, but just to be sure. If it is the same version and the error still occurs, I don't know what to do but wait for QubesOS to update the Salt package. If it is not the same version, please update tpl-mgmt
packages.
after reinstalling tpl-mgmt
the issue resolved itself!! thanks for the suggestions and guidance.
Commitment
I confirm that I have read the following resources:
Software version
f5528fe
Brief summary
Installing sys-cacher client for Fedora qubes fails on a fresh install
Steps to reproduce
Fresh install and iterate through bootstrap steps. The following step will fail with the below log errors:
sudo qubesctl --skip-dom0 --targets="$(qvm-ls --no-spinner --raw-list --tags updatevm-sys-cacher | tr "\n" ",")" state.apply sys-cacher.install-client
errors:
Expected behavior
Successful apt cacher client install and proceed with system bootstrap
Actual behavior