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

Salt vcpus bug in 4.0 rc 1 #3120

Closed
huntse opened this Issue Sep 24, 2017 · 5 comments

Comments

Projects
None yet
4 participants
@huntse

huntse commented Sep 24, 2017

Qubes OS version (e.g., R3.2):

R4.0-rc1

Affected TemplateVMs (e.g., fedora-23, if applicable):

n/a

Steps to reproduce the behavior:

Create an x.top file like this

base:
  dom0:
  - x

...and an x.sls file like this

x:
  qvm.present:
   - name: x
   - template: fedora-25
   - label: blue
   - mem: 4096
   - vcpus: 4

..and then try to create the vm by doing

$ sudo qubesctl top.enable x
$ sudo qubesctl state.highstate

Expected behavior:

It should create a new qube with 4 vcpus (as per the docs and presumably R3.2).

Actual behavior:

...you get error output something like this, saying that it doesn't understand the vcpus option.

[ERROR   ] /usr/bin/qvm-check x 
====== stderr ======
/usr/bin/qvm-create --template fedora-25 --label blue --vcpus 4 x 
usage: qvm-create [-h] [--verbose] [--quiet] [--class CLS]
                  [--property NAME=VALUE] [--pool VOLUME_NAME=POOL_NAME]
                  [-P POOL_NAME] [--template VALUE] [--label VALUE]
                  [--help-classes]
                  [--root-copy-from FILENAME | --root-move-from FILENAME]
                  [VMNAME]
qvm-create: error: unrecognized arguments: --vcpus x
====== stderr ======
/usr/bin/qvm-check x 
usage: qvm-check [-h] [--verbose] [--quiet] [--all] [--exclude EXCLUDE]
                 [--running] [--paused] [--template]
                 [VMNAME [VMNAME ...]]
qvm-check: error: no such domain: 'x'                                                                   

General notes:

It seems that the salt stuff has not been updated to take into account changes to the syntax of qvm-create. In particular, it no longer accepts a --vcpus option, although there may well be other options which are now broken in 4.0.


Related issues:

@huntse

This comment has been minimized.

Show comment
Hide comment
@huntse

huntse Sep 24, 2017

OK, so the problem is in https://github.com/QubesOS/qubes-mgmt-salt-dom0-qvm/blob/master/_modules/ext_module_qvm.py where it's adding a lot of options like --vcpus 4 when they should be --property vcpus=4 in the new version of qvm-create. It's not completely obvious to me how to change the code over to the new format without a large-scale hack however.

huntse commented Sep 24, 2017

OK, so the problem is in https://github.com/QubesOS/qubes-mgmt-salt-dom0-qvm/blob/master/_modules/ext_module_qvm.py where it's adding a lot of options like --vcpus 4 when they should be --property vcpus=4 in the new version of qvm-create. It's not completely obvious to me how to change the code over to the new format without a large-scale hack however.

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Sep 24, 2017

Member

I'm working on it, there are more compatibility problems (like handling proxy/netvm, hvm templates...).

Member

marmarek commented Sep 24, 2017

I'm working on it, there are more compatibility problems (like handling proxy/netvm, hvm templates...).

@huntse

This comment has been minimized.

Show comment
Hide comment
@huntse

huntse Sep 24, 2017

Yeah this is what I noticed too. Thanks anyway.

huntse commented Sep 24, 2017

Yeah this is what I noticed too. Thanks anyway.

@qubesos-bot

This comment has been minimized.

Show comment
Hide comment
@qubesos-bot

qubesos-bot Oct 8, 2017

Automated announcement from builder-github

The package qubes-mgmt-salt-dom0-qvm-4.0.4-1.fc25 has been pushed to the r4.0 testing repository for dom0.
To test this update, please install it with the following command:

sudo qubes-dom0-update --enablerepo=qubes-dom0-current-testing

Changes included in this update

Automated announcement from builder-github

The package qubes-mgmt-salt-dom0-qvm-4.0.4-1.fc25 has been pushed to the r4.0 testing repository for dom0.
To test this update, please install it with the following command:

sudo qubes-dom0-update --enablerepo=qubes-dom0-current-testing

Changes included in this update

@qubesos-bot qubesos-bot referenced this issue in QubesOS/updates-status Oct 8, 2017

Closed

mgmt-salt-dom0-qvm v4.0.4 (r4.0) #256

@qubesos-bot

This comment has been minimized.

Show comment
Hide comment
@qubesos-bot

qubesos-bot Oct 17, 2017

Automated announcement from builder-github

The package qubes-mgmt-salt-dom0-qvm-4.0.4-1.fc25 has been pushed to the r4.0 stable repository for dom0.
To install this update, please use the standard update command:

sudo qubes-dom0-update

Or update dom0 via Qubes Manager.

Changes included in this update

Automated announcement from builder-github

The package qubes-mgmt-salt-dom0-qvm-4.0.4-1.fc25 has been pushed to the r4.0 stable repository for dom0.
To install this update, please use the standard update command:

sudo qubes-dom0-update

Or update dom0 via Qubes Manager.

Changes included in this update

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