-
RHEL 7
-
OCP 3.9+
-
Deployed router and a working DNS resolution with a wildcard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
IFS=$'\n\t' | |
export LANC=C LC_ALL=C | |
readonly RE_EVRA="^([[:digit:]]+):(.+)-([^-]+)\.([^.-]+)$" | |
readonly RE_UNSUPPORTED='\(systemd\|yum\|selinux-policy\|dbus\|kernel\)' | |
readonly USAGE="$(basename "${BASH_SOURCE[0]}") [-hynk] [-f FILE] |
Version: OCP 3.7, openshift-ansible-3.7.22-1-9-g56970a0 Environment: Amazon AWS cluster Scenario: 1 master&node + 2 nodes; glusterfs
TASK [openshift_storage_glusterfs : Verify heketi service] **************************************************************************************************************************************************************
fatal: [ec2-54-237-234-66.compute-1.amazonaws.com]: FAILED! => {"changed": false, "cmd": ["oc", "rsh", "--namespace=default", "deploy-heketi-storage-1-vkfwm", "heketi-cli", "-s", "http://localhost:8080", "--user", "admin", "--secret", "4Jl50v50d9BtfTbxXI1LWeikIH9dfWGe559rZlq2Gz8=", "cluster", "list"], "delta": "0:02:07.485073", "end": "2018-01-25 05:26:51.447002", "msg": "non-zero return code", "rc": 1, "start": "2018-01-25 05:24:43.961929", "stderr": "Error from server: error dialing backend: dial tcp 172.18.12.254:10250: getsockopt: connection timed out", "stderr_lines": ["Error from server: error dial
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dev-miminar-sap-vora-cluster |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
saname=`oc get -o jsonpath=$'{.metadata.namespace}:{.spec.serviceAccount}\n' pod nfs-provisioner` | |
oc adm policy add-scc-to-user scc-nfs-provisioner \ | |
'system:serviceaccount:<serviceaccount_namespace>:<serviceaccount_name>' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -euo pipefail | |
IFS=$'\n\t' | |
readonly AUDITOR_ROLE='system:image-auditor' | |
readonly DEFAULT_DAYS=3 | |
readonly DEFAULT_STORAGE_PATH_ROOT="/registry" | |
readonly DEFAULT_CONFIG_PATH="/config.yml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function get_ip() { | |
for intf in enp0s8 eth1 eth0 enp0s3 net0; do | |
ip=`ip addr show $intf | sed -n 's,^\s\+inet\s\+\(\([0-9]\+\)\.[^/]\+\)/.*brd.*,\1,p'` | |
if [[ -n "$ip" ]]; then | |
echo "$ip" | |
return 0 | |
fi | |
done |