Skip to content
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

Adding support for glidein to use cvmfsexec in mode 3 when possible #245

Closed
wants to merge 4 commits into from

Conversation

namrathaurs
Copy link
Contributor

@namrathaurs namrathaurs commented Nov 29, 2022

This PR contains changes (additions/modifications) towards enabling the glidein to support the use of cvmfsexec in mode 3 when possible. While this PR primarily encompasses changes pertaining to enabling mode 3 support, it also contains a change to the existing logic for script duplication check.

TODO: Make sure that cvmfsexec is used only if there is a working squid proxy

  • Dave D will help with the proper procedure to check

@namrathaurs
Copy link
Contributor Author

Reopening this in draft mode until the changes are ready for review.

@namrathaurs namrathaurs reopened this Dec 12, 2022
@namrathaurs namrathaurs force-pushed the branch_v3_11 branch 2 times, most recently from e5e08c5 to 9734fbf Compare May 31, 2023 22:29
@namrathaurs namrathaurs reopened this May 31, 2023
@namrathaurs namrathaurs reopened this Jun 5, 2023
- removed print statements used primarily for debugging the code
- updated indentation in the code files to remain consistent with other scripts
- updated mentions and references for mode 2 with mode 1 to stay consistent with cvmfsexec documentation
@namrathaurs namrathaurs marked this pull request as ready for review June 7, 2023 14:46
@namrathaurs namrathaurs requested a review from mambelli June 7, 2023 14:46
- removed the previously existing version of cvmfs setup script since a new version is in place
- updated the node validation script based on linting suggestions
Copy link
Contributor

@mambelli mambelli left a comment

Choose a reason for hiding this comment

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

Requesting some changes.

creation/lib/cgWConsts.py Show resolved Hide resolved
creation/web_base/validate_node.sh Show resolved Hide resolved
creation/web_base/cvmfs_setup_new.sh Show resolved Hide resolved
creation/web_base/cvmfs_setup_new.sh Show resolved Hide resolved
creation/web_base/cvmfs_helper_funcs.sh Show resolved Hide resolved
creation/web_base/cvmfs_helper_funcs.sh Show resolved Hide resolved
:
if [[ $glidein_cvmfs = required ]]; then
# if mount CVMFS is not successful, report an error and exit with failure exit code
echo $?
Copy link
Contributor

Choose a reason for hiding this comment

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

Exit code to stdout before exit? Will always be 0

elif [[ $glidein_cvmfs = preferred || $glidein_cvmfs = optional ]]; then
# if mount CVMFS is not successful, report a warning/error in the logs and continue with glidein startup
# script status must be OK, otherwise the glidein will fail
echo $?
Copy link
Contributor

Choose a reason for hiding this comment

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

Exit code to stdout? Will always be 0

Copy link
Contributor Author

@namrathaurs namrathaurs Nov 1, 2023

Choose a reason for hiding this comment

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

remove echo $? will always return a zero because of the previous if condition always evaluating to zero

if wanting to print to stdout, then use echo 0/1

if wanting to capture the exit code of the previous command, this does not capture it. I would have to put that into a variable first and then use

creation/web_base/cvmfs_helper_funcs.sh Show resolved Hide resolved
creation/web_base/cvmfs_umount.sh Show resolved Hide resolved
@mambelli mambelli added the rel:3.11.0 Release label for v3.11.0 label Dec 19, 2023
@namrathaurs namrathaurs added this to the 3.11 milestone Feb 2, 2024
@namrathaurs
Copy link
Contributor Author

Closing this pull request without merging as a new PR (#372) has superseded this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ENHANCEMENT For ENHANCEMENTS rel:3.11.0 Release label for v3.11.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants