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

Permit ESP on Raid if PowerEdge #1745

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

dbungert
Copy link
Collaborator

@dbungert dbungert commented Jul 26, 2023

Per discussion in LP: #1961079, permit bootable raid if the system appears to be a "PowerEdge".

Tested by way of CI, added unit tests, and a quick VM smoke test.

Copy link
Collaborator

@mwhudson mwhudson left a comment

Choose a reason for hiding this comment

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

This looks fine and is a nice refactoring anyway, thanks! It would be nice to get confirmation that it works before merging I guess.

:param key: dmidecode(8) KEYWORD
:returns: stripped string output, or empty string on failure
"""
sp = run_command(["dmidecode", "-s", key], check=False, text=True)
Copy link
Member

Choose a reason for hiding this comment

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

should we add dmidecode to the apt dependencies list ?

If the command is not found, this will raise a FileNotFoundError.

@dbungert dbungert force-pushed the lp-1961079-esp-on-mdraid-poweredge branch from fe66e0a to 67f6f67 Compare September 7, 2023 00:02
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.

3 participants