-
Notifications
You must be signed in to change notification settings - Fork 10
Description
What happened?
The documentation indicates that "--keep to keep a copy of the tar files on the local file system after they have been transferred to HPSS. Normally, they are deleted after successful transfer." So, without --keep, the tar files should be deleted after successful transfer. But the tar files are not deleted when transferred successfully via globus. I might not use the zstash command correctly. If so, sorry for the false alarm.
I reproduced this with a simple test on Chrysalis.
touch tst.txt
zstash create -v --non-blocking --hpss=globus://nersc/~/E3SMv3_dev/tst --maxsize 128 .
The log line Calling hpss_put to dispatch archive file 000000.tar [keep, non_blocking] = [False, True] confirms the keep flag is False.
Here is the complete log:
For help, please see https://e3sm-project.github.io/zstash. Ask questions at https://github.com/E3SM-Project/zstash/discussions/categories/q-a.
DEBUG: 20250605_035238_623132: Running zstash create
DEBUG: Local path : /lcrc/group/e3sm2/ac.qtang/tst
DEBUG: HPSS path : globus://nersc/~/E3SMv3_dev/tst
DEBUG: Max size : 137438953472
DEBUG: Keep local tar files : False
DEBUG: Making sure input path exists and is a directory
DEBUG: 20250605_035238_623404:Calling globus_activate(hpss)
INFO: Creating client of type <class 'globus_sdk.services.auth.client.native_client.NativeAppAuthClient'> for service "auth"
INFO: Finished initializing AuthLoginClient. client_id='6c1629cf-446c-49e7-af95-323c6412397f', type(authorizer)=<class 'globus_sdk.authorizers.base.NullAuthorizer'>
INFO: Setting up RefreshTokenAuthorizer with auth_client=[instance:23455989535200]
INFO: Setting up a RenewingAuthorizer. It will use an auth type of Bearer and can handle 401s.
INFO: RenewingAuthorizer will start by using access_token with hash "6e0977482bceb074128f911539d014c5907e30d53bcf7fa9c0c1d1b7240ff704"
INFO: Setting up an AccessTokenAuthorizer. It will use an auth type of Bearer and cannot handle 401s.
INFO: Creating client of type <class 'globus_sdk.services.transfer.client.TransferClient'> for service "transfer"
INFO: TransferClient.endpoint_autoactivate(15288284-7006-4041-ba1a-6b52501e49f1)
INFO: request done (success)
INFO: TransferClient.endpoint_autoactivate(9cd89cfd-6d04-11e5-ba46-22000b92c6ec)
INFO: request done (success)
DEBUG: 20250605_035239_319250: Creating local cache directory
DEBUG: 20250605_035239_319398: Calling create_database()
DEBUG: 20250605_035239_319454:Creating index database
INFO: Gathering list of files to archive
INFO: 20250605_035239_420308: Creating new tar archive 000000.tar
INFO: Archiving tst.txt
DEBUG: 20250605_035239_423862: Closing tar archive 000000.tar
INFO: 20250605_035239_424067: (add_files): Completed archive file 000000.tar
INFO: tar name=000000.tar, tar size=10240, tar md5=21d45155d348307f7db791b620a07d96
INFO: 20250605_035239_429147: DIVING: (add_files): Calling hpss_put to dispatch archive file 000000.tar [keep, non_blocking] = [False, True]
INFO: 20250605_035239_429204: in hpss_transfer, prev_transfers is starting as []
INFO: Transferring file to HPSS: zstash/000000.tar
INFO: 20250605_035239_429272: DIVING: hpss calls globus_transfer(name=000000.tar)
INFO: 20250605_035239_429301: Entered globus_transfer() for name = 000000.tar
DEBUG: 20250605_035239_429322: non_blocking = True
INFO: Creating a new TransferData object
INFO: TransferClient.get_submission_id(None)
INFO: request done (success)
INFO: TransferData.DATA_TYPE = transfer
INFO: TransferData.DATA = []
INFO: TransferData.source_endpoint = 15288284-7006-4041-ba1a-6b52501e49f1
INFO: TransferData.destination_endpoint = 9cd89cfd-6d04-11e5-ba46-22000b92c6ec
INFO: TransferData.label = tst 000000
INFO: TransferData.submission_id = 867de2ca-41c0-11f0-8ee3-0256b1e82d1f
INFO: TransferData.verify_checksum = True
INFO: TransferData.preserve_timestamp = True
INFO: TransferData.encrypt_data = False
INFO: TransferData.skip_source_errors = False
INFO: TransferData.fail_on_quota_errors = True
INFO: TransferData.delete_destination_extra = False
INFO: TransferData.notify_on_succeeded = True
INFO: TransferData.notify_on_failed = True
INFO: TransferData.notify_on_inactive = True
INFO: 20250605_035239_455518: TransferData: accumulated items:
(routine) PUSHING (#1) STORED source item: /lcrc/group/e3sm2/ac.qtang/tst/zstash/000000.tar
INFO: 20250605_035239_455593: DIVING: Submit Transfer for tst 000000
INFO: TransferClient.submit_transfer(...)
INFO: request done (success)
INFO: 20250605_035241_289602: SURFACE Submit Transfer returned new task_id = 867de1e9-41c0-11f0-b34a-0256b1e82d1f for label tst 000000
INFO: 20250605_035241_289676: NO BLOCKING (task_wait) for task_id 867de1e9-41c0-11f0-b34a-0256b1e82d1f
INFO: 20250605_035241_289736: SURFACE hpss globus_transfer(name=000000.tar) returns UNKNOWN
INFO: 20250605_035241_289815: SURFACE (add_files): Called hpss_put to dispatch archive file 000000.tar
DEBUG: 20250605_035241_296579: calling hpss_put() for zstash/index.db
INFO: 20250605_035241_296765: in hpss_transfer, prev_transfers is starting as []
INFO: Transferring file to HPSS: zstash/index.db
INFO: 20250605_035241_296862: DIVING: hpss calls globus_transfer(name=index.db)
INFO: 20250605_035241_296899: Entered globus_transfer() for name = index.db
DEBUG: 20250605_035241_296922: non_blocking = False
INFO: Creating a new TransferData object
INFO: TransferClient.get_submission_id(None)
INFO: request done (success)
INFO: TransferData.DATA_TYPE = transfer
INFO: TransferData.DATA = []
INFO: TransferData.source_endpoint = 15288284-7006-4041-ba1a-6b52501e49f1
INFO: TransferData.destination_endpoint = 9cd89cfd-6d04-11e5-ba46-22000b92c6ec
INFO: TransferData.label = tst index
INFO: TransferData.submission_id = 879ade90-41c0-11f0-aad5-0256b1e82d1f
INFO: TransferData.verify_checksum = True
INFO: TransferData.preserve_timestamp = True
INFO: TransferData.encrypt_data = False
INFO: TransferData.skip_source_errors = False
INFO: TransferData.fail_on_quota_errors = True
INFO: TransferData.delete_destination_extra = False
INFO: TransferData.notify_on_succeeded = True
INFO: TransferData.notify_on_failed = True
INFO: TransferData.notify_on_inactive = True
INFO: TransferClient.get_task(867de1e9-41c0-11f0-b34a-0256b1e82d1f, ...)
INFO: request done (success)
INFO: 20250605_035241_351599: Previous task_id 867de1e9-41c0-11f0-b34a-0256b1e82d1f Still Active. Returning ACTIVE.
INFO: 20250605_035241_351678: SURFACE hpss globus_transfer(name=index.db) returns ACTIVE
DEBUG: 20250605_035241_351756: calling globus_finalize()
INFO: 20250605_035241_351807: FINAL TransferData: accumulated items:
(finalize) PUSHING (2) source item: /lcrc/group/e3sm2/ac.qtang/tst/zstash/index.db
INFO: 20250605_035241_351862: DIVING: Submit Transfer for tst index
INFO: TransferClient.submit_transfer(...)
INFO: request done (success)
What machine were you running on?
Chrysalis
Environment
e3sm_unified_1.11.1
Minimal Complete Verifiable Example (MCVE)
Relevant log output
Anything else we need to know?
No response