Skip to content

Instantly share code, notes, and snippets.

View mbforbes's full-sized avatar
🖋️
Sketches

Maxwell Forbes mbforbes

🖋️
Sketches
View GitHub Profile
@mbforbes
mbforbes / gist:a1580f5434e35c597108
Created June 26, 2014 22:17
ROS Groovy packages I have installed
# These are the ROS Groovy packages I have installed. There are 372.
#
# This was created via the following command:
#
# $ dpkg --get-selections | grep -v deinstall | grep ros-groovy
#
# Note that packages should not be installed this way; it's much easier
# to start by installing a few big ones, such as
#
# - ros-groovy-desktop-full
@mbforbes
mbforbes / get_top_wrt_attr.py
Created August 8, 2014 01:54
Get top w.r.t. attr
@staticmethod
def get_top_wrt_attr(objs, attr, epsilon):
'''
Gets the top elements from objs that score within epsilon of
the max value with respect to their (number-valued) attribute
attr.
Args:
objs ([object])
attr (str)
@mbforbes
mbforbes / orm_motivation.js
Created November 9, 2014 01:11
Why SQL-like DBs need an ORM
/* Ability model.
*
*/
var async = require('async');
var util = require('./util');
var _ = require('underscore');
// async helper functions
Reboot
should reboot each node and ensure they function upon restart
/Users/maxforbes/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/test/e2e/reboot.go:94
[BeforeEach] Reboot
/Users/maxforbes/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/test/e2e/reboot.go:62
>>> testContext.KubeConfig: /Users/maxforbes/.kube/config
[It] should reboot each node and ensure they function upon restart
/Users/maxforbes/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/test/e2e/reboot.go:94
INFO: Getting e2e-test-maxforbes-minion-lqv1
INFO: Getting e2e-test-maxforbes-minion-pnqo
@mbforbes
mbforbes / gist:ff74c87346f724b0fc8e
Created May 12, 2015 21:17
Reboot test failure — guestbook
kubectl guestbook
should create and stop a working application
/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/dockerized/go/src/github.com/GoogleCloudPlatform/kubernetes/test/e2e/kubectl.go:125
[BeforeEach] kubectl
/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/dockerized/go/src/github.com/GoogleCloudPlatform/kubernetes/test/e2e/kubectl.go:58
>>> testContext.KubeConfig: /Users/maxforbes/.kube/config
[It] should create and stop a working application
/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/dockerized/go/src/github.com/GoogleCloudPlatform/kubernetes/test/e2e/kubectl.go:125
STEP: creating all guestbook components
INFO: Running '/Users/maxforbes/go/src/github.com/GoogleCloudPlatform/kubernetes/hack/../cluster/../_output/dockerized/bin/darwin/amd64/kubectl kubectl --server=https://146.148.37.149 --kubeconfig=/Users/maxforbes/.kube/config create -f examples/guestbook --namespace=e2e-tests-kubectl-b0fff9f6-7722-4f5c-8b95-5c150d67dd60'
@mbforbes
mbforbes / gist:99f9506b83b82da476da
Last active August 29, 2015 14:21
Reboot test failure — density (start 3 pods per node)
Density
[Performance suite] should allow starting 3 pods per node
/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/dockerized/go/src/github.com/GoogleCloudPlatform/kubernetes/test/e2e/density.go:164
[BeforeEach] Density
/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/dockerized/go/src/github.com/GoogleCloudPlatform/kubernetes/test/e2e/density.go:60
>>> testContext.KubeConfig: /Users/maxforbes/.kube/config
[It] [Performance suite] should allow starting 3 pods per node
/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/dockerized/go/src/github.com/GoogleCloudPlatform/kubernetes/test/e2e/density.go:164
STEP: Creating replication controller my-hostname-density6-843c3b4c-f8e8-11e4-a6a4-80e6500c3b04
STEP: Making sure all 6 replicas exist
@mbforbes
mbforbes / gist:7e41e970229482fe4569
Created May 12, 2015 21:19
Reboot test failure — Elasticsearch
Cluster level logging using Elasticsearch
should check that logs from pods on all nodes are ingested into Elasticsearch
/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/dockerized/go/src/github.com/GoogleCloudPlatform/kubernetes/test/e2e/es_cluster_logging.go:46
[BeforeEach] Cluster level logging using Elasticsearch
/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/dockerized/go/src/github.com/GoogleCloudPlatform/kubernetes/test/e2e/es_cluster_logging.go:42
>>> testContext.KubeConfig: /Users/maxforbes/.kube/config
[It] should check that logs from pods on all nodes are ingested into Elasticsearch
/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/dockerized/go/src/github.com/GoogleCloudPlatform/kubernetes/test/e2e/es_cluster_logging.go:46
STEP: Checking the Elasticsearch service exists.
STEP: Checking to make sure the Elasticsearch pods are running
@mbforbes
mbforbes / gist:1135339f4a5e2beda85e
Created May 12, 2015 23:59
Reboot test failure — Services DNS
Services
should provide DNS for the cluster
/Users/maxforbes/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/test/e2e/service.go:171
[BeforeEach] Services
/Users/maxforbes/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/test/e2e/service.go:48
>>> testContext.KubeConfig: /Users/maxforbes/.kube/config
[It] should provide DNS for the cluster
/Users/maxforbes/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/test/e2e/service.go:171
STEP: creating a pod to probe DNS
STEP: submitting the pod to kubernetes
@mbforbes
mbforbes / gist:2ef7d5d5889407be58a8
Created May 13, 2015 00:13
Reboot test failure — Monitoring with influxdb & heapster
Monitoring
verify monitoring pods and all cluster nodes are available on influxdb using heapster.
/Users/maxforbes/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/test/e2e/monitoring.go:51
[BeforeEach] Monitoring
/Users/maxforbes/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/test/e2e/monitoring.go:42
>>> testContext.KubeConfig: /Users/maxforbes/.kube/config
[It] verify monitoring pods and all cluster nodes are available on influxdb using heapster.
/Users/maxforbes/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/local/go/src/github.com/GoogleCloudPlatform/kubernetes/test/e2e/monitoring.go:51
INFO: failed to query list of pods from influxdb. Query: "select distinct(pod_id) from /cpu.*/", Err: expected only one series from Influxdb for query "select distinct(pod_id) from /cpu.*/". Got []
INFO: failed to query list of pods from influxdb. Query: "select distinct(pod_id)
@mbforbes
mbforbes / gist:fbafbdc1688c5b1236b1
Created May 14, 2015 18:05
Reboot test failure — reboot (pods not 'Running' after reboot)
Reboot
should reboot each node and ensure they function upon restart
/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/dockerized/go/src/github.com/GoogleCloudPlatform/kubernetes/test/e2e/reboot.go:97
[BeforeEach] Reboot
/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/dockerized/go/src/github.com/GoogleCloudPlatform/kubernetes/test/e2e/reboot.go:62
>>> testContext.KubeConfig: /Users/maxforbes/.kube/config
[It] should reboot each node and ensure they function upon restart
/go/src/github.com/GoogleCloudPlatform/kubernetes/_output/dockerized/go/src/github.com/GoogleCloudPlatform/kubernetes/test/e2e/reboot.go:97
INFO: Getting e2e-test-maxforbes-minion-3t1x
INFO: Getting e2e-test-maxforbes-minion-66vd