The migration script "delete-neutron-resources" was being
executed on controller-0 instead of the undercloud node regardless
of the defer_to:localhost ansible setting.
In that controller ~/overcloudrc does not exist, so the cleanup
was failing silently.
This commit moves the cleanup to a separate role that we tie
to localhost (undercloud) from ovn-migration.yml
Closes-Bug: #1804194
Change-Id: I05f2411604ba01d170440ac655491a624f98aafc
- We only have dhcp and migration top level ymls
- Role default variables like 'var: "{{ var }}"' have been removed
- Containerless variables removed, as we don't provide support for that
since Queens.
Change-Id: I02b0b2c644e931592c14ade5b3de66ffbd136b03
This patch adds ansible playbooks and roles to carry out migration of
an existing ML2/OVS tripleo setup to ML2/OVN.
In this patch, all the migration tasks are carried out using ansible.
Below are the migration steps
1. Generates a hosts file with the ip addresses of the controllers
and computes.
2. Creates pre migration resources (including a VM) and validates them
3. Runs the overcloud deploy script with ovn-controller's configured to
use a temporary ovs bridge (OVNIntegrationBridge: "br-migration")
4. Carry out the migration tasks
- Generate the OVN north db by running ovn sync util
- Configure ovn-controllers to take over br-int
- Delete all the qrouter/q-dhcp namespaces
5. Validates the pre migration resources again to check if everything is fine
or not.
6. Deletes the pre migration resources and creates and validates post migration
resources.
7. Deletes the post migration resources
8. And finally runs the overcloud deploy script again by setting
"OVNIntegrationBridge: "br-int"
Co-authored-by: Miguel Angel Ajo <majopela@redhat.com>
Change-Id: I29f0d729f8e2ad644aa1eead7c0802995ee279a9