DIRACGrid/DIRAC — pull request #751 by KrzysztofCiba (2012-05-11 09:19:32+00:00)
Title: FIX: SRM2Storage IOError

Fixing this one:
```
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT: == EXCEPTION ==
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT: :[Errno 2] No such file or directory: '/nfsexports/shared/software/dirac/data-taking/runit/DataManagement/TransferAgent/dirac_directory'
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT: File "/sw/dirac/data-taking/pro/DIRAC/Core/Utilities/ProcessPool.py", line 512, in process
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT: self.__taskResult = taskObj()
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT:
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT: File "/sw/dirac/data-taking/pro/DIRAC/DataManagementSystem/private/RequestTask.py", line 389, in __call__
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT: ret = self.handleRequest()
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT:
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT: File "/sw/dirac/data-taking/pro/DIRAC/DataManagementSystem/private/RequestTask.py", line 458, in handleRequest
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT: subRequestFiles )
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT:
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT: File "/sw/dirac/data-taking/pro/DIRAC/DataManagementSystem/private/TransferTask.py", line 115, in putAndRegister
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT: catalog = catalog )
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT:
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT: File "/sw/dirac/data-taking/pro/DIRAC/DataManagementSystem/Client/ReplicaManager.py", line 1435, in putAndRegister
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT: res = storageElement.putFile( fileDict, True )
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT:
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT: File "/sw/dirac/data-taking/pro/DIRAC/Resources/Storage/StorageElement.py", line 426, in putFile
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT: return self.__executeSingleFile( pfn, 'putFile' )
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT:
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT: File "/sw/dirac/data-taking/pro/DIRAC/Resources/Storage/StorageElement.py", line 538, in __executeSingleFile
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT: res = self.__executeFunction( pfn, operation, {} )
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT:
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT: File "/sw/dirac/data-taking/pro/DIRAC/Resources/Storage/StorageElement.py", line 626, in __executeFunction
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT: res = fcn( pfnsToUse, **argsDict )
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT:
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT: File "/sw/dirac/data-taking/pro/DIRAC/Resources/Storage/SRM2Storage.py", line 636, in putFile
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT: res = self.__executeOperation( os.path.dirname( dest_url ), 'createDirectory' )
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT:
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT: File "/sw/dirac/data-taking/pro/DIRAC/Resources/Storage/SRM2Storage.py", line 835, in __executeOperation
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT: res = fcn( url )
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT:
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT: File "/sw/dirac/data-taking/pro/DIRAC/Resources/Storage/SRM2Storage.py", line 219, in createDirectory
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT: res = self.__makeDirs( strippedUrl )
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT:
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT: File "/sw/dirac/data-taking/pro/DIRAC/Resources/Storage/SRM2Storage.py", line 257, in __makeDirs
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT: res = self.__makeDirs( dirName )
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT:
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT: File "/sw/dirac/data-taking/pro/DIRAC/Resources/Storage/SRM2Storage.py", line 255, in __makeDirs
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT: res = self.__makeDir( path )
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT:
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT: File "/sw/dirac/data-taking/pro/DIRAC/Resources/Storage/SRM2Storage.py", line 238, in __makeDir
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT: os.remove( srcFile )
2012-05-10 00:25:05 UTC DataManagement/TransferAgent EXCEPT: ===============

```