#386 add support to usb mass storage devices on qemu inventory
Merged by astepano. Opened by bgoncalv.
bgoncalv/standard-test-roles fix-standard-inventory-qcow2  into  master

Download 386.patch

add support to usb mass storage devices on qemu inventory

don't remove tempfile when process ends

It is possible to 1st provision the VM and leave it running to only after run the playbook like example below, so tempfile can't be removed until qemu process finishes

TEST_DEBUG=1 TEST_SUBJECTS=/test_subject.qcow2 ansible-inventory --inventory=/usr/share/ansible/inventory/standard-inventory-qcow2 --list --yaml | tee pipeline_inventory.yaml
ansible-playbook --inventory=pipeline_inventory.yaml --extra-vars ansible_python_interpreter=/usr/bin/python3 --tags classic tests.yml

if=none
Will it work with this? A few lines we use virtio .

I followed the information from https://www.linux-kvm.org/page/USB, I've tested and it seems to work for me.

On my test I was able to create a filesystem and mount it.

2 new commits added

  • add support to usb mass storage devices on qemu inventory
  • don't remove tempfile when process ends

Could you please add:
custom directory path.
+ Filename for image will be auto-generated.

  • maybe squash to 1 git commit + add a link to https://www.linux-kvm.org/page/USB in git-commit text ?

2 new commits added

  • add support to usb mass storage devices on qemu inventory
  • don't remove tempfile when process ends

Sure I can squash it, but as the fix to not delete the tempfiles is unrelated to usb support I though having it separated was better.

ah, ok.

2 new commits added

  • add support to usb mass storage devices on qemu inventory
  • don't remove tempfile when process ends

updated

2 new commits added

  • add support to usb mass storage devices on qemu inventory
  • don't remove tempfile when process ends

Commit 6267038c fixes this pull-request

Pull-Request has been merged by astepano

Metadata