This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upgrade | |
get all active gears | |
get all logins | |
get all domains | |
get all apps with a gear | |
get all gears across nodes | |
write node level gear files | |
make threads per node | |
for each node... (theads) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Source: http://fvue.nl/wiki/Bash:_Error_handling | |
# | |
#!/bin/bash -eu | |
# -e: Exit immediately if a command exits with a non-zero status. | |
# -u: Treat unset variables as an error when substituting. | |
(false) # Caveat 1: If an error occurs in a subshell, it isn't detected | |
(false) || false # Solution: If you want to exit, you have to detect the error yourself | |
(false; true) || false # Caveat 2: The return status of the ';' separated list is `true' | |
(false && true) || false # Solution: If you want to control the last command executed, use `&&' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ vagrant mutate fedora20 libvirt | |
/opt/vagrant/bin/../embedded/gems/gems/vagrant-1.6.2/lib/vagrant/pre-rubygems.rb:31: warning: Insecure world writable dir /home/pmorie/go/bin in PATH, mode 040757 | |
/opt/vagrant/embedded/gems/gems/bundler-1.6.2/lib/bundler/runtime.rb:222: warning: Insecure world writable dir /home/pmorie/go/bin in PATH, mode 040757 | |
You have qemu 1.6.2 installed. This version cannot read some virtualbox boxes. If conversion fails, see below for recommendations. https://github.com/sciurus/vagrant-mutate/wiki/QEMU-Version-Compatibility | |
Converting fedora20 from virtualbox to libvirt. | |
qemu-img: 'image' uses a vmdk feature which is not supported by this qemu version: VMDK version 3 | |
qemu-img: Could not open '/home/pmorie/.vagrant.d/boxes/fedora20/0/virtualbox/packer-fedora-20-x86_64-disk1.vmdk': Wrong medium type | |
Getting information about the disk image via qemu-info failed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ vagrant up --provider libvirt | |
/opt/vagrant/bin/../embedded/gems/gems/vagrant-1.6.2/lib/vagrant/pre-rubygems.rb:31: warning: Insecure world writable dir /home/pmorie/go/bin in PATH, mode 040757 | |
/opt/vagrant/embedded/gems/gems/bundler-1.6.2/lib/bundler/runtime.rb:222: warning: Insecure world writable dir /home/pmorie/go/bin in PATH, mode 040757 | |
Bringing machine 'godev' up with 'libvirt' provider... | |
/home/pmorie/.vagrant.d/gems/gems/vagrant-libvirt-0.0.8/lib/vagrant-libvirt/action.rb:28:in `block (2 levels) in action_up': uninitialized constant VagrantPlugins::ProviderLibvirt::Action::NFS (NameError) | |
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/builtin/call.rb:47:in `call' | |
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/builtin/call.rb:47:in `call' | |
from /opt/vagrant/embedded/gems/gems/vagrant-1.6.2/lib/vagrant/action/warden.rb:34:in `call' | |
from /home/pmorie/.vagrant.d/gems/gems/vagrant-libvirt-0.0.8/lib/vagrant-libvirt/action/connec |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ vagrant up --provider libvirt | |
/opt/vagrant/bin/../embedded/gems/gems/vagrant-1.6.2/lib/vagrant/pre-rubygems.rb:31: warning: Insecure world writable dir /home/pmorie/go/bin in PATH, mode 040757 | |
/opt/vagrant/embedded/gems/gems/bundler-1.6.2/lib/bundler/runtime.rb:222: warning: Insecure world writable dir /home/pmorie/go/bin in PATH, mode 040757 | |
Bringing machine 'godev' up with 'libvirt' provider... | |
==> godev: Creating image (snapshot of base box volume). | |
==> godev: Creating domain with the following settings... | |
==> godev: -- Name: kubernetes_godev | |
==> godev: -- Domain type: kvm | |
==> godev: -- Cpus: 1 | |
==> godev: -- Memory: 512M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[vagrant@godev vagrant]$ cluster/kubecfg.sh list services | |
F0723 18:38:56.843483 02591 kubecfg.go:202] Got request error: request [&http.Request{Method:"GET", URL:(*url.URL)(0xc2100764d0), Proto:"HTTP/1.1", ProtoMajor:1, ProtoMinor:1, Header:http.Header{}, Body:io.ReadCloser(nil), ContentLength:0, TransferEncoding:[]string(nil), Close:false, Host:"127.0.0.1:8080", Form:url.Values(nil), PostForm:url.Values(nil), MultipartForm:(*multipart.Form)(nil), Trailer:http.Header(nil), RemoteAddr:"", RequestURI:"", TLS:(*tls.ConnectionState)(nil)}] failed (500) 500 Internal Server Error: Internal Error: &etcd.EtcdError{ErrorCode:501, Message:"All the given peers are not reachable", Cause:"Tried to connect to each peer twice and failed", Index:0x0} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I0723 18:54:27.489520 03180 apiserver.go:73] No cloud provider specified. | |
E0723 18:54:27.498269 03180 endpoints.go:66] Failed to list services! | |
E0723 18:54:27.498475 03180 pod_cache.go:79] Error synchronizing container list: &json.SyntaxError{msg:"invalid character 'p' after top-level value", Offset:5} | |
E0723 18:54:37.499932 03180 endpoints.go:66] Failed to list services! | |
I0723 18:54:41.058313 03180 log.go:135] GET /: (22.634us) 200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ hack/local-up-cluster.sh | |
go install errors: open /usr/lib/golang/pkg/linux_amd64/errors.a: permission denied | |
go install sync/atomic: open /usr/lib/golang/pkg/linux_amd64/sync/atomic.a: permission denied | |
go install unicode/utf8: open /usr/lib/golang/pkg/linux_amd64/unicode/utf8.a: permission denied | |
go install encoding: open /usr/lib/golang/pkg/linux_amd64/encoding.a: permission denied | |
go install sort: open /usr/lib/golang/pkg/linux_amd64/sort.a: permission denied | |
go install unicode/utf16: open /usr/lib/golang/pkg/linux_amd64/unicode/utf16.a: permission denied | |
go install crypto/subtle: open /usr/lib/golang/pkg/linux_amd64/crypto/subtle.a: permission denied | |
go install container/ring: open /usr/lib/golang/pkg/linux_amd64/container/ring.a: permission denied | |
go install unicode: open /usr/lib/golang/pkg/linux_amd64/unicode.a: permission denied |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo iptables -L -n -v | |
Chain INPUT (policy ACCEPT 113K packets, 11M bytes) | |
pkts bytes target prot opt in out source destination | |
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes) | |
pkts bytes target prot opt in out source destination | |
0 0 ACCEPT all -- * docker0 0.0.0.0/0 0.0.0.0/0 ctstate RELATED,ESTABLISHED | |
0 0 ACCEPT all -- docker0 !docker0 0.0.0.0/0 0.0.0.0/0 | |
0 0 ACCEPT all -- docker0 docker0 0.0.0.0/0 0.0.0.0/0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Chain INPUT (policy ACCEPT 0 packets, 0 bytes) | |
pkts bytes target prot opt in out source destination | |
0 0 ACCEPT udp -- virbr0 * 0.0.0.0/0 0.0.0.0/0 udp dpt:53 | |
0 0 ACCEPT tcp -- virbr0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:53 | |
0 0 ACCEPT udp -- virbr0 * 0.0.0.0/0 0.0.0.0/0 udp dpt:67 | |
0 0 ACCEPT tcp -- virbr0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:67 | |
0 0 ACCEPT udp -- virbr1 * 0.0.0.0/0 0.0.0.0/0 udp dpt:53 | |
0 0 ACCEPT tcp -- virbr1 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:53 | |
0 0 ACCEPT udp -- virbr1 * 0.0.0.0/0 0.0.0.0/0 udp dpt:67 | |
0 0 ACCEPT tcp -- virbr1 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:67 |
OlderNewer