Description of problem: When trying to uninstall kubevirt by deprovisioning kubevirt serviceinstance, it fails on TASK [kubevirt : Delete Demo Content] ****************************************** fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["kubectl", "delete", "--ignore-not-found=true", "-f", "/tmp/demo-content.yaml"], "delta": "0:00:00.424102", "end": "2018-11-13 10:59:35.455407", "msg": "non-zero return code", "rc": 1, "start": "2018-11-13 10:59:35.031305", "stderr": "error: the path \"/tmp/demo-content.yaml\" does not exist", "stderr_lines": ["error: the path \"/tmp/demo-content.yaml\" does not exist"], "stdout": "", "stdout_lines": []} Version-Release number of selected component (if applicable): kubevirt-apb-v3.11-4 How reproducible: 100% Steps to Reproduce: 1. Install kubevirt using apb 2. Wait until installation is complete 3. Remove / deprovision kubevirt service instance Actual results: It fails to deprovision kubevirt Expected results: It should successfully uninstall / deprovision kubevirt. Additional info: [root@cnv-executor-lbednar-master1 ~]# oc logs -n brew2-virtualization-depr-bbgrq bundle-b379f483-387b-4fd0-af3a-8ca085746899 DEPRECATED: APB playbooks should be stored at /opt/apb/project PLAY [Deprovision KubeVirt] **************************************************** TASK [ansible.kubernetes-modules : Install latest openshift client] ************ skipping: [localhost] TASK [ansibleplaybookbundle.asb-modules : debug] ******************************* skipping: [localhost] PLAY [all] ********************************************************************* TASK [Identify cluster] ******************************************************** changed: [localhost] TASK [Set cluster variable] **************************************************** [WARNING]: when statements should not include jinja2 templating delimiters such as {{ }} or {% %}. Found: {{ result.rc }} == 0 ok: [localhost] TASK [Login As Super User] ***************************************************** changed: [localhost] PLAY [masters[0]] ************************************************************** TASK [network-multus : include_tasks] ****************************************** included: /etc/ansible/roles/kubevirt-ansible/roles/network-multus/tasks/deprovision.yml for localhost TASK [network-multus : openshift cni config] *********************************** ok: [localhost] TASK [network-multus : kubernetes cni config] ********************************** skipping: [localhost] TASK [network-multus : Render multus deployment yaml] ************************** changed: [localhost] TASK [network-multus : Delete multus Resources] ******************************** changed: [localhost] TASK [network-multus : Render cni plugins deployment yaml] ********************* changed: [localhost] TASK [network-multus : Delete cni plugins Resources] *************************** changed: [localhost] TASK [network-multus : Render OVS plugin deployment yaml] ********************** changed: [localhost] TASK [network-multus : Delete OVS plugin Resources] **************************** changed: [localhost] TASK [network-multus : Render ovs-vsctl deployment yaml] *********************** changed: [localhost] TASK [network-multus : Delete ovs-vsctl Resources] ***************************** changed: [localhost] TASK [skydive : include_tasks] ************************************************* skipping: [localhost] PLAY [masters[0]] ************************************************************** TASK [kubevirt : include_tasks] ************************************************ included: /etc/ansible/roles/kubevirt-ansible/roles/kubevirt/tasks/deprovision.yml for localhost TASK [kubevirt : Check that demo-content.yaml still exists in /tmp] ************ ok: [localhost] TASK [kubevirt : Check for demo-content.yaml template in /etc/ansible/roles/kubevirt-ansible/roles/kubevirt/templates] *** ok: [localhost] TASK [kubevirt : Download Demo Content] **************************************** skipping: [localhost] TASK [kubevirt : Copy BYO Demo Content to /tmp] ******************************** skipping: [localhost] TASK [kubevirt : Delete Demo Content] ****************************************** fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["kubectl", "delete", "--ignore-not-found=true", "-f", "/tmp/demo-content.yaml"], "delta": "0:00:00.424102", "end": "2018-11-13 10:59:35.455407", "msg": "non-zero return code", "rc": 1, "start": "2018-11-13 10:59:35.031305", "stderr": "error: the path \"/tmp/demo-content.yaml\" does not exist", "stderr_lines": ["error: the path \"/tmp/demo-content.yaml\" does not exist"], "stdout": "", "stdout_lines": []} PLAY RECAP ********************************************************************* localhost : ok=16 changed=10 unreachable=0 failed=1
Nelly could you please add comment on wontfix resolution?
https://github.com/kubevirt/kubevirt-ansible/pull/463 This is a simple fix. Will be in the next build.
We closed it as wont fix, because APB will be deprecated in 1.4, so we decided to save the trouble of fixing this issue