~agherzan/uvtool:ag/2002530

Last commit made on 2023-01-11
Get this branch:
git clone -b ag/2002530 https://git.launchpad.net/~agherzan/uvtool
Only Andrei Gherzan can upload to this branch. If you are Andrei Gherzan please log in for upload directions.

Branch merges

Branch information

Name:
ag/2002530
Repository:
lp:~agherzan/uvtool

Recent commits

a88d59d... by Andrei Gherzan

uvtool: Force virsh for the qemu system daemon

When uvtool creates a VM, it uses the qemu system daemon connection.
This commit forces the list command to use the same connection no matter
the local configuration. This makes create/list command consistent.

Fixes: https://bugs.launchpad.net/uvtool/+bug/2002530

Signed-off-by: Andrei Gherzan <email address hidden>

5408862... by Andrei Gherzan

uvtool: Clarify comment for the list command

Using the virsh wrapper has the disadvantage of not taking into
consideration libvirt configuration we assume (for example using the
system daemon for the libvirt qemu driver/hypervisor.

Also, given that uvtool tends to be used as a shim over libvirt,
filtering the list output wouldn't be very helpful.

This commit clarifies the above and marks a todo to turn this into a
better native implementation.

Related to: https://bugs.launchpad.net/uvtool/+bug/2002530

Signed-off-by: Andrei Gherzan <email address hidden>

1289606... by Lena Voytek

Swap simplestreams test comments to allowlist for inclusive naming

1aae2d4... by Robie Basak

Fix typo in exception description string

c774bc7... by Christian Ehrhardt 

uvtool: switch ip guessing to libvirt-python

This allows to drop plenty of complex code and dependencies
and at the same time is not affected by all the snap path-munging.

Signed-off-by: Christian Ehrhardt <email address hidden>

b621342... by Andrea Righi

Drop ps2 from arhmf libvirt template

The ps2 bus is not available on armh, make sure to drop it from the
armhf template to prevent potential failures when creating armhf
instances.

BugLink: https://bugs.launchpad.net/bugs/1956366
Signed-off-by: Andrea Righi <email address hidden>

LP: #1956366

0e92d8b... by Christian Ehrhardt 

tolerate if some key types can't be created (LP: #1936473)

For example in FIPS mode we otherwise abort with
DSA keys are not allowed in FIPS mode^M
Traceback (most recent call last):
  File "/usr/bin/uvt-kvm", line 35, in <module>
    uvtool.libvirt.kvm.main_cli_wrapper(sys.argv[1:])
  File "/usr/lib/python2.7/dist-packages/uvtool/libvirt/kvm.py", line 861, in main_cli_wrapper
    main(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/uvtool/libvirt/kvm.py", line 856, in main
    args.func(parser, args)
  File "/usr/lib/python2.7/dist-packages/uvtool/libvirt/kvm.py", line 643, in main_create
    ssh_host_keys, ssh_known_hosts = uvtool.ssh.generate_ssh_host_keys()
  File "/usr/lib/python2.7/dist-packages/uvtool/ssh.py", line 50, in generate_ssh_host_keys
    _keygen(key_type, private_path)
  File "/usr/lib/python2.7/dist-packages/uvtool/ssh.py", line 34, in _keygen
    '-C', 'root@localhost'
  File "/usr/lib/python2.7/subprocess.py", line 190, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['ssh-keygen', '-q', '-f', '/tmp/uvt-kvm.sshtmpVhmPlF/dsa', '-N', '', '-t', 'dsa', '-C', 'root@localhost']' returned non-zero exit status 255

Signed-off-by: Christian Ehrhardt <email address hidden>

6bcf466... by Christian Ehrhardt 

man: TIL more about apostrophes

fc973ce... by Christian Ehrhardt 

fix CPU capitalization and posessive apostrophe

Signed-off-by: Christian Ehrhardt <email address hidden>

a3a27a6... by Christian Ehrhardt 

change exposed option from --model to --cpu-model

Signed-off-by: Christian Ehrhardt <email address hidden>