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/local/bin/kubectl get pods --all-namespaces -o wide | |
NAMESPACE NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE | |
kube-system etcd-member-test1-master-0 1/1 Running 1 6d 192.168.126.11 test1-master-0 <none> | |
openshift-apiserver-operator openshift-apiserver-operator-77756dfc66-942df 1/1 Running 3 6d 10.128.0.56 test1-master-0 <none> | |
openshift-apiserver apiserver-sf68z 1/1 Running 2 6d 10.128.0.51 test1-master-0 <none> | |
openshift-cluster-api cluster-autoscaler-operator-6855f55d94-29jk |
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
[ 1322.010706] INFO: task xfsaild/vda2:1498 blocked for more than 120 seconds. | |
[ 1322.011965] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. | |
[ 1322.013367] xfsaild/vda2 D ffff9d70303530c0 0 1498 2 0x00000000 | |
[ 1322.014725] Call Trace: | |
[ 1322.015151] [<ffffffffb96aa0de>] ? try_to_del_timer_sync+0x5e/0x90 | |
[ 1322.016275] [<ffffffffb9d67c49>] schedule+0x29/0x70 | |
[ 1322.017215] [<ffffffffc0399bc6>] _xfs_log_force+0x1c6/0x2c0 [xfs] | |
[ 1322.018333] [<ffffffffb96d67b0>] ? wake_up_state+0x20/0x20 | |
[ 1322.019425] [<ffffffffc03a5dcc>] ? xfsaild+0x16c/0x6f0 [xfs] | |
[ 1322.020504] [<ffffffffc0399cec>] xfs_log_force+0x2c/0x70 [xfs] |
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
✔ ~/work/experiment/installer/hyperkit | |
15:45 $ cat variable_master.sh | |
KERNEL="vmlinuz-3.10.0-957.1.3.el7.x86_64" | |
INITRD="initramfs-3.10.0-957.1.3.el7.x86_64.img" | |
CMDLINE="earlyprintk=serial no_timer_check console=tty0 console=ttyS0,115200n8 net.ifnames=0 biosdevname=0 rd.neednet=1 rw ip=eth0:dhcp root=UUID=63655f17-7992-4f8e-8274-4aad9f7cf742 ostree=/ostree/boot.0/redhat-coreos-maipo/9fcb48b03da0af562c7aba4ba023171ea41049fac0d63cbf6b72a8747ba78c0e/0" | |
PID="-F master.pid" | |
UUID="-U 63655f17-7992-4f8e-8274-4aad9f7cf742" |
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 +x | |
restart_network() | |
{ | |
IFS=$'\n'; for line in $(networksetup -listallnetworkservices | sed '1d'); do | |
# This is required to settle down previous networksetup command. | |
sleep 2 | |
networksetup -setnetworkserviceenabled "$line" off && networksetup -setnetworkserviceenabled "$line" on |
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 +x | |
prerequisites() | |
{ | |
# Check if VirtualBox is installed | |
if [[ $(vboxmanage --version | head -c1 | wc -c) -eq 0 ]]; then | |
echo "Virtualbox is not installed on this system" | |
exit 1 |
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/sh | |
set -x | |
# Check if virtualization is supported | |
ls /dev/kvm 2> /dev/null | |
if [ $? -ne 0 ] | |
then | |
echo "Your system doesn't support virtualization" | |
exit 1 |
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/sh | |
set -x | |
# Check if virtualization is supported | |
ls /dev/kvm 2> /dev/null | |
if [ $? -ne 0 ] | |
then | |
echo "Your system doesn't support virtualization" | |
exit 1 |
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
✘-127 ~/work/github/practice/go/src/github.com/openshift/installer [master|…7⚑ 1] | |
15:40 $ kubectl logs etcd-member-test1-master-0 -n kube-system | |
2018-12-10 09:49:41.552748 I | pkg/flags: recognized and used environment variable ETCD_DATA_DIR=/var/lib/etcd | |
2018-12-10 09:49:41.552850 I | pkg/flags: recognized and used environment variable ETCD_NAME=etcd-member-test1-master-0 | |
2018-12-10 09:49:41.552912 I | etcdmain: etcd Version: 3.2.14 | |
2018-12-10 09:49:41.552920 I | etcdmain: Git SHA: fb5cd6f1c | |
2018-12-10 09:49:41.552924 I | etcdmain: Go Version: go1.8.5 | |
2018-12-10 09:49:41.552928 I | etcdmain: Go OS/Arch: linux/amd64 | |
2018-12-10 09:49:41.552932 I | etcdmain: setting maximum number of CPUs to 2, total number of available CPUs is 2 | |
2018-12-10 09:49:41.553106 I | embed: peerTLS: cert = /etc/ssl/etcd/system:etcd-peer:test1-etcd-0.tt.testing.crt, key = /etc/ssl/etcd/system:etcd-peer:test1-etcd-0.tt.testing.key, ca = , trusted-ca = /etc/ssl/etcd/ca.crt, client-cert-auth = true |
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
19:06 $ kubectl get pods --all-namespaces | |
NAMESPACE NAME READY STATUS RESTARTS AGE | |
kube-system etcd-member-test1-master-0 1/1 Running 0 47m | |
openshift-apiserver apiserver-lbm6x 1/1 Running 1 32m | |
openshift-cluster-api cluster-autoscaler-operator-5dbf75d779-zffbj 1/1 Running 0 46m | |
openshift-cluster-api clusterapi-manager-controllers-bff7d6cd7-6wwnt 3/3 Running 0 37m | |
openshift-cluster-api machine-api-operator-68595b9bff-fb9cj 1/1 Running 0 46m | |
openshift-cluste |
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
[root@local images]# virsh net-dumpxml test1 | |
<network> | |
<name>test1</name> | |
<uuid>7a102928-813d-4135-aaf2-e52908bb5573</uuid> | |
<forward mode='nat'> | |
<nat> | |
<port start='1024' end='65535'/> | |
</nat> | |
</forward> | |
<bridge name='tt0' stp='on' delay='0'/> |