Skip to content

Instantly share code, notes, and snippets.

@amitkumarj441
amitkumarj441 / all.log
Last active June 22, 2017 17:54
Logging components logs
[root@viaq openshift-ansible]# oc get pods
NAME READY STATUS RESTARTS AGE
logging-curator-1-hklth 1/1 Running 22 4h
logging-es-7vo926zw-1-deploy 0/1 Error 0 4h
logging-es-7vo926zw-2-phjrq 1/1 Running 0 50m
logging-fluentd-024kj 1/1 Running 1 4h
logging-kibana-1-deploy 0/1 Error 0 4h
logging-kibana-2-jmt73 2/2 Running 0 20m
[root@viaq openshift-ansible]#
[root@viaq openshift-ansible]# oc describe pod logging-curator-1-hklth
@amitkumarj441
amitkumarj441 / kibana.log
Last active June 22, 2017 13:26
Pod description
[root@viaq openshift-ansible]# oc describe pod logging-kibana-1-xk06c
Name: logging-kibana-1-xk06c
Namespace: logging
Security Policy: restricted
Node: viaq.logging.test/172.16.93.5
Start Time: Thu, 22 Jun 2017 13:08:55 +0000
Labels: component=kibana
deployment=logging-kibana-1
deploymentconfig=logging-kibana
logging-infra=kibana
@amitkumarj441
amitkumarj441 / desc.log
Created June 21, 2017 13:35
Logging components description
[root@viaq openshift-ansible]# oc describe pod logging-curator-1-deploy|more
Name: logging-curator-1-deploy
Namespace: logging
Security Policy: restricted
Node: viaq.logging.test/172.16.93.129
Start Time: Mon, 19 Jun 2017 07:08:59 -0700
Labels: openshift.io/deployer-pod-for.name=logging-curator-1
Status: Failed
IP: 10.128.0.7
Controllers: <none>
@amitkumarj441
amitkumarj441 / pod.log
Last active June 20, 2017 14:16
Logging components gist
[root@viaq openshift-ansible]# oc describe pod logging-curator-1-deploy
Name: logging-curator-1-deploy
Namespace: logging
Security Policy: restricted
Node: viaq.logging.test/172.16.93.129
Start Time: Mon, 19 Jun 2017 07:08:59 -0700
Labels: openshift.io/deployer-pod-for.name=logging-curator-1
Status: Failed
IP: 10.128.0.7
Controllers: <none>
2017-06-16 13:34:16,687 p=47627 u=ith | Using /etc/ansible/ansible.cfg as config file
2017-06-16 13:34:17,086 p=47627 u=ith | statically included: /usr/share/ansible/openshift-ansible/roles/os_firewall/tasks/firewall/firewalld.yml
2017-06-16 13:34:17,097 p=47627 u=ith | statically included: /usr/share/ansible/openshift-ansible/roles/os_firewall/tasks/firewall/iptables.yml
2017-06-16 13:34:17,185 p=47627 u=ith | statically included: /usr/share/ansible/openshift-ansible/roles/docker/tasks/udev_workaround.yml
2017-06-16 13:34:17,247 p=47627 u=ith | statically included: /usr/share/ansible/openshift-ansible/roles/openshift_version/tasks/set_version_rpm.yml
2017-06-16 13:34:17,297 p=47627 u=ith | statically included: /usr/share/ansible/openshift-ansible/roles/openshift_version/tasks/set_version_containerized.yml
2017-06-16 13:34:17,446 p=47627 u=ith | statically included: /usr/share/ansible/openshift-ansible/roles/os_firewall/tasks/firewall/firewalld.yml
2017-06-16 13:34:17,463 p=47627 u=ith | statically in
@amitkumarj441
amitkumarj441 / Ansible.log
Created June 17, 2017 16:50
Ansible Log on CentOS 7.3
2017-06-16 13:34:16,687 p=47627 u=ith | Using /etc/ansible/ansible.cfg as config file
2017-06-16 13:34:17,086 p=47627 u=ith | statically included: /usr/share/ansible/openshift-ansible/roles/os_firewall/tasks/firewall/firewalld.yml
2017-06-16 13:34:17,097 p=47627 u=ith | statically included: /usr/share/ansible/openshift-ansible/roles/os_firewall/tasks/firewall/iptables.yml
2017-06-16 13:34:17,185 p=47627 u=ith | statically included: /usr/share/ansible/openshift-ansible/roles/docker/tasks/udev_workaround.yml
2017-06-16 13:34:17,247 p=47627 u=ith | statically included: /usr/share/ansible/openshift-ansible/roles/openshift_version/tasks/set_version_rpm.yml
2017-06-16 13:34:17,297 p=47627 u=ith | statically included: /usr/share/ansible/openshift-ansible/roles/openshift_version/tasks/set_version_containerized.yml
2017-06-16 13:34:17,446 p=47627 u=ith | statically included: /usr/share/ansible/openshift-ansible/roles/os_firewall/tasks/firewall/firewalld.yml
2017-06-16 13:34:17,463 p=47627 u=ith | statically in
@amitkumarj441
amitkumarj441 / clean.log
Created June 14, 2017 15:49
Cleaning yum
[root@viaq openshift-ansible]# yum clean all
Loaded plugins: fastestmirror, langpacks
Repository centos-openshift-origin is listed more than once in the configuration
Cleaning repos: base centos-openshift-origin centos-openshift-origin14-candidate centos-openshift-origin15-candidate docker-ce-edge docker-ce-stable epel extras updates
Cleaning up everything
[root@viaq openshift-ansible]# yum repolist
Loaded plugins: fastestmirror, langpacks
Repository centos-openshift-origin is listed more than once in the configuration
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was
14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"
This file has been truncated, but you can view the full file.
2017-06-11 13:31:47,274 p=46087 u=ith | Using /etc/ansible/ansible.cfg as config file
2017-06-11 13:31:47,277 p=46087 u=ith | ERROR! the file_name '/usr/share/ansible/openshift-ansible/vars.yml' does not exist, or is not readable
2017-06-11 13:33:41,606 p=46109 u=ith | Using /etc/ansible/ansible.cfg as config file
2017-06-11 13:33:41,608 p=46109 u=ith | ERROR! the file_name '/usr/share/ansible/openshift-ansible/vars.yml' does not exist, or is not readable
2017-06-11 13:33:47,723 p=46191 u=ith | Using /etc/ansible/ansible.cfg as config file
2017-06-11 13:33:47,725 p=46191 u=ith | ERROR! the file_name '/usr/share/ansible/openshift-ansible/vars.yml' does not exist, or is not readable
2017-06-11 13:35:10,143 p=46208 u=ith | Using /etc/ansible/ansible.cfg as config file
2017-06-11 13:35:10,145 p=46208 u=ith | ERROR! the file_name '/usr/share/ansible/openshift-ansible/vars.yml' does not exist, or is not readable
2017-06-11 13:37:19,645 p=46306 u=ith | Using /etc/ansible/ansible.cfg as config file
2017-06-1
[root@viaq openshift-ansible]# ANSIBLE_LOG_PATH=/tmp/ansible.log ansible-playbook -vvv -e @/root/vars.yaml -i ansible-inventory playbooks/byo/config.yml
Using /etc/ansible/ansible.cfg as config file
statically included: /usr/share/ansible/openshift-ansible/roles/os_firewall/tasks/firewall/firewalld.yml
statically included: /usr/share/ansible/openshift-ansible/roles/os_firewall/tasks/firewall/iptables.yml
statically included: /usr/share/ansible/openshift-ansible/roles/docker/tasks/udev_workaround.yml
statically included: /usr/share/ansible/openshift-ansible/roles/openshift_version/tasks/set_version_rpm.yml
statically included: /usr/share/ansible/openshift-ansible/roles/openshift_version/tasks/set_version_containerized.yml
statically included: /usr/share/ansible/openshift-ansible/roles/os_firewall/tasks/firewall/firewalld.yml
statically included: /usr/share/ansible/openshift-ansible/roles/os_firewall/tasks/firewall/iptables.yml
statically included: /usr/share/ansible/openshift-ansible/roles/docker/tasks/udev_w
On VM with CentOS 7.3
[root@localhost openshift-ansible]# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: ens33: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000