FailedConsole Output

Started by upstream project "buildall-stage_2-merge-master" build number 318
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 c72bc8e972e7fd1cafe7e570e6d0bb416c4440fa
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] properties
[Pipeline] node
Running on osm-cicd-3 in /home/jenkins/workspace/NBI-stage_2-merge_master
[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 c72bc8e972e7fd1cafe7e570e6d0bb416c4440fa (master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f c72bc8e972e7fd1cafe7e570e6d0bb416c4440fa
Commit message: "Fix 2299 - Unable to logout from GUI when NBI uses keystone as backend"
 > git rev-list --no-walk c72bc8e972e7fd1cafe7e570e6d0bb416c4440fa # 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_master/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/master^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision 36a09fe79bef2ceab5ce930c4fc337bf9c0dc54b (refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 36a09fe79bef2ceab5ce930c4fc337bf9c0dc54b
 > git branch -a -v --no-abbrev # timeout=10
 > git branch -D master # timeout=10
 > git checkout -b master 36a09fe79bef2ceab5ce930c4fc337bf9c0dc54b
Commit message: "Update K8s version in install_kubeadm_cluster.sh to 1.28"
 > git rev-list --no-walk 8c2b264d31baba3db57ce53ee2ef40e99f8930c0 # 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_master] Running shell script
+ env
JENKINS_HOME=/var/lib/jenkins
SSH_CLIENT=212.234.161.1 13726 22
USER=jenkins
RUN_CHANGES_DISPLAY_URL=https://osm.etsi.org/jenkins/job/NBI-stage_2-merge/job/master/756/display/redirect?page=changes
GERRIT_PROJECT=osm/NBI
XDG_SESSION_TYPE=tty
SHLVL=0
NODE_LABELS=osm-cicd-3 osm3 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/master/756/
HUDSON_COOKIE=ff738628-355d-405b-91b2-2cfe2eb4d350
JENKINS_SERVER_COOKIE=durable-57f7ccfb627eaca5b674617e197203e9
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus
GERRIT_PATCHSET_REVISION=c72bc8e972e7fd1cafe7e570e6d0bb416c4440fa
WORKSPACE=/home/jenkins/workspace/NBI-stage_2-merge_master
LOGNAME=jenkins
NODE_NAME=osm-cicd-3
GERRIT_BRANCH=master
_=/usr/bin/java
RUN_ARTIFACTS_DISPLAY_URL=https://osm.etsi.org/jenkins/job/NBI-stage_2-merge/job/master/756/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/master/756/display/redirect?page=tests
BUILD_DISPLAY_NAME=#756
PROJECT_URL_PREFIX=https://osm.etsi.org/gerrit
HUDSON_HOME=/var/lib/jenkins
JOB_BASE_NAME=master
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
BUILD_ID=756
XDG_RUNTIME_DIR=/run/user/1001
BUILD_TAG=jenkins-NBI-stage_2-merge-master-756
JENKINS_URL=https://osm.etsi.org/jenkins/
LANG=C.UTF-8
JOB_URL=https://osm.etsi.org/jenkins/job/NBI-stage_2-merge/job/master/
BUILD_NUMBER=756
SHELL=/bin/bash
RUN_DISPLAY_URL=https://osm.etsi.org/jenkins/job/NBI-stage_2-merge/job/master/756/display/redirect
ARTIFACTORY_SERVER=artifactory-osm
GERRIT_REFSPEC=refs/changes/12/14112/2
HUDSON_SERVER_COOKIE=6d3295a483c3e6d5
JOB_DISPLAY_URL=https://osm.etsi.org/jenkins/job/NBI-stage_2-merge/job/master/display/redirect
JOB_NAME=NBI-stage_2-merge/master
TEST_INSTALL=false
PWD=/home/jenkins/workspace/NBI-stage_2-merge_master
SSH_CONNECTION=212.234.161.1 13726 172.21.249.3 22
BRANCH_NAME=master
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Checkout)
[Pipeline] sh
[NBI-stage_2-merge_master] Running shell script
+ git fetch --tags
[Pipeline] sh
[NBI-stage_2-merge_master] Running shell script
+ git fetch origin refs/changes/12/14112/2
From https://osm.etsi.org/gerrit/osm/NBI
 * branch            refs/changes/12/14112/2 -> FETCH_HEAD
[NBI-stage_2-merge_master] Running shell script
[Pipeline] sh
+ git checkout -f c72bc8e972e7fd1cafe7e570e6d0bb416c4440fa
HEAD is now at c72bc8e Fix 2299 - Unable to logout from GUI when NBI uses keystone as backend
[Pipeline] sh
[NBI-stage_2-merge_master] 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_master] Running shell script
+ docker build --build-arg APT_PROXY=http://172.21.1.1:3142 -t osm/nbi-master .
Sending build context to Docker daemon  158.9MB

Step 1/7 : FROM ubuntu:22.04
 ---> e34e831650c1
Step 2/7 : ARG APT_PROXY
 ---> Using cache
 ---> cf43310b571f
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
 ---> 611ef0790e17
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
 ---> 1746e44750df
Step 5/7 : ENV LC_ALL C.UTF-8
 ---> Using cache
 ---> 8fa8ac4d2aa4
Step 6/7 : ENV LANG C.UTF-8
 ---> Using cache
 ---> 99948630be2e
Step 7/7 : RUN DEBIAN_FRONTEND=noninteractive apt-get -y install wget
 ---> Using cache
 ---> 0fda6217a6ea
Successfully built 0fda6217a6ea
Successfully tagged osm/nbi-master:latest
[Pipeline] }
[Pipeline] // stage
[Pipeline] sh
[NBI-stage_2-merge_master] Running shell script
+ id -u
[Pipeline] sh
[NBI-stage_2-merge_master] Running shell script
+ id -g
[Pipeline] withDockerContainer
osm-cicd-3 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_master -v /home/jenkins/workspace/NBI-stage_2-merge_master:/home/jenkins/workspace/NBI-stage_2-merge_master:rw,z -v /home/jenkins/workspace/NBI-stage_2-merge_master@tmp:/home/jenkins/workspace/NBI-stage_2-merge_master@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-master
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Test)
[Pipeline] sh
[NBI-stage_2-merge_master] Running shell script
+ groupadd -o -g 1001 -r jenkins
[Pipeline] sh
[NBI-stage_2-merge_master] Running shell script
+ pwd
+ useradd -o -u 1001 -d /home/jenkins/workspace/NBI-stage_2-merge_master -r -g jenkins jenkins
[Pipeline] sh
[NBI-stage_2-merge_master] Running shell script
+ echo #! /bin/sh
[Pipeline] sh
[NBI-stage_2-merge_master] Running shell script
+ chmod 755 /usr/bin/mesg
[Pipeline] sh
[NBI-stage_2-merge_master] 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='3074745371'
black run-test: commands[0] | black --check --diff osm_nbi/
--- /home/jenkins/workspace/NBI-stage_2-merge_master/osm_nbi/auth.py	2024-01-26 10:00:33.319071+00:00
+++ /home/jenkins/workspace/NBI-stage_2-merge_master/osm_nbi/auth.py	2024-01-26 10:01:00.800937+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_master/osm_nbi/auth.py
--- /home/jenkins/workspace/NBI-stage_2-merge_master/osm_nbi/validation.py	2024-01-26 10:00:33.343073+00:00
+++ /home/jenkins/workspace/NBI-stage_2-merge_master/osm_nbi/validation.py	2024-01-26 10:01:01.440245+00:00
@@ -971,11 +971,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_master/osm_nbi/validation.py
--- /home/jenkins/workspace/NBI-stage_2-merge_master/osm_nbi/nbi.py	2024-01-26 10:00:33.331072+00:00
+++ /home/jenkins/workspace/NBI-stage_2-merge_master/osm_nbi/nbi.py	2024-01-26 10:01:01.563696+00:00
@@ -698,13 +698,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 "
@@ -799,13 +799,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,
@@ -1018,13 +1018,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,
@@ -1174,19 +1174,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])
@@ -1843,13 +1843,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_master/osm_nbi/nbi.py
--- /home/jenkins/workspace/NBI-stage_2-merge_master/osm_nbi/instance_topics.py	2024-01-26 10:00:33.331072+00:00
+++ /home/jenkins/workspace/NBI-stage_2-merge_master/osm_nbi/instance_topics.py	2024-01-26 10:01:02.192400+00:00
@@ -1104,13 +1104,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")
@@ -1454,13 +1454,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
                 )
@@ -1753,20 +1753,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(
@@ -1786,17 +1786,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(
@@ -1955,17 +1955,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)
@@ -2014,23 +2014,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"
@@ -2058,23 +2058,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")
@@ -2090,23 +2090,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
@@ -2369,13 +2369,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_master/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 12.1 seconds
โœ” OK flake8 in 15.267 seconds
โœ” OK safety in 52.775 seconds
โœ” OK cover in 1 minute, 49.839 seconds
โœ” OK pylint in 2 minutes, 0.063 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 fd8032002258126c5f174663f1318fa63c50f6f433527440fa903372e85fa2dc
$ docker rm -f fd8032002258126c5f174663f1318fa63c50f6f433527440fa903372e85fa2dc
[Pipeline] // withDockerContainer
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code 1
Finished: FAILURE