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

Origins now advertise themselves as writebackhosts #512

Conversation

joereuss12
Copy link
Contributor

This is a bandaid fix for now to allow origins to show themselves as writeback hosts to allow for puts. This helps seperate them from relying on topology to get this information. This is just a band-aid for now, as we should make the writebackhost configurable and able to be set or not set when an origin is spun up.

@joereuss12 joereuss12 linked an issue Dec 20, 2023 that may be closed by this pull request
This is a bandaid fix for now to allow origins to show themselves as
writeback hosts to allow for puts. This helps seperate them from relying
on topology to get this information. This is just a band-aid for now, as
we should make the writebackhost configurable and able to be set or not
set when an origin is spun up.
Made writebackhost be advertised within `AdvertiseOSDF`
@joereuss12 joereuss12 force-pushed the writebackhost-set-in-origin-branch branch from 8b3bc64 to b066f2c Compare December 20, 2023 21:29
@joereuss12 joereuss12 linked an issue Dec 20, 2023 that may be closed by this pull request
Copy link
Collaborator

@bbockelm bbockelm left a comment

Choose a reason for hiding this comment

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

I'd like to completely rework the approach here.

  • No client header changes should be necessary. The target of the redirect of the PUT command should be all that's needed. We had to do this as a separate header originally because we weren't using the HTTP redirect functionality.
    • That is, a standard curl should be able to do the upload.
  • There should be a change in the advertisement from origin to the director. However, instead of advertising the WriteBackHost, we should simply advertise whether writes are enabled (a boolean flag) as the endpoint for PUTs should be the same as the endpoint for any other operation.
  • For the fix around the periodic advertisement, that looks like it's potentially an important bugfix. Please separate that out and have @turetske review it as a standalone PR.

@joereuss12
Copy link
Contributor Author

Closed by #622

@joereuss12 joereuss12 closed this Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants