ansibleplaybookbundle / kubevirt-apb

APB for managing KubeVirt deployments
Apache License 2.0
8 stars 16 forks source link

[WIP] Add functional tests #84

Open gbenhaim opened 6 years ago

gbenhaim commented 6 years ago

Signed-off-by: gbenhaim galbh2@gmail.com

gbenhaim commented 6 years ago

@rthallisey @lukas-bednar Are you familiar with the following error:

error: unable to recognize "/tmp/tmp.zCQ296uYKf": no matches for kind "ServiceInstance" in version "servicecatalog.k8s.io/v1beta1" ?

rthallisey commented 6 years ago

That seems like the service catalog didn't start correctly. I would print out the pods and see if the catalog is running.

lukas-bednar commented 6 years ago

@gbenhaim I am familiar with two issues related to ASB

1) Sometimes asb-deploy pod ends up in Error stage, and ASB never get provisioned, I run following task until it gets deployed successfully

---
- name: "Wait until ASB is running"
  shell: |
    set -o pipefail
    set -e
    # If asb-X-deploy ended in Error, remove it and redeploy it again
    if oc get pods -n openshift-ansible-service-broker | grep deploy | grep Error ;
    then
      oc delete pods -n openshift-ansible-service-broker $(oc get pods -n openshift-ansible-service-broker | grep deploy | cut -f 1 -d ' ')
      oc rollout latest asb -n openshift-ansible-service-broker
    fi
    # If ASB is not running exit with 1
    if ! oc get pods -n openshift-ansible-service-broker | grep -v deploy | grep Running ;
    then
      exit 1
    fi
  register: asb_status
  until: asb_status.rc == 0
  retries: 60
  delay: 15

2) There is open issue related to ASB route timeout ...

---
- name: "Apply WA for https://github.com/openshift/ansible-service-broker/issues/876"
  shell: |
    set -e
    oc annotate route -n openshift-ansible-service-broker asb-1338 --overwrite haproxy.router.openshift.io/timeout=300s