)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":5314,"name":"Brian Rosmaita","email":"rosmaita.fossdev@gmail.com","username":"brian-rosmaita"},"change_message_id":"bd61cff9900d7e8adda040b9dfa4e1128969ab47","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Pending-delete rollback ability"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Glance support soft delete images with delayed_delete feature. If"},{"line_number":10,"context_line":"this feature is open, when users delete a image, the image will be"},{"line_number":11,"context_line":"in pending_delete status first. And then the image will be deleted"},{"line_number":12,"context_line":"by glance-scrubber process."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"But obviously, there is no way to revert the pending-delete images."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"ff6b8bd7_c3fea304","line":11,"range":{"start_line":10,"start_character":49,"end_line":11,"end_character":30},"updated":"2018-03-06 13:44:52.000000000","message":"Change to: the image will first be in a special \u0027pending_delete\u0027 status that is not displayed in the API response.","commit_id":"008c56458f48f9f0d691387a8cf2c7227708b5bc"},{"author":{"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"},"change_message_id":"9829a72d30e5f85d6b1f318b3256f54cf33a6e72","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Pending-delete rollback ability"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Glance support soft delete images with delayed_delete feature. If"},{"line_number":10,"context_line":"this feature is open, when users delete a image, the image will be"},{"line_number":11,"context_line":"in pending_delete status first. And then the image will be deleted"},{"line_number":12,"context_line":"by glance-scrubber process."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"But obviously, there is no way to revert the pending-delete images."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"df7087c5_7fe187d0","line":11,"range":{"start_line":10,"start_character":49,"end_line":11,"end_character":30},"in_reply_to":"ff6b8bd7_c3fea304","updated":"2018-03-07 01:29:57.000000000","message":"Done","commit_id":"008c56458f48f9f0d691387a8cf2c7227708b5bc"},{"author":{"_account_id":5314,"name":"Brian Rosmaita","email":"rosmaita.fossdev@gmail.com","username":"brian-rosmaita"},"change_message_id":"bd61cff9900d7e8adda040b9dfa4e1128969ab47","unresolved":false,"context_lines":[{"line_number":11,"context_line":"in pending_delete status first. And then the image will be deleted"},{"line_number":12,"context_line":"by glance-scrubber process."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"But obviously, there is no way to revert the pending-delete images."},{"line_number":15,"context_line":"Once the admin operators want to revert the delete action, Glance"},{"line_number":16,"context_line":"should give them this kind of ability."},{"line_number":17,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"ff6b8bd7_23199f78","line":14,"range":{"start_line":14,"start_character":4,"end_line":14,"end_character":13},"updated":"2018-03-06 13:44:52.000000000","message":"suggestion: s/obviously/currently/","commit_id":"008c56458f48f9f0d691387a8cf2c7227708b5bc"},{"author":{"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"},"change_message_id":"9829a72d30e5f85d6b1f318b3256f54cf33a6e72","unresolved":false,"context_lines":[{"line_number":11,"context_line":"in pending_delete status first. And then the image will be deleted"},{"line_number":12,"context_line":"by glance-scrubber process."},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"But obviously, there is no way to revert the pending-delete images."},{"line_number":15,"context_line":"Once the admin operators want to revert the delete action, Glance"},{"line_number":16,"context_line":"should give them this kind of ability."},{"line_number":17,"context_line":""}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"df7087c5_1fe64bea","line":14,"range":{"start_line":14,"start_character":4,"end_line":14,"end_character":13},"in_reply_to":"ff6b8bd7_23199f78","updated":"2018-03-07 01:29:57.000000000","message":"Done","commit_id":"008c56458f48f9f0d691387a8cf2c7227708b5bc"},{"author":{"_account_id":5314,"name":"Brian Rosmaita","email":"rosmaita.fossdev@gmail.com","username":"brian-rosmaita"},"change_message_id":"bd61cff9900d7e8adda040b9dfa4e1128969ab47","unresolved":false,"context_lines":[{"line_number":13,"context_line":""},{"line_number":14,"context_line":"But obviously, there is no way to revert the pending-delete images."},{"line_number":15,"context_line":"Once the admin operators want to revert the delete action, Glance"},{"line_number":16,"context_line":"should give them this kind of ability."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"This patch will enhance the glance-scrubber tool to support restoring"},{"line_number":19,"context_line":"the image from pending-delete to active."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"ff6b8bd7_23a8bf1d","line":16,"range":{"start_line":16,"start_character":37,"end_line":16,"end_character":38},"updated":"2018-03-06 13:44:52.000000000","message":"please add: although, whether the rollback of a particular image is possible or not depends upon Glance configuration option settings and quick operator action.","commit_id":"008c56458f48f9f0d691387a8cf2c7227708b5bc"},{"author":{"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"},"change_message_id":"9829a72d30e5f85d6b1f318b3256f54cf33a6e72","unresolved":false,"context_lines":[{"line_number":13,"context_line":""},{"line_number":14,"context_line":"But obviously, there is no way to revert the pending-delete images."},{"line_number":15,"context_line":"Once the admin operators want to revert the delete action, Glance"},{"line_number":16,"context_line":"should give them this kind of ability."},{"line_number":17,"context_line":""},{"line_number":18,"context_line":"This patch will enhance the glance-scrubber tool to support restoring"},{"line_number":19,"context_line":"the image from pending-delete to active."}],"source_content_type":"text/x-gerrit-commit-message","patch_set":6,"id":"df7087c5_3feb0fb1","line":16,"range":{"start_line":16,"start_character":37,"end_line":16,"end_character":38},"in_reply_to":"ff6b8bd7_23a8bf1d","updated":"2018-03-07 01:29:57.000000000","message":"Done","commit_id":"008c56458f48f9f0d691387a8cf2c7227708b5bc"}],"specs/rocky/approved/glance/Support-revert-pending-delete.rst":[{"author":{"_account_id":5314,"name":"Brian Rosmaita","email":"rosmaita.fossdev@gmail.com","username":"brian-rosmaita"},"change_message_id":"bd61cff9900d7e8adda040b9dfa4e1128969ab47","unresolved":false,"context_lines":[{"line_number":11,"context_line":"https://blueprints.launchpad.net/glance/+spec/pending-delete-rollback"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Glance support soft delete images. If this feature is enabled, when users"},{"line_number":14,"context_line":"delete an image, the image and its location will be in `pending_delete` status"},{"line_number":15,"context_line":"first. Then the image will be deleted by ``glance-scrubber`` process in period."},{"line_number":16,"context_line":"But now, there is no way to revert/rollback the `pending_delete` images to"},{"line_number":17,"context_line":"`active`."},{"line_number":18,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"ff6b8bd7_23475f4e","line":15,"range":{"start_line":14,"start_character":17,"end_line":15,"end_character":6},"updated":"2018-03-06 13:44:52.000000000","message":"Change to: the image and its locations will first be in a special \u0027pending_delete\u0027 status that is not displayed in the API response.","commit_id":"008c56458f48f9f0d691387a8cf2c7227708b5bc"},{"author":{"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"},"change_message_id":"9829a72d30e5f85d6b1f318b3256f54cf33a6e72","unresolved":false,"context_lines":[{"line_number":11,"context_line":"https://blueprints.launchpad.net/glance/+spec/pending-delete-rollback"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Glance support soft delete images. If this feature is enabled, when users"},{"line_number":14,"context_line":"delete an image, the image and its location will be in `pending_delete` status"},{"line_number":15,"context_line":"first. Then the image will be deleted by ``glance-scrubber`` process in period."},{"line_number":16,"context_line":"But now, there is no way to revert/rollback the `pending_delete` images to"},{"line_number":17,"context_line":"`active`."},{"line_number":18,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"df7087c5_bfd63ff1","line":15,"range":{"start_line":14,"start_character":17,"end_line":15,"end_character":6},"in_reply_to":"ff6b8bd7_23475f4e","updated":"2018-03-07 01:29:57.000000000","message":"Done","commit_id":"008c56458f48f9f0d691387a8cf2c7227708b5bc"},{"author":{"_account_id":5314,"name":"Brian Rosmaita","email":"rosmaita.fossdev@gmail.com","username":"brian-rosmaita"},"change_message_id":"bd61cff9900d7e8adda040b9dfa4e1128969ab47","unresolved":false,"context_lines":[{"line_number":33,"context_line":""},{"line_number":34,"context_line":"This proposal aims to recover an image which is in `pending_delete` state so"},{"line_number":35,"context_line":"as to provide the revert capability for the purposes of allowing emergency"},{"line_number":36,"context_line":"operational action to recover an accidental delete."},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"Since the `pending_delete image` will be only deleted by ``glance-scrubber``"},{"line_number":39,"context_line":"and it\u0027s an admin action, there is no need to expose a new API. A better way is"}],"source_content_type":"text/x-rst","patch_set":6,"id":"ff6b8bd7_be4ce876","line":36,"updated":"2018-03-06 13:44:52.000000000","message":"Add:  It is important to keep in mind, however, that whether the recovery of a particular image will be possible or not depends upon Glance configuration option settings and quick operator action.","commit_id":"008c56458f48f9f0d691387a8cf2c7227708b5bc"},{"author":{"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"},"change_message_id":"9829a72d30e5f85d6b1f318b3256f54cf33a6e72","unresolved":false,"context_lines":[{"line_number":33,"context_line":""},{"line_number":34,"context_line":"This proposal aims to recover an image which is in `pending_delete` state so"},{"line_number":35,"context_line":"as to provide the revert capability for the purposes of allowing emergency"},{"line_number":36,"context_line":"operational action to recover an accidental delete."},{"line_number":37,"context_line":""},{"line_number":38,"context_line":"Since the `pending_delete image` will be only deleted by ``glance-scrubber``"},{"line_number":39,"context_line":"and it\u0027s an admin action, there is no need to expose a new API. A better way is"}],"source_content_type":"text/x-rst","patch_set":6,"id":"df7087c5_7f0ae78a","line":36,"in_reply_to":"ff6b8bd7_be4ce876","updated":"2018-03-07 01:29:57.000000000","message":"Done","commit_id":"008c56458f48f9f0d691387a8cf2c7227708b5bc"},{"author":{"_account_id":5314,"name":"Brian Rosmaita","email":"rosmaita.fossdev@gmail.com","username":"brian-rosmaita"},"change_message_id":"bd61cff9900d7e8adda040b9dfa4e1128969ab47","unresolved":false,"context_lines":[{"line_number":50,"context_line":"Please be sure that the ``glance-scrubber`` daemon is killed before restore"},{"line_number":51,"context_line":"the `pending_delete` image to avoid image data inconsistency. After restoring"},{"line_number":52,"context_line":"the image, ``glance-scrubber`` daemon can be restarted."},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"Alternatives"},{"line_number":55,"context_line":"------------"},{"line_number":56,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"ff6b8bd7_23f0bf90","line":53,"updated":"2018-03-06 13:44:52.000000000","message":"I think we need to add a section here to explain the limitations of this feature so that operators don\u0027t get the wrong idea, because there will be a bit of luck involved in restoring an image.  Something like this:\n\nLimitations\n-----------\n\nThis is intended as an emergency operation for the use case where an operator inadvertently deletes an important image and immediately realizes the mistake and takes action within the ``scrub_time`` seconds set in the glance-api.conf file.  The \u0027pending-delete\u0027 status is a purely internal Glance status and the image still shows as being in \u0027deleted\u0027 status in API responses.  Thus there is no way to tell via the API whether an image may be restorable or not.\n\nFurther, when the image is restored, some of its metadata is irrecoverable.  Any additional properties, tags, or members will not be restored.  In other words, this is purely a possible data recovery operation, not a full image restore.","commit_id":"008c56458f48f9f0d691387a8cf2c7227708b5bc"},{"author":{"_account_id":15054,"name":"wangxiyuan","email":"wangxiyuan1007@gmail.com","username":"wangxiyuan"},"change_message_id":"9829a72d30e5f85d6b1f318b3256f54cf33a6e72","unresolved":false,"context_lines":[{"line_number":50,"context_line":"Please be sure that the ``glance-scrubber`` daemon is killed before restore"},{"line_number":51,"context_line":"the `pending_delete` image to avoid image data inconsistency. After restoring"},{"line_number":52,"context_line":"the image, ``glance-scrubber`` daemon can be restarted."},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"Alternatives"},{"line_number":55,"context_line":"------------"},{"line_number":56,"context_line":""}],"source_content_type":"text/x-rst","patch_set":6,"id":"df7087c5_3f046f7b","line":53,"in_reply_to":"ff6b8bd7_23f0bf90","updated":"2018-03-07 01:29:57.000000000","message":"Done","commit_id":"008c56458f48f9f0d691387a8cf2c7227708b5bc"}]}
