Skip to content

Instantly share code, notes, and snippets.

@tleyden
Created May 27, 2015 23:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tleyden/005c62266ea5e87f7810 to your computer and use it in GitHub Desktop.
Save tleyden/005c62266ea5e87f7810 to your computer and use it in GitHub Desktop.
$ sudo docker run --net=host tleyden5iwx/couchbase-cluster-go update-wrapper couchbase-fleet launch-cbs --version 3.0.1 --num-nodes 2 --userpass "user:passw0rd"
2015/05/27 23:40:30 Update-Wrapper: updating to latest code
github.com/tleyden/couchbase-cluster-go (download)
github.com/coreos/fleet (download)
github.com/coreos/go-systemd (download)
github.com/tleyden/go-etcd (download)
github.com/docopt/docopt-go (download)
github.com/tleyden/couchbase-cluster-go
github.com/tleyden/couchbase-cluster-go/cmd/couchbase-cluster
github.com/tleyden/couchbase-cluster-go/cmd/couchbase-fleet
github.com/tleyden/couchbase-cluster-go/cmd/experiment
github.com/tleyden/couchbase-cluster-go/cmd/sync-gw-cluster
github.com/tleyden/couchbase-cluster-go/cmd/sync-gw-config
2015/05/27 23:40:38 remainingargs: [launch-cbs --version 3.0.1 --num-nodes 2 --userpass user:passw0rd], target: couchbase-fleet
2015/05/27 23:40:38 Invoking target: couchbase-fleet with args: [launch-cbs --version 3.0.1 --num-nodes 2 --userpass user:passw0rd]
2015/05/27 23:40:38 Connect to etcd on localhost
2015/05/27 23:40:38 verifyEnoughMachinesAvailable()
2015/05/27 23:40:38 /verifyEnoughMachinesAvailable()
2015/05/27 23:40:38 Generating node from data/couchbase_node@.service.template with params: {CB_VERSION:community-3.0.1 CONTAINER_TAG:latest}
2015/05/27 23:40:38 Couchbase node fleet unit: [Unit]
Description=couchbase_node
After=docker.service
Requires=docker.service
After=etcd.service
Requires=etcd.service
[Service]
TimeoutStartSec=0
TimeoutStopSec=0
EnvironmentFile=/etc/environment
ExecStartPre=-/usr/bin/docker kill couchbase
ExecStartPre=-/usr/bin/docker rm couchbase
ExecStartPre=/usr/bin/docker pull couchbase/server:community-3.0.1
ExecStartPre=/usr/bin/docker pull tleyden5iwx/couchbase-cluster-go:latest
ExecStart=/bin/bash -c '/usr/bin/docker run --name couchbase -v /opt/couchbase/var:/opt/couchbase/var --net=host couchbase/server:community-3.0.1'
ExecStop=/bin/bash -c '/usr/bin/docker run --net=host tleyden5iwx/couchbase-cluster-go:latest update-wrapper couchbase-cluster remove-and-rebalance --local-ip $COREOS_PRIVATE_IPV4; sudo docker stop couchbase'
[X-Fleet]
Conflicts=couchbase_node*.service
2015/05/27 23:40:38 Launch fleet unit couchbase_node (1)
2015/05/27 23:40:38 response body:
2015/05/27 23:40:38 Generating sidekick from data/couchbase_sidekick@.service.template with params: {CB_VERSION:community-3.0.1 CONTAINER_TAG:latest UNIT_NUMBER:1}
2015/05/27 23:40:38 Couchbase sidekick fleet unit: [Unit]
Description=couchbase_sidekick
After=docker.service
Requires=docker.service
After=etcd.service
Requires=etcd.service
After=fleet.service
Requires=fleet.service
BindsTo=couchbase_node@1.service
After=couchbase_node@1.service
[Service]
TimeoutStartSec=0
EnvironmentFile=/etc/environment
ExecStartPre=-/usr/bin/docker kill couchbase-sidekick
ExecStartPre=-/usr/bin/docker rm couchbase-sidekick
ExecStartPre=/usr/bin/docker pull tleyden5iwx/couchbase-cluster-go:latest
ExecStart=/bin/bash -c '/usr/bin/docker run --name couchbase-sidekick --net=host tleyden5iwx/couchbase-cluster-go:latest update-wrapper couchbase-cluster start-couchbase-sidekick --local-ip=$COREOS_PRIVATE_IPV4'
ExecStop=/usr/bin/docker stop couchbase-sidekick
[X-Fleet]
MachineOf=couchbase_node@1.service
2015/05/27 23:40:38 Launch fleet unit couchbase_sidekick (1)
2015/05/27 23:40:39 response body:
2015/05/27 23:40:39 Launch fleet unit couchbase_node (2)
2015/05/27 23:40:39 response body:
2015/05/27 23:40:39 Generating sidekick from data/couchbase_sidekick@.service.template with params: {CB_VERSION:community-3.0.1 CONTAINER_TAG:latest UNIT_NUMBER:2}
2015/05/27 23:40:39 Couchbase sidekick fleet unit: [Unit]
Description=couchbase_sidekick
After=docker.service
Requires=docker.service
After=etcd.service
Requires=etcd.service
After=fleet.service
Requires=fleet.service
BindsTo=couchbase_node@2.service
After=couchbase_node@2.service
[Service]
TimeoutStartSec=0
EnvironmentFile=/etc/environment
ExecStartPre=-/usr/bin/docker kill couchbase-sidekick
ExecStartPre=-/usr/bin/docker rm couchbase-sidekick
ExecStartPre=/usr/bin/docker pull tleyden5iwx/couchbase-cluster-go:latest
ExecStart=/bin/bash -c '/usr/bin/docker run --name couchbase-sidekick --net=host tleyden5iwx/couchbase-cluster-go:latest update-wrapper couchbase-cluster start-couchbase-sidekick --local-ip=$COREOS_PRIVATE_IPV4'
ExecStop=/usr/bin/docker stop couchbase-sidekick
[X-Fleet]
MachineOf=couchbase_node@2.service
2015/05/27 23:40:39 Launch fleet unit couchbase_sidekick (2)
2015/05/27 23:40:39 response body:
2015/05/27 23:40:39 Waiting for cluster to be up ..
2015/05/27 23:40:39 Connect to etcd on localhost
2015/05/27 23:40:39 FindLiveNode returned err: Error getting key. Err: 100: Key not found (/couchbase.com/couchbase-node-state) [1001112] or empty ip
2015/05/27 23:40:39 Sleeping 10 seconds
2015/05/27 23:40:49 FindLiveNode returned err: Error getting key. Err: 100: Key not found (/couchbase.com/couchbase-node-state) [1001140] or empty ip
2015/05/27 23:40:49 Sleeping 20 seconds
2015/05/27 23:41:09 FindLiveNode returned err: Error getting key. Err: 100: Key not found (/couchbase.com/couchbase-node-state) [1001163] or empty ip
2015/05/27 23:41:09 Sleeping 30 seconds
2015/05/27 23:41:39 FindLiveNode returned err: Error getting key. Err: 100: Key not found (/couchbase.com/couchbase-node-state) [1001206] or empty ip
2015/05/27 23:41:39 Sleeping 40 seconds
2015/05/27 23:42:19 len(node.Nodes) == 0, returning
2015/05/27 23:42:19 FindLiveNode returned err: <nil> or empty ip
2015/05/27 23:42:19 Sleeping 50 seconds
2015/05/27 23:43:09 Couchbase node ip: 10.109.157.208
2015/05/27 23:43:09 Verifying REST service at http://10.109.157.208:8091/ to be up
2015/05/27 23:43:09 Connecting to liveNodeIp: 10.109.157.208
2015/05/27 23:43:09 CheckNumNodesClusterHealthy()
2015/05/27 23:43:09 GetClusterNodes() called with: 10.109.157.208
2015/05/27 23:43:09 All cluster nodes appear to be healthy
2015/05/27 23:43:09 Connect to etcd on localhost
2015/05/27 23:43:09 Couchbase node ip: 10.109.157.208
2015/05/27 23:43:09 Verifying REST service at http://10.109.157.208:8091/ to be up
2015/05/27 23:43:09 WaitUntilNoRebalanceRunning()
2015/05/27 23:43:09 Sleeping 30 seconds
2015/05/27 23:43:39 WaitUntilNoRebalanceRunning()
2015/05/27 23:43:39 No rebalance running, sleeping 15s. (1/2)
2015/05/27 23:43:54 WaitUntilNoRebalanceRunning()
2015/05/27 23:43:54 No rebalance running, sleeping 15s. (2/2)
2015/05/27 23:44:09 No rebalance running after several checks
2015/05/27 23:44:09 Cluster is up!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment