From 8ba739984c7296dda7860a5b8bedadb92d57cd31 Mon Sep 17 00:00:00 2001
From: Jorrit Schaap <schaap@astron.nl>
Date: Thu, 30 Jun 2016 10:39:37 +0000
Subject: [PATCH] Task #8598: applied some patches from production

---
 LTA/LTAIngest/ingestpipeline.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/LTA/LTAIngest/ingestpipeline.py b/LTA/LTAIngest/ingestpipeline.py
index 8a073bbb539..32ae589a94f 100755
--- a/LTA/LTAIngest/ingestpipeline.py
+++ b/LTA/LTAIngest/ingestpipeline.py
@@ -410,6 +410,12 @@ class IngestPipeline():
       try:
         sip_host = self.job['SIPLocation'].split(':')[0]
         sip_path = self.job['SIPLocation'].split(':')[1]
+
+        # eor dawn nodes are not known in dns
+        # convert to ip address
+        for i in range(1, 33):
+            sip_host = sip_host.replace('node%d.intra.dawn.rug.nl' % (i+100,), '10.196.232.%d' % (i+10,))
+
         cmd = ['ssh', '-tt', '-n', '-x', '-q', '%s@%s' % (self.user, sip_host), 'cat %s' % sip_path]
         self.logger.debug("GetSIP for %s with mom2DPId %s - StorageTicket %s - FileName %s - Uri %s - cmd %s" % (self.JobId, self.ArchiveId, self.ticket, self.FileName, self.PrimaryUri, ' ' .join(cmd)))
         p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
-- 
GitLab