Skip to content

Instantly share code, notes, and snippets.

@quintessence
Last active August 29, 2015 14:14
Show Gist options
  • Save quintessence/5c578da2b0c8e8d9db67 to your computer and use it in GitHub Desktop.
Save quintessence/5c578da2b0c8e8d9db67 to your computer and use it in GitHub Desktop.
--- Feb 3 2015 20:47 ---
Listening and Serving...
Processing POST /flocker/flocker--mongodb-volume-example/snapshots
flocker.Create(): Creating Snapshot.
server.RunCommand(/tmp/flocker--mongodb-volume-example-snapshot-2015-02-03T20:46:19-05:00)
server.RunCommand(/tmp/flocker--mongodb-volume-example-snapshot-2015-02-03T20:46:19-05:00)
flocker.Create(): Result: {Cmd:/tmp/flocker--mongodb-volume-example-snapshot-2015-02-03T20:46:19-05:00 Script: Stdout: Stderr: ExitStatus:0 Server:0xc2080320c0 Err:<nil>}
flocker.Create(): Result: {Cmd:/tmp/flocker--mongodb-volume-example-snapshot-2015-02-03T20:46:19-05:00 Script: Stdout:SnapshotFileName: fc5caf9b-d51d-4ab1-bb89-e494b936c208.default.mongodb-volume-example@1423014378.zfs.xz
Stderr: ExitStatus:0 Server:0xc208032d80 Err:<nil>}
flocker.Create(): Examining Node Results: [{Cmd:/tmp/flocker--mongodb-volume-example-snapshot-2015-02-03T20:46:19-05:00 Script: Stdout: Stderr: ExitStatus:0 Server:0xc2080320c0 Err:<nil>} {Cmd:/tmp/flocker--mongodb-volume-example-snapshot-2015-02-03T20:46:19-05:00 Script: Stdout:SnapshotFileName: fc5caf9b-d51d-4ab1-bb89-e494b936c208.default.mongodb-volume-example@1423014378.zfs.xz
Stderr: ExitStatus:0 Server:0xc208032d80 Err:<nil>}].
flocker.Create(): Retrieving Snapshot /snapshots/fc5caf9b-d51d-4ab1-bb89-e494b936c208.default.mongodb-volume-example@1423014378.zfs.xz from
server.GetFile(): sftp.Open(/snapshots/fc5caf9b-d51d-4ab1-bb89-e494b936c208.default.mongodb-volume-example@1423014378.zfs.xz)
server.GetFile(fc5caf9b-d51d-4ab1-bb89-e494b936c208.default.mongodb-volume-example@1423014378.zfs.xz): reading %!s(int64=17644) bytes
server.GetFile(): fc5caf9b-d51d-4ab1-bb89-e494b936c208.default.mongodb-volume-example@1423014378.zfs.xz: read 17644 bytes in 985.885µs seconds
flocker.Create(): Initializing Atmos and opening bucket.
flocker.Create(): Uploading File to Atmos
flocker.Create(): os.Remove(localFile): Removing buffered file.
--- Feb 3 2015 20:22 ---
Processing GET /flocker/flocker--mongodb-volume-example/snapshots
flocker.Snapshots(): bucket.List():
Processing POST /flocker/flocker--mongodb-volume-example/snapshots
flocker.Create(): Creating Snapshot.
server.RunCommand(/tmp/flocker--mongodb-volume-example-snapshot-2015-02-03T20:21:56-05:00)
server.RunCommand(/tmp/flocker--mongodb-volume-example-snapshot-2015-02-03T20:21:56-05:00)
flocker.Create(): Result: {Cmd:/tmp/flocker--mongodb-volume-example-snapshot-2015-02-03T20:21:56-05:00 Script: Stdout: Stderr: ExitStatus:0 Server:0xc20832bbc0 Err:<nil>}
flocker.Create(): Result: {Cmd:/tmp/flocker--mongodb-volume-example-snapshot-2015-02-03T20:21:56-05:00 Script: Stdout:SnapshotFileName: fc5caf9b-d51d-4ab1-bb89-e494b936c208.default.mongodb-volume-example@1423012915.zfs.xz
Stderr: ExitStatus:0 Server:0xc20832bb80 Err:<nil>}
flocker.Create(): Examining Node Results: [{Cmd:/tmp/flocker--mongodb-volume-example-snapshot-2015-02-03T20:21:56-05:00 Script: Stdout: Stderr: ExitStatus:0 Server:0xc20832bbc0 Err:<nil>} {Cmd:/tmp/flocker--mongodb-volume-example-snapshot-2015-02-03T20:21:56-05:00 Script: Stdout:SnapshotFileName: fc5caf9b-d51d-4ab1-bb89-e494b936c208.default.mongodb-volume-example@1423012915.zfs.xz
Stderr: ExitStatus:0 Server:0xc20832bb80 Err:<nil>}].
flocker.Create(): Retrieving Snapshot /snapshots/fc5caf9b-d51d-4ab1-bb89-e494b936c208.default.mongodb-volume-example@1423012915.zfs.xz from
server.GetFile(): sftp.Open(/snapshots/fc5caf9b-d51d-4ab1-bb89-e494b936c208.default.mongodb-volume-example@1423012915.zfs.xz)
server.GetFile(fc5caf9b-d51d-4ab1-bb89-e494b936c208.default.mongodb-volume-example@1423012915.zfs.xz): reading %!s(int64=17640) bytes
server.GetFile(): fc5caf9b-d51d-4ab1-bb89-e494b936c208.default.mongodb-volume-example@1423012915.zfs.xz: read 17640 bytes in 2.381285ms seconds
flocker.Create(): Initializing Atmos and opening bucket.
flocker.Create(): Uploading File to Atmos
flocker.Create(): os.Remove(localFile): Removing buffered file.
--- Feb 3 2015 20:14 ---
Processing POST /flocker/flocker--mongodb-volume-example/snapshots
flocker.Create(): Creating Snapshot.
2015/02/03 20:13:12 http: panic serving 127.0.0.1:58568: runtime error: index out of range
goroutine 5 [running]:
net/http.func·011()
/usr/local/Cellar/go/1.4/libexec/src/net/http/server.go:1130 +0xbb
gitlab.swisscloud.io/appc-cf-services-flocker-snapshots/server.Nodes(0x0, 0x0, 0x0)
/Users/quinn/Development/Go/src/gitlab.swisscloud.io/appc-cf-services-flocker-snapshots/server/server.go:276 +0x346
gitlab.swisscloud.io/appc-cf-services-flocker-snapshots/flocker.(*Snapshot).Create(0xc208032b00, 0x0, 0x0)
/Users/quinn/Development/Go/src/gitlab.swisscloud.io/appc-cf-services-flocker-snapshots/flocker/flocker.go:57 +0x535
gitlab.swisscloud.io/appc-cf-services-flocker-snapshots/api.FlockerSnapshots(0x718530, 0xc208055180, 0xc208031930)
/Users/quinn/Development/Go/src/gitlab.swisscloud.io/appc-cf-services-flocker-snapshots/api/api.go:60 +0x87f
net/http.HandlerFunc.ServeHTTP(0x505ae8, 0x718530, 0xc208055180, 0xc208031930)
/usr/local/Cellar/go/1.4/libexec/src/net/http/server.go:1265 +0x41
github.com/gorilla/mux.(*Router).ServeHTTP(0xc20803e0a0, 0x718530, 0xc208055180, 0xc208031930)
/Users/quinn/Development/Go/src/gitlab.swisscloud.io/appc-cf-services-flocker-snapshots/Godeps/_workspace/src/github.com/gorilla/mux/mux.go:86 +0x29a
net/http.serverHandler.ServeHTTP(0xc2080525a0, 0x718530, 0xc208055180, 0xc208031930)
/usr/local/Cellar/go/1.4/libexec/src/net/http/server.go:1703 +0x19a
net/http.(*conn).serve(0xc2080550e0)
/usr/local/Cellar/go/1.4/libexec/src/net/http/server.go:1204 +0xb57
created by net/http.(*Server).Serve
/usr/local/Cellar/go/1.4/libexec/src/net/http/server.go:1751 +0x35e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment