Skip to content

Instantly share code, notes, and snippets.

@quintessence
Last active August 29, 2015 14:15
Show Gist options
  • Save quintessence/6b55732d7ef7b81b021b to your computer and use it in GitHub Desktop.
Save quintessence/6b55732d7ef7b81b021b to your computer and use it in GitHub Desktop.
upgrade ouput
$ go run main.go
Launching API Server...
Listening and Serving...
Processing POST /snapshots?host=172.16.255.250&name=mongo-old
docker.Create(): Creating Snapshot.
server.RunCommand(/tmp/mongo-old-snapshot-2015-02-21T20:01:53-05:00)
server.RunCommand(/tmp/mongo-old-snapshot-2015-02-21T20:01:53-05:00)
docker.Create(): Result: {Cmd:/tmp/mongo-old-snapshot-2015-02-21T20:01:53-05:00 Script: Stdout:Container mongo-old not found.
Stderr:Sat Feb 21 17:01:52 PST 2015 Snapshot mongo-old
ExitStatus:1 Server:0xc2080321c0 Err:<nil>}
docker.Create(): Result: {Cmd:/tmp/mongo-old-snapshot-2015-02-21T20:01:53-05:00 Script: Stdout:4f51d2497193
4f51d2497193
SnapshotFileName: cfc690cd-8fce-443d-afd1-b548a68ae371.default.mongo-old@1424566913.zfs.xz
SnapshotFileName: cfc690cd-8fce-443d-afd1-b548a68ae371.default.mongo-old@1424566913.zfs.xz
Stderr:Sat Feb 21 17:01:51 PST 2015 Snapshot mongo-old
ExitStatus:0 Server:0xc2080329c0 Err:<nil>}
docker.Create(): Examining Node Results: [{Cmd:/tmp/mongo-old-snapshot-2015-02-21T20:01:53-05:00 Script: Stdout:Container mongo-old not found.
Stderr:Sat Feb 21 17:01:52 PST 2015 Snapshot mongo-old
ExitStatus:1 Server:0xc2080321c0 Err:<nil>} {Cmd:/tmp/mongo-old-snapshot-2015-02-21T20:01:53-05:00 Script: Stdout:4f51d2497193
4f51d2497193
SnapshotFileName: cfc690cd-8fce-443d-afd1-b548a68ae371.default.mongo-old@1424566913.zfs.xz
SnapshotFileName: cfc690cd-8fce-443d-afd1-b548a68ae371.default.mongo-old@1424566913.zfs.xz
Stderr:Sat Feb 21 17:01:51 PST 2015 Snapshot mongo-old
ExitStatus:0 Server:0xc2080329c0 Err:<nil>}].
docker.Create(): Retrieving Snapshot '/snapshots/cfc690cd-8fce-443d-afd1-b548a68ae371.default.mongo-old@1424566913.zfs.xz'
server.GetFile(): sftp.Open(/snapshots/cfc690cd-8fce-443d-afd1-b548a68ae371.default.mongo-old@1424566913.zfs.xz)
server.GetFile(cfc690cd-8fce-443d-afd1-b548a68ae371.default.mongo-old@1424566913.zfs.xz): reading 16924 bytes
server.GetFile(): cfc690cd-8fce-443d-afd1-b548a68ae371.default.mongo-old@1424566913.zfs.xz: read 16924 bytes in 1.282909ms seconds
docker.Create(): Initializing Atmos and opening bucket.
docker.Create(): Uploading File to Atmos
docker.Create(): os.Remove(localFile): Removing buffered file.
response: {"Archive":"cfc690cd-8fce-443d-afd1-b548a68ae371.default.mongo-old@1424566913.zfs.xz","Volume":"","Filesystem":"","ArchiveFormat":"","Tag":"1424566913","ServiceId":"mongo-old","Host":""}
Processing GET /snapshots
docker.Snapshots(): bucket.List():
response: [{"Archive":"./tmp/node1~96de6dbb-cff2-4b21-b8ef-2f83f1637dbf.default.mongodb-volume-example@1422491079.xz","Volume":"./tmp/node1~96de6dbb-cff2-4b21-b8ef-2f83f1637dbf.default.mongodb-volume-example","Filesystem":"","ArchiveFormat":"zfs","Tag":"1422491079","ServiceId":"","Host":""},{"Archive":"./tmp/node1~96de6dbb-cff2-4b21-b8ef-2f83f1637dbf.default.mongodb-volume-example@1422491379.xz","Volume":"./tmp/node1~96de6dbb-cff2-4b21-b8ef-2f83f1637dbf.default.mongodb-volume-example","Filesystem":"","ArchiveFormat":"zfs","Tag":"1422491379","ServiceId":"","Host":""},{"Archive":"./tmp/node1~96de6dbb-cff2-4b21-b8ef-2f83f1637dbf.default.mongodb-volume-example@1422491635.xz","Volume":"./tmp/node1~96de6dbb-cff2-4b21-b8ef-2f83f1637dbf.default.mongodb-volume-example","Filesystem":"","ArchiveFormat":"zfs","Tag":"1422491635","ServiceId":"","Host":""},{"Archive":"0997a3b7-0ec4-48a5-92d8-ff41aae9caf4.default.mongo-2.6.6@1424566321.zfs.xz","Volume":"0997a3b7-0ec4-48a5-92d8-ff41aae9caf4.default.mongo-2.6.6","Filesystem":"zfs","ArchiveFormat":"xz","Tag":"1424566321","ServiceId":"","Host":""},{"Archive":"cfc690cd-8fce-443d-afd1-b548a68ae371.default.mongo-old@1424566913.zfs.xz","Volume":"cfc690cd-8fce-443d-afd1-b548a68ae371.default.mongo-old","Filesystem":"zfs","ArchiveFormat":"xz","Tag":"1424566913","ServiceId":"","Host":""}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment