Add capability of copying files from lustre to s3 bucket on AWS#2873
Add capability of copying files from lustre to s3 bucket on AWS#2873weihuang-jedi wants to merge 86 commits into
Conversation
…d hope can provide a better way
…-workflow-cloud into aws-forecast-only
…d hope can provide a better way
…lobal-workflow-cloud into aws-coupled-atm-ocn-ic3-c192
54beedc to
5dd063a
Compare
7b8961e to
a06f8d2
Compare
|
I understand that this PR is far from perfect. |
|
Unless there is need to populate the bucket right away, I think this is the wrong approach. It will be annoying to add and maintain, and also injects a bunch of unneeded code into production scripts. Instead of adding a bunch of code to all of the jobs that write to COM as you've started here with products, we should do it at the end of the cycle, either by piggybacking on the existing archive job or creating a new job similar to the archive job that only runs on AWS. Then all the copying can be done in one go and in one place segregated from everything else. |
aerorahul
left a comment
There was a problem hiding this comment.
I agree with @WalterKolczynski-NOAA's assessment and review.
|
@WalterKolczynski-NOAA and @aerorahul, |
There was a problem hiding this comment.
We should never update this script in this fashion -- ever.
It is unsupported legacy code that happens to have some vestigial logic on EXPDIR.
These updates are speculative and irrelevant.
There was a problem hiding this comment.
That is a nice catch. I should not do any change here.
I will remove those, even this PR is not going any where.
There was a problem hiding this comment.
Right, Just wanted to keep you up to speed.
|
Opened issue NOAA-EMC/wxflow#42 to add bucket transfer capability to wxflow. |
|
Closing after consulting w/ @weihuang-jedi |
…ay // PR for Log Warnings NOAA-EMC#2924 // Chore/fix reposync and status checks NOAA-EMC#2873 (NOAA-EMC#2954) * UFSWM - UFSATM: Convert frestart from statically do dynamically allocated array * UFSWM - Create scorecard for runtime/memory metrics by machine * UFSWM - Fixing repo sync check and conditional block logic. * UFSATM - Convert frestart from statically do dynamically allocated array
Description
Add capability to allow global-workflow copying file from lustre to s3 bucket on AWS, and other CSPs.
Resolves #2872
Type of change
Change characteristics
[Wei.Huang@epicweiaws-130 wxflow]$ git diff fsutils.py
diff --git a/src/wxflow/fsutils.py b/src/wxflow/fsutils.py
index af9e5b8..5d6d4da 100644
--- a/src/wxflow/fsutils.py
+++ b/src/wxflow/fsutils.py
@@ -81,6 +81,9 @@ def cp(source: str, target: str) -> None:
if os.path.isdir(target):
target = os.path.join(target, os.path.basename(source))
shutil.copy2(source, target)
(Will file PR, if the general idea is OK with reviewers).
How has this been tested?
Checklist