Remove ML2OVS-specific templates before migration to OVN

When running migration from ML2OVS to ML2OVN using infrared plugin
some ML2OVS-specific templates remain in 'overcloud deploy' command.
This is not correct and can cause issues.

Change-Id: I41c81cd42ab85395cb5fc56f339d14f2e939ebbc
Closes-bug: #1896470
This commit is contained in:
Roman Safronov 2020-09-21 14:18:38 +03:00
parent 0b4d6fe4ab
commit 526693ed3c

View File

@ -31,6 +31,16 @@
set_fact:
overcloud_deploy_ovn_script: '~/overcloud-deploy-ovn.sh'
- name: Remove ml2ovs-specific environment files from overcloud deploy ovn script
lineinfile:
dest: "{{ overcloud_deploy_ovn_script }}"
state: absent
regexp: "{{ item }}"
with_items:
- "^.*openstack-tripleo-heat-templates.*ovs.*yaml"
- ".*neutron-sriov.yaml.*"
when: infrared_deployment|bool
- name: Set container images environment file
set_fact:
output_env_file: /home/stack/container-images-ovn.yaml