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

Bug 2010981

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: OSP Team <rhos-maint>
Status: CLOSED DUPLICATE QA Contact: Eran Kuris <ekuris>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16.2 (Train)CC: adeolive, apevec, lhh, lmartins, majopela, scohen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-12 08:51:38 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:21 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

*** This bug has been marked as a duplicate of bug 2010980 ***