14 Commits

Author SHA1 Message Date
Flavio Percoco
ec8d2bad4c Set openshift_(ip|hostname) to ctrlplane ip
When enabling network isolation, openshift-ansible picks the wrong ip
address as the default IP for the services. Set the IP to the ctrlplane
network by default, which works with and without network isolation.

Change-Id: I0deef6c2a71c1f2a34e6efed9586bbaa052b49c9
2018-02-26 12:16:12 +01:00
Martin André
cf1de90684 Allow passing custom openshift-ansible playbook
This allows deploying openshift from the packaged openshift-ansible or
from a git checkout more easily, by setting the
OpenShiftAnsiblePlaybook heat environment variable.

Change-Id: I60594faa10dfd817d94038b3938d7de269330e2e
2018-02-13 16:30:47 +01:00
Zuul
5e72697d48 Merge "OpenShift: Properly disable bare metal OVS" 2018-02-08 15:49:50 +00:00
Jiri Stransky
5ebcd23f0d 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
2018-02-08 11:06:46 +01:00
Flavio Percoco
5e0e06bd1b Move options out of the OpenShiftMaster template
Some of the options that had been hard-coded in the openshift-master
template should be configuratble in a per-deployment bases. This patch
moves them out into an environment file instead.

Change-Id: I4b6f6180b11f36b1212b9e887365a99b6ae12017
2018-02-07 17:18:01 +01:00
Jiri Stransky
254d1dee4b OpenShift: Accept generic global parameters
This will allow arbitrary config of global variables for
openshift-ansible, e.g. customizing SDN params according to:

https://docs.openshift.org/3.6/install_config/configuring_sdn.html

Also remove the setting which was meant to disable OVS service
handlers in openshift-ansible -- that wouldn't solve the problem
fully.

Change-Id: Ib87e5d38797da166826af90659e3d05da3352dcf
Related-Bug: #1741224
2018-02-07 17:17:29 +01:00
Zuul
7a120b64e8 Merge "Do not format output for kubespray or openshift deployments" 2018-01-31 14:16:11 +00:00
Flavio Percoco
238675b25e Update to openshift 3.7
Packages and repositories for openshift 3.7 have been created already.
I've updated the version we are installing and tested this manually.

Change-Id: Id09242b637ca2a060f068887e10981eecaa59e4a
2018-01-25 14:02:05 +01:00
Flavio Percoco
a592631239 Assign labels to nodes
Make sure nodes have, at least, the region and zone labels to allow for
deployments to schedule infra PODs on them.

Change-Id: If3849a46391cfac7eb5dd556d5b65c831026a95c
2018-01-25 14:02:05 +01:00
Martin André
4254e58174 Do not format output for kubespray or openshift deployments
The output comes from ansible and is already fully readable as it is.
Also, because the previous task didn't have the 'failed_when: false'
directive, it would never reach the 'print xxx outputs' task in case of
failure, while showing the output twice on success.

It is safe to just delete the task.

Change-Id: I56b44aec0a549e184f46344ea362f655ab80b3b0
2018-01-19 17:55:13 +01:00
Zuul
7e148af75f Merge "OpenShift: allow scheduling on all nodes" 2018-01-08 13:48:35 +00:00
Jiri Stransky
cfcfed7acc OpenShift: allow scheduling on all nodes
By default OpenShift won't allow scheduling on masters. We'll want to
deploy OpenStack pods on the controllers so we need this enabled, and
we'll need this for CI too.

Change-Id: Ia4190a23c04bda52b17eac50e57da891af615ff4
2018-01-05 12:03:36 +00:00
Carlos Camacho
b13728cac3 Update templates alias to queens
There are still some templates with the wrong
alias name. This patch updates them with the
correct version.

Change-Id: I43549ac98f3736029d4aaad1ead745caf40f9299
2017-12-20 10:27:23 +01:00
Flavio Percoco
8dd99ba7fd Deploy OpenShift using OOO on the overcloud
Add external_deploy_tasks for OpenShift installation. This makes
OpenShift installation work with the config download mechanism.

Co-Authored-By: Jiri Stransky <jistr@redhat.com>
Depends-On: I9786f1a27cb7c765211dffe0ea06afd75f8e5275
Change-Id: I4c995dcfd97b5c9ccb751862ff77ab785ad0ac5b
2017-12-15 15:41:15 +00:00