Bug 135 - stagein deletes everything on node
: stagein deletes everything on node
Status: RESOLVED FIXED
Product: TORQUE
pbs_mom
: 2.5.x
: PC Linux
: P5 critical
Assigned To: Al Taufer
:
:
:
  Show dependency treegraph
 
Reported: 2011-06-13 22:48 MDT by Jouni Väliaho
Modified: 2011-08-09 15:47 MDT (History)
2 users (show)

See Also:


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description Jouni Väliaho 2011-06-13 22:48:33 MDT
If you specify the full path on node for stagein file, everything will be
deleted
in the specified folder including the folder itself.
For example (Warning! first backup /home/user folder on node1)

$pwd
/home/john
$touch input.txt
$echo "sleep 10" | qsub -l nodes=1,walltime=100 -W
stagein=/home/user/input.txt@node1:/home/john/input.txt

After the job completed everything in /home/user folder including (/.ssh/
.bashrc, etc) are deleted on node1
Comment 1 Jouni Väliaho 2011-06-13 23:29:59 MDT
(In reply to comment #0)
> If you specify the full path on node for stagein file, everything will be
> deleted
> in the specified folder including the folder itself.
> For example (Warning! first backup /home/user folder on node1)
> 
> $pwd
> /home/john
> $touch input.txt
> $echo "sleep 10" | qsub -l nodes=1,walltime=100 -W
> stagein=/home/user/input.txt@node1:/home/john/input.txt
> 
> After the job completed everything in /home/user folder including (/.ssh/
> .bashrc, etc) are deleted on node1

Sorry for my poor english. To be more specific the nodes parameter could be
determined.
$echo "sleep 10" | qsub -l nodes=node1,walltime=100 -W
stagein=/home/user/input.txt@node1:/home/john/input.txt

The stagein parameter without the full path works as expected.
$echo "sleep 10" | qsub -l nodes=node1,walltime=100 -W
stagein=input.txt@node1:/home/john/input.txt
Only the input.txt are deleted on node1.
Comment 2 Al Taufer 2011-08-09 15:47:49 MDT
This has been fixed in 2.5, 3.0, etc.