Two problems with saltstack: qvm.clone not found in sls pwmanager & no installation is happening

Hi,

I am currently trying to recreate my workflow using salt.

for example, this is my pwmanager.sls in /srv/user_salt:

{% if grains['id'] == 'dom0' %}
template-pwmanager--create-template:
  qvm.clonse:
    - name: template-pwmanager
    -  source: fedora-40-minimal
    - class: TemplateVM

pwmanager-create-app-qube:
  qvm.vm:
    - name: q-pwmanager
    - present:
      - template: template-pwmanager
      - labels: black
    - prefs:
     - label: black
    - features:
    - menu-items: org.keepassxc.KeepassXC.desktop
    - require:
    - qvm: template-pwmanager

{% elif grains['id'] == 'template-pwmanager' %}

template-pwmanager-install-apps-in-template:
  pkg.installed:
    - neovim
    - keepassxc

{% endif %}

/srv/user_salt/top.sls:

user:
  dom0 or template-pwmanager:
    - pwmanager

If i run sudo qubesctl --show-output state.highstate for the first time, i get the error:

local:
----------
ID: tempalte-pwmanager--create-template
Function: qvm.clonse
Name: template-pwmanager
Comment: State 'qvm.clone' was not found in SLS 'pwmanager' Reason: 'qvm.clone' is not available
----------
(pwmanager--create-app-qube also fails because of this, i thik this is not important because it just says that the requiesite failed and i dont want to type so much)

if i run the second time sudo qubesctl --show-output state.highstate without changing anything, it correctly creates template-pwmanager and the q-pwmanager. But the error occurs always, so i always have to run it twice. This also happpens if i run sudo qubesctl --targets=template-pwmanager --show-output state.highstate the first time. If I run sudo qubesctl --targets=template-pwmanager --show-output state.highstate again, then all 3 succeed, then disp-mgmt-template-pwmanager starts, which starts template-manager, which also succeeds - but it doesn’t install anything. The summary shows that 0 succeeded and 0 failed.

1 Like

It looks like a bug. I can confirm the behavior.

Before the last update everything was fine.

Interesting, do you have any kinds of workarounds?

It looks like the problem has been fixed.

Maybe it’s just a typo? Replace the qvm.clonse with qvm.clone and try again.

1 Like