Skip to content

Instantly share code, notes, and snippets.

View glennswest's full-sized avatar
🏠
Working from home

Glenn West glennswest

🏠
Working from home
View GitHub Profile
ovpn-116-192:win1709 gwest$ ansible-playbook -vvvv -i 10.19.114.61, win1709.yml
ansible-playbook 2.6.2
config file = None
configured module search path = [u'/Users/gwest/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/local/lib/python2.7/site-packages/ansible
executable location = /usr/local/bin/ansible-playbook
python version = 2.7.14 (default, Mar 10 2018, 00:01:11) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)]
No config file found; using defaults
setting up inventory plugins
Parsed 10.19.114.61, inventory source with host_list plugin
NO MORE HOSTS LEFT ******************************************************************************
to retry, use: --limit @/root/hybrid/windows.retry
PLAY RECAP **************************************************************************************
127.0.0.1 : ok=9 changed=8 unreachable=0 failed=0
openshift : ok=2 changed=2 unreachable=0 failed=1
winnode01 : ok=38 changed=31 unreachable=0 failed=0
[root@openshift hybrid]# vi bin/setup
setup_kubelet_service.ps1 setup-network.ps1
@glennswest
glennswest / kubeprob
Created August 9, 2018 15:01
kube-ovn-master problem
[root@openshift bin]# systemctl status ovn-kubernetes-master
● ovn-kubernetes-master.service - Setup for ovn-kubernetes master
Loaded: loaded (/etc/systemd/system/ovn-kubernetes-master.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2018-08-08 15:02:45 EDT; 5h 48min ago
Main PID: 32331 (bash)
Memory: 10.2M
CGroup: /system.slice/ovn-kubernetes-master.service
├─32331 /bin/bash /usr/local/bin/ovn-kubernetes-master.sh
└─32336 /usr/bin/ovnkube --k8s-apiserver https://openshift.ncc9.com:8443 --k8s-cacert /etc/origin/master/ca.crt --k8s-token eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3Vud...
@glennswest
glennswest / wineventlog.go
Created February 16, 2019 05:24
Event Log Capture in Windows using GoLang
package main
import(
"fmt"
"syscall"
"unsafe"
"log"
"golang.org/x/sys/windows"
)
@glennswest
glennswest / bootkube.log
Last active June 14, 2019 00:54
bootstrap failure on bare metal
Jun 13 07:12:32 bootstrap-0 bootkube.sh[1612]: Pulling release image...
Jun 13 07:12:57 bootstrap-0 bootkube.sh[1612]: 9fba292d288217d67bcbe0c3cf85395daf87e7940e7b0cf334c7772037f64fb4
Jun 13 07:13:52 bootstrap-0 bootkube.sh[1612]: Rendering Cluster Version Operator Manifests...
Jun 13 07:13:53 bootstrap-0 bootkube.sh[1612]: Rendering cluster config manifests...
Jun 13 07:14:00 bootstrap-0 bootkube.sh[1612]: Writing asset: /assets/config-bootstrap/manifests/0000_10_config-operator_01_authentication.crd.yaml
Jun 13 07:14:00 bootstrap-0 bootkube.sh[1612]: Writing asset: /assets/config-bootstrap/manifests/0000_10_config-operator_01_console.crd.yaml
Jun 13 07:14:00 bootstrap-0 bootkube.sh[1612]: Writing asset: /assets/config-bootstrap/manifests/0000_10_config-operator_01_image.crd.yaml
Jun 13 07:14:00 bootstrap-0 bootkube.sh[1612]: Writing asset: /assets/config-bootstrap/manifests/0000_10_config-operator_01_network.crd.yaml
Jun 13 07:14:00 bootstrap-0 bootkube.sh[1612]: Writing asset: /assets/config-bootstrap/mani
@glennswest
glennswest / openshift.log
Created June 16, 2019 02:30
MCO Failure
This file has been truncated, but you can view the full file.
-- Logs begin at Sat 2019-06-15 06:17:54 UTC, end at Sat 2019-06-15 18:04:50 UTC. --
Jun 15 14:18:23 bootstrap-0 chronyd[1298]: Selected source 10.100.0.1
Jun 15 14:18:23 bootstrap-0 chronyd[1298]: System clock TAI offset set to 37 seconds
Jun 15 14:18:23 bootstrap-0 chronyd[1298]: System clock wrong by -28828.951403 seconds, adjustment started
Jun 15 06:17:54 bootstrap-0 chronyd[1298]: System clock was stepped by -28828.951403 seconds
Jun 15 06:17:58 bootstrap-0 systemd[1]: Started Open Container Initiative Daemon.
Jun 15 06:17:58 bootstrap-0 hyperkube[1375]: Flag --runtime-request-timeout has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/tasks/administer-cluster/kubelet-config-file/ for more information.
Jun 15 06:17:58 bootstrap-0 hyperkube[1375]: Flag --pod-manifest-path has been deprecated, This parameter should be set via the config file specified by the Kubelet's --config flag. See https://kubernetes.io/docs/ta
-- Logs begin at Mon 2019-06-17 05:16:41 UTC, end at Mon 2019-06-17 05:35:59 UTC. --
Jun 17 05:16:41 localhost kernel: Linux version 4.18.0-80.1.2.el8_0.x86_64 (mockbuild@x86-vm-09.build.eng.bos.redhat.com) (gcc version 8.2.1 20180905 (Red Hat 8.2.1-3) (GCC)) #1 SMP Sun Apr 28 09:21:22 UTC 2019
Jun 17 05:16:41 localhost kernel: Command line: BOOT_IMAGE=/ostree/rhcos-bf3b38268ddb2a2070dc587b361ce45c46a6f9e3606bbd3b5e15b2e6d3d47e5d/vmlinuz-4.18.0-80.1.2.el8_0.x86_64 console=tty0 console=ttyS0,115200n8 rootflags=defaults,prjquota rw ignition.firstboot rd.neednet=1 ip=ens192:dhcp root=UUID=797b1d43-ce56-4ab7-b984-253fbec76a04 ostree=/ostree/boot.0/rhcos/bf3b38268ddb2a2070dc587b361ce45c46a6f9e3606bbd3b5e15b2e6d3d47e5d/0 coreos.oem.id=metal ignition.platform.id=metal
Jun 17 05:16:41 localhost kernel: Disabled fast string operations
Jun 17 05:16:41 localhost kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
Jun 17 05:16:41 localhost kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE
@glennswest
glennswest / gist:f5ce724f316c386a236daec0001e8aa5
Created August 7, 2019 15:05
multus-dns-install fail with ovn
Glenns-MacBook-Pro-2:gw.lo gwest$ openshift-install version
openshift-install unreleased-master-1527-gdd407b0351339ec5fec540c82ecd556ec0dcb98c-dirty
built from commit dd407b0351339ec5fec540c82ecd556ec0dcb98c
release image registry.svc.ci.openshift.org/ocp/release@sha256:35438dd0ff22567df50be2ca51fdca0739bfbf652c6e18cc49e63acb7f1dfc76
Glenns-MacBook-Pro-2:gw.lo gwest$ ./clusteroperatorstatus.sh
apiVersion: v1
items:
- apiVersion: config.openshift.io/v1
kind: ClusterOperator
@glennswest
glennswest / log419
Created August 7, 2019 18:52
ocp4.1.9 fail
DEBUG OpenShift Installer v4.1.9-201907311355-dirty
DEBUG Built from commit 7f8b6bc666e0e061d0f2809646dffb4e98d6f098
INFO Waiting up to 30m0s for the Kubernetes API at https://api.gw.lo:6443...
DEBUG Still waiting for the Kubernetes API: Get https://api.gw.lo:6443/version?timeout=32s: dial tcp: lookup api.gw.lo on 192.168.1.251:53: no such host
DEBUG Still waiting for the Kubernetes API: Get https://api.gw.lo:6443/version?timeout=32s: dial tcp: lookup api.gw.lo on 192.168.1.251:53: no such host
DEBUG Still waiting for the Kubernetes API: Get https://api.gw.lo:6443/version?timeout=32s: dial tcp 192.168.1.202:6443: connect: connection refused
DEBUG Still waiting for the Kubernetes API: Get https://api.gw.lo:6443/version?timeout=32s: dial tcp 192.168.1.202:6443: connect: connection refused
DEBUG Still waiting for the Kubernetes API: Get https://api.gw.lo:6443/version?timeout=32s: dial tcp 192.168.1.201:6443: connect: connection refused
DEBUG Still waiting for the Kubernetes API: Get https://api.gw.lo:644
@glennswest
glennswest / winnodeman.log
Created August 8, 2019 23:12
WindowsNodeMan WIP Log
2019/08/08 22:45:07 Winnodemanager restarted - version: 9b046f7 - build Data: .20190727.014906
2019/08/08 22:45:07 restart_install: No Install pending
2019/08/08 22:45:07 InstallNode: &{%!s(*io.LimitedReader=&{0x11d7c120 27348}) <nil> %!s(*bufio.Reader=<nil>) %!s(bool=false) %!s(bool=true) {%!s(int32=0) %!s(uint32=0)} %!s(bool=false) %!s(bool=false) %!s(bool=false) %!s(func()=0x65d1d0)}
2019/08/08 22:45:07 DoInstall: winnode01
2019/08/08 22:45:07 Getting template: http://winoperatordata.apps.tiny.k.lo/templates/windefault.template
2019/08/08 22:45:07 Download File: http://winoperatordata.apps.tiny.k.lo/templates/windefault.template -> /Program Files/WindowsNodeManager/settings/template.json
2019/08/08 22:45:07 Template: {
"name": "win2019",
"version": "0.001",
"description": "Initial Version of Win2019",