From 0bd3c221a62462665220ce945372ee2770461ba9 Mon Sep 17 00:00:00 2001 From: Logan V Date: Tue, 19 May 2020 17:18:53 -0500 Subject: [PATCH] Install netcat-openbsd for live migration netcat-openbsd is required on Debian/Ubuntu in order for live migration to function. If it is not installed, you get an error that looks like: libvirt.libvirtError: operation failed: Failed to connect to remote libvirt URI qemu+ssh://nova@hv1/system?no_verify=1&keyfile=/var/lib/nova/.ssh/id_rsa: End of file while reading data: sh: 1: nc: not found: Input/output error 2020-05-19 22:13:32.553 4511 ERROR nova.virt.libvirt.driver [-] [instance: b5a313c0-326c-4e3f-bec4-22926289999f] Migration operation has aborted This was originally fixed in [1] and then accidentally reverted in a package cleanup[2]. [1] https://review.opendev.org/#/c/666759/ [2] https://review.opendev.org/#/c/662585/ Closes-Bug: #1833644 Change-Id: Ia2747142e6253b286d36d8c71a263ef7ed01341d (cherry picked from commit 1e7f093fee43bd9e46a18d5183a360ffc1c9ac0d) --- vars/debian.yml | 1 + vars/redhat.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/vars/debian.yml b/vars/debian.yml index 89804476..8ef4fad4 100644 --- a/vars/debian.yml +++ b/vars/debian.yml @@ -52,6 +52,7 @@ nova_compute_packages: - genisoimage - kpartx - multipath-tools + - netcat-openbsd - nfs-common - open-iscsi - python3-guestfs diff --git a/vars/redhat.yml b/vars/redhat.yml index 94323a9d..a0872b77 100644 --- a/vars/redhat.yml +++ b/vars/redhat.yml @@ -51,6 +51,7 @@ nova_compute_packages: - dosfstools - genisoimage - kpartx + - nc - python-libguestfs - sysfsutils