Bug 1649311 - kubevirt-apb fails to deprovision kubevirt on missing /tmp/demo-content.yaml
Summary: kubevirt-apb fails to deprovision kubevirt on missing /tmp/demo-content.yaml
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Installation
Version: 1.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Ryan Hallisey
QA Contact: Irina Gulina
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-13 11:23 UTC by Lukas Bednar
Modified: 2018-11-19 08:47 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-11-13 16:48:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.