almaconvert8 and lsof return code weirdness [message #53870] |
Tue, 26 November 2024 16:17  |
wsap
Messages: 81 Registered: March 2018 Location: Halifax, NS
|
Member |
|
|
When running almaconvert8 on one specific container, we get this:
subprocess.CalledProcessError: Command '['/sbin/vzctl', 'exec', '$CTID', '/sbin/lsof', '-Pi']' returned non-zero exit status 8
Yet immediately after, when I run: /sbin/vzctl exec $CTID /sbin/lsof -Pi it works fine, and echo $? results in 0 not 8.
Also running vzctl exec - doesn't that result in the return code from vzctl itself rather than lsof? And in this instance wouldn't it be more handy to have it be the return code from lsof, which would mean the command should be vzctl exec2 <rest_of_command>?
I also then tried /sbin/vzctl exec2 $CTID /sbin/lsof -Pi and even then echo $? results in 0 not 8.
vzctl man pages say:
8 = Command executed by vzctl exec returned non-zero exit code
Yet the command returned a 0 when I ran it with exec2 and within the container on its own! How is this possible?
[Updated on: Tue, 26 November 2024 16:21] Report message to a moderator
|
|
|