gwu-libraries / clint

Command Line INventory Tool
6 stars 1 forks source link

verify that disk space check handles response on storage0 correctly #129

Closed dchud closed 10 years ago

darshanrp commented 10 years ago

Error trace

remote=/data/storage2/ms2020/access,remote_drive=/dev/sdd1 -u darshan
[storage0.library.gwu.edu:9999] Executing task 'copy_bag'
[storage0.library.gwu.edu:9999] run: df -hP | awk 'NR>1{print $1,$2,$4,$5}' | sed -e's/%//g'
[storage0.library.gwu.edu:9999] Login password for 'darshan': 
[storage0.library.gwu.edu:9999] out: /dev/sda1 46G 40G 9
[storage0.library.gwu.edu:9999] out: udev 2.0G 2.0G 1
[storage0.library.gwu.edu:9999] out: tmpfs 396M 396M 1
[storage0.library.gwu.edu:9999] out: none 5.0M 5.0M 0
[storage0.library.gwu.edu:9999] out: none 2.0G 2.0G 0
[storage0.library.gwu.edu:9999] out: /dev/sdb1 2.0T 2.0T 1
[storage0.library.gwu.edu:9999] out: /dev/sdc1 2.0T 2.0T 1
[storage0.library.gwu.edu:9999] out: /dev/sdd1 2.0T 2.0T 1
[storage0.library.gwu.edu:9999] out: /dev/sde1 2.0T 2.0T 1
[storage0.library.gwu.edu:9999] out: /dev/sdf1 2.0T 2.0T 1
[storage0.library.gwu.edu:9999] out: /dev/sdg1 2.0T 2.0T 1
[storage0.library.gwu.edu:9999] out: gwmount.wrlc.org:/vol-backup 99G 22G 78
[storage0.library.gwu.edu:9999] out: 

Traceback (most recent call last):
  File "/clint/clint/ENV/local/lib/python2.7/site-packages/fabric/main.py", line 743, in main
    *args, **kwargs
  File "/clint/clint/ENV/local/lib/python2.7/site-packages/fabric/tasks.py", line 368, in execute
    multiprocessing
  File "/clint/clint/ENV/local/lib/python2.7/site-packages/fabric/tasks.py", line 264, in _execute
    return task.run(*args, **kwargs)
  File "/clint/clint/ENV/local/lib/python2.7/site-packages/fabric/tasks.py", line 171, in run
    return self.wrapped(*args, **kwargs)
  File "/clint/clint/clint-fabutils.py", line 191, in copy_bag
    if space_available(local, remote_drive):
  File "/clint/clint/clint-fabutils.py", line 140, in space_available
    free_space = convert_2_bytes(item[2])
  File "/clint/clint/clint-fabutils.py", line 159, in convert_2_bytes
    assert num.isdigit() and letter in symbols
AssertionError
Disconnecting from storage0.library.gwu.edu:9999... done.