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

Merge OSDF Client #2

Merged
merged 374 commits into from
Jul 2, 2023
Merged

Conversation

bbockelm
Copy link
Collaborator

@bbockelm bbockelm commented Jul 2, 2023

This PR merges the OSDF client into the pelican CLI, integrating it in a way that should be compatible with the OSDF client.

For example, the following are equivalent:

ln -sf pelican osdf
./osdf object copy /osgconnect/public/bbockelm/foo /dev/null

and

ln -sf pelican stashcp
./stashcp /osgconnect/public/bbockelm/foo /dev/null

Setting $ARG0 to be "stashcp" or "stash_plugin" (e.g., as a symlink above) is equivalent to running the prior respective binaries.

djw8605 and others added 30 commits January 9, 2022 18:09
Propagate the number of bytes transferred back up to the main function.
Add proper version to classad output
Add forceposix, primarily for windows builds
bbockelm and others added 28 commits June 10, 2023 09:40
After the credential generation branch was rebased after the
director work, a few build errors popped up.
Follow credential generation advice from topology
Only recently was the OSDF client re-synced with some of the credential generation advice
supplied by the Topology service. This primarily affected cases where an origin's base
path did not match its local export path (such as in the case of `/chtc/staging/foo`
actually exporting the local path `/staging/foo`). This commit connects the Director into
the reconfigurations so that it will also work in such cases. A parallel commit was also
pushed/merged for the Director to supply the information needed by the OSDF client.
…d-gen

Use new cred gen information from Director
Fix GHA deprecation warnings (SOFTWARE-5354)
As we want to have the ability to stand up additional data federation
instances (think: test directors), we should split out and centralize
the defaults.

This introduces the use of viper for the process-wide configuration
management.  This will allow the use of configuration files in the
near future.
In some unit tests, we need to alter the configuration via env var
(to ensure the environment-based changes are effective); this adds
in re-initialization at the appropriate points.

Additionally, this moves the various timeout constants to the config
subsystem, allowing us to use much shorter timeouts for test runs
(taking about 6 minutes off the time to run `go test`).
Since the binary generated for namespaces_test.go doesn't start with
`stash`, the override for the test should be `PELICAN`-prefixed instead.
…erge

Begin merge of original osdf-client repository into the pelican CLI; start
by merging the entirety of the repository into a sub-directory, allowing
future movement and rearrangement.
@bbockelm bbockelm merged commit eef7e48 into PelicanPlatform:main Jul 2, 2023
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.

7 participants