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

NAS-125487 / 24.10 / Use stderr from zectl failures for CallError #12614

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

anodos325
Copy link
Contributor

The zectl command on failure conditions will print to stderr rather than stdout. This means we were losing information about errors on bootenv operations.

The zectl command on failure conditions will print to stderr rather
than stdout. This means we were losing information about errors on
bootenv operations.
@bugclerk bugclerk changed the title Use stderr from zectl failures for CallError NAS-125487 / 24.04 / Use stderr from zectl failures for CallError Dec 1, 2023
@bugclerk
Copy link
Contributor

bugclerk commented Dec 1, 2023

@anodos325 anodos325 requested review from a team and sonicaj December 1, 2023 11:47
@@ -165,7 +165,7 @@ def activate(self, oid):
try:
subprocess.run([self.BE_TOOL, 'activate', oid], capture_output=True, text=True, check=True)
Copy link
Contributor

Choose a reason for hiding this comment

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

We should do stdout=subprocess.PIPE, stderr=subprocess.STDOUT and check the return code because IIRC, zectl can dump errors to stdout or stderr.

@yocalebo yocalebo changed the title NAS-125487 / 24.04 / Use stderr from zectl failures for CallError NAS-125487 / 24.10 / Use stderr from zectl failures for CallError Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
5 participants