Skip to content
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

virt-copy-in of mongodb-org-3.6.repo to /etc/yum.repos.d/ fails due to failure to get \"write\" lock" on /var/lib/libvirt/images/centos8-kvm.qcow2 #45

Open
What-Do-I-Know opened this issue Dec 20, 2023 · 0 comments

Comments

@What-Do-I-Know
Copy link

Deployment fails at this step. I can consistently get this error on CentOS Stream 8 or Rocky Linux 8.

task path: /home/jp/git/openshift-aio/playbooks/roles/base_virt/tasks/base_virt_ipi.yml:164
failed: [192.168.50.241] (item=virt-copy-in -a /var/lib/libvirt/images/centos8-kvm.qcow2 /tmp/mongodb-org-3.6.repo /etc/yum.repos.d/) => {"ansible_loop_var": "item", "changed": true, "cmd": "virt-copy-in -a /var/lib/libvirt/images/centos8-kvm.qcow2 /tmp/mongodb-org-3.6.repo /etc/yum.repos.d/", "delta": "0:00:00.269100", "end": "2023-12-20 12:43:26.814228", "item": "virt-copy-in -a /var/lib/libvirt/images/centos8-kvm.qcow2 /tmp/mongodb-org-3.6.repo /etc/yum.repos.d/", "msg": "non-zero return code", "rc": 1, "start": "2023-12-20 12:43:26.545128", "stderr": "libguestfs: error: could not create appliance through libvirt.\n\nTry running qemu directly without libvirt using this environment variable:\nexport LIBGUESTFS_BACKEND=direct\n\nOriginal error from libvirt: internal error: process exited while connecting to monitor: 2023-12-20T17:43:26.764317Z qemu-kvm: -blockdev {\"node-name\":\"libvirt-2-format\",\"read-only\":false,\"cache\":{\"direct\":false,\"no-flush\":false},\"driver\":\"qcow2\",\"file\":\"libvirt-2-storage\",\"backing\":null}: Failed to get \"write\" lock\nIs another process using the image [/var/lib/libvirt/images/centos8-kvm.qcow2]? [code=1 int1=-1]", "stderr_lines": ["libguestfs: error: could not create appliance through libvirt.", "", "Try running qemu directly without libvirt using this environment variable:", "export LIBGUESTFS_BACKEND=direct", "", "Original error from libvirt: internal error: process exited while connecting to monitor: 2023-12-20T17:43:26.764317Z qemu-kvm: -blockdev {\"node-name\":\"libvirt-2-format\",\"read-only\":false,\"cache\":{\"direct\":false,\"no-flush\":false},\"driver\":\"qcow2\",\"file\":\"libvirt-2-storage\",\"backing\":null}: Failed to get \"write\" lock", "Is another process using the image [/var/lib/libvirt/images/centos8-kvm.qcow2]? [code=1 int1=-1]"], "stdout": "", "stdout_lines": []}

PLAY RECAP **************************************************************************************************************************
192.168.50.241             : ok=38   changed=9    unreachable=0    failed=1    skipped=14   rescued=0    ignored=0```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant