FailedConsole Output

Started by upstream project "buildall-stage_2-merge-v14" build number 216
originally caused by:
 Started by timer
 > git rev-parse --is-inside-work-tree # timeout=10
Setting origin to https://osm.etsi.org/gerrit/osm/NBI.git
 > git config remote.origin.url https://osm.etsi.org/gerrit/osm/NBI.git # timeout=10
Fetching origin...
Fetching upstream changes from origin
 > git --version # timeout=10
 > git config --get remote.origin.url # timeout=10
 > git fetch --tags --progress origin +refs/heads/*:refs/remotes/origin/*
Seen branch in repository origin/bug1511
Seen branch in repository origin/feature5837
Seen branch in repository origin/feature7106
Seen branch in repository origin/feature7928
Seen branch in repository origin/master
Seen branch in repository origin/netslice
Seen branch in repository origin/new-pipeline
Seen branch in repository origin/ng-ro-refactor
Seen branch in repository origin/paas
Seen branch in repository origin/sol006
Seen branch in repository origin/sol006v331
Seen branch in repository origin/v10.0
Seen branch in repository origin/v11.0
Seen branch in repository origin/v12.0
Seen branch in repository origin/v13.0
Seen branch in repository origin/v14.0
Seen branch in repository origin/v15.0
Seen branch in repository origin/v3.1
Seen branch in repository origin/v4.0
Seen branch in repository origin/v5.0
Seen branch in repository origin/v6.0
Seen branch in repository origin/v7.0
Seen branch in repository origin/v8.0
Seen branch in repository origin/v9.0
Seen 24 remote branches
Obtained Jenkinsfile from 03d21e342c9581a7216c950c0f79760101a4f37f
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] properties
[Pipeline] node
Running on osm-cicd-2 in /home/jenkins/workspace/NBI-stage_2-merge_v14.0
[Pipeline] {
[Pipeline] checkout
No credentials specified
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url https://osm.etsi.org/gerrit/osm/NBI.git # timeout=10
Fetching without tags
Fetching upstream changes from https://osm.etsi.org/gerrit/osm/NBI.git
 > git --version # timeout=10
 > git fetch --no-tags --force --progress https://osm.etsi.org/gerrit/osm/NBI.git +refs/heads/*:refs/remotes/origin/*
Checking out Revision 03d21e342c9581a7216c950c0f79760101a4f37f (v14.0)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 03d21e342c9581a7216c950c0f79760101a4f37f
Commit message: "Fix 2299 - Unable to logout from GUI when NBI uses keystone as backend"
 > git rev-list --no-walk 03d21e342c9581a7216c950c0f79760101a4f37f # timeout=10
Cleaning workspace
 > git rev-parse --verify HEAD # timeout=10
Resetting working tree
 > git reset --hard # timeout=10
 > git clean -fdx # timeout=10
[Pipeline] dir
Running in /home/jenkins/workspace/NBI-stage_2-merge_v14.0/devops
[Pipeline] {
[Pipeline] git
No credentials specified
 > git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git config remote.origin.url https://osm.etsi.org/gerrit/osm/devops # timeout=10
Fetching upstream changes from https://osm.etsi.org/gerrit/osm/devops
 > git --version # timeout=10
 > git fetch --tags --force --progress https://osm.etsi.org/gerrit/osm/devops +refs/heads/*:refs/remotes/origin/*
 > git rev-parse refs/remotes/origin/v14.0^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/v14.0^{commit} # timeout=10
Checking out Revision 253d6dfcb6a96fd8e1e76e56c3c64c82b8014a82 (refs/remotes/origin/v14.0)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 253d6dfcb6a96fd8e1e76e56c3c64c82b8014a82
 > git branch -a -v --no-abbrev # timeout=10
 > git branch -D v14.0 # timeout=10
 > git checkout -b v14.0 253d6dfcb6a96fd8e1e76e56c3c64c82b8014a82
Commit message: "Fixes Bug 2321"
 > git rev-list --no-walk 253d6dfcb6a96fd8e1e76e56c3c64c82b8014a82 # timeout=10
[Pipeline] }
[Pipeline] // dir
[Pipeline] load
[Pipeline] { (devops/jenkins/ci-pipelines/ci_stage_2.groovy)
[Pipeline] }
[Pipeline] // load
[Pipeline] echo
do_stage_3= false
[Pipeline] load
[Pipeline] { (devops/jenkins/ci-pipelines/ci_helper.groovy)
[Pipeline] }
[Pipeline] // load
[Pipeline] stage
[Pipeline] { (Prepare)
[Pipeline] sh
[NBI-stage_2-merge_v14.0] Running shell script
+ env
JENKINS_HOME=/var/lib/jenkins
SSH_CLIENT=212.234.161.1 51943 22
USER=jenkins
RUN_CHANGES_DISPLAY_URL=https://osm.etsi.org/jenkins/job/NBI-stage_2-merge/job/v14.0/222/display/redirect?page=changes
GERRIT_PROJECT=osm/NBI
XDG_SESSION_TYPE=tty
SHLVL=0
NODE_LABELS=docker osm-cicd-2 osm2 pipeline stage_2
HUDSON_URL=https://osm.etsi.org/jenkins/
MOTD_SHOWN=pam
OLDPWD=/home/jenkins
HOME=/home/jenkins
BUILD_URL=https://osm.etsi.org/jenkins/job/NBI-stage_2-merge/job/v14.0/222/
HUDSON_COOKIE=d3f8c6c9-c620-4db1-a0ca-9a7994adc99a
JENKINS_SERVER_COOKIE=durable-241ba6fd0082734bde35844c826e87e3
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus
GERRIT_PATCHSET_REVISION=03d21e342c9581a7216c950c0f79760101a4f37f
WORKSPACE=/home/jenkins/workspace/NBI-stage_2-merge_v14.0
LOGNAME=jenkins
NODE_NAME=osm-cicd-2
GERRIT_BRANCH=v14.0
_=/usr/bin/java
RUN_ARTIFACTS_DISPLAY_URL=https://osm.etsi.org/jenkins/job/NBI-stage_2-merge/job/v14.0/222/display/redirect?page=artifacts
XDG_SESSION_CLASS=user
EXECUTOR_NUMBER=0
XDG_SESSION_ID=144
RUN_TESTS_DISPLAY_URL=https://osm.etsi.org/jenkins/job/NBI-stage_2-merge/job/v14.0/222/display/redirect?page=tests
BUILD_DISPLAY_NAME=#222
PROJECT_URL_PREFIX=https://osm.etsi.org/gerrit
HUDSON_HOME=/var/lib/jenkins
JOB_BASE_NAME=v14.0
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
BUILD_ID=222
XDG_RUNTIME_DIR=/run/user/1001
BUILD_TAG=jenkins-NBI-stage_2-merge-v14.0-222
JENKINS_URL=https://osm.etsi.org/jenkins/
LANG=C.UTF-8
JOB_URL=https://osm.etsi.org/jenkins/job/NBI-stage_2-merge/job/v14.0/
BUILD_NUMBER=222
SHELL=/bin/bash
RUN_DISPLAY_URL=https://osm.etsi.org/jenkins/job/NBI-stage_2-merge/job/v14.0/222/display/redirect
ARTIFACTORY_SERVER=artifactory-osm
GERRIT_REFSPEC=refs/changes/32/14132/1
HUDSON_SERVER_COOKIE=6d3295a483c3e6d5
JOB_DISPLAY_URL=https://osm.etsi.org/jenkins/job/NBI-stage_2-merge/job/v14.0/display/redirect
JOB_NAME=NBI-stage_2-merge/v14.0
TEST_INSTALL=false
PWD=/home/jenkins/workspace/NBI-stage_2-merge_v14.0
SSH_CONNECTION=212.234.161.1 51943 172.21.249.2 22
BRANCH_NAME=v14.0
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Checkout)
[Pipeline] sh
[NBI-stage_2-merge_v14.0] Running shell script
+ git fetch --tags
[Pipeline] sh
[NBI-stage_2-merge_v14.0] Running shell script
+ git fetch origin refs/changes/32/14132/1
From https://osm.etsi.org/gerrit/osm/NBI
 * branch            refs/changes/32/14132/1 -> FETCH_HEAD
[Pipeline] sh
[NBI-stage_2-merge_v14.0] Running shell script
+ git checkout -f 03d21e342c9581a7216c950c0f79760101a4f37f
HEAD is now at 03d21e3 Fix 2299 - Unable to logout from GUI when NBI uses keystone as backend
[Pipeline] sh
[NBI-stage_2-merge_v14.0] Running shell script
+ sudo git clean -dfx
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (License Scan)
[Pipeline] echo
skip the scan for merge
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Release Note Check)
[Pipeline] fileExists
[Pipeline] echo
No releasenote check present
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Docker-Build)
[Pipeline] sh
[NBI-stage_2-merge_v14.0] Running shell script
+ docker build --build-arg APT_PROXY=http://172.21.1.1:3142 -t osm/nbi-v14.0 .
Sending build context to Docker daemon  156.6MB

Step 1/7 : FROM ubuntu:22.04
 ---> e34e831650c1
Step 2/7 : ARG APT_PROXY
 ---> Using cache
 ---> 73d0dadb9e1b
Step 3/7 : RUN if [ ! -z $APT_PROXY ] ; then     echo "Acquire::http::Proxy \"$APT_PROXY\";" > /etc/apt/apt.conf.d/proxy.conf ;    echo "Acquire::https::Proxy \"$APT_PROXY\";" >> /etc/apt/apt.conf.d/proxy.conf ;    fi
 ---> Using cache
 ---> dff8f1aede84
Step 4/7 : RUN DEBIAN_FRONTEND=noninteractive apt-get update &&     DEBIAN_FRONTEND=noninteractive apt-get -y install         debhelper         dh-python         git         python3         python3-all         python3-dev         python3-setuptools         python3-pip         tox
 ---> Using cache
 ---> bc870ad57ee3
Step 5/7 : ENV LC_ALL C.UTF-8
 ---> Using cache
 ---> cd1d095cc268
Step 6/7 : ENV LANG C.UTF-8
 ---> Using cache
 ---> 334c9f7c0ab3
Step 7/7 : RUN DEBIAN_FRONTEND=noninteractive apt-get -y install wget
 ---> Using cache
 ---> 53d6fade8178
Successfully built 53d6fade8178
Successfully tagged osm/nbi-v14.0:latest
[Pipeline] }
[Pipeline] // stage
[NBI-stage_2-merge_v14.0] Running shell script
[Pipeline] sh
+ id -u
[Pipeline] sh
[NBI-stage_2-merge_v14.0] Running shell script
+ id -g
[Pipeline] withDockerContainer
osm-cicd-2 does not seem to be running inside a container
$ docker run -t -d -u 1001:1001 -u root -w /home/jenkins/workspace/NBI-stage_2-merge_v14.0 -v /home/jenkins/workspace/NBI-stage_2-merge_v14.0:/home/jenkins/workspace/NBI-stage_2-merge_v14.0:rw,z -v /home/jenkins/workspace/NBI-stage_2-merge_v14.0@tmp:/home/jenkins/workspace/NBI-stage_2-merge_v14.0@tmp:rw,z -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** --entrypoint cat osm/nbi-v14.0
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Test)
[Pipeline] sh
[NBI-stage_2-merge_v14.0] Running shell script
+ groupadd -o -g 1001 -r jenkins
[Pipeline] sh
[NBI-stage_2-merge_v14.0] Running shell script
+ pwd
+ useradd -o -u 1001 -d /home/jenkins/workspace/NBI-stage_2-merge_v14.0 -r -g jenkins jenkins
[Pipeline] sh
[NBI-stage_2-merge_v14.0] Running shell script
+ echo #! /bin/sh
[Pipeline] sh
[NBI-stage_2-merge_v14.0] Running shell script
+ chmod 755 /usr/bin/mesg
[Pipeline] sh
[NBI-stage_2-merge_v14.0] Running shell script
+ runuser jenkins -c devops-stages/stage-test.sh
Launching tox
ERROR: invocation failed (exit code 1), logfile: /tmp/.tox/black/log/black-0.log
================================== log start ===================================
black create: /tmp/.tox/black
black installdeps: black
black installed: black==24.1.0,click==8.1.7,mypy-extensions==1.0.0,packaging==23.2,pathspec==0.12.1,platformdirs==4.1.0,tomli==2.0.1,typing_extensions==4.9.0
black run-test-pre: PYTHONHASHSEED='3540700970'
black run-test: commands[0] | black --check --diff osm_nbi/
--- /home/jenkins/workspace/NBI-stage_2-merge_v14.0/osm_nbi/auth.py	2024-01-27 10:48:33.709123+00:00
+++ /home/jenkins/workspace/NBI-stage_2-merge_v14.0/osm_nbi/auth.py	2024-01-27 10:48:59.044977+00:00
@@ -525,13 +525,13 @@
             return token_info
         except AuthException as e:
             if not isinstance(e, AuthExceptionUnauthorized):
                 if cherrypy.session.get("Authorization"):  # pylint: disable=E1101
                     del cherrypy.session["Authorization"]  # pylint: disable=E1101
-                cherrypy.response.headers[
-                    "WWW-Authenticate"
-                ] = 'Bearer realm="{}"'.format(e)
+                cherrypy.response.headers["WWW-Authenticate"] = (
+                    'Bearer realm="{}"'.format(e)
+                )
             if self.config["authentication"].get("user_not_authorized"):
                 return {
                     "id": "testing-token",
                     "_id": "testing-token",
                     "project_id": self.test_project_id,
would reformat /home/jenkins/workspace/NBI-stage_2-merge_v14.0/osm_nbi/auth.py
--- /home/jenkins/workspace/NBI-stage_2-merge_v14.0/osm_nbi/nbi.py	2024-01-27 10:48:33.725124+00:00
+++ /home/jenkins/workspace/NBI-stage_2-merge_v14.0/osm_nbi/nbi.py	2024-01-27 10:48:59.532416+00:00
@@ -694,13 +694,13 @@
                                 raise NbiException(
                                     "empty file or content", HTTPStatus.BAD_REQUEST
                                 )
                             indata = filecontent.file  # .read()
                             if filecontent.content_type.value:
-                                cherrypy.request.headers[
-                                    "Content-Type"
-                                ] = filecontent.content_type.value
+                                cherrypy.request.headers["Content-Type"] = (
+                                    filecontent.content_type.value
+                                )
                     else:
                         # raise cherrypy.HTTPError(HTTPStatus.Not_Acceptable,
                         #                          "Only 'Content-Type' of type 'application/json' or
                         # 'application/yaml' for input format are available")
                         error_text = "Invalid yaml format "
@@ -795,13 +795,13 @@
             elif "application/yaml" in accept or "*/*" in accept:
                 pass
             elif "application/json" in accept or (
                 cherrypy.response.status and cherrypy.response.status >= 300
             ):
-                cherrypy.response.headers[
-                    "Content-Type"
-                ] = "application/json; charset=utf-8"
+                cherrypy.response.headers["Content-Type"] = (
+                    "application/json; charset=utf-8"
+                )
                 a = json.dumps(data, indent=4) + "\n"
                 return a.encode("utf8")
         cherrypy.response.headers["Content-Type"] = "application/yaml"
         return yaml.safe_dump(
             data,
@@ -1014,13 +1014,13 @@
                 ):
                     http_code_value = cherrypy.response.status = e.http_code.value
                     http_code_name = e.http_code.name
                     cherrypy.log("Exception {}".format(e))
                 else:
-                    http_code_value = (
-                        cherrypy.response.status
-                    ) = HTTPStatus.BAD_REQUEST.value  # INTERNAL_SERVER_ERROR
+                    http_code_value = cherrypy.response.status = (
+                        HTTPStatus.BAD_REQUEST.value
+                    )  # INTERNAL_SERVER_ERROR
                     cherrypy.log("CRITICAL: Exception {}".format(e), traceback=True)
                     http_code_name = HTTPStatus.BAD_REQUEST.name
                 problem_details = {
                     "code": http_code_name,
                     "status": http_code_value,
@@ -1170,19 +1170,19 @@
             for folder in folders:
                 self.engine.fs.file_delete(folder)
             return ",".join(folders) + " folders deleted\n"
         elif args and args[0] == "login":
             if not cherrypy.request.headers.get("Authorization"):
-                cherrypy.response.headers[
-                    "WWW-Authenticate"
-                ] = 'Basic realm="Access to OSM site", charset="UTF-8"'
+                cherrypy.response.headers["WWW-Authenticate"] = (
+                    'Basic realm="Access to OSM site", charset="UTF-8"'
+                )
                 cherrypy.response.status = HTTPStatus.UNAUTHORIZED.value
         elif args and args[0] == "login2":
             if not cherrypy.request.headers.get("Authorization"):
-                cherrypy.response.headers[
-                    "WWW-Authenticate"
-                ] = 'Bearer realm="Access to OSM site"'
+                cherrypy.response.headers["WWW-Authenticate"] = (
+                    'Bearer realm="Access to OSM site"'
+                )
                 cherrypy.response.status = HTTPStatus.UNAUTHORIZED.value
         elif args and args[0] == "sleep":
             sleep_time = 5
             try:
                 sleep_time = int(args[1])
@@ -1832,13 +1832,13 @@
             ):
                 http_code_value = cherrypy.response.status = e.http_code.value
                 http_code_name = e.http_code.name
                 cherrypy.log("Exception {}".format(e))
             else:
-                http_code_value = (
-                    cherrypy.response.status
-                ) = HTTPStatus.BAD_REQUEST.value  # INTERNAL_SERVER_ERROR
+                http_code_value = cherrypy.response.status = (
+                    HTTPStatus.BAD_REQUEST.value
+                )  # INTERNAL_SERVER_ERROR
                 cherrypy.log("CRITICAL: Exception {}".format(e), traceback=True)
                 http_code_name = HTTPStatus.BAD_REQUEST.name
             if hasattr(outdata, "close"):  # is an open file
                 outdata.close()
             error_text = str(e)
would reformat /home/jenkins/workspace/NBI-stage_2-merge_v14.0/osm_nbi/nbi.py
--- /home/jenkins/workspace/NBI-stage_2-merge_v14.0/osm_nbi/validation.py	2024-01-27 10:48:33.737125+00:00
+++ /home/jenkins/workspace/NBI-stage_2-merge_v14.0/osm_nbi/validation.py	2024-01-27 10:49:00.516279+00:00
@@ -951,11 +951,11 @@
 osmrepo_types = {"enum": ["osm"]}
 osmrepo_properties = {
     "name": name_schema,
     "description": description_schema,
     "type": osmrepo_types,
-    "url": description_schema
+    "url": description_schema,
     # "user": string_schema,
     # "password": passwd_schema
 }
 osmrepo_new_schema = {
     "title": "osm repo creation input schema",
would reformat /home/jenkins/workspace/NBI-stage_2-merge_v14.0/osm_nbi/validation.py
--- /home/jenkins/workspace/NBI-stage_2-merge_v14.0/osm_nbi/instance_topics.py	2024-01-27 10:48:33.721124+00:00
+++ /home/jenkins/workspace/NBI-stage_2-merge_v14.0/osm_nbi/instance_topics.py	2024-01-27 10:49:02.320038+00:00
@@ -1091,13 +1091,13 @@
                             lambda vnfp_ag: (
                                 vnfp_ag.get("id") == vdu_affinity_group.get("id")
                             ),
                         )
                         if vnf_params_affinity_group.get("vim-affinity-group-id"):
-                            nsr_affinity_group[
-                                "vim-affinity-group-id"
-                            ] = vnf_params_affinity_group["vim-affinity-group-id"]
+                            nsr_affinity_group["vim-affinity-group-id"] = (
+                                vnf_params_affinity_group["vim-affinity-group-id"]
+                            )
                     affinity_group_ids.append(nsr_affinity_group["id"])
                 vdur["affinity-or-anti-affinity-group-id"] = affinity_group_ids
 
             if vdu_instantiation_level:
                 count = vdu_instantiation_level.get("number-of-instances")
@@ -1440,13 +1440,13 @@
                 vnfd = vnf_member_index_to_vnfd[member_vnf_index]
             else:
                 vnfd = self._get_vnfd_from_vnf_member_index(
                     member_vnf_index, nsr["_id"]
                 )
-                vnf_member_index_to_vnfd[
-                    member_vnf_index
-                ] = vnfd  # add to cache, avoiding a later look for
+                vnf_member_index_to_vnfd[member_vnf_index] = (
+                    vnfd  # add to cache, avoiding a later look for
+                )
             self._check_vnf_instantiation_params(in_vnf, vnfd)
             if in_vnf.get("vimAccountId"):
                 self._check_valid_vim_account(
                     in_vnf["vimAccountId"], vim_accounts, session
                 )
@@ -1739,20 +1739,20 @@
                             if k in (
                                 "ip-address",
                                 "mac-address",
                             ):  # TODO: switch-xxxxx must be inserted
                                 vnfr_update[iface_text + ".{}".format(k)] = v
-                                vnfr_update_rollback[
-                                    iface_text + ".{}".format(k)
-                                ] = vdur_interface.get(v)
+                                vnfr_update_rollback[iface_text + ".{}".format(k)] = (
+                                    vdur_interface.get(v)
+                                )
                         if pdu_interface.get("ip-address"):
                             if vdur_interface.get(
                                 "mgmt-interface"
                             ) or vdur_interface.get("mgmt-vnf"):
-                                vnfr_update_rollback[
-                                    vdu_text + ".ip-address"
-                                ] = vdur.get("ip-address")
+                                vnfr_update_rollback[vdu_text + ".ip-address"] = (
+                                    vdur.get("ip-address")
+                                )
                                 vnfr_update[vdu_text + ".ip-address"] = pdu_interface[
                                     "ip-address"
                                 ]
                             if vdur_interface.get("mgmt-vnf"):
                                 vnfr_update_rollback["ip-address"] = vnfr.get(
@@ -1772,17 +1772,17 @@
                                     "vnf-vld-id": vdur_interface.get("vnf-vld-id"),
                                     "ns-vld-id": vdur_interface.get("ns-vld-id"),
                                 }
                             )
                             if pdu_interface.get("vim-network-id"):
-                                ifaces_forcing_vim_network[-1][
-                                    "vim-network-id"
-                                ] = pdu_interface["vim-network-id"]
+                                ifaces_forcing_vim_network[-1]["vim-network-id"] = (
+                                    pdu_interface["vim-network-id"]
+                                )
                             if pdu_interface.get("vim-network-name"):
-                                ifaces_forcing_vim_network[-1][
-                                    "vim-network-name"
-                                ] = pdu_interface["vim-network-name"]
+                                ifaces_forcing_vim_network[-1]["vim-network-name"] = (
+                                    pdu_interface["vim-network-name"]
+                                )
                         break
 
         return ifaces_forcing_vim_network
 
     def _look_for_k8scluster(
@@ -1941,17 +1941,17 @@
                                 ):
                                     vnfr_update_text = "vdur.{}.interfaces.{}".format(
                                         vdur_index, iface_index
                                     )
                                     step = "Storing info in order to update vnfr"
-                                    vnfr_update[
-                                        vnfr_update_text + ".ip-address"
-                                    ] = increment_ip_mac(
-                                        vld_fixed_ip_connection_point_data[item].get(
-                                            "ip-address"
-                                        ),
-                                        vdur.get("count-index", 0),
+                                    vnfr_update[vnfr_update_text + ".ip-address"] = (
+                                        increment_ip_mac(
+                                            vld_fixed_ip_connection_point_data[
+                                                item
+                                            ].get("ip-address"),
+                                            vdur.get("count-index", 0),
+                                        )
                                     )
                                     vnfr_update[vnfr_update_text + ".fixed-ip"] = True
 
                         step = "updating vnfr at database"
                         self.db.set_one("vnfrs", {"_id": vnfr["_id"]}, vnfr_update)
@@ -2000,23 +2000,23 @@
                             )
                             vnfr_update_text = "vdur.{}.interfaces.{}".format(
                                 vdur_index, iface_index
                             )
                             if iface_inst_param.get("ip-address"):
-                                vnfr_update[
-                                    vnfr_update_text + ".ip-address"
-                                ] = increment_ip_mac(
-                                    iface_inst_param.get("ip-address"),
-                                    vdur.get("count-index", 0),
+                                vnfr_update[vnfr_update_text + ".ip-address"] = (
+                                    increment_ip_mac(
+                                        iface_inst_param.get("ip-address"),
+                                        vdur.get("count-index", 0),
+                                    )
                                 )
                                 vnfr_update[vnfr_update_text + ".fixed-ip"] = True
                             if iface_inst_param.get("mac-address"):
-                                vnfr_update[
-                                    vnfr_update_text + ".mac-address"
-                                ] = increment_ip_mac(
-                                    iface_inst_param.get("mac-address"),
-                                    vdur.get("count-index", 0),
+                                vnfr_update[vnfr_update_text + ".mac-address"] = (
+                                    increment_ip_mac(
+                                        iface_inst_param.get("mac-address"),
+                                        vdur.get("count-index", 0),
+                                    )
                                 )
                                 vnfr_update[vnfr_update_text + ".fixed-mac"] = True
                             if iface_inst_param.get("floating-ip-required"):
                                 vnfr_update[
                                     vnfr_update_text + ".floating-ip-required"
@@ -2044,23 +2044,23 @@
                                             vnfr_update_text + ".ip-address"
                                         ] = increment_ip_mac(
                                             icp_inst_param.get("ip-address"),
                                             vdur.get("count-index", 0),
                                         )
-                                        vnfr_update[
-                                            vnfr_update_text + ".fixed-ip"
-                                        ] = True
+                                        vnfr_update[vnfr_update_text + ".fixed-ip"] = (
+                                            True
+                                        )
                                     if icp_inst_param.get("mac-address"):
                                         vnfr_update[
                                             vnfr_update_text + ".mac-address"
                                         ] = increment_ip_mac(
                                             icp_inst_param.get("mac-address"),
                                             vdur.get("count-index", 0),
                                         )
-                                        vnfr_update[
-                                            vnfr_update_text + ".fixed-mac"
-                                        ] = True
+                                        vnfr_update[vnfr_update_text + ".fixed-mac"] = (
+                                            True
+                                        )
                                     break
             # get ip address from instantiation parameters.vld.vnfd-connection-point-ref
             for vld_inst_param in get_iterable(indata.get("vld")):
                 for vnfcp_inst_param in get_iterable(
                     vld_inst_param.get("vnfd-connection-point-ref")
@@ -2076,23 +2076,23 @@
                             ):
                                 vnfr_update_text = "vdur.{}.interfaces.{}".format(
                                     vdur_index, iface_index
                                 )
                                 if vnfcp_inst_param.get("ip-address"):
-                                    vnfr_update[
-                                        vnfr_update_text + ".ip-address"
-                                    ] = increment_ip_mac(
-                                        vnfcp_inst_param.get("ip-address"),
-                                        vdur.get("count-index", 0),
+                                    vnfr_update[vnfr_update_text + ".ip-address"] = (
+                                        increment_ip_mac(
+                                            vnfcp_inst_param.get("ip-address"),
+                                            vdur.get("count-index", 0),
+                                        )
                                     )
                                     vnfr_update[vnfr_update_text + ".fixed-ip"] = True
                                 if vnfcp_inst_param.get("mac-address"):
-                                    vnfr_update[
-                                        vnfr_update_text + ".mac-address"
-                                    ] = increment_ip_mac(
-                                        vnfcp_inst_param.get("mac-address"),
-                                        vdur.get("count-index", 0),
+                                    vnfr_update[vnfr_update_text + ".mac-address"] = (
+                                        increment_ip_mac(
+                                            vnfcp_inst_param.get("mac-address"),
+                                            vdur.get("count-index", 0),
+                                        )
                                     )
                                     vnfr_update[vnfr_update_text + ".fixed-mac"] = True
                                 break
 
             vnfr_update["vim-account-id"] = vim_account
@@ -2355,13 +2355,13 @@
             self.format_on_new(
                 nslcmop_desc, session["project_id"], make_public=session["public"]
             )
             if indata.get("placement-engine"):
                 # Save valid vim accounts in lcm operation descriptor
-                nslcmop_desc["operationParams"][
-                    "validVimAccounts"
-                ] = self._get_enabled_vims(session)
+                nslcmop_desc["operationParams"]["validVimAccounts"] = (
+                    self._get_enabled_vims(session)
+                )
             self.db.create("nslcmops", nslcmop_desc)
             rollback.append({"topic": "nslcmops", "_id": _id})
             if not slice_object:
                 self.msg.write("ns", operation, nslcmop_desc)
             return _id, None
would reformat /home/jenkins/workspace/NBI-stage_2-merge_v14.0/osm_nbi/instance_topics.py

Oh no! ๐Ÿ’ฅ ๐Ÿ’” ๐Ÿ’ฅ
4 files would be reformatted, 30 files would be left unchanged.
ERROR: InvocationError for command /tmp/.tox/black/bin/black --check --diff osm_nbi/ (exited with code 1)

=================================== log end ====================================
โœ– FAIL black in 13.186 seconds
โœ” OK flake8 in 13.801 seconds
โœ” OK safety in 46.511 seconds
โœ” OK cover in 1 minute, 37.19 seconds
โœ” OK pylint in 1 minute, 49.531 seconds
___________________________________ summary ____________________________________
ERROR:   black: parallel child exit code 1
  cover: commands succeeded
  flake8: commands succeeded
  pylint: commands succeeded
  safety: commands succeeded
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
$ docker stop --time=1 5d47818cc1419f0084e0df00fa35396b489e3bfceffaea40058faa4353925a0e
$ docker rm -f 5d47818cc1419f0084e0df00fa35396b489e3bfceffaea40058faa4353925a0e
[Pipeline] // withDockerContainer
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code 1
Finished: FAILURE