OpenShift: Properly disable bare metal OVS

We're deploying containerized OpenShift, which means openshift-ansible
deploys also containerized OVS. When not disabled explicitly, the bare
metal OVS service seemed to persist at least partially, and it likely
caused issues with the containerized OVS, where nodes in `kubectl get
nodes` would go from Ready status to NotReady shortly after the
deployment finished.

Change-Id: I8952198be7f78a699cf363af2e10f26714e94850
Closes-Bug: #1741224
This commit is contained in:
Jiri Stransky 2018-01-11 14:50:09 +01:00
parent 254d1dee4b
commit 5ebcd23f0d
1 changed files with 7 additions and 1 deletions

View File

@ -133,10 +133,16 @@ outputs:
# into openshift-ansible but it's not been released yet.
# This code will go away as soon as an rpm with the required
# roles hits the repo.
- name: Install NetworkManager
- name: OpenShift networking preparation
hosts: all
tasks:
- name: Stop and disable OVS on bare metal
service:
name: openvswitch
state: stopped
enabled: no
- name: install NetworkManager
package:
name: NetworkManager