Skip tigerastatus check due to race condition

* skipping tigerastatus check due to a race condition.
* kubectl wait gets called before any tigerastatus CRs are created,
  it fails since it doesn't wait for the resources themselves to exist
* Will work on a follow-up PS for a permanent fix to check tigerastatus after
  the CRs are created.

Change-Id: Ibde0b70658fc68500756f5e43bd43c52e00b3b99
Relates-To: #442
This commit is contained in:
Sirajudeen 2021-01-06 16:09:53 +00:00
parent 68b1e4ff51
commit 4066c746ef
2 changed files with 6 additions and 4 deletions

View File

@ -23,8 +23,9 @@ airshipctl phase run initinfra-networking-ephemeral --debug
echo "Wait for Calico to be deployed using tigera"
kubectl --kubeconfig $KUBECONFIG --context $KUBECONFIG_EPHEMERAL_CONTEXT wait --all-namespaces --for=condition=Ready pods --all --timeout=1000s
echo "Wait for Tigerastatus to be Available"
kubectl --kubeconfig $KUBECONFIG --context $KUBECONFIG_EPHEMERAL_CONTEXT wait --for=condition=Available tigerastatus --all --timeout=1000s -A
# Skipping this check due a race condition till a work-around is identified.
#echo "Wait for Tigerastatus to be Available"
#kubectl --kubeconfig $KUBECONFIG --context $KUBECONFIG_EPHEMERAL_CONTEXT wait --for=condition=Available tigerastatus --all --timeout=1000s -A
echo "Deploy metal3.io components to ephemeral node"
airshipctl phase run initinfra-ephemeral --debug

View File

@ -24,8 +24,9 @@ airshipctl phase run initinfra-networking-target --debug
echo "Wait for Calico to be deployed using tigera"
kubectl --kubeconfig $KUBECONFIG --context $KUBECONFIG_TARGET_CONTEXT wait --all-namespaces --for=condition=Ready pods --all --timeout=600s
echo "Wait for Tigerastatus to be available"
kubectl --kubeconfig $KUBECONFIG --context $KUBECONFIG_TARGET_CONTEXT wait --for=condition=Available tigerastatus --all --timeout=600s -A
# Skipping this check due a race condition till a work-around is identified.
#echo "Wait for Tigerastatus to be available"
#kubectl --kubeconfig $KUBECONFIG --context $KUBECONFIG_TARGET_CONTEXT wait --for=condition=Available tigerastatus --all --timeout=600s -A
echo "Deploy infra to cluster"
airshipctl phase run initinfra-target --debug