summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Wolinetz <ewolinet@redhat.com>2017-09-25 16:38:21 -0500
committerEric Wolinetz <ewolinet@redhat.com>2017-09-25 20:35:33 -0500
commitadccff862e8e5d56673415c3ee8d133997d80211 (patch)
treefbd857aedbaed445c2a07c2cf687ac3d8b0ed295
parent67ff061a940a4b9dce6686b8a00a3eb52aeeb698 (diff)
downloadopenshift-adccff862e8e5d56673415c3ee8d133997d80211.tar.gz
openshift-adccff862e8e5d56673415c3ee8d133997d80211.tar.bz2
openshift-adccff862e8e5d56673415c3ee8d133997d80211.tar.xz
openshift-adccff862e8e5d56673415c3ee8d133997d80211.zip
Updating to check for netnamespace kube-service-catalog to be ready
-rw-r--r--roles/openshift_service_catalog/tasks/install.yml20
1 files changed, 16 insertions, 4 deletions
diff --git a/roles/openshift_service_catalog/tasks/install.yml b/roles/openshift_service_catalog/tasks/install.yml
index faf1aea97..e202ae173 100644
--- a/roles/openshift_service_catalog/tasks/install.yml
+++ b/roles/openshift_service_catalog/tasks/install.yml
@@ -23,10 +23,22 @@
name: "kube-service-catalog"
node_selector: ""
-- name: Make kube-service-catalog project network global
- command: >
- oc adm pod-network make-projects-global kube-service-catalog
- when: os_sdn_network_plugin_name == 'redhat/openshift-ovs-multitenant'
+- when: os_sdn_network_plugin_name == 'redhat/openshift-ovs-multitenant'
+ block:
+ - name: Waiting for netnamespace kube-service-catalog to be ready
+ oc_obj:
+ kind: netnamespace
+ name: kube-service-catalog
+ state: list
+ register: get_output
+ until: not get_output.results.stderr is defined
+ retries: 30
+ delay: 1
+ changed_when: false
+
+ - name: Make kube-service-catalog project network global
+ command: >
+ oc adm pod-network make-projects-global kube-service-catalog
- include: generate_certs.yml