)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":15197,"name":"Pierre Riteau","email":"pierre@stackhpc.com","username":"priteau","status":"StackHPC"},"change_message_id":"d4a41ed09d448dc4595b00a7bcf706598d5a65f5","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Document a backup procedure for the seed"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Adds VM snapshot and database backup approaches."},{"line_number":10,"context_line":""},{"line_number":11,"context_line":"Change-Id: I97c4bdb4e5d7d28c06a03ceb1cc290db9b1dccb5"},{"line_number":12,"context_line":"Story: 2004359"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":5,"id":"bfdaf3ff_a2bb60e3","line":9,"updated":"2019-01-11 12:28:21.000000000","message":"This patch only describes the database backup approach in detail.","commit_id":"102bfaf75a8fa76f76e18e7d41e5ba01f2eca85f"}],"doc/source/administration/seed.rst":[{"author":{"_account_id":16984,"name":"Nick Jones","email":"nick@dischord.org","username":"yankcrime"},"change_message_id":"47c2fca6924c7113094244ca047e06df2b3bcbec","unresolved":false,"context_lines":[{"line_number":101,"context_line":"    docker exec -it bifrost_deploy \\"},{"line_number":102,"context_line":"    mysqldump --all-databases --single-transaction --routines --triggers \u003e seed-backup.sql"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"Restoring a database backed up using this approach may be done as follows::"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"    docker exec -i bifrost_deploy \\"},{"line_number":107,"context_line":"    mysql \u003c seed-backup.sql"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_d9d6da25","line":104,"updated":"2018-11-27 15:32:02.000000000","message":"Probably worth adding some commentary around this to suggest that all services should be stopped prior to the restore and then started again once it\u0027s complete.","commit_id":"1ac9de8d26359a936674de7a499c30c38a1ae8aa"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"723626e49bccb6d4852d979e4c219414f3963815","unresolved":false,"context_lines":[{"line_number":101,"context_line":"    docker exec -it bifrost_deploy \\"},{"line_number":102,"context_line":"    mysqldump --all-databases --single-transaction --routines --triggers \u003e seed-backup.sql"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"Restoring a database backed up using this approach may be done as follows::"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"    docker exec -i bifrost_deploy \\"},{"line_number":107,"context_line":"    mysql \u003c seed-backup.sql"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_b4ac43a8","line":104,"in_reply_to":"3f79a3b5_79fea639","updated":"2018-11-27 16:08:56.000000000","message":"That\u0027s true. Guess we should include that in the kolla-ansible docs too?","commit_id":"1ac9de8d26359a936674de7a499c30c38a1ae8aa"},{"author":{"_account_id":17669,"name":"Doug Szumski","email":"doug@stackhpc.com","username":"DougSzumski"},"change_message_id":"d0872e0ef65f45e4a7b6361b2be45bbef2338ff3","unresolved":false,"context_lines":[{"line_number":101,"context_line":"    docker exec -it bifrost_deploy \\"},{"line_number":102,"context_line":"    mysqldump --all-databases --single-transaction --routines --triggers \u003e seed-backup.sql"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"Restoring a database backed up using this approach may be done as follows::"},{"line_number":105,"context_line":""},{"line_number":106,"context_line":"    docker exec -i bifrost_deploy \\"},{"line_number":107,"context_line":"    mysql \u003c seed-backup.sql"}],"source_content_type":"text/x-rst","patch_set":1,"id":"3f79a3b5_79fea639","line":104,"in_reply_to":"3f79a3b5_d9d6da25","updated":"2018-11-27 15:45:13.000000000","message":"+1","commit_id":"1ac9de8d26359a936674de7a499c30c38a1ae8aa"},{"author":{"_account_id":17669,"name":"Doug Szumski","email":"doug@stackhpc.com","username":"DougSzumski"},"change_message_id":"6886b542cb2b5345e09cd7158183aa2bb935d42c","unresolved":false,"context_lines":[{"line_number":115,"context_line":"Finally, start the Ironic and Ironic Inspector services again::"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"    docker exec -it bifrost_deploy \\"},{"line_number":118,"context_line":"    systemctl stop ironic-api ironic-conductor ironic-inspector"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_503618e1","line":118,"range":{"start_line":118,"start_character":14,"end_line":118,"end_character":18},"updated":"2018-11-27 17:54:22.000000000","message":"s/stop/start","commit_id":"dcd0d1801574d1e597acc54ed85df042d58fad62"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"49b900d6b5a97ab417090065d46e7b40780cd406","unresolved":false,"context_lines":[{"line_number":115,"context_line":"Finally, start the Ironic and Ironic Inspector services again::"},{"line_number":116,"context_line":""},{"line_number":117,"context_line":"    docker exec -it bifrost_deploy \\"},{"line_number":118,"context_line":"    systemctl stop ironic-api ironic-conductor ironic-inspector"}],"source_content_type":"text/x-rst","patch_set":2,"id":"3f79a3b5_73e9de15","line":118,"range":{"start_line":118,"start_character":14,"end_line":118,"end_character":18},"in_reply_to":"3f79a3b5_503618e1","updated":"2018-12-07 18:34:17.000000000","message":"doh","commit_id":"dcd0d1801574d1e597acc54ed85df042d58fad62"},{"author":{"_account_id":17669,"name":"Doug Szumski","email":"doug@stackhpc.com","username":"DougSzumski"},"change_message_id":"1aa596bc7eb22dc7a7b11f9fc45e462759cd9920","unresolved":false,"context_lines":[{"line_number":80,"context_line":"If running the seed services in a VM, the simplest way to back up the seed is"},{"line_number":81,"context_line":"via a VM snapshot. For example, on the seed hypervisor::"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"    virsh snapshot-create-as --domain \u003cseed VM name\u003e --name \u003csnapshot name\u003e --description \u003cdescription\u003e --live"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"The snapshot image should be stored remotely to avoid data loss if storage"},{"line_number":86,"context_line":"fails on the seed."}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_fd221453","line":83,"updated":"2018-12-04 16:57:51.000000000","message":"I seem to remember having a lot of issues with libvirt doing this after the *first* snapshot, but hopefully those have gone away now.","commit_id":"bbd9ccba6af7fd9b1b4fa5bdcecdb66d58f81d3e"},{"author":{"_account_id":17669,"name":"Doug Szumski","email":"doug@stackhpc.com","username":"DougSzumski"},"change_message_id":"953caf2e5181f6f1e857bab490286cfe0289fbe2","unresolved":false,"context_lines":[{"line_number":80,"context_line":"If running the seed services in a VM, the simplest way to back up the seed is"},{"line_number":81,"context_line":"via a VM snapshot. For example, on the seed hypervisor::"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"    virsh snapshot-create-as --domain \u003cseed VM name\u003e --name \u003csnapshot name\u003e --description \u003cdescription\u003e --live"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"The snapshot image should be stored remotely to avoid data loss if storage"},{"line_number":86,"context_line":"fails on the seed."}],"source_content_type":"text/x-rst","patch_set":4,"id":"dfd5e7cf_851e490a","line":83,"in_reply_to":"3f79a3b5_7a9d58b7","updated":"2019-01-08 15:25:43.000000000","message":"The same behaviour is reported on another Centos deployment:\n\n`\n[user@ucd backups]# virsh snapshot-create-as --domain ucd01 --name \"snap\" --description \"Seed VM\" --live\nerror: Operation not supported: live snapshot creation is supported only with external checkpoints`\n\nShould we suggest not using --live to backup the memory?","commit_id":"bbd9ccba6af7fd9b1b4fa5bdcecdb66d58f81d3e"},{"author":{"_account_id":15197,"name":"Pierre Riteau","email":"pierre@stackhpc.com","username":"priteau","status":"StackHPC"},"change_message_id":"669db054bb86411e803f5809e8f2e16b12faf0d8","unresolved":false,"context_lines":[{"line_number":80,"context_line":"If running the seed services in a VM, the simplest way to back up the seed is"},{"line_number":81,"context_line":"via a VM snapshot. For example, on the seed hypervisor::"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"    virsh snapshot-create-as --domain \u003cseed VM name\u003e --name \u003csnapshot name\u003e --description \u003cdescription\u003e --live"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"The snapshot image should be stored remotely to avoid data loss if storage"},{"line_number":86,"context_line":"fails on the seed."}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_7a9d58b7","line":83,"in_reply_to":"3f79a3b5_fd221453","updated":"2018-12-20 18:31:46.000000000","message":"Indeed this doesn\u0027t work out of the box:\n\n    error: Operation not supported: live snapshot creation is supported only with external checkpoints\n\nIt works without the `--live` parameter, although I haven\u0027t tried a restore.","commit_id":"bbd9ccba6af7fd9b1b4fa5bdcecdb66d58f81d3e"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"95daf9e2c4b1418e51e7d7fa36f033a499125c9a","unresolved":false,"context_lines":[{"line_number":80,"context_line":"If running the seed services in a VM, the simplest way to back up the seed is"},{"line_number":81,"context_line":"via a VM snapshot. For example, on the seed hypervisor::"},{"line_number":82,"context_line":""},{"line_number":83,"context_line":"    virsh snapshot-create-as --domain \u003cseed VM name\u003e --name \u003csnapshot name\u003e --description \u003cdescription\u003e --live"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"The snapshot image should be stored remotely to avoid data loss if storage"},{"line_number":86,"context_line":"fails on the seed."}],"source_content_type":"text/x-rst","patch_set":4,"id":"dfd5e7cf_fd30f7ea","line":83,"in_reply_to":"dfd5e7cf_851e490a","updated":"2019-01-09 12:34:27.000000000","message":"I did have a play around with backing up the seed VM on dev-director, and was unable to do it.","commit_id":"bbd9ccba6af7fd9b1b4fa5bdcecdb66d58f81d3e"},{"author":{"_account_id":17669,"name":"Doug Szumski","email":"doug@stackhpc.com","username":"DougSzumski"},"change_message_id":"172d665696114361ea160af1d35ff3856f9f0e51","unresolved":false,"context_lines":[{"line_number":82,"context_line":""},{"line_number":83,"context_line":"    virsh snapshot-create-as --domain \u003cseed VM name\u003e --name \u003csnapshot name\u003e --description \u003cdescription\u003e --live"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"The snapshot image should be stored remotely to avoid data loss if storage"},{"line_number":86,"context_line":"fails on the seed."},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"The snapshot may be restored via::"},{"line_number":89,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"dfd5e7cf_bb212d50","line":86,"range":{"start_line":85,"start_character":0,"end_line":86,"end_character":18},"updated":"2019-01-08 16:58:09.000000000","message":"Perhaps we could expand on this. If you take a snapshot as above, it gets saved as part of the qcow2 images on a Centos 7.5 deployment. It isn\u0027t clear to me if you can just copy that image to a remote machine as it\u0027s still in use by the VM and presumably changing. Would it become corrupt, or could it pick up from the last snapshot?","commit_id":"bbd9ccba6af7fd9b1b4fa5bdcecdb66d58f81d3e"},{"author":{"_account_id":15197,"name":"Pierre Riteau","email":"pierre@stackhpc.com","username":"priteau","status":"StackHPC"},"change_message_id":"669db054bb86411e803f5809e8f2e16b12faf0d8","unresolved":false,"context_lines":[{"line_number":83,"context_line":"    virsh snapshot-create-as --domain \u003cseed VM name\u003e --name \u003csnapshot name\u003e --description \u003cdescription\u003e --live"},{"line_number":84,"context_line":""},{"line_number":85,"context_line":"The snapshot image should be stored remotely to avoid data loss if storage"},{"line_number":86,"context_line":"fails on the seed."},{"line_number":87,"context_line":""},{"line_number":88,"context_line":"The snapshot may be restored via::"},{"line_number":89,"context_line":""}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_ba80d049","line":86,"range":{"start_line":86,"start_character":13,"end_line":86,"end_character":17},"updated":"2018-12-20 18:31:46.000000000","message":"seed hypervisor","commit_id":"bbd9ccba6af7fd9b1b4fa5bdcecdb66d58f81d3e"},{"author":{"_account_id":17669,"name":"Doug Szumski","email":"doug@stackhpc.com","username":"DougSzumski"},"change_message_id":"1aa596bc7eb22dc7a7b11f9fc45e462759cd9920","unresolved":false,"context_lines":[{"line_number":101,"context_line":"    docker exec -it bifrost_deploy \\"},{"line_number":102,"context_line":"    mysqldump --all-databases --single-transaction --routines --triggers \u003e seed-backup.sql"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"Prior to restoring the database, the Ironic and Ironic Inspector services"},{"line_number":105,"context_line":"should be stopped::"},{"line_number":106,"context_line":""},{"line_number":107,"context_line":"    docker exec -it bifrost_deploy \\"},{"line_number":108,"context_line":"    systemctl stop ironic-api ironic-conductor ironic-inspector"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_1d827003","line":105,"range":{"start_line":104,"start_character":0,"end_line":105,"end_character":19},"updated":"2018-12-04 16:57:51.000000000","message":"For maximum safety should you really do this before backing it up as well?","commit_id":"bbd9ccba6af7fd9b1b4fa5bdcecdb66d58f81d3e"},{"author":{"_account_id":14826,"name":"Mark Goddard","email":"markgoddard86@gmail.com","username":"mgoddard"},"change_message_id":"49b900d6b5a97ab417090065d46e7b40780cd406","unresolved":false,"context_lines":[{"line_number":101,"context_line":"    docker exec -it bifrost_deploy \\"},{"line_number":102,"context_line":"    mysqldump --all-databases --single-transaction --routines --triggers \u003e seed-backup.sql"},{"line_number":103,"context_line":""},{"line_number":104,"context_line":"Prior to restoring the database, the Ironic and Ironic Inspector services"},{"line_number":105,"context_line":"should be stopped::"},{"line_number":106,"context_line":""},{"line_number":107,"context_line":"    docker exec -it bifrost_deploy \\"},{"line_number":108,"context_line":"    systemctl stop ironic-api ironic-conductor ironic-inspector"}],"source_content_type":"text/x-rst","patch_set":4,"id":"3f79a3b5_f5e179fb","line":105,"range":{"start_line":104,"start_character":0,"end_line":105,"end_character":19},"in_reply_to":"3f79a3b5_1d827003","updated":"2018-12-07 18:34:17.000000000","message":"The --single-transaction argument is *supposed* to be safe-ish online. I guess we could mention it as an optional step.","commit_id":"bbd9ccba6af7fd9b1b4fa5bdcecdb66d58f81d3e"}]}
