)]}'
{"ironic_python_agent/hardware.py":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"1bb735aa750e749780e1189f1efa92a8250e1493","unresolved":false,"context_lines":[{"line_number":498,"context_line":"            if self._ata_erase(block_device):"},{"line_number":499,"context_line":"                return"},{"line_number":500,"context_line":"        except errors.BlockDeviceEraseError as e:"},{"line_number":501,"context_line":"            LOG.error(e.message)"},{"line_number":502,"context_line":""},{"line_number":503,"context_line":"        if self._shred_block_device(node, block_device):"},{"line_number":504,"context_line":"            return"}],"source_content_type":"text/x-python","patch_set":2,"id":"5aef4532_c1430241","line":501,"updated":"2016-03-09 10:27:29.000000000","message":"better:\n\n if skip_shred:\n   raise\n else:\n    LOG.warning(\"Failed to invoke ata_erase, using shred; error: %s\", e)\n\nWarning because it\u0027s not fatal. Checking skip_shred here, otherwise we\u0027ll lose the original exception.","commit_id":"c7ce9ac8beae16f74d3c88690428bd09c8686152"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"beabe50837bce2c638987c83485f605b0d02e55c","unresolved":false,"context_lines":[{"line_number":498,"context_line":"            if self._ata_erase(block_device):"},{"line_number":499,"context_line":"                return"},{"line_number":500,"context_line":"        except errors.BlockDeviceEraseError as e:"},{"line_number":501,"context_line":"            LOG.error(e.message)"},{"line_number":502,"context_line":""},{"line_number":503,"context_line":"        if self._shred_block_device(node, block_device):"},{"line_number":504,"context_line":"            return"}],"source_content_type":"text/x-python","patch_set":2,"id":"1af94dfe_fdc69598","line":501,"in_reply_to":"5aef4532_c1430241","updated":"2016-03-17 16:24:33.000000000","message":"Done","commit_id":"c7ce9ac8beae16f74d3c88690428bd09c8686152"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"4b2b0c8f55659378fded5074a194a71730c810b0","unresolved":false,"context_lines":[{"line_number":663,"context_line":"        if \u0027enabled\u0027 in security_lines:"},{"line_number":664,"context_line":"            # Attempt to unlock the drive in the event it has already been"},{"line_number":665,"context_line":"            # locked by a previous failed attempt."},{"line_number":666,"context_line":"            utils.execute(\u0027hdparm\u0027, \u0027--user-master\u0027, \u0027u\u0027, \u0027--security-unlock\u0027,"},{"line_number":667,"context_line":"                          \u0027NULL\u0027, block_device.name)"},{"line_number":668,"context_line":"            security_lines \u003d self._get_ata_security_lines(block_device)"},{"line_number":669,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"9a061dce_d1335612","line":666,"updated":"2016-04-07 23:36:32.000000000","message":"My one concern is if this command fails, it will likely return a non-zero value.\n\nAnd that would then raise an exception. Is that desired?","commit_id":"a2f1fae2c68948e05dcc6a9bb2c5638e0b5bd6e4"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"14d4815e9c2e3f240e3c0a9da73b4c7ca9be6beb","unresolved":false,"context_lines":[{"line_number":663,"context_line":"        if \u0027enabled\u0027 in security_lines:"},{"line_number":664,"context_line":"            # Attempt to unlock the drive in the event it has already been"},{"line_number":665,"context_line":"            # locked by a previous failed attempt."},{"line_number":666,"context_line":"            utils.execute(\u0027hdparm\u0027, \u0027--user-master\u0027, \u0027u\u0027, \u0027--security-unlock\u0027,"},{"line_number":667,"context_line":"                          \u0027NULL\u0027, block_device.name)"},{"line_number":668,"context_line":"            security_lines \u003d self._get_ata_security_lines(block_device)"},{"line_number":669,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"9a061dce_cc80c18e","line":666,"in_reply_to":"9a061dce_510f4636","updated":"2016-04-08 12:22:44.000000000","message":"Adding ProcessExecutionError to line 576 would do exactly that...","commit_id":"a2f1fae2c68948e05dcc6a9bb2c5638e0b5bd6e4"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"3f3a019dc3186103de9a27710e985e282a34ae43","unresolved":false,"context_lines":[{"line_number":663,"context_line":"        if \u0027enabled\u0027 in security_lines:"},{"line_number":664,"context_line":"            # Attempt to unlock the drive in the event it has already been"},{"line_number":665,"context_line":"            # locked by a previous failed attempt."},{"line_number":666,"context_line":"            utils.execute(\u0027hdparm\u0027, \u0027--user-master\u0027, \u0027u\u0027, \u0027--security-unlock\u0027,"},{"line_number":667,"context_line":"                          \u0027NULL\u0027, block_device.name)"},{"line_number":668,"context_line":"            security_lines \u003d self._get_ata_security_lines(block_device)"},{"line_number":669,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"9a061dce_510f4636","line":666,"in_reply_to":"9a061dce_d1335612","updated":"2016-04-07 23:38:40.000000000","message":"Probably we should catch the ProcessExecutionError and re-raise it as a BlockDeviceEraseError so the calling code gets a chance to fallback.","commit_id":"a2f1fae2c68948e05dcc6a9bb2c5638e0b5bd6e4"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"c043066786ac73c59d6b89711f4020a05b95d1e1","unresolved":false,"context_lines":[{"line_number":677,"context_line":"                (\u0027Block device {0} is frozen and cannot be erased\u0027"},{"line_number":678,"context_line":"                 ).format(block_device.name))"},{"line_number":679,"context_line":""},{"line_number":680,"context_line":"        utils.execute(\u0027hdparm\u0027, \u0027--user-master\u0027, \u0027u\u0027, \u0027--security-set-pass\u0027,"},{"line_number":681,"context_line":"                      \u0027NULL\u0027, block_device.name)"},{"line_number":682,"context_line":""},{"line_number":683,"context_line":"        # Use the \u0027enhanced\u0027 security erase option if it\u0027s supported."}],"source_content_type":"text/x-python","patch_set":5,"id":"9a061dce_0c565505","line":680,"updated":"2016-04-07 23:42:01.000000000","message":"Same deal here, really. For any of these utils.execute(), if you want to be able to retry them using the new code, we\u0027ll need to catch the ProcessExecutionError for all the utils.execute in this method .... which we probably should\u0027ve been doing all along anyway :)","commit_id":"a2f1fae2c68948e05dcc6a9bb2c5638e0b5bd6e4"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"14d4815e9c2e3f240e3c0a9da73b4c7ca9be6beb","unresolved":false,"context_lines":[{"line_number":677,"context_line":"                (\u0027Block device {0} is frozen and cannot be erased\u0027"},{"line_number":678,"context_line":"                 ).format(block_device.name))"},{"line_number":679,"context_line":""},{"line_number":680,"context_line":"        utils.execute(\u0027hdparm\u0027, \u0027--user-master\u0027, \u0027u\u0027, \u0027--security-set-pass\u0027,"},{"line_number":681,"context_line":"                      \u0027NULL\u0027, block_device.name)"},{"line_number":682,"context_line":""},{"line_number":683,"context_line":"        # Use the \u0027enhanced\u0027 security erase option if it\u0027s supported."}],"source_content_type":"text/x-python","patch_set":5,"id":"9a061dce_ac7d8db3","line":680,"in_reply_to":"9a061dce_0c565505","updated":"2016-04-08 12:22:44.000000000","message":"Are you thinking we need to do this on every utils.execute, or just let the higher level try/except block from the calling method capture process execution errors?","commit_id":"a2f1fae2c68948e05dcc6a9bb2c5638e0b5bd6e4"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"2501c3456a45ae73dee9338036b19f02156b056b","unresolved":false,"context_lines":[{"line_number":666,"context_line":"            try:"},{"line_number":667,"context_line":"                utils.execute(\u0027hdparm\u0027, \u0027--user-master\u0027, \u0027u\u0027,"},{"line_number":668,"context_line":"                              \u0027--security-unlock\u0027, \u0027NULL\u0027, block_device.name)"},{"line_number":669,"context_line":"                security_lines \u003d self._get_ata_security_lines(block_device)"},{"line_number":670,"context_line":"            except processutils.ProcessExecutionError as e:"},{"line_number":671,"context_line":"                raise errors.BlockDeviceEraseError(\u0027Security password set \u0027"},{"line_number":672,"context_line":"                                                   \u0027failed for device \u0027"}],"source_content_type":"text/x-python","patch_set":6,"id":"9a061dce_f5760f05","line":669,"updated":"2016-04-08 20:09:05.000000000","message":"I think this should be outside the try loop.","commit_id":"ed74a062c19a63a2c05a506c4ed8d3aa4ecfa09e"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"cc9b031a626e1426504e08c0700c074078f898c8","unresolved":false,"context_lines":[{"line_number":666,"context_line":"            try:"},{"line_number":667,"context_line":"                utils.execute(\u0027hdparm\u0027, \u0027--user-master\u0027, \u0027u\u0027,"},{"line_number":668,"context_line":"                              \u0027--security-unlock\u0027, \u0027NULL\u0027, block_device.name)"},{"line_number":669,"context_line":"                security_lines \u003d self._get_ata_security_lines(block_device)"},{"line_number":670,"context_line":"            except processutils.ProcessExecutionError as e:"},{"line_number":671,"context_line":"                raise errors.BlockDeviceEraseError(\u0027Security password set \u0027"},{"line_number":672,"context_line":"                                                   \u0027failed for device \u0027"}],"source_content_type":"text/x-python","patch_set":6,"id":"9a061dce_d0715979","line":669,"in_reply_to":"9a061dce_f5760f05","updated":"2016-04-08 20:19:55.000000000","message":"I like it here; it can raise the exact same error, and we shouldn\u0027t have non-BlockDeviceEraseErrors escaping this method.","commit_id":"ed74a062c19a63a2c05a506c4ed8d3aa4ecfa09e"},{"author":{"_account_id":14760,"name":"John L. Villalovos","email":"openstack.org@sodarock.com","username":"jlvillal"},"change_message_id":"2501c3456a45ae73dee9338036b19f02156b056b","unresolved":false,"context_lines":[{"line_number":668,"context_line":"                              \u0027--security-unlock\u0027, \u0027NULL\u0027, block_device.name)"},{"line_number":669,"context_line":"                security_lines \u003d self._get_ata_security_lines(block_device)"},{"line_number":670,"context_line":"            except processutils.ProcessExecutionError as e:"},{"line_number":671,"context_line":"                raise errors.BlockDeviceEraseError(\u0027Security password set \u0027"},{"line_number":672,"context_line":"                                                   \u0027failed for device \u0027"},{"line_number":673,"context_line":"                                                   \u0027%(name)s: %(err)s\u0027 %"},{"line_number":674,"context_line":"                                                   {\u0027name\u0027: block_device.name,"}],"source_content_type":"text/x-python","patch_set":6,"id":"9a061dce_55109ba8","line":671,"updated":"2016-04-08 20:09:05.000000000","message":"nit: Could start the string on the next line and indent four spaces and probably only take up 2-3 lines.\n\nIf this was re-spun.","commit_id":"ed74a062c19a63a2c05a506c4ed8d3aa4ecfa09e"}],"releasenotes/notes/enable-cleaning-fallback-57e8c9aa2f24e63d.yaml":[{"author":{"_account_id":10239,"name":"Dmitry Tantsur","email":"dtantsur@protonmail.com","username":"dtantsur"},"change_message_id":"1bb735aa750e749780e1189f1efa92a8250e1493","unresolved":false,"context_lines":[{"line_number":6,"context_line":"    executed by aborting cleaning in order to prevent"},{"line_number":7,"context_line":"    un-necessary physical wear-and-tear by allowing"},{"line_number":8,"context_line":"    human interaction to become involved regarding"},{"line_number":9,"context_line":"    drive security."},{"line_number":10,"context_line":"fixes:"},{"line_number":11,"context_line":"  - Operators that were previously expecting IPA to halt"},{"line_number":12,"context_line":"    cleaning steps upon failure to access the drive security"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"5aef4532_a1407635","line":9,"updated":"2016-03-09 10:27:29.000000000","message":"I\u0027m not sure I get it, driver_internal_info is not writeable by operators...","commit_id":"c7ce9ac8beae16f74d3c88690428bd09c8686152"},{"author":{"_account_id":11655,"name":"Julia Kreger","email":"juliaashleykreger@gmail.com","username":"jkreger","status":"Flying to the moon with a Jetpack!"},"change_message_id":"beabe50837bce2c638987c83485f605b0d02e55c","unresolved":false,"context_lines":[{"line_number":6,"context_line":"    executed by aborting cleaning in order to prevent"},{"line_number":7,"context_line":"    un-necessary physical wear-and-tear by allowing"},{"line_number":8,"context_line":"    human interaction to become involved regarding"},{"line_number":9,"context_line":"    drive security."},{"line_number":10,"context_line":"fixes:"},{"line_number":11,"context_line":"  - Operators that were previously expecting IPA to halt"},{"line_number":12,"context_line":"    cleaning steps upon failure to access the drive security"}],"source_content_type":"text/x-yaml","patch_set":2,"id":"1af94dfe_d1cd8286","line":9,"in_reply_to":"5aef4532_a1407635","updated":"2016-03-17 16:24:33.000000000","message":"Doh!  I forgot that when I wrote this and was just mirroring the shred iterations tuning.  I guess  we could do the same with conductor side config.  Thoughts?","commit_id":"c7ce9ac8beae16f74d3c88690428bd09c8686152"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"87d2be0b1ced62ed643bcc3f4bb4be747baedf0b","unresolved":false,"context_lines":[{"line_number":17,"context_line":"    interface should now expect IPA to fall back to shredding"},{"line_number":18,"context_line":"    by default."},{"line_number":19,"context_line":"    If this is undesirable, the ``agent_abort_if_shred_reached``"},{"line_number":20,"context_line":"    driver_internal_info setting should be set to ``True``, which"},{"line_number":21,"context_line":"    will cause the agent to abort cleaning in the event that the"},{"line_number":22,"context_line":"    shreding step is reached."}],"source_content_type":"text/x-yaml","patch_set":4,"id":"ba0121b8_210f3f38","line":20,"updated":"2016-03-31 00:19:43.000000000","message":"We need to default this to always skip shredding. Here\u0027s why:\n\nIPA currently, as part of the ATA erase, locks the drive, then attempts to secure erase and unlock it. This means IPA itself failing mid-clean-step could trigger the state of failing back to shred, and the disks could be being shredded to death without any ill action on the part of a tenant or an operator.\n\nIMO defaults should be fail-safe, and defaulting it this way is setting up folks for failure.","commit_id":"e2461b8fe2e183e4021f6655b68ca61e312701a9"},{"author":{"_account_id":10342,"name":"Jay Faulkner","display_name":"JayF","email":"jay@jvf.cc","username":"JayF","status":"youtube.com/@oss-gr / podcast.gr-oss.io"},"change_message_id":"77c5c620159bc24626b9fa63a40e277da949f416","unresolved":false,"context_lines":[{"line_number":17,"context_line":"    interface should now expect IPA to fall back to shredding"},{"line_number":18,"context_line":"    by default."},{"line_number":19,"context_line":"    If this is undesirable, the ``agent_abort_if_shred_reached``"},{"line_number":20,"context_line":"    driver_internal_info setting should be set to ``True``, which"},{"line_number":21,"context_line":"    will cause the agent to abort cleaning in the event that the"},{"line_number":22,"context_line":"    shreding step is reached."}],"source_content_type":"text/x-yaml","patch_set":4,"id":"ba0121b8_243d8dc4","line":20,"in_reply_to":"ba0121b8_210f3f38","updated":"2016-03-31 00:22:55.000000000","message":"Actually, see the fixup code to handle the IPA failure case. Still, same thing could happen with a tenant locking a drive and putting it into the failure spiral... but given your fixup code I feel it less strongly. Lets chat about this at a meeting/in IRC if you disagree still :)","commit_id":"e2461b8fe2e183e4021f6655b68ca61e312701a9"}]}
