From 28fc5f2f7b728b54de6a2634c746b6163ca5e991 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Fri, 11 Oct 2019 07:26:14 +0200 Subject: Do associate kaas.kit.edu to localhost on masters (this breaks pods access to kaas urls) --- docs/troubleshooting.txt | 3 +++ roles/ands_network/tasks/common.yml | 10 ++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/docs/troubleshooting.txt b/docs/troubleshooting.txt index 2290901..a47d133 100644 --- a/docs/troubleshooting.txt +++ b/docs/troubleshooting.txt @@ -254,6 +254,9 @@ Builds Storage ======= + - The offline bricks can be brough back into the service with the follwoing command + gluster volume start openshift force + - Running a lot of pods may exhaust available storage. It worth checking if * There is enough Docker storage for containers (lvm) * There is enough Heketi storage for dynamic volumes (lvm) diff --git a/roles/ands_network/tasks/common.yml b/roles/ands_network/tasks/common.yml index 940cde7..03d9fb4 100644 --- a/roles/ands_network/tasks/common.yml +++ b/roles/ands_network/tasks/common.yml @@ -21,10 +21,12 @@ - nodes - new_nodes -- name: Provision /etc/hosts to ensure that all masters servers are accessing Master API on loopback device - lineinfile: dest="/etc/hosts" line="127.0.0.1 {{ openshift_master_cluster_hostname }}" regexp=".*{{ openshift_master_cluster_hostname }}$" state="present" - when: ('masters' in group_names or 'new_masters' in group_names) - register: result +# This brakes communication of containers with KaaS cluster (as 127.0.0.1 is not valid in container context, but resolved like that nethertheless) +# DISABLED on 2019.10.10: I guess this is not that big a deal of extra communication. Technically, in futre we can put here actual ip of the node. +#- name: Provision /etc/hosts to ensure that all masters servers are accessing Master API on loopback device +# lineinfile: dest="/etc/hosts" line="127.0.0.1 {{ openshift_master_cluster_hostname }}" regexp=".*{{ openshift_master_cluster_hostname }}$" state="present" +# when: ('masters' in group_names or 'new_masters' in group_names) +# register: result - name: Provision /etc/hosts with load-balance IP on non master servers lineinfile: dest="/etc/hosts" line="{{ ands_inner_lb_ip }} {{ openshift_master_cluster_hostname }}" regexp=".*{{ openshift_master_cluster_hostname }}$" state="present" -- cgit v1.2.1