ovs2ovn migration tool fails using VALIDATE_MIGRATION=False

Bug #1942344 reported by Roman Safronov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Unassigned

Bug Description

OVN Migration Script [1] Fails when MIGRATION_VALIDATE=False.
It doesn't work 100% of the time without a FIP.

[1] tools/ovn_migration/tripleo_environment/ovn_migration.sh

Steps to Reproduce:
1. VALIDATE_MIGRATION=False; export VALIDATE_MIGRATION
2. Execute /usr/bin/ovn_migration.sh generate-inventory

Actual results:
$ /usr/bin/ovn_migration.sh generate-inventory
/usr/bin/ovn_migration.sh: line 226: /home/stack/overcloudrc: No such file or directory
Error while executing command: No Network found for public
ERROR: PUBLIC_NETWORK_NAME=public can't be accessed by the
       admin user, please fix that before continuing.

Expected results:
Script to execute without errors:
$ ./ovn_migration.sh generate-inventory
(tpa-vim-b) [stack@tpavimbuc ovn_migration]$ echo $?
0

The customer does not use floating IPs, this is why not all of the environment variables were set.
The OVN migration script should return successfully from oc_check_public_network in case MIGRATION_VALIDATE set to False.

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

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/neutron/+/806942

Changed in neutron:
status: New → In Progress
tags: added: ovn
Changed in neutron:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/806942
Committed: https://opendev.org/openstack/neutron/commit/3c305bf6ae37bd26cda8545bb1a76302dc830dee
Submitter: "Zuul (22348)"
Branch: master

commit 3c305bf6ae37bd26cda8545bb1a76302dc830dee
Author: Roman Safronov <email address hidden>
Date: Wed Sep 1 17:56:43 2021 +0300

    Skip FIP check if VALIDATE_MIGRATION is not True

    OVN migration script fails when VALIDATE_MIGRATION is not set to
    True. oc_check_public_network should return successfully in case
    VALIDATE_MIGRATION is set to False.

    Closes bug: #1942344

    Change-Id: Ibd0aea5b4e6bf44803d5d0100cacc17d401b03cc

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

Fix proposed to branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/neutron/+/807735

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/victoria)

Fix proposed to branch: stable/victoria
Review: https://review.opendev.org/c/openstack/neutron/+/807736

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

Fix proposed to branch: stable/ussuri
Review: https://review.opendev.org/c/openstack/neutron/+/807737

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/wallaby)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/807735
Committed: https://opendev.org/openstack/neutron/commit/c26296d8023310aed1b9e12b39f274130a2b12d5
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit c26296d8023310aed1b9e12b39f274130a2b12d5
Author: Roman Safronov <email address hidden>
Date: Wed Sep 1 17:56:43 2021 +0300

    Skip FIP check if VALIDATE_MIGRATION is not True

    OVN migration script fails when VALIDATE_MIGRATION is not set to
    True. oc_check_public_network should return successfully in case
    VALIDATE_MIGRATION is set to False.

    Closes bug: #1942344

    Change-Id: Ibd0aea5b4e6bf44803d5d0100cacc17d401b03cc
    (cherry picked from commit 3c305bf6ae37bd26cda8545bb1a76302dc830dee)

tags: added: in-stable-wallaby
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/victoria)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/807736
Committed: https://opendev.org/openstack/neutron/commit/78e200268f8cdbd3473fe667e92e2606c7c3debf
Submitter: "Zuul (22348)"
Branch: stable/victoria

commit 78e200268f8cdbd3473fe667e92e2606c7c3debf
Author: Roman Safronov <email address hidden>
Date: Wed Sep 1 17:56:43 2021 +0300

    Skip FIP check if VALIDATE_MIGRATION is not True

    OVN migration script fails when VALIDATE_MIGRATION is not set to
    True. oc_check_public_network should return successfully in case
    VALIDATE_MIGRATION is set to False.

    Closes bug: #1942344

    Change-Id: Ibd0aea5b4e6bf44803d5d0100cacc17d401b03cc
    (cherry picked from commit 3c305bf6ae37bd26cda8545bb1a76302dc830dee)

tags: added: in-stable-victoria
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 19.0.0.0rc1

This issue was fixed in the openstack/neutron 19.0.0.0rc1 release candidate.

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

Reviewed: https://review.opendev.org/c/openstack/neutron/+/807737
Committed: https://opendev.org/openstack/neutron/commit/3ebe727ae32aac87b4a54f0d2ed09d0429cb06fb
Submitter: "Zuul (22348)"
Branch: stable/ussuri

commit 3ebe727ae32aac87b4a54f0d2ed09d0429cb06fb
Author: Roman Safronov <email address hidden>
Date: Wed Sep 1 17:56:43 2021 +0300

    Skip FIP check if VALIDATE_MIGRATION is not True

    OVN migration script fails when VALIDATE_MIGRATION is not set to
    True. oc_check_public_network should return successfully in case
    VALIDATE_MIGRATION is set to False.

    Closes bug: #1942344

    Change-Id: Ibd0aea5b4e6bf44803d5d0100cacc17d401b03cc
    (cherry picked from commit 3c305bf6ae37bd26cda8545bb1a76302dc830dee)

tags: added: in-stable-ussuri
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 16.4.2

This issue was fixed in the openstack/neutron 16.4.2 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 17.3.0

This issue was fixed in the openstack/neutron 17.3.0 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 18.2.0

This issue was fixed in the openstack/neutron 18.2.0 release.

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

This issue was fixed in the openstack/networking-ovn train-eol 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.