Skip to content

Fix Issue #1334: Allow removal of orphaned storages from catalog#912

Merged
arogge merged 9 commits intobareos:masterfrom
alaaeddineelamri:dev/alaaeddineelamri/master/bug-0001334-orphaned-storages
Sep 22, 2021
Merged

Fix Issue #1334: Allow removal of orphaned storages from catalog#912
arogge merged 9 commits intobareos:masterfrom
alaaeddineelamri:dev/alaaeddineelamri/master/bug-0001334-orphaned-storages

Conversation

@alaaeddineelamri
Copy link
Contributor

@alaaeddineelamri alaaeddineelamri commented Aug 16, 2021

Thank you for contributing to the Bareos Project!

Description:

Fix for bug 1334: After deleting storage from the configuration, it persists in the catalog db. Now such storages can be deleted by either dbcheck or the delete storage command in bconsole.

Please check

  • Short description and the purpose of this PR is present above this paragraph
  • Your name is present in the AUTHORS file (optional)

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)

General
  • PR name is meaningful
  • Purpose of the PR is understood
  • Separate commit for this PR in the CHANGELOG.md, PR number referenced is same
  • Commit descriptions are understandable and well formatted
Source code quality
  • Source code changes are understandable
  • Variable and function names are meaningful
  • Code comments are correct (logically and spelling)
  • Required documentation changes are present and part of the PR
  • bareos-check-sources --since-merge does not report any problems
  • git status should not report modifications in the source tree after building and testing
Tests
  • Decision taken that a system- or unittest is required (if not, then remove this paragraph)
  • The decision towards a systemtest is reasonable compared to a unittest
  • Testname matches exactly what is being tested
  • Output of the test leads quickly to the origin of the fault

arogge pushed a commit to arogge/bareos that referenced this pull request Aug 18, 2021
Changes wording to indicate better that paths may vary.

Fixes bareos#912: wrong configuration path for apache
@alaaeddineelamri alaaeddineelamri force-pushed the dev/alaaeddineelamri/master/bug-0001334-orphaned-storages branch 4 times, most recently from 68fb3d8 to e042401 Compare August 25, 2021 09:42
@arogge arogge self-assigned this Sep 2, 2021
arogge pushed a commit to arogge/bareos that referenced this pull request Sep 13, 2021
Changes wording to indicate better that paths may vary.

Fixes bareos#912: wrong configuration path for apache

(cherry picked from commit b89087d)
arogge pushed a commit to arogge/bareos that referenced this pull request Sep 13, 2021
Changes wording to indicate better that paths may vary.

Fixes bareos#912: wrong configuration path for apache

(cherry picked from commit b89087d)
Copy link
Member

@arogge arogge 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 really great. A lot of effort not only adding the feature to dbcheck, but also a good start to move dbcheck functionality into the director itself (where I think it belongs in the first place).
There are only a few simple changes, that I would like to see (mostly adding missing license headers).

I still have to try it out though.

@alaaeddineelamri alaaeddineelamri force-pushed the dev/alaaeddineelamri/master/bug-0001334-orphaned-storages branch 2 times, most recently from ecd7038 to a3a114b Compare September 16, 2021 08:34
Copy link
Member

@arogge arogge left a comment

Choose a reason for hiding this comment

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

I tested it and it worked great. However, I felt the messages were a bit too verbose, so I added suggestions for string changes, what will probably also require changes to the systemtest (sorry for that).
But besides the texts, I'm really happy and would love to merge the PR!

@alaaeddineelamri alaaeddineelamri force-pushed the dev/alaaeddineelamri/master/bug-0001334-orphaned-storages branch from a3a114b to dfac0ab Compare September 22, 2021 11:33
@arogge arogge self-requested a review September 22, 2021 15:02
@arogge arogge changed the title bug 0001334 orphaned storages Fix Issue #1334: Provide method to remove orphaned storages from the catalog Sep 22, 2021
@arogge arogge changed the title Fix Issue #1334: Provide method to remove orphaned storages from the catalog Fix Issue #1334: Allow removal of orphaned storages from catalog Sep 22, 2021
@arogge arogge merged commit 3eb2193 into bareos:master Sep 22, 2021
bsperduto pushed a commit to bsperduto/bareos that referenced this pull request Sep 23, 2021
Changes wording to indicate better that paths may vary.

Fixes bareos#912: wrong configuration path for apache

(cherry picked from commit b89087d)
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