PAL: download - ignore verifying the SSL certificate 38/31538/1
authorTibor Frank <tifrank@cisco.com>
Fri, 5 Mar 2021 07:43:45 +0000 (08:43 +0100)
committerTibor Frank <tifrank@cisco.com>
Fri, 5 Mar 2021 07:43:45 +0000 (08:43 +0100)
- only for https://logs.nginx.service.consul/vex-yul-rot-jenkins-1

Change-Id: Ibdcc59a44d5aae331aeef22fad54c4e90b2eec6b
Signed-off-by: Tibor Frank <tifrank@cisco.com>
resources/tools/presentation/input_data_files.py
resources/tools/presentation/run_cpta.sh
resources/tools/presentation/run_report.sh
resources/tools/presentation/specification.yaml
resources/tools/presentation/specification_CPTA.yaml
resources/tools/presentation/specification_local.yaml

index 47249b1..237002f 100644 (file)
@@ -90,7 +90,7 @@ def _download_file(url, file_name, arch=False):
     try:
         logging.info(f"    Connecting to {url} ...")
         session = requests_retry_session()
-        response = session.get(url, stream=True)
+        response = session.get(url, stream=True, verify=False)
         code = response.status_code
         logging.info(f"    {code}: {responses[code]}")
 
@@ -100,7 +100,7 @@ def _download_file(url, file_name, arch=False):
             url = url.replace(u"_info", u"")
             logging.info(f"    Connecting to {url} ...")
             session = requests_retry_session()
-            response = session.get(url, stream=True)
+            response = session.get(url, stream=True, verify=False)
             code = response.status_code
             logging.info(f"    {code}: {responses[code]}")
             if code != codes[u"OK"]:
@@ -119,7 +119,7 @@ def _download_file(url, file_name, arch=False):
                 session.close()
             logging.info(f"    Downloading the file {url} to {file_name} ...")
             session = requests_retry_session()
-            response = session.get(url, stream=True)
+            response = session.get(url, stream=True, verify=False)
             if response.status_code == codes[u"OK"]:
                 with open(file_name, u"wb") as file_handle:
                     file_handle.write(response.raw.read())
index 1aa5703..94745f7 100755 (executable)
@@ -19,6 +19,9 @@ mkdir ${DIR[WORKING]}
 virtualenv -p $(which python3) ${DIR[WORKING]}/env
 source ${DIR[WORKING]}/env/bin/activate
 
+# FIXME: Temporary hack until all docker dns will be solved
+echo "nameserver 172.17.0.1" > /etc/resolv.conf
+
 # Install python dependencies:
 pip3 install -r requirements.txt
 
index e36eee3..c28c03a 100755 (executable)
@@ -30,6 +30,9 @@ mkdir ${DIR[WORKING]}
 virtualenv -p $(which python3) ${DIR[WORKING]}/env
 source ${DIR[WORKING]}/env/bin/activate
 
+# FIXME: Temporary hack until all docker dns will be solved
+echo "nameserver 172.17.0.1" > /etc/resolv.conf
+
 # Install python dependencies:
 pip3 install -r requirements.txt
 
index ece35c7..5acef65 100644 (file)
 
   urls:
     URL[JENKINS,CSIT]: "https://jenkins.fd.io/view/csit/job"
-    URL[S3_STORAGE,LOG]: "http://logs.nginx.service.consul/vex-yul-rot-jenkins-1"
+    URL[S3_STORAGE,LOG]: "https://logs.nginx.service.consul/vex-yul-rot-jenkins-1"
     URL[NEXUS,LOG]: "https://logs.fd.io/production/vex-yul-rot-jenkins-1"
     URL[NEXUS,DOC]: "https://docs.fd.io/csit"
     DIR[NEXUS,DOC]: "report/_static/archive"
index 8e1df77..9658492 100644 (file)
@@ -44,7 +44,7 @@
 
   urls:
     URL[JENKINS,CSIT]: "https://jenkins.fd.io/view/csit/job"
-    URL[S3_STORAGE,LOG]: "http://logs.nginx.service.consul/vex-yul-rot-jenkins-1"
+    URL[S3_STORAGE,LOG]: "https://logs.nginx.service.consul/vex-yul-rot-jenkins-1"
     URL[NEXUS,LOG]: "https://logs.fd.io/production/vex-yul-rot-jenkins-1"
     URL[NEXUS,DOC]: "https://docs.fd.io/csit"
     DIR[NEXUS,DOC]: "trending/_static/archive"
index cdcb749..95970a2 100644 (file)
   urls:
     # Urls where the input files are downloaded from
     URL[JENKINS,CSIT]: "https://jenkins.fd.io/view/csit/job"
-    URL[S3_STORAGE,LOG]: "http://logs.nginx.service.consul/vex-yul-rot-jenkins-1"
+    URL[S3_STORAGE,LOG]: "https://logs.nginx.service.consul/vex-yul-rot-jenkins-1"
     URL[NEXUS,LOG]: "https://logs.fd.io/production/vex-yul-rot-jenkins-1"
     URL[NEXUS,DOC]: "https://docs.fd.io/csit"
     DIR[NEXUS,DOC]: "report/_static/archive"