Skip to content

Fix a variety of config defaults generation bugs#3081

Merged
h2zh merged 3 commits into
PelicanPlatform:mainfrom
jhiemstrawisc:issue-3080
Feb 5, 2026
Merged

Fix a variety of config defaults generation bugs#3081
h2zh merged 3 commits into
PelicanPlatform:mainfrom
jhiemstrawisc:issue-3080

Conversation

@jhiemstrawisc

Copy link
Copy Markdown
Member

Please refer to issue #3080 for a description of what this fixes, as the proposed fix there was exactly the solution. This also has another small bugfix that should be fairly apparent just by looking at the code or the commits.

Closes #3080

The warning says nothing in the function should use 'viper.Get*'
or 'param.<blah>.Get* and it gives a good reason. Unfortunately,
we were still doing exactly that! It turns out it wasn't actually
too much of a problem until bugs compounded between PR PelicanPlatform#2869 and
PR PelicanPlatform#3042, at which point it broke configuration.
While working on other config bugs, I noticed `pelican config dump`
wasn't returning _any_ path for the fed token location. It turns out
that's because the default wasn't being set in the default setter.

This moves things around to fix the bug.
@jhiemstrawisc jhiemstrawisc added this to the v7.24 milestone Feb 5, 2026
@jhiemstrawisc jhiemstrawisc requested a review from h2zh February 5, 2026 22:31
@jhiemstrawisc jhiemstrawisc added bug Something isn't working critical High priority for next release cache Issue relating to the cache component configuration labels Feb 5, 2026

@h2zh h2zh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Thanks for this emergency surgery to bring the cache back to life!

@h2zh h2zh merged commit e3b62fd into PelicanPlatform:main Feb 5, 2026
33 checks passed
h2zh added a commit to h2zh/pelican that referenced this pull request Feb 5, 2026
- Setup the permanent and temporary directory for the federation token file
and sets proper perms.
- The permanent directory is always owned by xrootd user.
- In normal mode, the temporary directory is owned by the root. While in drop privileges mode, it is owned by the pelican user.
- This commit is updated after the changes in PelicanPlatform#3081 to catch up the fixes in the set defaults process
@jhiemstrawisc jhiemstrawisc added the create-patch Patch this into multiple versions of Pelican label Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working cache Issue relating to the cache component configuration create-patch Patch this into multiple versions of Pelican critical High priority for next release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Caches with default configuration won't start after both #2869 and #3042 compounded bugs

2 participants