Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2010980

Summary: /usr/bin/ovn_migration.sh does not know how to handle answers files
Product: Red Hat OpenStack Reporter: Vincent S. Cojot <vcojot>
Component: python-networking-ovnAssignee: Elvira <egarciar>
Status: CLOSED ERRATA QA Contact: Eran Kuris <ekuris>
Severity: low Docs Contact:
Priority: low    
Version: 16.2 (Train)CC: apevec, egarciar, lhh, majopela, scohen
Target Milestone: z3Keywords: Triaged
Target Release: 16.2 (Train on RHEL 8.4)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-networking-ovn-7.4.2-2.20220209161010.3a1deba.el8osttrunk Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-06-22 16:02:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vincent S. Cojot 2021-10-05 17:28:14 UTC
Description of problem:

When running the OVS to OVN migration on 16.2
https://access.redhat.com/documentation/en/red_hat_openstack_platform/16.2/html/networking_with_open_virtual_network/migrating-ml2ovs-to-ovn#ml2-ovs-to-ovn-migration-prepare_migrating-ml2ovs-to-ovn
(step 10), the ovn_migration script aborts with this error:

[stack@osp16d ~]$ ovn_migration.sh setup-mtu-t1   | sudo tee -a /var/log/ovn_migration_output.txt
OVN t-h-t environment file seems to be missing in /home/stack/OSP/osp16.2/bin/deploy_ovn_small.sh. Please check the /home/stack/OSP/osp16.2/bin/deploy_ovn_small.sh file again.


But the file is referenced by the answers file.

The deploy script is:
$ cat /home/stack/OSP/osp16.2/bin/deploy_ovn_small.sh
#!/bin/bash
#
#
[ "$BASH" ] && function whence
{
        type -p "$@"
}
#
ret=0
#
export PATH_SCRIPT="$(cd $(/usr/bin/dirname $(whence -- $0 || echo $0));pwd)"
export TOP_DIR="$(cd ${PATH_SCRIPT}/..; pwd)"
export TRIPLEO_DIR="/usr/share/openstack-tripleo-heat-templates"

source ${TOP_DIR}/pre_deploy.sh || exit 127
set -x
time openstack overcloud deploy \
--templates \
-r ${TOP_DIR}/roles_data.yaml \
-n ${TOP_DIR}/network_data.yaml \
-e ${TOP_DIR}/node_info_small.yaml \
--answers-file ${TOP_DIR}/answers-file-ovn.yaml \ <=============================
"$@"
ret=$(($ret + $?))


The answers file includes the proper t-h-t template:
$ cat /home//stack/OSP/osp16.2/answers-file-ovn.yaml 
templates: /usr/share/openstack-tripleo-heat-templates/
environments:
    - /home/stack/OSP/osp16.2/overcloud-images.yaml
    - /home/stack/OSP/osp16.2/containers-prepare-parameter.yaml
    - /home/stack/OSP/osp16.2/rhsm.yaml
    - /usr/share/openstack-tripleo-heat-templates/environments/network-isolation.yaml
    - /usr/share/openstack-tripleo-heat-templates/environments/network-environment.yaml
    - /usr/share/openstack-tripleo-heat-templates/environments/ceph-ansible/ceph-ansible.yaml
    - /usr/share/openstack-tripleo-heat-templates/environments/cinder-backup.yaml
    - /usr/share/openstack-tripleo-heat-templates/environments/ceph-ansible/ceph-rgw.yaml
    - /usr/share/openstack-tripleo-heat-templates/environments/ssl/tls-endpoints-public-ip.yaml
    - /usr/share/openstack-tripleo-heat-templates/environments/host-config-and-reboot.yaml
    - /usr/share/openstack-tripleo-heat-templates/environments/disable-telemetry.yaml
    # OVN:
    - /usr/share/openstack-tripleo-heat-templates/environments/services/neutron-ovn-dvr-ha.yaml <================================================
templates/environments/services/neutron-ovn-standalone.yaml
    # Krynn Custom Config:
    - /home/stack/OSP/osp16.2/net-bond-with-vlans-with-nic4.yaml
    - /home/stack/OSP/osp16.2/krynn-environment.yaml
    - /home/stack/OSP/osp16.2/network-environment.yaml
    - /home/stack/OSP/osp16.2/extraconfig-environment.yaml
    - /home/stack/OSP/osp16.2/network-driver-ovn.yaml
    - /home/stack/OSP/osp16.2/rhel-registration-environment.yaml
    - /home/stack/OSP/osp16.2/inject-trust-anchor.yaml
    - /home/stack/OSP/osp16.2/inject-trust-anchor-hiera.yaml
    - /home/stack/OSP/osp16.2/enable-tls.yaml
    - /home/stack/OSP/osp16.2/ceph-custom-config.yaml
    #- /home/stack/OSP/osp16.2/memcached_servers.yaml
    - /home/stack/OSP/osp16.2/compute_policies.yaml
    - /home/stack/OSP/osp16.2/local-environment.yaml
    - /home/stack/OSP/osp16.2/fencing.yaml
    # - /usr/share/openstack-tripleo-heat-templates/environments/services/octavia.yaml
    - /home/stack/OSP/osp16.2/horizon_domains.yaml

Comment 1 Lucas Alvares Gomes 2021-10-12 08:51:38 UTC
*** Bug 2010981 has been marked as a duplicate of this bug. ***

Comment 11 errata-xmlrpc 2022-06-22 16:02:31 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Release of components for Red Hat OpenStack Platform 16.2.3 (Train)), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:4793