From 9c518dc03bb7f68ce35f29588ebb59d936ec886f Mon Sep 17 00:00:00 2001 From: Mrunal Patel Date: Tue, 26 Sep 2017 15:53:43 -0700 Subject: [PATCH] test: Fix kube dns bring up in cluster We have to call hack/local-up-cluster from kubernetes directory as it makes relative calls to cluster/kubectl.sh. The failure of these calls led to kube-dns not coming up. Signed-off-by: Mrunal Patel --- contrib/test/integration/build/kubernetes.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/test/integration/build/kubernetes.yml b/contrib/test/integration/build/kubernetes.yml index 9c837cc2..206cba44 100644 --- a/contrib/test/integration/build/kubernetes.yml +++ b/contrib/test/integration/build/kubernetes.yml @@ -23,6 +23,7 @@ After=network-online.target Wants=network-online.target [Service] + WorkingDirectory={{ ansible_env.GOPATH }}/src/k8s.io/kubernetes ExecStart=/usr/local/bin/createcluster.sh User=root [Install] @@ -44,7 +45,7 @@ export API_HOST={{ ansible_eth0.ipv4.address }} export API_HOST_IP={{ ansible_eth0.ipv4.address }} export KUBE_ENABLE_CLUSTER_DNS=true - {{ ansible_env.GOPATH }}/src/k8s.io/kubernetes/hack/local-up-cluster.sh + ./hack/local-up-cluster.sh mode: "u=rwx,g=rwx,o=x" - name: Set kubernetes_provider to be local