Skip to content

Instantly share code, notes, and snippets.

@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>
@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 / 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 / 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 / oc.log
Last active June 23, 2017 11:46
OpenShift 1.5 status
[root@viaq openshift-ansible]oc status
In project logging on server https://viaq.logging.test:8443
svc/logging-es - 172.30.39.221:9200 -> restapi
dc/logging-es-7vo926zw deploys docker.io/openshift/origin-logging-elasticsearch:v1.5.1
deployment #2 deployed 18 hours ago - 1 pod
deployment #1 failed 22 hours ago: config change
svc/logging-es-cluster - 172.30.63.148:9300
dc/logging-es-7vo926zw deploys docker.io/openshift/origin-logging-elasticsearch:v1.5.1
@amitkumarj441
amitkumarj441 / router.log
Last active June 23, 2017 13:22
oc description and running kibana
[root@viaq openshift-ansible]# oc get pods
NAME READY STATUS RESTARTS AGE
docker-registry-1-deploy 0/1 Error 0 23h
registry-console-1-rjb0f 1/1 Running 1 23h
router-1-deploy 0/1 Error 0 23h
router-2-16rnl 0/1 ContainerCreating 0 7s
router-2-deploy 1/1 Running 0 10s
[root@viaq openshift-ansible]# oc describe po router-2-16rnl
Name: router-2-16rnl
Namespace: default
@amitkumarj441
amitkumarj441 / eth.doc
Last active July 30, 2018 05:06
Ethereum Mining Setup
Check https://www.meebey.net/posts/ethereum_gpu_mining_on_linux_howto/
For Claymore setup:
https://bitcointalk.org/index.php?topic=1433925.0
http://1stminingrig.com/tutorial-ethereum-mining-rig-part-4-ethos-installation/
https://www.cryptocompare.com/mining/guides/how-to-mine-ethereum/
@amitkumarj441
amitkumarj441 / fluentd_filter.log
Created August 25, 2017 12:01
Fixing Fluentd filter
[root@viaq ~]# oc get ds
NAME DESIRED CURRENT READY NODE-SELECTOR AGE
logging-fluentd 1 1 1 logging-infra-fluentd=true 63d
[root@viaq ~]# oc env ds/logging-fluentd VERBOSE=true
daemonset "logging-fluentd" updated
[root@viaq ~]# oc get cm
NAME DATA AGE
logging-curator 1 63d
logging-elasticsearch 2 63d
logging-fluentd 5 63d
@amitkumarj441
amitkumarj441 / vPOD.log
Created August 25, 2017 13:16
vPOD login
root@ith-ThinkPad-W520:/home/ith/Downloads# openvpn unhiol_opnfv.conf
Fri Aug 25 18:43:10 2017 OpenVPN 2.3.10 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [MH] [IPv6] built on Jun 22 2017
Fri Aug 25 18:43:10 2017 library versions: OpenSSL 1.0.2g 1 Mar 2016, LZO 2.08
Enter Auth Username: *******
Enter Auth Password: ***************
Fri Aug 25 18:43:40 2017 Socket Buffers: R=[87380->87380] S=[16384->16384]
Fri Aug 25 18:43:40 2017 Attempting to establish TCP connection with [AF_INET]132.177.125.250:1194 [nonblock]
Fri Aug 25 18:43:41 2017 TCP connection established with [AF_INET]132.177.125.250:1194
Fri Aug 25 18:43:41 2017 TCPv4_CLIENT link local: [undef]
Fri Aug 25 18:43:41 2017 TCPv4_CLIENT link remote: [AF_INET]132.177.125.250:1194
[root@viaq ~]# oc get pod logging-fluentd-cvfnp -o yaml
apiVersion: v1
kind: Pod
metadata:
annotations:
kubernetes.io/created-by: |
{"kind":"SerializedReference","apiVersion":"v1","reference":{"kind":"DaemonSet","namespace":"logging","name":"logging-fluentd","uid":"6261e57b-574b-11e7-8b3f-000c293d9bc2","apiVersion":"extensions","resourceVersion":"32615"}}
openshift.io/scc: privileged
creationTimestamp: 2017-08-25T11:56:19Z
generateName: logging-fluentd-