Bug 1649311

Summary: kubevirt-apb fails to deprovision kubevirt on missing /tmp/demo-content.yaml
Product: Container Native Virtualization (CNV) Reporter: Lukas Bednar <lbednar>
Component: InstallationAssignee: Ryan Hallisey <rhallise>
Status: CLOSED WONTFIX QA Contact: Irina Gulina <igulina>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.3CC: cnv-qe-bugs, ncredi, rhallise
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-11-13 16:48:35 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Lukas Bednar 2018-11-13 11:23:53 UTC
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

Comment 1 Lukas Bednar 2018-11-14 06:51:39 UTC
Nelly could you please add comment on wontfix resolution?

Comment 2 Ryan Hallisey 2018-11-14 13:09:52 UTC
https://github.com/kubevirt/kubevirt-ansible/pull/463

This is a simple fix.  Will be in the next build.

Comment 3 Nelly Credi 2018-11-19 08:47:22 UTC
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