status storage: fix wrong data displayed about waiting jobs#1476
Merged
BareosBot merged 7 commits intobareos:masterfrom Aug 1, 2023
Conversation
dc16097 to
a1615b8
Compare
e1f4e06 to
588e813
Compare
sebsura
requested changes
Jun 19, 2023
sebsura
requested changes
Jun 19, 2023
588e813 to
2025fa0
Compare
Contributor
Author
yes, unfortunately. Resetting the volume name was quite straight forward, but the device name would require some changes that could lead to unknown consequences. |
Contributor
I used a File Device without Auto Label enabled and got this output. Is this the expected output after your changes ? |
2025fa0 to
a6cb0ef
Compare
sebsura
approved these changes
Jul 11, 2023
a6cb0ef to
d29d81f
Compare
might solve a hidden problem on line 146
8b26cca to
16d0d45
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
When using the
status storage=xxxcommand, bareos reports that certain running jobs are writing to the wrong volume or using the wrong device. This is only a reporting issue as those jobs aren't running or writing, but are actually waiting, and so the data displayed does not yet correctly reflect where the job will write, until the waiting condition is over.This PR:
status storageoutput text to reflect the actual status of the jobs and show an empty volume for those who did not find a volume yet. Device name can still be wrong though. Even though that information is still not accurate, by seeing the status (waiting) of the job on top of the empty volume, one can infer that the device might be wrong.status resourcesoption as it is just a placeholder and not implemented.Please check
If you have any questions or problems, please give a comment in the PR.
Helpful documentation and best practices
Checklist for the reviewer of the PR (will be processed by the Bareos team)
Make sure you check/merge the PR using
devtools/pr-toolto have some simple automated checks run and a proper changelog record added.General
Source code quality