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:
Manuel Buil 2017-12-21 16:45:08 +01:00
parent e8bdb9ae40
commit 882d65fc4a
1 changed files with 3 additions and 0 deletions

View File

@ -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 }}