Skip to content

Instantly share code, notes, and snippets.

View jayunit100's full-sized avatar
🎯
Focusing

jay vyas jayunit100

🎯
Focusing
View GitHub Profile
# # # TEST THAT HOSTS ARE REACHABLE BEFORE STARTUP
cat <<EOF > tmp_reachable
- hosts: all
gather_facts: true
max_fail_percentage: 0
tasks:
- action: ping
EOF
vagrant scp tmp_reachable $MASTERNAME:/tmp/reachable.yml
it clone https://github.com/openshift/ose
git clone https://github.com/kubernetes/kubernetes
cd ose
git checkout -b cherrypickin
git --git-dir=../kubernetes/.git format-patch -k -1 --stdout dc42d25f4a5648e96dd069ce674502dd4d2a7ddb | git am -3 -k
vi origin.spec # Append Release
git commit -am cherrypickin
sudo yum-builddep -y origin.spec
mkdir /var/www/html/pub/rosmith/rpm/ose/cherrypickin
tito build --rpm --test -o /var/www/html/pub/rosmith/rpm/ose/cherrypickin
[Fail] KubeProxy [It] should test kube-proxy [Slow]
[Fail] NodeOutOfDisk [Serial] [Flaky] [BeforeEach] runs out of disk space
[Fail] Proxy version v1 [It] should proxy to cadvisor [Conformance]
[Fail] Daemon set [Feature:DaemonSet] [It] should run and stop simple daemon
[Fail] Kubernetes Dashboard [It] should check that the kubernetes-dashboard instance is alive
[Fail] PersistentVolumes [Feature:Volumes] [It] NFS volume can be created, bound, retrieved, unbound, and used by a pod
[Fail] Upgrade [Feature:Upgrade] [BeforeEach] kube-push of master should maintain responsive services
[Fail] Upgrade [Feature:Upgrade] [BeforeEach] upgrade-master should maintain responsive services
[Fail] Upgrade [Feature:Upgrade] [BeforeEach] upgrade-cluster should maintain a functioning cluster
[Fail] Horizontal pod autoscaling (scale resource: CPU) [Serial] [Slow] ReplicationController [It] Should scale from 1 pod to 3 pods and from 3 to 5
@jayunit100
jayunit100 / examples.go
Created March 15, 2016 13:16
go snippets
package main
import (
"fmt"
"strings"
"strconv"
)
// How do you read a struct from a line of text?
type IPerfResult struct {
date string
// ...
I0315 17:47:23.448485 24871 e2e.go:102] The --provider flag is not set. Treating as a conformance test. Some tests may not be run.
I0315 17:47:23.448589 24871 e2e.go:274] Starting e2e run "7ffeac19-eaf7-11e5-9ac4-acbc329f948d" on Ginkgo node 1
Running Suite: Kubernetes e2e suite
===================================
Random Seed: 1458078442 - Will randomize all specs
Will run 4 of 269 specs
Mar 15 17:47:23.459: INFO: >>> testContext.KubeConfig: /Users/jayunit100/.kube/config
Mar 15 17:47:23.462: INFO: Waiting up to 10m0s for all pods (need at least 1) in namespace 'kube-system' to be running and ready
I0316 10:10:28.585198 13012 e2e.go:102] The --provider flag is not set. Treating as a conformance test. Some tests may not be run.
I0316 10:10:28.585300 13012 e2e.go:274] Starting e2e run "d5deedf6-eb80-11e5-b903-acbc329f948d" on Ginkgo node 1
Running Suite: Kubernetes e2e suite
===================================
Random Seed: 1458137428 - Will randomize all specs
Will run 4 of 270 specs
Mar 16 10:10:28.596: INFO: >>> testContext.KubeConfig: /Users/jayunit100/.kube/config
Mar 16 10:10:28.599: INFO: Waiting up to 10m0s for all pods (need at least 1) in namespace 'kube-system' to be running and ready
cat << EOF > /etc/yum.repos.d/ose-test.repo
[roofmonkey-ose-master]
name=roofmonkey-ose-master
------------baseurl--------------
enabled=1
sslverify=0
gpgcheck=0
EOF
Logging kubelet events for node kubernetes-minion-u92b
Apr 4 09:55:59.369: INFO:
Logging pods the kubelet thinks is on node kubernetes-minion-u92b
Apr 4 09:55:59.479: INFO: monitoring-influxdb-grafana-v3-cbfy6 started at 2016-04-04 08:52:19 -0400 EDT (2 container statuses recorded)
Apr 4 09:55:59.479: INFO: Container grafana ready: true, restart count 0
Apr 4 09:55:59.479: INFO: Container influxdb ready: true, restart count 0
Apr 4 09:55:59.479: INFO: kube-dns-v11-fdc4r started at 2016-04-04 08:52:19 -0400 EDT (4 container statuses recorded)
Apr 4 09:55:59.479: INFO: Container etcd ready: true, restart count 0
Apr 4 09:55:59.479: INFO: Container healthz ready: true, restart count 0
Apr 4 09:55:59.479: INFO: Container kube2sky ready: true, restart count 0
Apr 27 10:48:46.532: INFO: Running '/var/lib/jenkins/workspace/kubernetes-pull-build-test-e2e-gce/kubernetes/platforms/linux/amd64/kubectl --server=https://104.197.193.242 --kubeconfig=/var/lib/jenkins/workspace/kubernetes-pull-build-test-e2e-gce/.kube/config create -f - --namespace=e2e-tests-kubectl-cwi6l'
Apr 27 10:48:46.719: INFO: stderr: ""
Apr 27 10:48:46.719: INFO: stdout: "service \"redis-slave\" created"
STEP: validating guestbook app
Apr 27 10:48:46.719: INFO: Waiting for frontend to serve content.
Apr 27 10:48:46.725: INFO: Failed to get response from guestbook. err: no endpoints available for service "frontend", response:
Apr 27 10:48:51.730: INFO: Failed to get response from guestbook. err: no endpoints available for service "frontend", response:
Apr 27 10:48:56.735: INFO: Failed to get response from guestbook. err: no endpoints available for service "frontend", response:
Apr 27 10:49:01.739: INFO: Failed to get response from guestbook. err: no endpoints available for service "frontend", respo
@jayunit100
jayunit100 / notes
Last active May 4, 2016 19:28
logging
### Creat from zero, not idempotent.
oc new-project logging
oc create -f \
/home/cloud-user/openshift-ansible/roles/openshift_examples/files/examples/v1.2/infrastructure-templates/origin/logging-deployer.yaml
### Make sure to delete any old secret, and use a new empty secret.
### This secret will be used by kibana to talk to ES servers, and scrape the logs. very important that its in sync.
sudo oc secrets delete logging-deployer ;