Skip to content

Instantly share code, notes, and snippets.

View CaptTofu's full-sized avatar

Patrick Galbraith CaptTofu

View GitHub Profile
+ ./kvtctl.sh InitShardMaster -force main/-80 zone1-1504789100
Starting port forwarding to vtctld...
E1102 05:36:48.444678 17995 main.go:61] Remote error: rpc error: code = Unknown desc = node doesn't exist
+ ./kvtctl.sh InitShardMaster -force main/80- zone1-1015307700
Starting port forwarding to vtctld...
E1102 05:36:49.643641 18836 main.go:61] Remote error: rpc error: code = Unknown desc = node doesn't exist
++ cat schema.sql
+ ./kvtctl.sh ApplySchema -sql 'CREATE TABLE messages (
page BIGINT(20) UNSIGNED,
time_created_ns BIGINT(20) UNSIGNED,
kubernetes/preinstall : check bin dir exists ---------------------------- 0.46s
kubernetes/preinstall : check if kubelet is configured ------------------ 0.34s
kubernetes/preinstall : check if /etc/dhcp/dhclient.conf exists --------- 0.32s
kubernetes/preinstall : check if atomic host ---------------------------- 0.30s
kubernetes/preinstall : Stop if known booleans are set as strings (Use JSON format on CLI: -e "{'key': true }") --- 0.29s
kubernetes/preinstall : check if /etc/dhclient.conf exists -------------- 0.29s
download : Sync container ----------------------------------------------- 0.17s
download : Download items ----------------------------------------------- 0.16s
Ansible failed to complete successfully. Any error output should be
visible above. Please fix these errors and try again.
patg@ubuntu:~$ kubectl get nodes
NAME STATUS AGE VERSION
ubuntu NotReady 31m v1.7.3
patg@ubuntu:~$ export kubever=$(kubectl version | base64 | tr -d '\n')
patg@ubuntu:~$ kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$kubever"
serviceaccount "weave-net" created
clusterrole "weave-net" created
clusterrolebinding "weave-net" created
daemonset "weave-net" created
patg@ubuntu:~$ kubectl get nodes
rails g scaffold User email
/root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.3/lib/active_support/railtie.rb:22:in `rescue in block in <class:Railtie>': tzinfo-data is not present. Please add gem 'tzinfo-data' to your Gemfile and run bundle install (TZInfo::DataSourceNotFound)
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.3/lib/active_support/railtie.rb:19:in `block in <class:Railtie>'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.3/lib/rails/initializable.rb:30:in `instance_exec'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.3/lib/rails/initializable.rb:30:in `run'
from /root/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.3/lib/rails/initializable.rb:59:in `block in run_initializers'
from /root/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:228:in `block in tsort_each'
from /root/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
fr
D: He does not know where Aleppo is, he cannot name a single foreign leader and now this? You are welcome to him
Gary Johnson Vows to Get Tough on East Korea
“This behavior is unacceptable,” the Libertarian Presidential nominee said. “The East Koreans are making us look like idiots.”
newyorker.com
D: He cannot name a single foreign leader *he * *admires*
P: you like voting for someone who has caused misery for thousands?
http://www.foreignpolicyjournal.com/2016/01/06/new-hillary-emails-reveal-true-motive-for-libya-intervention/
DEBUG [1] lcmsvr /real_node_integrate/696 - ipv4=192.168.55.40 etcd_endpoint=None ext_inv_endpoint=192.168.55.1:55551
DEBUG [1] lcmsvr /integrate_with_inventory/462 - Node 192.168.55.40 Initial Integration or Inventory Update
ERROR [1] invmgr /get_inventory/119 - Unable to get Cluster configurations from system manager RestAPI Server
^Ccore@c40 ~ $ curl -s http://192.168.55.1:55551/clusters
^C
core@c40 ~ $ curl -s http://192.168.55.1:55551/clusters | python -m json.tool
{
"vagrant": {
piVersion: v1
kind: Pod
metadata:
name: phpmyadmin
labels:
name: phpmyadmin
spec:
containers:
- image: phpmyadmin/phpmyadmin
name: phpmyadmin
core@core-01 ~ $ ./kubectl --server=172.17.8.102:8080 get pods
NAME READY STATUS RESTARTS AGE
nginx-198147104-8rikq 1/1 Running 0 2m
core@core-01 ~ $ ./kubectl --server=172.17.8.102:8080 describe pod nginx-198147104-8rikq
Name: nginx-198147104-8rikq
Namespace: default
Node: core-03/172.17.8.103
Start Time: Wed, 29 Jun 2016 18:31:41 +0000
Labels: pod-template-hash=198147104,run=nginx
Status: Running
un 29 18:04:33 core-01 fleetd[1975]: DEBUG reconcile.go:84: Reconciler tick
Jun 29 18:04:33 core-01 fleetd[1975]: DEBUG engine.go:190: Lease already held by Machine(d2e1b887dac64e338791e98501153dfe) operating at acceptable version 1
Jun 29 18:04:34 core-01 fleetd[1975]: DEBUG mux.go:52: HTTP GET http://domain-sock/fleet/v1/units/kubernetes-apiserver.service?alt=json
Jun 29 18:04:34 core-01 fleetd[1975]: DEBUG mux.go:52: HTTP GET http://domain-sock/fleet/v1/units/kubernetes-apiserver.service?alt=json
Jun 29 18:04:34 core-01 fleetd[1975]: DEBUG agent.go:81: HeartbeatJobs tick
Jun 29 18:04:34 core-01 fleetd[1975]: DEBUG unit_state.go:218: Pushing UnitState(kubernetes-env.service) to Registry: &unit.UnitState{LoadState:"loaded", ActiveState:"inactive", SubState:"dead", MachineID:"4883844f19424b6b881aa67e3eb0a587", UnitHash:"839f0a60c2a3332191f4747b30887445fea4a878", UnitName:""}
Jun 29 18:04:34 core-01 fleetd[1975]: DEBUG reconcile.go:84: Reconciler tick
Jun 29 18:04:34 core-01 fleetd[1975]: DEBUG reconcile.go:28
EBUG [1] lcmutil lcmutil/shellcmd/86 -
DEBUG [1] lcmutil lcmutil/shellcmd/86 - TASK [kubernetes-services : create /opt/bin dir] *******************************
DEBUG [1] lcmutil lcmutil/shellcmd/86 - skipping: [c40] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true}
DEBUG [1] lcmutil lcmutil/shellcmd/86 -
DEBUG [1] lcmutil lcmutil/shellcmd/86 - TASK [kubernetes-services : Get kubectl (until figure out why kubectl container doesn't work)] ***
DEBUG [1] lcmutil lcmutil/shellcmd/86 - skipping: [c40] => {"changed": false, "skip_reason": "Conditional check failed", "skipped": true}
DEBUG [1] lcmutil lcmutil/shellcmd/86 -
DEBUG [1] lcmutil lcmutil/shellcmd/86 - TASK [kubernetes-services : Wait for k8s api] **********************************
DEBUG [1] lcmutil lcmutil/shellcmd/86 - Pausing for 45 seconds
DEBUG [1] lcmutil lcmutil/shellcmd/86 - (ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)