Work item: Improve output upon error. From the email thread: >> 2- Missing error messages >> >> There were times when the refresh command didn't output any errors on >> the terminal though it had failed. >> >> This happened for example when we run into the issue described in the >> previous point, where exit code from the script would be 1 but there >> would be no message printed on the screen. >> >> This lead support team to believe during the weekend session that the >> command did run successfully, so they didn't understand why the proposed >> steps in our document would not work. > yep that was mentioned by melanie or gibi as well i think on monday that defently can be improved When I heard this I thought maybe the output was being captured to a log file instead of going to the console. But I googled again and found this: https://stackoverflow.com/questions/55325145/python-not-printing-output Maybe we just need to flush stdout before exiting nova-manage? I'm surprised we never ran into this before though. We need to understand what's going on here - whether it's a matter of just calling flush() like Melanie said, or do we need to add called to LOG.error in some places. This bug was initially created as a copy of Bug #2161733 I am copying this bug because: Description of problem: Gorka had to make heavy use of the `nova-manage volume_attachment` commands in resolving an escalation for Ericsson, and he had some feedback for us. We'd like to implement that feedback. Version-Release number of selected component (if applicable): From master all the way down to 16.2. How reproducible: N/A Steps to Reproduce: N/A Actual results: N/A Expected results: N/A Additional info: The thread where Gorka explains his feedback is at [1]. I'll try to break it down into specific fixes/work items in subsequent comments in this BZ. [1] https://lists.corp.redhat.com/archives/rhos-compute/2022-December/000883.html
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Release of components for Red Hat OpenStack Platform 17.1 (Wallaby)), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2023:4577
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days