Skip to content
Snippets Groups Projects
Commit ae1a2084 authored by Cristiano Urban's avatar Cristiano Urban
Browse files

IBM Spectrum Protect integration: minor changes, replaced 'tapePool' with 'tapeHSMFilesystem'.

parent 3a5cccef
No related branches found
No related tags found
No related merge requests found
...@@ -81,7 +81,7 @@ class RetrieveExecutor(TaskExecutor): ...@@ -81,7 +81,7 @@ class RetrieveExecutor(TaskExecutor):
params["user"], params["user"],
params["pkey_file_path"], params["pkey_file_path"],
self.logger) self.logger)
self.tapePool = None self.tapeHSMFilesystem = None
self.storageType = None self.storageType = None
self.jobObj = None self.jobObj = None
self.jobId = None self.jobId = None
...@@ -125,7 +125,7 @@ class RetrieveExecutor(TaskExecutor): ...@@ -125,7 +125,7 @@ class RetrieveExecutor(TaskExecutor):
#self.storageType = self.dbConn.getOSPath(self.nodeList[0])["storageType"] #self.storageType = self.dbConn.getOSPath(self.nodeList[0])["storageType"]
fileInfo = self.dbConn.getOSPath(self.nodeList[0]) fileInfo = self.dbConn.getOSPath(self.nodeList[0])
self.storageType = fileInfo["storageType"] self.storageType = fileInfo["storageType"]
self.tapePool = fileInfo["tapePool"] self.tapeHSMFilesystem = fileInfo["tapeHSMFilesystem"]
except Exception: except Exception:
self.logger.exception("FATAL: unable to obtain the storage type.") self.logger.exception("FATAL: unable to obtain the storage type.")
return False return False
...@@ -321,7 +321,7 @@ class RetrieveExecutor(TaskExecutor): ...@@ -321,7 +321,7 @@ class RetrieveExecutor(TaskExecutor):
# is 'cold' # is 'cold'
if self.storageType == "cold": if self.storageType == "cold":
self.tapeClient.connect() self.tapeClient.connect()
self.tapeClient.migrate([ f["fullPath"] for f in blockFileList if f["fileSize"] > 0 ], self.tapePool, self.jobId) self.tapeClient.migrate([ f["fullPath"] for f in blockFileList if f["fileSize"] > 0 ], self.tapeHSMFilesystem, self.jobId)
self.tapeClient.disconnect() self.tapeClient.disconnect()
blockFileList.clear() blockFileList.clear()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment