Skip to content

Instantly share code, notes, and snippets.

View orospakr's full-sized avatar

Andrew Clunis orospakr

View GitHub Profile
[~/code/others/kubernetes]$ rm -rf output
[~/code/others/kubernetes]$ go version
go version go1.3 linux/amd64
[~/code/others/kubernetes]$ git show-ref
f36d2a7ebdcad77532db7e8d45962dedee531363 refs/heads/master
[~/code/others/kubernetes]$ ./hack/build-go.sh
# github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet
output/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/kubelet.go:292: cannot use int64(container.Memory) (type int64) as type uint64 in field value
output/go/src/github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/kubelet.go:558: unknown info.ContainerInfoRequest field 'MemoryUsagePercentiles' in struct literal
[~/code/others/kubernetes]$ tail -f /tmp/apiserver.log /tmp/controller-manager.log /tmp/kubelet.log /tmp/kube-proxy.log
==> /tmp/apiserver.log <==
I0723 13:00:14.791475 03019 apiserver.go:73] No cloud provider specified.
E0723 13:00:14.793308 03019 master.go:90] Failed to initialize caching layer, ignoring cache.
E0723 13:00:14.795536 03019 pod_cache.go:79] Error synchronizing container list: &url.Error{Op:"Get", URL:"http://127.0.0.1:10250/healthz", Err:(*net.OpError)(0xc20803eb80)}
==> /tmp/controller-manager.log <==
I0723 13:05:24.795341 03020 logs.go:39] etcd DEBUG: get [/registry/controllers http://127.0.0.1:4001] [%!s(MISSING)]
I0723 13:05:24.795501 03020 logs.go:39] etcd DEBUG: [Connecting to etcd: attempt 1 for keys/registry/controllers?consistent=true&recursive=true&sorted=false]
I0723 13:05:24.795534 03020 logs.go:39] etcd DEBUG: [send.request.to http://127.0.0.1:4001/v2/keys/registry/controllers?consistent=true&recursive=true&sorted=false | method GET]
@orospakr
orospakr / gist:0afc3056b62ba1beebd1
Last active August 29, 2015 14:04
Manifest from etcd failed validation, ignoring: [ContainerManifest.Version: invalid value '' Container.Name: invalid value '']
Did this:
./output/go/kubecfg -v=3 -p 8888:80 run dockerfile/nginx 2 myNginx2 [master][system]
I0717 19:36:30.696050 07029 request.go:220] Waiting for completion of /operations/1
I0717 19:36:50.698185 07029 request.go:220] Waiting for completion of /operations/1
I0717 19:37:10.701206 07029 request.go:220] Waiting for completion of /operations/1
I0717 19:37:30.703374 07029 request.go:220] Waiting for completion of /operations/1
I0717 19:37:50.706173 07029 request.go:220] Waiting for completion of /operations/1
...
@orospakr
orospakr / gist:2ba2da1f5d15d48fd8ab
Last active August 29, 2015 14:04
Unhappy Kubernetes behaviour when trying './output/go/kubecfg -v=3 -p 8080:80 run dockerfile/nginx 2 myNginx'
[~/code/others/kubernetes]$ ./output/go/kubecfg -v=3 -p 8080:80 run dockerfile/nginx 2 myNginx
I0715 12:50:16.219593 54624 request.go:220] Waiting for completion of /operations/5
I0715 12:50:36.223987 54624 request.go:220] Waiting for completion of /operations/5
I0715 12:50:56.228018 54624 request.go:220] Waiting for completion of /operations/5
I0715 12:51:16.231184 54624 request.go:220] Waiting for completion of /operations/5
I0715 12:51:36.236739 54624 request.go:220] Waiting for completion of /operations/5
... and so on.
And on my CoreOS (+kelseyhightower) instance that's hosting Kube, badness is going on.
In particular, look for "port has already been allocated".
@orospakr
orospakr / gist:a187663fa1ef6908b8d8
Created June 22, 2014 22:31
ruby-build of 2.1.2 SSL problem on OS X 10.8
/var/folders/cq/m9rjzq0x7cl_4kxzdkyx8w7w0000gn/T/ruby-build.20140622182054.59382 ~/code/casnet/casnet-ops
HTTP/1.1 200 OK
Content-Type: binary/octet-stream
Content-Length: 15096114
Connection: keep-alive
Date: Thu, 29 May 2014 10:04:54 GMT
Last-Modified: Fri, 23 May 2014 08:34:23 GMT
ETag: "a5b5c83565f8bd954ee522bd287d2ca1"
Accept-Ranges: bytes
Server: AmazonS3
> var lol = App.__container__.lookup('store:main').createRecord("person");
undefined
> lol
Class {id: "fixture-1", store: Class, container: Container, _changesToSync: Object, _deferredTriggers: Array[0]…}
> lol.save()
Class {__ember1395010469071: undefined, _super: undefined, __ember1395010469071_meta: Object, constructor: function, reason: null…}
> App.__container__.lookup('store:main').find("person").get("length")
0
[~]$ curl http://mysite.org:8000/js/generated/vendor.js > /tmp/poop [system]
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
50 1303k 50 654k 0 0 38.2M 0 --:--:-- --:--:-- --:--:-- 39.9M
curl: (18) transfer closed with 664319 bytes remaining to read
[~]$ curl http://mysite.org:8000/js/generated/vendor.js > /tmp/poop [system]
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1303k 100 1303k 0 0 53.5M 0 --:--:-- --:--:-- --:--:-- 55.3M
[~]$ curl http://mysite.org:8000/js/generated/vendor.js > /tmp/poop
root@3b352a7daea9:~# /usr/sbin/riak-cs console
Node 'riak-cs@127.0.0.1' not responding to pings.
config is OK
!!!!
!!!! WARNING: ulimit -n is 1024; 4096 is the recommended minimum.
!!!!
Exec: /usr/lib/riak-cs/erts-5.9.1/bin/erlexec -boot /usr/lib/riak-cs/releases/1.4.4/riak-cs -config /etc/riak-cs/app.config -pa /usr/lib/riak-cs/lib/basho-patches -args_file /etc/riak-cs/vm.args -- console
Root: /usr/lib/riak-cs
^[[A
Erlang R15B01 (erts-5.9.1) [source] [64-bit] [smp:4:4] [async-threads:64] [kernel-poll:true]
==> Building and installing package
==> Making package: lxc-docker-git 1:0.7.0.rc4.3830.3c20a8c-1 (Fri Nov 22 00:20:43 EST 2013)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Cloning docker git repo...
Cloning into bare repository '/tmp/yaourt-tmp-orospakr/aur-lxc-docker-git/docker'...
remote: Counting objects: 28291, done.
remote: Compressing objects: 100% (17198/17198), done.
remote: Total 28291 (delta 17149), reused 21143 (delta 10479)
E/ThermalEngine( 197): TM Id 'battery_LCD_monitor' Sensor 'batt_therm' - alarm raised 3 at 350.0 degC
E/ThermalEngine( 197): override action 5000
E/ThermalEngine( 197): Thermal-Server: Thermal received msg override 5000
E/ThermalEngine( 197): override_notify : SS mode 1 override 5000
E/ThermalEngine( 197): enable_threshold: tsens_tz_sensor3 (/sys/devices/virtual/thermal/thermal_zone3/trip_point_0_type)
E/ThermalEngine( 197): enable_threshold: tsens_tz_sensor3 (/sys/devices/virtual/thermal/thermal_zone3/trip_point_1_type)
E/ThermalEngine( 197): enable_threshold: tsens_tz_sensor8 (/sys/devices/virtual/thermal/thermal_zone8/trip_point_0_type)
E/ThermalEngine( 197): enable_threshold: tsens_tz_sensor8 (/sys/devices/virtual/thermal/thermal_zone8/trip_point_1_type)
E/ThermalEngine( 197): enable_threshold: tsens_tz_sensor7 (/sys/devices/virtual/thermal/thermal_zone7/trip_point_0_type)
E/ThermalEngine( 197): enable_threshold: tsens_tz_sensor7 (/sys/devices/virtual/thermal/thermal_zone7/trip_point_1_type)