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
Fix issue #2441 & #2442 #2445
Fix issue #2441 & #2442 #2445
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not use BACKUP=CDM
so I cannot test anything here but
from plain looking at the code things look OK to me.
I wished there was a comment in the code
(cf. "Code must be easy to understand" in https://github.com/rear/rear/wiki/Coding-Style)
that at least mentiones the issue #2441
or even better directly tells about the source of this problem
why two file names must be tried to dowload
for example something like
# The name of the tar file that is being downloaded has changed in Rubrik CDM v5.1.
# Before Rubrik CDM v5.1 it was rubrik-agent-sunos5.10.sparc.tar.gz
# since Rubrik CDM v5.1 it is rubrik-agent-solaris.sparc.tar.gz
# cf. https://github.com/rear/rear/issues/2441
usr/share/rear/verify/CDM/default/410_use_replica_cdm_cluster_cert.sh
Outdated
Show resolved
Hide resolved
@rear/contributors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems via this pull request the file
usr/share/rear/verify/CDM/default/400_verify_cdm.sh
gets deleted.
Is that intentional?
Yes this is intentional. That file was causing the Rubrik agent to be started twice. The functionality was moved to another file in an earlier update but the file was never removed at that time. Starting the agent twice was contributing to #2441. |
Added this note in commit 7b1e26b. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not use BACKUP=CDM so I cannot actually test it but
from plain looking at the code things look good to me.
@DamaniN Now things are clear to me so I approve it. |
@rear/contributors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Could you please use the ReaR temp dir and rely on binaries being in $PATH
.
I kindly also ask you to fix that with all the CDM-related code, if you can.
Obviously we can't test the code and rely on your testing here.
usr/share/rear/verify/CDM/default/410_use_replica_cdm_cluster_cert.sh
Outdated
Show resolved
Hide resolved
usr/share/rear/verify/CDM/default/410_use_replica_cdm_cluster_cert.sh
Outdated
Show resolved
Hide resolved
usr/share/rear/verify/CDM/default/410_use_replica_cdm_cluster_cert.sh
Outdated
Show resolved
Hide resolved
usr/share/rear/verify/CDM/default/410_use_replica_cdm_cluster_cert.sh
Outdated
Show resolved
Hide resolved
usr/share/rear/verify/CDM/default/410_use_replica_cdm_cluster_cert.sh
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DamaniN What is the reason of the removal of usr/share/rear/verify/CDM/default/400_verify_cdm.sh ?
usr/share/rear/verify/CDM/default/410_use_replica_cdm_cluster_cert.sh
Outdated
Show resolved
Hide resolved
@gdha |
Tried a smaller fix for rear#2445 (comment) but things became almost a rewrite now
syntax error fix
Added generic URL download method so the user has a better chance to succeed when the already known hardcoded vaules in ReraR don't work in his particular case.
Typo fix from "it's" (which would mean "it is") to "its"
I tested it as far as I could without a Rubrik (CDM) cluster environment If there are no objections I would like to merge it as is tomorrow afternoon. |
Pull Request Details:
Type: Enhancement
Impact: High
Reference to related issue (URL):
#2441
Restored system from replica cluster running Rubrik CDM v5.2
The RBS agent file name changed in Rubrik CDM v5.1. Failed over to the new file name if the old file doesn't work.