nova/nova/tests/functional/notification_sample_tests
Stephen Finucane 3f63c68195 libvirt: Add support for virtio-based input devices
The USB-based tablet is often the only USB device in an x86 instance,
while the USB-based keyboard is often the only such device in an AArch64
instance (x86 have PS2 keyboards and mice). Replacing these with
virtio-based devices can eliminate the need to have a USB host adapter
in the instance. Enable just that possibility by adding a new value
image metadata property, 'hw_input_bus'. This allows us to specify not
only virtio-based pointer and keyboard input devices but also USB
equivalents.

Note that this also fixes one instance of a particular class of bugs,
whereby we have checks for *guest* architecture-specific behavior that
are being toggled based on the *host* architecture. In this instance,
we were attempting to add a keyboard device on AArch64 guests since they
don't have one by default, but we were determining the architecture by
looking at the CPU architecture reported in the host capabilities. By
replacing this check of the host capabilities with a call to the
'nova.virt.libvirt.utils.get_arch' helper, we correctly handle requests
to create non-host architecture guests via the 'hw_architecture' image
metadata property. There are many other instances of this bug and those
can be resolved separately.

Change-Id: If9f3ede3e8449f9a6c8d1da927974c0a73923d51
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2021-03-05 11:00:02 +00:00
..
__init__.py Adds json sample for the versioned notifications 2016-01-28 15:31:21 +01:00
notification_sample_base.py functional: Add and use 'GlanceFixture' 2020-09-16 11:31:23 +01:00
test_aggregate.py Add Aggregate image caching progress notifications 2019-10-29 08:18:32 -07:00
test_compute_task.py Use _evacuate_server helper in func test 2020-11-04 13:23:40 +00:00
test_exception_notification.py Add full traceback to ExceptionPayload in versioned notifications 2018-06-19 16:46:46 +08:00
test_flavor.py trivial: Use recognized extra specs in tests 2020-02-19 08:24:31 +00:00
test_instance.py libvirt: Add support for virtio-based input devices 2021-03-05 11:00:02 +00:00
test_keypair.py Transform keypair.import notification 2017-10-30 16:44:29 -04:00
test_libvirt.py Transform libvirt.error notification 2018-09-18 07:06:09 +00:00
test_metrics.py Use a static resource tracker in compute manager 2019-01-17 06:34:29 +00:00
test_server_group.py nova-net: Remove final references to nova-net from functional tests 2019-11-29 17:20:02 +00:00
test_service.py Avoid timeout from service update notification tests 2019-08-12 17:49:11 +02:00
test_volume.py nova-net: Remove final references to nova-net from functional tests 2019-11-29 17:20:02 +00:00