Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
ansible: Reconfigure OVN during host upgrade
Reconfigure OVN on host when the upgrade process updates OvS/OVN version from 2.11 to >=2.15. Change-Id: I5f3d8d37ca8df2b557087a91038fe447454999c1 Bug-Url: https://bugzilla.redhat.com/1940824 Signed-off-by: Ales Musil <amusil@redhat.com>
- Loading branch information
Showing
6 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
packaging/ansible-runner-service-project/project/ovirt-host-reconfigure-ovn.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| - name: Fetch installed packages | ||
| package_facts: | ||
| manager: auto | ||
|
|
||
| - name: Check version of ovirt-openvswitch after upgrade | ||
| set_fact: | ||
| ovirt_openvswitch_post: "{{ ansible_facts.packages['ovirt-openvswitch'] | first }}" | ||
|
|
||
| - name: Reconfigure OVN for oVirt | ||
| command: > | ||
| vdsm-tool ovn-config {{ ovn_central }} {{ ovn_tunneling_interface }} | ||
| when: | ||
| - ovirt_openvswitch_pre.version is version('2.11', '==') | ||
| - ovirt_openvswitch_post.version is version('2.15', '>=') | ||
| - ovn_central is defined | ||
| - ovn_central | ipaddr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -73,3 +73,4 @@ | |
|
|
||
| post_tasks: | ||
| - include: ovirt-host-remove-yum-conf.yml | ||
| - include: ovirt-host-reconfigure-ovn.yml | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters