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

[gw] Store publisher hostname as part of lease #3130

Merged
merged 9 commits into from Dec 6, 2022

Conversation

jblomer
Copy link
Member

@jblomer jblomer commented Dec 6, 2022

The publisher transmits its own hostname when asking for a new lease, which gets stored in the lease db. When the lease db is queried, available hostnames are returned.

This requires a schema upgrade of the lease db from v2 to v3. The gateway will do this automatically when opening a v2 db. Old publishers won't transmit a hostname, in which case the remote IP address from the HTTP request is used as a fallback. Old leases will not have a hostname set, in which case none is returned in the lease listing. Old gateways speaking to new publishers will ignore the transmitted hostname.

@jblomer
Copy link
Member Author

jblomer commented Dec 6, 2022

@cernvm-bot unittest

@jblomer
Copy link
Member Author

jblomer commented Dec 6, 2022

@cernvm-bot cloudtest

@cernvm-bot
Copy link
Collaborator

building for cloudtests finished: SUCCESS
https://lcgapp-services.cern.ch/cvmfs-jenkins/job/CvmfsFullBuildDocker/3597/

@cernvm-bot
Copy link
Collaborator

@jblomer jblomer merged commit 6214b3e into devel Dec 6, 2022
@jblomer jblomer deleted the feature-gw-lease-hostname branch December 6, 2022 15:02
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.

None yet

2 participants