Add retry to OVS Manager task
The previous task which starts the ovs process must be ready before the OvS manager is retrieved, otherwise, it fails. I experienced already a problem because OvS was not ready. Adding a retries logic fixes the problem Change-Id: I7bfecfc65c76e31ea14aae4728679e434193c092 Signed-off-by: Manuel Buil <mbuil@suse.com>
This commit is contained in:
parent
e8bdb9ae40
commit
882d65fc4a
@ -23,6 +23,9 @@
|
||||
command: ovs-vsctl get-manager
|
||||
register: ovs_manager
|
||||
changed_when: False
|
||||
until: ovs_manager.rc == 0
|
||||
retries: 3
|
||||
delay: 5
|
||||
|
||||
- name: Set ODL as OvS manager
|
||||
command: ovs-vsctl set-manager {{ ovs_manager_list }}
|
||||
|
Loading…
Reference in New Issue
Block a user