FailedConsole Output

Started by upstream project "osmclient-stage_1" build number 1487
originally caused by:
 Triggered by Gerrit: https://osm.etsi.org/gerrit/14329
 > git rev-parse --is-inside-work-tree # timeout=10
Setting origin to https://osm.etsi.org/gerrit/osm/osmclient.git
 > git config remote.origin.url https://osm.etsi.org/gerrit/osm/osmclient.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 --force --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/ng-ro-refactor
Seen branch in repository origin/paas
Seen branch in repository origin/rift300
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/v2.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 25 remote branches
Obtained Jenkinsfile from c0420cf86aaed737f59666516dd9e4de5c5db16c
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] properties
[Pipeline] node
Still waiting to schedule task
Waiting for next available executor on ‘stage_2’
Running on osm-cicd-3 in /home/jenkins/workspace/osmclient-stage_2_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/osmclient.git # timeout=10
Fetching without tags
Fetching upstream changes from https://osm.etsi.org/gerrit/osm/osmclient.git
 > git --version # timeout=10
 > git fetch --no-tags --force --progress https://osm.etsi.org/gerrit/osm/osmclient.git +refs/heads/*:refs/remotes/origin/*
Checking out Revision c0420cf86aaed737f59666516dd9e4de5c5db16c (master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f c0420cf86aaed737f59666516dd9e4de5c5db16c
Commit message: "feature: helm charts repos with certs"
 > git rev-list --no-walk c0420cf86aaed737f59666516dd9e4de5c5db16c # timeout=10
[Pipeline] dir
Running in /home/jenkins/workspace/osmclient-stage_2_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 9c253bda06915c374c7e38144976923ee67787d5 (refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 9c253bda06915c374c7e38144976923ee67787d5
 > git branch -a -v --no-abbrev # timeout=10
 > git branch -D master # timeout=10
 > git checkout -b master 9c253bda06915c374c7e38144976923ee67787d5
Commit message: "Fix installation of Kubernetes metrics server by updating the URL"
 > git rev-list --no-walk 9c253bda06915c374c7e38144976923ee67787d5 # timeout=10
[Pipeline] }
[Pipeline] // dir
[Pipeline] load
[Pipeline] { (devops/jenkins/ci-pipelines/ci_stage_2.groovy)
[Pipeline] }
[Pipeline] // load
[Pipeline] echo
do_stage_3= true
[Pipeline] load
[Pipeline] { (devops/jenkins/ci-pipelines/ci_helper.groovy)
[Pipeline] }
[Pipeline] // load
[Pipeline] stage
[Pipeline] { (Prepare)
[Pipeline] sh
[osmclient-stage_2_master] Running shell script
+ env
JENKINS_HOME=/var/lib/jenkins
SSH_CLIENT=212.234.161.1 18265 22
USER=jenkins
RUN_CHANGES_DISPLAY_URL=https://osm.etsi.org/jenkins/job/osmclient-stage_2/job/master/1325/display/redirect?page=changes
GERRIT_PROJECT=osm/osmclient
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/osmclient-stage_2/job/master/1325/
HUDSON_COOKIE=e4e19f6b-59ed-4bc1-b3c8-26a7bc744f3b
JENKINS_SERVER_COOKIE=durable-22913e950aac940ff834c68983195f8d
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus
GERRIT_PATCHSET_REVISION=9aef59e476bb786f7e69267920aec923f8570580
WORKSPACE=/home/jenkins/workspace/osmclient-stage_2_master
LOGNAME=jenkins
NODE_NAME=osm-cicd-3
GERRIT_BRANCH=master
_=/usr/bin/java
RUN_ARTIFACTS_DISPLAY_URL=https://osm.etsi.org/jenkins/job/osmclient-stage_2/job/master/1325/display/redirect?page=artifacts
XDG_SESSION_CLASS=user
EXECUTOR_NUMBER=4
XDG_SESSION_ID=4194
RUN_TESTS_DISPLAY_URL=https://osm.etsi.org/jenkins/job/osmclient-stage_2/job/master/1325/display/redirect?page=tests
BUILD_DISPLAY_NAME=#1325
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=1325
XDG_RUNTIME_DIR=/run/user/1001
BUILD_TAG=jenkins-osmclient-stage_2-master-1325
JENKINS_URL=https://osm.etsi.org/jenkins/
LANG=C.UTF-8
JOB_URL=https://osm.etsi.org/jenkins/job/osmclient-stage_2/job/master/
BUILD_NUMBER=1325
SHELL=/bin/bash
RUN_DISPLAY_URL=https://osm.etsi.org/jenkins/job/osmclient-stage_2/job/master/1325/display/redirect
ARTIFACTORY_SERVER=artifactory-osm
GERRIT_REFSPEC=refs/changes/29/14329/4
HUDSON_SERVER_COOKIE=6d3295a483c3e6d5
JOB_DISPLAY_URL=https://osm.etsi.org/jenkins/job/osmclient-stage_2/job/master/display/redirect
JOB_NAME=osmclient-stage_2/master
TEST_INSTALL=true
PWD=/home/jenkins/workspace/osmclient-stage_2_master
SSH_CONNECTION=212.234.161.1 18265 172.21.249.3 22
BRANCH_NAME=master
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Checkout)
[Pipeline] sh
[osmclient-stage_2_master] Running shell script
+ git fetch --tags
[Pipeline] sh
[osmclient-stage_2_master] Running shell script
+ git fetch origin refs/changes/29/14329/4
From https://osm.etsi.org/gerrit/osm/osmclient
 * branch            refs/changes/29/14329/4 -> FETCH_HEAD
[Pipeline] sh
[osmclient-stage_2_master] Running shell script
+ git checkout -f 9aef59e476bb786f7e69267920aec923f8570580
Previous HEAD position was c0420cf feature: helm charts repos with certs
HEAD is now at 9aef59e Feature 11025: Advanced cluster mgmt
[Pipeline] sh
[osmclient-stage_2_master] Running shell script
+ sudo git clean -dfx
Removing .cache/
Removing .coverage
Removing .eggs/
Removing .local/
Removing .safety/
Removing .wget-hsts
Removing build.env
Removing changelog/
Removing cover/
Removing coverage.xml
Removing deb_dist/
Removing dist/
Removing osmclient-11.0.0rc1.post72+g14d776b.tar.gz
Removing osmclient.egg-info/
Removing pool/
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (License Scan)
[Pipeline] sh
[osmclient-stage_2_master] Running shell script
+ devops/tools/license_scan.sh
osmclient/cli_commands/app_profile.py is text
osmclient/cli_commands/app_profile.py Apache-2.0
osmclient/cli_commands/infra_config_profile.py is text
osmclient/cli_commands/infra_config_profile.py Apache-2.0
osmclient/cli_commands/infra_controller_profile.py is text
osmclient/cli_commands/infra_controller_profile.py Apache-2.0
osmclient/cli_commands/ksu.py is text
osmclient/cli_commands/ksu.py Apache-2.0
osmclient/cli_commands/ksu_package.py is text
osmclient/cli_commands/ksu_package.py Apache-2.0
osmclient/cli_commands/ns.py is text
osmclient/cli_commands/ns.py Apache-2.0
osmclient/cli_commands/oka.py is text
osmclient/cli_commands/oka.py Apache-2.0
osmclient/cli_commands/profiles.py is text
osmclient/cli_commands/profiles.py Apache-2.0
osmclient/cli_commands/resource_profile.py is text
osmclient/cli_commands/resource_profile.py Apache-2.0
osmclient/scripts/osm.py is text
osmclient/scripts/osm.py Apache-2.0
osmclient/sol005/app_profile.py is text
osmclient/sol005/app_profile.py Apache-2.0
osmclient/sol005/client.py is text
osmclient/sol005/client.py Apache-2.0
osmclient/sol005/infra_config_profile.py is text
osmclient/sol005/infra_config_profile.py Apache-2.0
osmclient/sol005/infra_controller_profile.py is text
osmclient/sol005/infra_controller_profile.py Apache-2.0
osmclient/sol005/ksu.py is text
osmclient/sol005/ksu.py Apache-2.0
osmclient/sol005/ksu_package.py is text
osmclient/sol005/ksu_package.py Apache-2.0
osmclient/sol005/oka.py is text
osmclient/sol005/oka.py Apache-2.0
osmclient/sol005/osm_api_object.py is text
osmclient/sol005/osm_api_object.py Apache-2.0
osmclient/sol005/resource_profile.py is text
osmclient/sol005/resource_profile.py Apache-2.0
[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
[osmclient-stage_2_master] Running shell script
+ docker build --build-arg APT_PROXY=http://172.21.1.1:3142 -t osm/osmclient-master .
Sending build context to Docker daemon  153.8MB

Step 1/7 : FROM ubuntu:22.04
 ---> 67c845845b7d
Step 2/7 : ARG APT_PROXY
 ---> Using cache
 ---> 9ed390ab8cf5
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
 ---> a648025efc3d
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
 ---> 0bc184d111cb
Step 5/7 : RUN DEBIAN_FRONTEND=noninteractive apt-get -y install     wget
 ---> Running in b8aa0ac5440c
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  wget
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 367 kB of archives.
After this operation, 1008 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu jammy/main amd64 wget amd64 1.21.2-2ubuntu1 [367 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 367 kB in 0s (13.5 MB/s)
Selecting previously unselected package wget.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 19743 files and directories currently installed.)
Preparing to unpack .../wget_1.21.2-2ubuntu1_amd64.deb ...
Unpacking wget (1.21.2-2ubuntu1) ...
Setting up wget (1.21.2-2ubuntu1) ...
Processing triggers for man-db (2.10.2-1) ...
Removing intermediate container b8aa0ac5440c
 ---> 055ded9664e8
Step 6/7 : ENV LC_ALL C.UTF-8
 ---> Running in f38bbb934edd
Removing intermediate container f38bbb934edd
 ---> 82580e0e0b49
Step 7/7 : ENV LANG C.UTF-8
 ---> Running in bd5d31e83e92
Removing intermediate container bd5d31e83e92
 ---> 7fdd6b377837
Successfully built 7fdd6b377837
Successfully tagged osm/osmclient-master:latest
[Pipeline] }
[Pipeline] // stage
[Pipeline] sh
[osmclient-stage_2_master] Running shell script
+ id -u
[Pipeline] sh
[osmclient-stage_2_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/osmclient-stage_2_master -v /home/jenkins/workspace/osmclient-stage_2_master:/home/jenkins/workspace/osmclient-stage_2_master:rw,z -v /home/jenkins/workspace/osmclient-stage_2_master@tmp:/home/jenkins/workspace/osmclient-stage_2_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/osmclient-master
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Test)
[Pipeline] sh
[osmclient-stage_2_master] Running shell script
+ groupadd -o -g 1001 -r jenkins
[Pipeline] sh
[osmclient-stage_2_master] Running shell script
+ pwd
+ useradd -o -u 1001 -d /home/jenkins/workspace/osmclient-stage_2_master -r -g jenkins jenkins
[Pipeline] sh
[osmclient-stage_2_master] Running shell script
+ echo #! /bin/sh
[Pipeline] sh
[osmclient-stage_2_master] Running shell script
+ chmod 755 /usr/bin/mesg
[Pipeline] sh
[osmclient-stage_2_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==24.1.1
black installed: black==24.1.1,click==8.1.7,mypy-extensions==1.0.0,packaging==24.1,pathspec==0.12.1,platformdirs==4.2.2,tomli==2.0.1,typing_extensions==4.12.2
black run-test-pre: PYTHONHASHSEED='2334714167'
black run-test: commands[0] | black --check --diff osmclient/
--- /home/jenkins/workspace/osmclient-stage_2_master/osmclient/cli_commands/infra_controller_profile.py	2024-06-19 09:03:41.602094+00:00
+++ /home/jenkins/workspace/osmclient-stage_2_master/osmclient/cli_commands/infra_controller_profile.py	2024-06-19 09:04:31.330936+00:00
@@ -21,11 +21,14 @@
 import logging
 
 logger = logging.getLogger("osmclient")
 
 
-@click.command(name="infra-controller-profile-create", short_help="creates an Infra Controller Profile")
+@click.command(
+    name="infra-controller-profile-create",
+    short_help="creates an Infra Controller Profile",
+)
 @click.argument("name")
 @click.option("--description", default=None, help="human readable description")
 @click.pass_context
 def infra_controller_profile_create(ctx, name, description, **kwargs):
     """creates an Infra Controller Profile
@@ -39,11 +42,14 @@
     infra_controller_profile["description"] = description
     infra_controller_profile["default"] = False
     ctx.obj.infra_controller_profile.create(name, content_dict=infra_controller_profile)
 
 
-@click.command(name="infra-controller-profile-delete", short_help="deletes an Infra Controller Profile")
+@click.command(
+    name="infra-controller-profile-delete",
+    short_help="deletes an Infra Controller Profile",
+)
 @click.argument("name")
 @click.option(
     "--force", is_flag=True, help="forces the deletion from the DB (not recommended)"
 )
 @click.pass_context
@@ -98,11 +104,14 @@
 
     table.align = "l"
     print(table)
 
 
-@click.command(name="infra-controller-profile-update", short_help="updates an Infra Controller Profile")
+@click.command(
+    name="infra-controller-profile-update",
+    short_help="updates an Infra Controller Profile",
+)
 @click.argument("name")
 @click.option("--newname", help="New name for the Infra Controller Profile")
 @click.option("--description", help="human readable description")
 @click.pass_context
 def infra_controller_profile_update(ctx, name, newname, description, **kwargs):
would reformat /home/jenkins/workspace/osmclient-stage_2_master/osmclient/cli_commands/infra_controller_profile.py
--- /home/jenkins/workspace/osmclient-stage_2_master/osmclient/cli_commands/resource_profile.py	2024-06-19 09:03:41.642098+00:00
+++ /home/jenkins/workspace/osmclient-stage_2_master/osmclient/cli_commands/resource_profile.py	2024-06-19 09:04:31.439262+00:00
@@ -21,11 +21,13 @@
 import logging
 
 logger = logging.getLogger("osmclient")
 
 
-@click.command(name="resource-profile-create", short_help="creates an Resource Profile to OSM")
+@click.command(
+    name="resource-profile-create", short_help="creates an Resource Profile to OSM"
+)
 @click.argument("name")
 @click.option("--description", default=None, help="human readable description")
 @click.pass_context
 def resource_profile_create(ctx, name, description, **kwargs):
     """creates an Resource Profile to OSM
would reformat /home/jenkins/workspace/osmclient-stage_2_master/osmclient/cli_commands/resource_profile.py
--- /home/jenkins/workspace/osmclient-stage_2_master/osmclient/cli_commands/oka.py	2024-06-19 09:03:41.642098+00:00
+++ /home/jenkins/workspace/osmclient-stage_2_master/osmclient/cli_commands/oka.py	2024-06-19 09:04:31.443335+00:00
@@ -21,11 +21,13 @@
 import logging
 
 logger = logging.getLogger("osmclient")
 
 
-@click.command(name="oka-add", short_help="adds an OSM Kubernetes Application (OKA) to OSM")
+@click.command(
+    name="oka-add", short_help="adds an OSM Kubernetes Application (OKA) to OSM"
+)
 @click.argument("name")
 @click.argument("pkg_folder")
 @click.pass_context
 def oka_add(ctx, name, pkg_folder):
     """adds an OKA to OSM
@@ -37,11 +39,13 @@
     # TODO: create a targz file from the folder
     filename = pkg_folder
     ctx.obj.oka.create(name, filename)
 
 
-@click.command(name="oka-delete", short_help="deletes an OSM Kubernetes Application (OKA)")
+@click.command(
+    name="oka-delete", short_help="deletes an OSM Kubernetes Application (OKA)"
+)
 @click.argument("name")
 @click.option(
     "--force", is_flag=True, help="forces the deletion from the DB (not recommended)"
 )
 @click.pass_context
would reformat /home/jenkins/workspace/osmclient-stage_2_master/osmclient/cli_commands/oka.py
--- /home/jenkins/workspace/osmclient-stage_2_master/osmclient/cli_commands/infra_config_profile.py	2024-06-19 09:03:41.602094+00:00
+++ /home/jenkins/workspace/osmclient-stage_2_master/osmclient/cli_commands/infra_config_profile.py	2024-06-19 09:04:31.463207+00:00
@@ -21,11 +21,13 @@
 import logging
 
 logger = logging.getLogger("osmclient")
 
 
-@click.command(name="infra-config-profile-create", short_help="creates an Infra Config Profile")
+@click.command(
+    name="infra-config-profile-create", short_help="creates an Infra Config Profile"
+)
 @click.argument("name")
 @click.option("--description", default=None, help="human readable description")
 @click.pass_context
 def infra_config_profile_create(ctx, name, description, **kwargs):
     """creates an Infra Config Profile
@@ -39,11 +41,13 @@
     infra_config_profile["description"] = description
     infra_config_profile["default"] = False
     ctx.obj.infra_config_profile.create(name, content_dict=infra_config_profile)
 
 
-@click.command(name="infra-config-profile-delete", short_help="deletes an Infra Config Profile")
+@click.command(
+    name="infra-config-profile-delete", short_help="deletes an Infra Config Profile"
+)
 @click.argument("name")
 @click.option(
     "--force", is_flag=True, help="forces the deletion from the DB (not recommended)"
 )
 @click.pass_context
@@ -98,11 +102,13 @@
 
     table.align = "l"
     print(table)
 
 
-@click.command(name="infra-config-profile-update", short_help="updates an Infra Config Profile")
+@click.command(
+    name="infra-config-profile-update", short_help="updates an Infra Config Profile"
+)
 @click.argument("name")
 @click.option("--newname", help="New name for the Infra Config Profile")
 @click.option("--description", help="human readable description")
 @click.pass_context
 def infra_config_profile_update(ctx, name, newname, description, **kwargs):
would reformat /home/jenkins/workspace/osmclient-stage_2_master/osmclient/cli_commands/infra_config_profile.py
--- /home/jenkins/workspace/osmclient-stage_2_master/osmclient/sol005/client.py	2024-06-19 09:03:41.642098+00:00
+++ /home/jenkins/workspace/osmclient-stage_2_master/osmclient/sol005/client.py	2024-06-19 09:04:31.883723+00:00
@@ -106,14 +106,20 @@
         self.package_tool = package_tool.PackageTool(client=self)
         self.subscription = subscription.Subscription(self._http_client, client=self)
         self.ksu = ksu.KSU(self._http_client, client=self)
         self.ksu_package = ksu_package.KSUPackage(self._http_client, client=self)
         self.oka = oka.OKA(self._http_client, client=self)
-        self.infra_controller_profile = infra_controller_profile.InfraControllerProfile(self._http_client, client=self)
-        self.infra_config_profile = infra_config_profile.InfraConfigProfile(self._http_client, client=self)
+        self.infra_controller_profile = infra_controller_profile.InfraControllerProfile(
+            self._http_client, client=self
+        )
+        self.infra_config_profile = infra_config_profile.InfraConfigProfile(
+            self._http_client, client=self
+        )
         self.app_profile = app_profile.AppProfile(self._http_client, client=self)
-        self.resource_profile = resource_profile.ResourceProfile(self._http_client, client=self)
+        self.resource_profile = resource_profile.ResourceProfile(
+            self._http_client, client=self
+        )
         """
         self.vca = vca.Vca(http_client, client=self, **kwargs)
         self.utils = utils.Utils(http_client, **kwargs)
         """
 
would reformat /home/jenkins/workspace/osmclient-stage_2_master/osmclient/sol005/client.py

Oh no! 💥 💔 💥
5 files would be reformatted, 77 files would be left unchanged.
ERROR: InvocationError for command /tmp/.tox/black/bin/black --check --diff osmclient/ (exited with code 1)

=================================== log end ====================================
✖ FAIL black in 9.38 seconds
ERROR: invocation failed (exit code 1), logfile: /tmp/.tox/flake8/log/flake8-0.log
================================== log start ===================================
flake8 create: /tmp/.tox/flake8
flake8 installdeps: flake8==7.0.0
flake8 develop-inst: /home/jenkins/workspace/osmclient-stage_2_master
flake8 installed: flake8==7.0.0,mccabe==0.7.0,-e git+https://osm.etsi.org/gerrit/osm/osmclient.git@9aef59e476bb786f7e69267920aec923f8570580#egg=osmclient,pycodestyle==2.11.1,pyflakes==3.2.0
flake8 run-test-pre: PYTHONHASHSEED='258665260'
flake8 run-test: commands[0] | flake8 osmclient/ setup.py
osmclient/scripts/osm.py:19:1: F401 'osmclient.cli_commands.ksu_package' imported but unused
from osmclient.cli_commands import (
^
ERROR: InvocationError for command /tmp/.tox/flake8/bin/flake8 osmclient/ setup.py (exited with code 1)

=================================== log end ====================================
✖ FAIL flake8 in 12.177 seconds
✔ OK safety in 34.094 seconds
safety create: /tmp/.tox/safety
safety installdeps: -r/home/jenkins/workspace/osmclient-stage_2_master/requirements.txt, safety
safety develop-inst: /home/jenkins/workspace/osmclient-stage_2_master
safety installed: annotated-types==0.7.0,Authlib==1.3.1,certifi==2023.7.22,cffi==1.16.0,charset-normalizer==3.2.0,click==8.1.7,cryptography==42.0.8,dparse==0.6.4b0,idna==3.4,Jinja2==3.1.2,jsonpath-ng==1.6.0,markdown-it-py==3.0.0,MarkupSafe==2.1.3,marshmallow==3.21.3,mdurl==0.1.2,-e git+https://osm.etsi.org/gerrit/osm/osmclient.git@9aef59e476bb786f7e69267920aec923f8570580#egg=osmclient,packaging==23.1,ply==3.11,prettytable==3.9.0,pycparser==2.22,pydantic==2.7.4,pydantic_core==2.18.4,Pygments==2.18.0,python-magic==0.4.27,PyYAML==6.0.1,requests==2.31.0,rich==13.7.1,ruamel.yaml==0.18.6,ruamel.yaml.clib==0.2.8,safety==3.2.3,safety-schemas==0.0.2,shellingham==1.5.4,tomli==2.0.1,typer==0.12.3,typing_extensions==4.12.2,urllib3==2.0.5,verboselogs==1.7,wcwidth==0.2.6
safety run-test-pre: PYTHONHASHSEED='4274773158'
safety run-test: commands[0] | - safety check --full-report
+==============================================================================+

                               /$$$$$$            /$$
                              /$$__  $$          | $$
           /$$$$$$$  /$$$$$$ | $$  \__//$$$$$$  /$$$$$$   /$$   /$$
          /$$_____/ |____  $$| $$$$   /$$__  $$|_  $$_/  | $$  | $$
         |  $$$$$$   /$$$$$$$| $$_/  | $$$$$$$$  | $$    | $$  | $$
          \____  $$ /$$__  $$| $$    | $$_____/  | $$ /$$| $$  | $$
          /$$$$$$$/|  $$$$$$$| $$    |  $$$$$$$  |  $$$$/|  $$$$$$$
         |_______/  \_______/|__/     \_______/   \___/   \____  $$
                                                          /$$  | $$
                                                         |  $$$$$$/
  by safetycli.com                                        \______/

+==============================================================================+

 REPORT 

  Safety is using PyUp's free open-source vulnerability database. This
data is 30 days old and limited. 
  For real-time enhanced vulnerability data, fix recommendations, severity
reporting, cybersecurity support, team and project policy management and more
sign up at https://pyup.io or email sales@pyup.io

  Safety v3.2.3 is scanning for Vulnerabilities...
  Scanning dependencies in your environment:

  -> /usr/lib/python3.10/lib-dynload
  -> /usr/lib/python310.zip
  -> /tmp/.tox/safety/bin
  -> /usr/lib/python3.10
  -> /tmp/.tox/safety/lib/python3.10/site-packages
  -> /home/jenkins/workspace/osmclient-stage_2_master

  Using open-source vulnerability database
  Found and scanned 41 packages
  Timestamp 2024-06-19 09:04:56
  6 vulnerabilities reported
  0 vulnerabilities ignored

+==============================================================================+
 VULNERABILITIES REPORTED 
+==============================================================================+

-> Vulnerability found in wheel version 0.37.1
   Vulnerability ID: 51499
   Affected spec: <0.38.1
   ADVISORY: Wheel 0.38.1 includes a fix for CVE-2022-40898: An issue
   discovered in Python Packaging Authority (PyPA) Wheel 0.37.1 and earlier
   allows remote attackers to cause a denial of service via attacker
   controlled input to wheel cli.https://pyup.io/posts/pyup-discovers-redos-
   vulnerabilities-in-top-python-packages
   CVE-2022-40898
   For more information about this vulnerability, visit
   https://data.safetycli.com/v/51499/97c
   To ignore this vulnerability, use PyUp vulnerability id 51499 in safety’s
   ignore command-line argument or add the ignore to your safety policy file.


-> Vulnerability found in urllib3 version 2.0.5
   Vulnerability ID: 61893
   Affected spec: >=2.0.0a1,<2.0.7
   ADVISORY: Urllib3 1.26.18 and 2.0.7 include a fix for
   CVE-2023-45803: Request body not stripped after redirect from 303 status
   changes request method to GET.https://github.com/urllib3/urllib3/security/
   advisories/GHSA-g4mx-q9vg-27p4
   CVE-2023-45803
   For more information about this vulnerability, visit
   https://data.safetycli.com/v/61893/97c
   To ignore this vulnerability, use PyUp vulnerability id 61893 in safety’s
   ignore command-line argument or add the ignore to your safety policy file.


-> Vulnerability found in pip version 22.0.2
   Vulnerability ID: 62044
   Affected spec: <23.3
   ADVISORY: Affected versions of Pip are vulnerable to Command
   Injection. When installing a package from a Mercurial VCS URL (ie "pip
   install hg+...") with pip prior to v23.3, the specified Mercurial revision
   could be used to inject arbitrary configuration options to the "hg clone"
   call (ie "--config"). Controlling the Mercurial configuration can modify
   how and which repository is installed. This vulnerability does not affect
   users who aren't installing from Mercurial.
   CVE-2023-5752
   For more information about this vulnerability, visit
   https://data.safetycli.com/v/62044/97c
   To ignore this vulnerability, use PyUp vulnerability id 62044 in safety’s
   ignore command-line argument or add the ignore to your safety policy file.


-> Vulnerability found in idna version 3.4
   Vulnerability ID: 67895
   Affected spec: <3.7
   ADVISORY: CVE-2024-3651 impacts the idna.encode() function, where
   a specially crafted argument could lead to significant resource
   consumption, causing a denial-of-service. In version 3.7, this function
   has been updated to reject such inputs efficiently, minimizing resource
   use. A practical workaround involves enforcing a maximum domain name
   length of 253 characters before encoding, as the vulnerability is
   triggered by unusually large inputs that normal operations wouldn't
   encounter.
   CVE-2024-3651
   For more information about this vulnerability, visit
   https://data.safetycli.com/v/67895/97c
   To ignore this vulnerability, use PyUp vulnerability id 67895 in safety’s
   ignore command-line argument or add the ignore to your safety policy file.


-> Vulnerability found in jinja2 version 3.1.2
   Vulnerability ID: 70612
   Affected spec: >=0
   ADVISORY: In Jinja2, the from_string function is prone to Server
   Side Template Injection (SSTI) where it takes the "source" parameter as a
   template object, renders it, and then returns it. The attacker can exploit
   it with {{INJECTION COMMANDS}} in a URI. NOTE: The maintainer and multiple
   third parties believe that this vulnerability isn't valid because users
   shouldn't use untrusted templates without sandboxing.
   CVE-2019-8341
   For more information about this vulnerability, visit
   https://data.safetycli.com/v/70612/97c
   To ignore this vulnerability, use PyUp vulnerability id 70612 in safety’s
   ignore command-line argument or add the ignore to your safety policy file.


-> Vulnerability found in jinja2 version 3.1.2
   Vulnerability ID: 64227
   Affected spec: <3.1.3
   ADVISORY: Jinja2 before 3.1.3 is affected by a Cross-Site
   Scripting vulnerability. Special placeholders in the template allow
   writing code similar to Python syntax. It is possible to inject arbitrary
   HTML attributes into the rendered HTML template. The Jinja 'xmlattr'
   filter can be abused to inject arbitrary HTML attribute keys and values,
   bypassing the auto escaping mechanism and potentially leading to XSS. It
   may also be possible to bypass attribute validation checks if they are
   blacklist-based.
   CVE-2024-22195
   For more information about this vulnerability, visit
   https://data.safetycli.com/v/64227/97c
   To ignore this vulnerability, use PyUp vulnerability id 64227 in safety’s
   ignore command-line argument or add the ignore to your safety policy file.


+==============================================================================+
   REMEDIATIONS

  6 vulnerabilities were reported in 5 packages. For detailed remediation & 
  fix recommendations, upgrade to a commercial license. 

+==============================================================================+

 Scan was completed. 6 vulnerabilities were reported. 

+==============================================================================+

  Safety is using PyUp's free open-source vulnerability database. This
data is 30 days old and limited. 
  For real-time enhanced vulnerability data, fix recommendations, severity
reporting, cybersecurity support, team and project policy management and more
sign up at https://pyup.io or email sales@pyup.io

+==============================================================================+

✔ OK cover in 1 minute, 18.449 seconds
cover create: /tmp/.tox/cover
cover installdeps: -r/home/jenkins/workspace/osmclient-stage_2_master/requirements.txt, -r/home/jenkins/workspace/osmclient-stage_2_master/requirements-dev.txt, -r/home/jenkins/workspace/osmclient-stage_2_master/requirements-test.txt
cover develop-inst: /home/jenkins/workspace/osmclient-stage_2_master
cover installed: certifi==2023.7.22,charset-normalizer==3.2.0,click==8.1.7,coverage==7.3.1,enum34==1.1.10,idna==3.4,Jinja2==3.1.2,jsonpath-ng==1.6.0,lxml==5.2.2,MarkupSafe==2.1.3,mock==5.1.0,nose2==0.13.0,osm-im @ git+https://osm.etsi.org/gerrit/osm/IM.git@90ffed24477703d8b77f8805c567cdaba0798ea6,-e git+https://osm.etsi.org/gerrit/osm/osmclient.git@9aef59e476bb786f7e69267920aec923f8570580#egg=osmclient,packaging==23.1,ply==3.11,prettytable==3.9.0,pyang==2.5.3,pyangbind==0.8.3.post1,python-magic==0.4.27,PyYAML==6.0.1,regex==2024.5.15,requests==2.31.0,six==1.16.0,urllib3==2.0.5,verboselogs==1.7,wcwidth==0.2.6
cover run-test-pre: PYTHONHASHSEED='1677650338'
cover run-test: commands[0] | sh -c 'rm -f nosetests.xml'
cover run-test: commands[1] | coverage erase
cover run-test: commands[2] | nose2 -C --coverage osmclient
....................................
----------------------------------------------------------------------
Ran 36 tests in 10.422s

OK
Name                                                 Stmts   Miss  Cover
------------------------------------------------------------------------
osmclient/__init__.py                                    0      0   100%
osmclient/cli_commands/__init__.py                       0      0   100%
osmclient/cli_commands/alarms.py                        87     53    39%
osmclient/cli_commands/app_profile.py                   61     32    48%
osmclient/cli_commands/infra_config_profile.py          61     32    48%
osmclient/cli_commands/infra_controller_profile.py      61     32    48%
osmclient/cli_commands/k8scluster.py                   127     76    40%
osmclient/cli_commands/ksu.py                           48     22    54%
osmclient/cli_commands/ksu_package.py                   43     20    53%
osmclient/cli_commands/metrics.py                       31     18    42%
osmclient/cli_commands/netslice_instance.py            119     56    53%
osmclient/cli_commands/netslice_ops.py                  51     25    51%
osmclient/cli_commands/netslice_template.py            113     51    55%
osmclient/cli_commands/nfpkg.py                        209     93    56%
osmclient/cli_commands/ns.py                           180    138    23%
osmclient/cli_commands/nslcm.py                        194    138    29%
osmclient/cli_commands/nslcm_ops.py                     77     52    32%
osmclient/cli_commands/nspkg.py                        137     64    53%
osmclient/cli_commands/oka.py                           43     20    53%
osmclient/cli_commands/other.py                         11      3    73%
osmclient/cli_commands/packages.py                      89     39    56%
osmclient/cli_commands/pdus.py                         117     74    37%
osmclient/cli_commands/profiles.py                      37     24    35%
osmclient/cli_commands/rbac.py                         221    131    41%
osmclient/cli_commands/repo.py                         227    122    46%
osmclient/cli_commands/resource_profile.py              61     32    48%
osmclient/cli_commands/sdnc.py                         104     53    49%
osmclient/cli_commands/subscriptions.py                 59     29    51%
osmclient/cli_commands/utils.py                         53     39    26%
osmclient/cli_commands/vca.py                          156     16    90%
osmclient/cli_commands/vim.py                          183     67    63%
osmclient/cli_commands/vnf.py                          114     80    30%
osmclient/cli_commands/wim.py                          101     56    45%
osmclient/client.py                                     27     21    22%
osmclient/common/__init__.py                             0      0   100%
osmclient/common/exceptions.py                           6      0   100%
osmclient/common/http.py                                71     58    18%
osmclient/common/package_handling.py                    28     20    29%
osmclient/common/package_tool.py                       442    397    10%
osmclient/common/print_output.py                        47     36    23%
osmclient/common/sol004_package.py                      36     17    53%
osmclient/common/sol007_package.py                      32     15    53%
osmclient/common/sol_package.py                        158    120    24%
osmclient/common/test/test_utils.py                     36      0   100%
osmclient/common/utils.py                               80     54    32%
osmclient/common/wait.py                                86     66    23%
osmclient/scripts/__init__.py                            0      0   100%
osmclient/scripts/osm.py                               213    192    10%
osmclient/scripts/tests/tests_vca.py                   100      0   100%
osmclient/scripts/tests/tests_vim.py                    62      0   100%
osmclient/sol005/__init__.py                             0      0   100%
osmclient/sol005/app_profile.py                         10      6    40%
osmclient/sol005/client.py                             110     74    33%
osmclient/sol005/http.py                               160    137    14%
osmclient/sol005/infra_config_profile.py                10      6    40%
osmclient/sol005/infra_controller_profile.py            10      6    40%
osmclient/sol005/k8scluster.py                         118    101    14%
osmclient/sol005/ksu.py                                 28     22    21%
osmclient/sol005/ksu_package.py                         22     15    32%
osmclient/sol005/ns.py                                 382    353     8%
osmclient/sol005/nsd.py                                124    103    17%
osmclient/sol005/nsi.py                                208    189     9%
osmclient/sol005/nst.py                                127    107    16%
osmclient/sol005/oka.py                                 22     15    32%
osmclient/sol005/osm_api_object.py                     105     88    16%
osmclient/sol005/osmrepo.py                            309    260    16%
osmclient/sol005/package.py                             63     50    21%
osmclient/sol005/pdud.py                                93     78    16%
osmclient/sol005/project.py                             74     61    18%
osmclient/sol005/repo.py                                74     60    19%
osmclient/sol005/resource_profile.py                    10      6    40%
osmclient/sol005/role.py                               117    103    12%
osmclient/sol005/sdncontroller.py                       94     77    18%
osmclient/sol005/subscription.py                        69     56    19%
osmclient/sol005/tests/test_osmrepo.py                  13      0   100%
osmclient/sol005/tests/test_vca.py                     117      0   100%
osmclient/sol005/user.py                               143    131     8%
osmclient/sol005/vca.py                                 73      0   100%
osmclient/sol005/vim.py                                157    138    12%
osmclient/sol005/vnf.py                                 56     46    18%
osmclient/sol005/vnfd.py                               207    181    13%
osmclient/sol005/wim.py                                139    120    14%
------------------------------------------------------------------------
TOTAL                                                 7843   5272    33%

cover run-test: commands[3] | coverage report '--omit=*tests*'
Name                                                 Stmts   Miss  Cover
------------------------------------------------------------------------
osmclient/__init__.py                                    0      0   100%
osmclient/cli_commands/__init__.py                       0      0   100%
osmclient/cli_commands/alarms.py                        87     53    39%
osmclient/cli_commands/app_profile.py                   61     32    48%
osmclient/cli_commands/infra_config_profile.py          61     32    48%
osmclient/cli_commands/infra_controller_profile.py      61     32    48%
osmclient/cli_commands/k8scluster.py                   127     76    40%
osmclient/cli_commands/ksu.py                           48     22    54%
osmclient/cli_commands/ksu_package.py                   43     20    53%
osmclient/cli_commands/metrics.py                       31     18    42%
osmclient/cli_commands/netslice_instance.py            119     56    53%
osmclient/cli_commands/netslice_ops.py                  51     25    51%
osmclient/cli_commands/netslice_template.py            113     51    55%
osmclient/cli_commands/nfpkg.py                        209     93    56%
osmclient/cli_commands/ns.py                           180    138    23%
osmclient/cli_commands/nslcm.py                        194    138    29%
osmclient/cli_commands/nslcm_ops.py                     77     52    32%
osmclient/cli_commands/nspkg.py                        137     64    53%
osmclient/cli_commands/oka.py                           43     20    53%
osmclient/cli_commands/other.py                         11      3    73%
osmclient/cli_commands/packages.py                      89     39    56%
osmclient/cli_commands/pdus.py                         117     74    37%
osmclient/cli_commands/profiles.py                      37     24    35%
osmclient/cli_commands/rbac.py                         221    131    41%
osmclient/cli_commands/repo.py                         227    122    46%
osmclient/cli_commands/resource_profile.py              61     32    48%
osmclient/cli_commands/sdnc.py                         104     53    49%
osmclient/cli_commands/subscriptions.py                 59     29    51%
osmclient/cli_commands/utils.py                         53     39    26%
osmclient/cli_commands/vca.py                          156     16    90%
osmclient/cli_commands/vim.py                          183     67    63%
osmclient/cli_commands/vnf.py                          114     80    30%
osmclient/cli_commands/wim.py                          101     56    45%
osmclient/client.py                                     27     21    22%
osmclient/common/__init__.py                             0      0   100%
osmclient/common/exceptions.py                           6      0   100%
osmclient/common/http.py                                71     58    18%
osmclient/common/package_handling.py                    28     20    29%
osmclient/common/package_tool.py                       442    397    10%
osmclient/common/print_output.py                        47     36    23%
osmclient/common/sol004_package.py                      36     17    53%
osmclient/common/sol007_package.py                      32     15    53%
osmclient/common/sol_package.py                        158    120    24%
osmclient/common/test/test_utils.py                     36      0   100%
osmclient/common/utils.py                               80     54    32%
osmclient/common/wait.py                                86     66    23%
osmclient/scripts/__init__.py                            0      0   100%
osmclient/scripts/osm.py                               213    192    10%
osmclient/sol005/__init__.py                             0      0   100%
osmclient/sol005/app_profile.py                         10      6    40%
osmclient/sol005/client.py                             110     74    33%
osmclient/sol005/http.py                               160    137    14%
osmclient/sol005/infra_config_profile.py                10      6    40%
osmclient/sol005/infra_controller_profile.py            10      6    40%
osmclient/sol005/k8scluster.py                         118    101    14%
osmclient/sol005/ksu.py                                 28     22    21%
osmclient/sol005/ksu_package.py                         22     15    32%
osmclient/sol005/ns.py                                 382    353     8%
osmclient/sol005/nsd.py                                124    103    17%
osmclient/sol005/nsi.py                                208    189     9%
osmclient/sol005/nst.py                                127    107    16%
osmclient/sol005/oka.py                                 22     15    32%
osmclient/sol005/osm_api_object.py                     105     88    16%
osmclient/sol005/osmrepo.py                            309    260    16%
osmclient/sol005/package.py                             63     50    21%
osmclient/sol005/pdud.py                                93     78    16%
osmclient/sol005/project.py                             74     61    18%
osmclient/sol005/repo.py                                74     60    19%
osmclient/sol005/resource_profile.py                    10      6    40%
osmclient/sol005/role.py                               117    103    12%
osmclient/sol005/sdncontroller.py                       94     77    18%
osmclient/sol005/subscription.py                        69     56    19%
osmclient/sol005/tests/test_osmrepo.py                  13      0   100%
osmclient/sol005/tests/test_vca.py                     117      0   100%
osmclient/sol005/user.py                               143    131     8%
osmclient/sol005/vca.py                                 73      0   100%
osmclient/sol005/vim.py                                157    138    12%
osmclient/sol005/vnf.py                                 56     46    18%
osmclient/sol005/vnfd.py                               207    181    13%
osmclient/sol005/wim.py                                139    120    14%
------------------------------------------------------------------------
TOTAL                                                 7681   5272    31%
cover run-test: commands[4] | coverage html -d ./cover '--omit=*tests*'
Wrote HTML report to ./cover/index.html
cover run-test: commands[5] | coverage xml -o coverage.xml '--omit=*tests*'
Wrote XML report to coverage.xml

✔ OK pylint in 1 minute, 24.338 seconds
pylint create: /tmp/.tox/pylint
pylint installdeps: -r/home/jenkins/workspace/osmclient-stage_2_master/requirements.txt, -r/home/jenkins/workspace/osmclient-stage_2_master/requirements-dev.txt, -r/home/jenkins/workspace/osmclient-stage_2_master/requirements-test.txt, pylint==3.2.2
pylint develop-inst: /home/jenkins/workspace/osmclient-stage_2_master
pylint installed: astroid==3.2.2,certifi==2023.7.22,charset-normalizer==3.2.0,click==8.1.7,coverage==7.3.1,dill==0.3.8,enum34==1.1.10,idna==3.4,isort==5.13.2,Jinja2==3.1.2,jsonpath-ng==1.6.0,lxml==5.2.2,MarkupSafe==2.1.3,mccabe==0.7.0,mock==5.1.0,nose2==0.13.0,osm-im @ git+https://osm.etsi.org/gerrit/osm/IM.git@90ffed24477703d8b77f8805c567cdaba0798ea6,-e git+https://osm.etsi.org/gerrit/osm/osmclient.git@9aef59e476bb786f7e69267920aec923f8570580#egg=osmclient,packaging==23.1,platformdirs==4.2.2,ply==3.11,prettytable==3.9.0,pyang==2.5.3,pyangbind==0.8.3.post1,pylint==3.2.2,python-magic==0.4.27,PyYAML==6.0.1,regex==2024.5.15,requests==2.31.0,six==1.16.0,tomli==2.0.1,tomlkit==0.12.5,typing_extensions==4.12.2,urllib3==2.0.5,verboselogs==1.7,wcwidth==0.2.6
pylint run-test-pre: PYTHONHASHSEED='1522898376'
pylint run-test: commands[0] | pylint -E osmclient/

___________________________________ summary ____________________________________
ERROR:   black: parallel child exit code 1
  cover: commands succeeded
ERROR:   flake8: parallel child exit code 1
  pylint: commands succeeded
  safety: commands succeeded
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
$ docker stop --time=1 589813fae545055b4a10f4ab43a216e66023dc95bf14729e0db28a2be43665ed
$ docker rm -f 589813fae545055b4a10f4ab43a216e66023dc95bf14729e0db28a2be43665ed
[Pipeline] // withDockerContainer
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code 1
Finished: FAILURE