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

"-f" flag does not overwrite file with files-upload #19

Open
zyndagj opened this issue Nov 15, 2017 · 0 comments
Open

"-f" flag does not overwrite file with files-upload #19

zyndagj opened this issue Nov 15, 2017 · 0 comments

Comments

@zyndagj
Copy link
Contributor

zyndagj commented Nov 15, 2017

Local file

env_dump.sh

#!/bin/bash

env > dump.txt

echo "AGAVE_JOB_APP_ID - ${AGAVE_JOB_APP_ID}"
echo "AGAVE_JOB_ARCHIVE - ${AGAVE_JOB_ARCHIVE}"
echo "AGAVE_JOB_ARCHIVE_SYSTEM - ${AGAVE_JOB_ARCHIVE_SYSTEM}"
echo "AGAVE_JOB_ARCHIVE_URL - ${AGAVE_JOB_ARCHIVE_URL}"
echo "AGAVE_JOB_ARCHIVE_PATH - ${AGAVE_JOB_ARCHIVE_PATH}"
echo "AGAVE_JOB_BATCH_QUEUE - ${AGAVE_JOB_BATCH_QUEUE}"
echo "AGAVE_JOB_EXECUTION_SYSTEM - ${AGAVE_JOB_EXECUTION_SYSTEM}"
echo "AGAVE_JOB_ID - ${AGAVE_JOB_ID}"
echo "AGAVE_JOB_MEMORY_PER_NODE - ${AGAVE_JOB_MEMORY_PER_NODE}"
echo "AGAVE_JOB_NAME - ${AGAVE_JOB_NAME}"
echo "AGAVE_JOB_NAME_RAW - ${AGAVE_JOB_NAME_RAW}"
echo "AGAVE_JOB_NODE_COUNT - ${AGAVE_JOB_NODE_COUNT}"
echo "AGAVE_JOB_OWNER - ${AGAVE_JOB_OWNER}"
echo "AGAVE_JOB_PROCESSORS_PER_NODE - ${AGAVE_JOB_PROCESSORS_PER_NODE}"
echo "AGAVE_JOB_SUBMIT_TIME - ${AGAVE_JOB_SUBMIT_TIME}"
echo "AGAVE_JOB_TENANT - ${AGAVE_JOB_TENANT}"
echo "AGAVE_JOB_ARCHIVE_URL - ${AGAVE_JOB_ARCHIVE_URL}"

Upload file

staff.stampede2(1449)$ files-upload -vfF env_dump/env_dump.sh -S data.iplantcollaborative.org /gzynda/applications/env_dump/
Uploading env_dump/env_dump.sh...
######################################################################## 100.0%
{name:env_dump.sh,uuid:2255531769997824487-242ac113-0001-002,owner:gzynda,internalUsername:null,lastModified:2017-11-15T16:49:06.929-06:00,source:http://129.114.97.92/env_dump.sh,path:gzynda/applications/env_dump/env_dump.sh,status:STAGING_QUEUED,systemId:data.iplantcollaborative.org,nativeFormat:raw,_links:{self:{href:https://agave.iplantc.org/files/v2/media/system/data.iplantcollaborative.org//gzynda/applications/env_dump/env_dump.sh},system:{href:https://agave.iplantc.org/systems/v2/data.iplantcollaborative.org},profile:{href:https://agave.iplantc.org/profiles/v2/gzynda},history:{href:https://agave.iplantc.org/files/v2/history/system/data.iplantcollaborative.org//gzynda/applications/env_dump/env_dump.sh},notification:[]}}

Please note that

/gzynda/applications/env_dump/env_dump.sh

already exists.

Download and compare file

staff.stampede2(1450)$ files-get -S data.iplantcollaborative.org /gzynda/applications/env_dump/env_dump.sh
######################################################################## 100.0%
staff.stampede2(1451)$ cat env_dump.sh 
#!/bin/bash

env > dump.txt

echo "AGAVE_JOB_APP_ID - ${AGAVE_JOB_APP_ID}"
echo "AGAVE_JOB_ARCHIVE - ${AGAVE_JOB_ARCHIVE}"
echo "AGAVE_JOB_ARCHIVE_SYSTEM - ${AGAVE_JOB_ARCHIVE_SYSTEM}"
echo "AGAVE_JOB_ARCHIVE_URL - ${AGAVE_JOB_ARCHIVE_URL}"
echo "AGAVE_JOB_ARCHIVE_PATH - ${AGAVE_JOB_ARCHIVE_PATH}"
echo "AGAVE_JOB_BATCH_QUEUE - ${AGAVE_JOB_BATCH_QUEUE}"
echo "AGAVE_JOB_EXECUTION_SYSTEM - ${AGAVE_JOB_EXECUTION_SYSTEM}"
echo "AGAVE_JOB_ID - ${AGAVE_JOB_ID}"
echo "AGAVE_JOB_MEMORY_PER_NODE - ${AGAVE_JOB_MEMORY_PER_NODE}"
echo "AGAVE_JOB_NAME - ${AGAVE_JOB_NAME}"
echo "AGAVE_JOB_NAME_RAW - ${AGAVE_JOB_NAME_RAW}"
echo "AGAVE_JOB_NODE_COUNT - ${AGAVE_JOB_NODE_COUNT}"
echo "AGAVE_JOB_OWNER - ${AGAVE_JOB_OWNER}"
echo "AGAVE_JOB_PROCESSORS_PER_NODE - ${AGAVE_JOB_PROCESSORS_PER_NODE}"
echo "AGAVE_JOB_SUBMIT_TIME - ${AGAVE_JOB_SUBMIT_TIME}"
echo "AGAVE_JOB_TENANT - ${AGAVE_JOB_TENANT}"
echo "AGAVE_JOB_ARCHIVE_URL - ${AGAVE_JOB_ARCHIVE_URL}"
echo "AGAVE_JOB_CALLBACK_RUNNING - ${AGAVE_JOB_CALLBACK_RUNNING}"
echo "AGAVE_JOB_CALLBACK_CLEANING_UP - ${AGAVE_JOB_CALLBACK_CLEANING_UP}"
echo "AGAVE_JOB_CALLBACK_ALIVE - ${AGAVE_JOB_CALLBACK_ALIVE}"
echo "AGAVE_JOB_CALLBACK_NOTIFICATION - ${AGAVE_JOB_CALLBACK_NOTIFICATION}"
echo "AGAVE_JOB_CALLBACK_FAILURE - ${AGAVE_JOB_CALLBACK_FAILURE}"
staff.stampede2(1452)$ diff env_dump.sh env_dump/env_dump.sh 
22,26d21
< echo "AGAVE_JOB_CALLBACK_RUNNING - ${AGAVE_JOB_CALLBACK_RUNNING}"
< echo "AGAVE_JOB_CALLBACK_CLEANING_UP - ${AGAVE_JOB_CALLBACK_CLEANING_UP}"
< echo "AGAVE_JOB_CALLBACK_ALIVE - ${AGAVE_JOB_CALLBACK_ALIVE}"
< echo "AGAVE_JOB_CALLBACK_NOTIFICATION - ${AGAVE_JOB_CALLBACK_NOTIFICATION}"
< echo "AGAVE_JOB_CALLBACK_FAILURE - ${AGAVE_JOB_CALLBACK_FAILURE}"
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

No branches or pull requests

1 participant