Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ISSUE-1203]: wipe drives safely #1204

Merged
merged 3 commits into from
Jul 11, 2024
Merged

[ISSUE-1203]: wipe drives safely #1204

merged 3 commits into from
Jul 11, 2024

Conversation

korzepadawid
Copy link
Collaborator

Purpose

Resolves #1203

Wipe drives safely in e2e.

PR checklist

  • Add link to the issue
  • Choose Project
  • Choose PR label
  • New unit tests added
  • Modified code has meaningful comments
  • All TODOs are linked with the issues
  • All comments are resolved

korzepadawid and others added 2 commits July 10, 2024 14:55
Co-authored-by: korzepadawwid <dawid.korzepa@dell.com>
Co-authored-by: mdutka-dell <malgorzata.dutka@dell.com>
Signed-off-by: Dawid Korzepa <dawid.korzepa@dell.com>
Signed-off-by: Dawid Korzepa <dawid.korzepa@dell.com>
@@ -46,6 +46,6 @@ def exec(self, command: str) -> Tuple[str, List[Any]]:
ssh_client.close()

if len(error) > 0:
logging.error(f"SSH command {command} failed: {error}")
logging.warning(f"SSH command {command} failed: {error}")
Copy link
Collaborator Author

@korzepadawid korzepadawid Jul 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI: reduced the logging level, because wiping only a specified amount of blocks on the drive is treated as an interruption of the dd command, hence it returns a status code different than 0

Co-authored-by: korzepadawid <dawid.korzepa@dell.com>
Co-authored-by: mdutka-dell <malgorzata.dutka@dell.com>
Signed-off-by: Dawid Korzepa <dawid.korzepa@dell.com>
@mdutka-dell mdutka-dell merged commit e9fce99 into master Jul 11, 2024
4 checks passed
@mdutka-dell mdutka-dell deleted the issue-1203 branch July 11, 2024 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wipe drives after e2e scenario
4 participants