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

Lots that exist are skipped instead of updated during Lotman initialization #1848

Open
jhiemstrawisc opened this issue Dec 18, 2024 · 0 comments
Assignees
Labels
cache Issue relating to the cache component enhancement New feature or request lotman
Milestone

Comments

@jhiemstrawisc
Copy link
Member

When Lotman init code runs, it creates a list of lots that need to exist based on the provided configuration. However, right now the InitLotman skips over lots that already exist without checking whether this should actually be an update to the underlying lot. This means that an administrator who wants to update something like a Lot's management policy attributes first needs to delete the lot by calling into the sql database and then restart the cache with the updated yaml configuration.

We can handle this in Pelican to decrease the headache for administrators by modifying these existence checks to also grab the lot and update it if there any of the values in the provided configuration don't match what's stored in the database.

@jhiemstrawisc jhiemstrawisc added enhancement New feature or request cache Issue relating to the cache component lotman labels Dec 18, 2024
@jhiemstrawisc jhiemstrawisc added this to the v7.13.0 milestone Dec 18, 2024
@jhiemstrawisc jhiemstrawisc self-assigned this Dec 18, 2024
@jhiemstrawisc jhiemstrawisc modified the milestones: v7.13.0, v7.14 Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cache Issue relating to the cache component enhancement New feature or request lotman
Projects
None yet
Development

No branches or pull requests

1 participant