Live migrate does not work due to missing 'nc' executable

Bug #1833644 reported by Logan V
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Undecided
Jean-Philippe Evrard

Bug Description

On rocky I am seeing live migration failures due to the 'netcat-openbsd' package not being installed on my Ubuntu hosts.

This error is thrown by nova-compute on the source node:
Jun 21 02:06:20 sourcehost nova-compute[1458140]: 2019-06-21 02:06:20.458 1458140 ERROR nova.virt.libvirt.driver [-] [instance: d1a88f58-04df-4d07-a011-beab9f3e3675] Live Migration failure: operation failed: Failed to connect to remote libvirt URI qemu+ssh://nova@targethost/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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible-os_nova (master)

Fix proposed to branch: master
Review: https://review.opendev.org/666759

Changed in openstack-ansible:
assignee: nobody → Logan V (loganv)
status: New → In Progress
Changed in openstack-ansible:
assignee: Logan V (loganv) → Jean-Philippe Evrard (jean-philippe-evrard)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-os_nova (master)

Reviewed: https://review.opendev.org/666759
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-os_nova/commit/?id=a01e6d9607702ae2ca9282808193b4b91ea0cce6
Submitter: Zuul
Branch: master

commit a01e6d9607702ae2ca9282808193b4b91ea0cce6
Author: Logan V <email address hidden>
Date: Thu Jun 20 22:16:24 2019 -0500

    Install netcat on compute hosts

    Compute hosts require netcat in order to perform live migrations.

    Closes-Bug: #1833644
    Change-Id: Ie0caab0b10e878722f1804f67808f1d83d504c59

Changed in openstack-ansible:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible-os_nova (stable/stein)

Fix proposed to branch: stable/stein
Review: https://review.opendev.org/669953

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible-os_nova (stable/rocky)

Fix proposed to branch: stable/rocky
Review: https://review.opendev.org/669954

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-os_nova (stable/stein)

Reviewed: https://review.opendev.org/669953
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-os_nova/commit/?id=99266bd43b59d0d42fbce090487d13625b5a5b57
Submitter: Zuul
Branch: stable/stein

commit 99266bd43b59d0d42fbce090487d13625b5a5b57
Author: Logan V <email address hidden>
Date: Thu Jun 20 22:16:24 2019 -0500

    Install netcat on compute hosts

    Compute hosts require netcat in order to perform live migrations.

    Closes-Bug: #1833644
    Change-Id: Ie0caab0b10e878722f1804f67808f1d83d504c59
    (cherry picked from commit a01e6d9607702ae2ca9282808193b4b91ea0cce6)

tags: added: in-stable-stein
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-os_nova (stable/rocky)

Reviewed: https://review.opendev.org/669954
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-os_nova/commit/?id=6b91473e7b1179d5b91d5d93c4feae6d20b2c67e
Submitter: Zuul
Branch: stable/rocky

commit 6b91473e7b1179d5b91d5d93c4feae6d20b2c67e
Author: Logan V <email address hidden>
Date: Thu Jun 20 22:16:24 2019 -0500

    Install netcat on compute hosts

    Compute hosts require netcat in order to perform live migrations.

    Closes-Bug: #1833644
    Change-Id: Ie0caab0b10e878722f1804f67808f1d83d504c59
    (cherry picked from commit a01e6d9607702ae2ca9282808193b4b91ea0cce6)

tags: added: in-stable-rocky
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible-os_nova (master)

Fix proposed to branch: master
Review: https://review.opendev.org/729413

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-os_nova (master)

Reviewed: https://review.opendev.org/729413
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-os_nova/commit/?id=1e7f093fee43bd9e46a18d5183a360ffc1c9ac0d
Submitter: Zuul
Branch: master

commit 1e7f093fee43bd9e46a18d5183a360ffc1c9ac0d
Author: Logan V <email address hidden>
Date: Tue May 19 17:18:53 2020 -0500

    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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible-os_nova (stable/ussuri)

Fix proposed to branch: stable/ussuri
Review: https://review.opendev.org/737787

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-os_nova (stable/ussuri)

Reviewed: https://review.opendev.org/737787
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-os_nova/commit/?id=0bd3c221a62462665220ce945372ee2770461ba9
Submitter: Zuul
Branch: stable/ussuri

commit 0bd3c221a62462665220ce945372ee2770461ba9
Author: Logan V <email address hidden>
Date: Tue May 19 17:18:53 2020 -0500

    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)

tags: added: in-stable-ussuri
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-os_nova rocky-eol

This issue was fixed in the openstack/openstack-ansible-os_nova rocky-eol release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-os_nova stein-eol

This issue was fixed in the openstack/openstack-ansible-os_nova stein-eol release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-os_nova train-eol

This issue was fixed in the openstack/openstack-ansible-os_nova train-eol release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-os_nova ussuri-eol

This issue was fixed in the openstack/openstack-ansible-os_nova ussuri-eol release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-os_nova yoga-eom

This issue was fixed in the openstack/openstack-ansible-os_nova yoga-eom release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-os_nova victoria-eom

This issue was fixed in the openstack/openstack-ansible-os_nova victoria-eom release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-os_nova wallaby-eom

This issue was fixed in the openstack/openstack-ansible-os_nova wallaby-eom release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-ansible-os_nova xena-eom

This issue was fixed in the openstack/openstack-ansible-os_nova xena-eom release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.