radical-cybertools / radical.saga

A Light-Weight Access Layer for Distributed Computing Infrastructure and Reference Implementation of the SAGA Python Language Bindings.
http://radical-cybertools.github.io/saga-python/
Other
83 stars 34 forks source link

mkdir and copy interpret rel URLs differently #457

Open andre-merzky opened 9 years ago

andre-merzky commented 9 years ago
f = File('ssh://stampede/work/user/out.dat')
f.copy('/tmp/data/out.dat', CREATE_PARENTS)

that code is semantically not expressing a remote transfer, as the copy target is not an abs URL, so is interpreted in the f.url context, ie. on stampede. That indeed works for the CREATE_PARENTS interpretation, but the file transfer will attempt to move the file to localhost...

vivek-bala commented 5 years ago

Hey Andre, is this issue address in any commit or PR?

andre-merzky commented 5 years ago

No, this is still open. We work around this by always using full URLs, but that behavior is surprising (to say the least) for unsuspecting users and needs fixing.

vivek-bala commented 5 years ago

For the example above, I think I would have expected the output to be copied to localhost and not on Stampede, FWIW :) But I mostly personally prefer full URLs wherever possible.

andre-merzky commented 5 years ago

For the example above, I think I would have expected the output to be copied to localhost and not on Stampede, FWIW :)

Well, the holy SAGA spec says otherwise ... ;-)

vivek-bala commented 5 years ago

Alrighty! Leaving this ticket open in that case.