kubevirt / kubevirt-ansible

Set of Ansible roles & playbooks for KubeVirt deployment
Apache License 2.0
91 stars 72 forks source link

Web UI: Adapt playbook to use Operator #544

Closed mareklibra closed 5 years ago

mareklibra commented 5 years ago

The Kubevirt Web UI Operator [1] is used for (un)deployment of Web UI.

[1] https://github.com/kubevirt/web-ui-operator

What this PR does / why we need it: The Web UI playbook leverages the new Operator for deployment

Special notes for your reviewer:

Release note:

The KubeVirt Web UI Playbook is newly based on the Operator managing application deployment.
mareklibra commented 5 years ago

I've moved the playbook one directory up. Still works locally.

mareklibra commented 5 years ago

The Kubevirt Web UI playbook is missing oc login:

08:57:51 TASK [kubevirt_web_ui : Check if project for kubevirt-web-ui exists] ***********
08:57:51 Friday 11 January 2019  07:57:51 +0000 (0:00:00.213)       0:32:28.723 ******** 
08:57:52 changed: [localhost] => {
08:57:52     "changed": true, 
08:57:52     "cmd": "oc projects -q | grep -w kubevirt-web-ui | awk '{ print $1 }'", 
08:57:52     "delta": "0:00:00.473294", 
08:57:52     "end": "2019-01-11 07:57:52.275350", 
08:57:52     "rc": 0, 
08:57:52     "start": "2019-01-11 07:57:51.802056"
08:57:52 }
08:57:52 
08:57:52 STDERR:
08:57:52 
08:57:52 Unable to connect to the server: Forbidden

The playbook connects locally and expects valid login. To resolve the issue, I will need to investigate the flow in CI related to the initial_configuration.yml.

mareklibra commented 5 years ago

The operator's yaml files are generated from templates now. Especially the namespace is not hardcoded anymore.

Anyway, the playbook is still not getting oc login in the CI env. Locally works fine.

mareklibra commented 5 years ago

@rthallisey , we are green now :-)