SuccessConsole Output

Started by upstream project "common-stage_1" build number 635
originally caused by:
 Triggered by Gerrit: https://osm.etsi.org/gerrit/13812
 > git rev-parse --is-inside-work-tree # timeout=10
Setting origin to https://osm.etsi.org/gerrit/osm/common.git
 > git config remote.origin.url https://osm.etsi.org/gerrit/osm/common.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/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/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 22 remote branches
Obtained Jenkinsfile from 828249f498f704400412f6763c7da982337ed434
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] properties
[Pipeline] node
Running on osm worker 2 in /home/jenkins/workspace/common-stage_2_v10.0
[Pipeline] {
[Pipeline] checkout
No credentials specified
Cloning the remote Git repository
Cloning with configured refspecs honoured and without tags
Cloning repository https://osm.etsi.org/gerrit/osm/common.git
 > git init /home/jenkins/workspace/common-stage_2_v10.0 # timeout=10
Fetching upstream changes from https://osm.etsi.org/gerrit/osm/common.git
 > git --version # timeout=10
 > git fetch --no-tags --force --progress https://osm.etsi.org/gerrit/osm/common.git +refs/heads/*:refs/remotes/origin/*
 > git config remote.origin.url https://osm.etsi.org/gerrit/osm/common.git # timeout=10
 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git config remote.origin.url https://osm.etsi.org/gerrit/osm/common.git # timeout=10
Fetching without tags
Fetching upstream changes from https://osm.etsi.org/gerrit/osm/common.git
 > git fetch --no-tags --force --progress https://osm.etsi.org/gerrit/osm/common.git +refs/heads/*:refs/remotes/origin/*
Checking out Revision 828249f498f704400412f6763c7da982337ed434 (v10.0)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 828249f498f704400412f6763c7da982337ed434
Commit message: "Fix bug 2231: reverse_sync in fsmongo obtains file timestamp with UTC timezone instead of local timezone, so that filesystem and mongodb timestamps are correctly compared"
 > git rev-list --no-walk 54f9bcb55cf58fb22b527493c74f26621248ad35 # timeout=10
[Pipeline] dir
Running in /home/jenkins/workspace/common-stage_2_v10.0/devops
[Pipeline] {
[Pipeline] git
No credentials specified
Cloning the remote Git repository
Cloning repository https://osm.etsi.org/gerrit/osm/devops
 > git init /home/jenkins/workspace/common-stage_2_v10.0/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 config remote.origin.url https://osm.etsi.org/gerrit/osm/devops # timeout=10
 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
 > 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 fetch --tags --force --progress https://osm.etsi.org/gerrit/osm/devops +refs/heads/*:refs/remotes/origin/*
 > git rev-parse refs/remotes/origin/v10.0^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/v10.0^{commit} # timeout=10
Checking out Revision f92f3137aeecbc88d221f44b7e992af1f5e116aa (refs/remotes/origin/v10.0)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f f92f3137aeecbc88d221f44b7e992af1f5e116aa
 > git branch -a -v --no-abbrev # timeout=10
 > git checkout -b v10.0 f92f3137aeecbc88d221f44b7e992af1f5e116aa
Commit message: "Changing charmed installer to use 10.0/stable Fixing black error in keystone charm"
 > git rev-list --no-walk d48a84b39f54e473e5d6f4db65667393e1b84dbc # 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
[common-stage_2_v10.0] Running shell script
+ env
JENKINS_HOME=/var/lib/jenkins
SSH_CLIENT=212.234.161.1 25998 22
USER=jenkins
RUN_CHANGES_DISPLAY_URL=https://osm.etsi.org/jenkins/job/common-stage_2/job/v10.0/8/display/redirect?page=changes
GERRIT_PROJECT=osm/common
XDG_SESSION_TYPE=tty
SHLVL=0
NODE_LABELS=docker osm worker 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/common-stage_2/job/v10.0/8/
HUDSON_COOKIE=1c9596a7-89b1-426c-bf05-4cd0d6223671
JENKINS_SERVER_COOKIE=durable-3eb366af2fee6447ee35f8a3ba0bfafa
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus
GERRIT_PATCHSET_REVISION=7ddcf697a6a19d03211cf78bc653cc3974594b1e
WORKSPACE=/home/jenkins/workspace/common-stage_2_v10.0
LOGNAME=jenkins
NODE_NAME=osm worker 2
GERRIT_BRANCH=v10.0
_=/usr/bin/java
RUN_ARTIFACTS_DISPLAY_URL=https://osm.etsi.org/jenkins/job/common-stage_2/job/v10.0/8/display/redirect?page=artifacts
XDG_SESSION_CLASS=user
EXECUTOR_NUMBER=1
XDG_SESSION_ID=1
RUN_TESTS_DISPLAY_URL=https://osm.etsi.org/jenkins/job/common-stage_2/job/v10.0/8/display/redirect?page=tests
BUILD_DISPLAY_NAME=#8
PROJECT_URL_PREFIX=https://osm.etsi.org/gerrit
HUDSON_HOME=/var/lib/jenkins
JOB_BASE_NAME=v10.0
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
BUILD_ID=8
XDG_RUNTIME_DIR=/run/user/1001
BUILD_TAG=jenkins-common-stage_2-v10.0-8
JENKINS_URL=https://osm.etsi.org/jenkins/
LANG=C.UTF-8
JOB_URL=https://osm.etsi.org/jenkins/job/common-stage_2/job/v10.0/
BUILD_NUMBER=8
SHELL=/bin/bash
RUN_DISPLAY_URL=https://osm.etsi.org/jenkins/job/common-stage_2/job/v10.0/8/display/redirect
ARTIFACTORY_SERVER=artifactory-osm
GERRIT_REFSPEC=refs/changes/12/13812/1
HUDSON_SERVER_COOKIE=6d3295a483c3e6d5
JOB_DISPLAY_URL=https://osm.etsi.org/jenkins/job/common-stage_2/job/v10.0/display/redirect
JOB_NAME=common-stage_2/v10.0
TEST_INSTALL=true
PWD=/home/jenkins/workspace/common-stage_2_v10.0
SSH_CONNECTION=212.234.161.1 25998 172.21.249.2 22
BRANCH_NAME=v10.0
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Checkout)
[Pipeline] sh
[common-stage_2_v10.0] Running shell script
+ git fetch --tags
From https://osm.etsi.org/gerrit/osm/common
 * [new tag]         BUILD_v4.0.1_1              -> BUILD_v4.0.1_1
 * [new tag]         BUILD_v4.0.1_2              -> BUILD_v4.0.1_2
 * [new tag]         branch-bug1511-start        -> branch-bug1511-start
 * [new tag]         branch-ng-ro-refactor-start -> branch-ng-ro-refactor-start
 * [new tag]         branch-sol006v331-start     -> branch-sol006v331-start
 * [new tag]         release-v10.0-start         -> release-v10.0-start
 * [new tag]         release-v11.0-start         -> release-v11.0-start
 * [new tag]         release-v12.0-start         -> release-v12.0-start
 * [new tag]         release-v13.0-start         -> release-v13.0-start
 * [new tag]         release-v14.0-start         -> release-v14.0-start
 * [new tag]         release-v8.0-start          -> release-v8.0-start
 * [new tag]         release-v9.0-start          -> release-v9.0-start
 * [new tag]         v10.0.0                     -> v10.0.0
 * [new tag]         v10.0.1                     -> v10.0.1
 * [new tag]         v10.0.2                     -> v10.0.2
 * [new tag]         v10.0.3                     -> v10.0.3
 * [new tag]         v10.1.0                     -> v10.1.0
 * [new tag]         v10.1.0-rc1                 -> v10.1.0-rc1
 * [new tag]         v10.1.0rc2                  -> v10.1.0rc2
 * [new tag]         v10.1.0rc3                  -> v10.1.0rc3
 * [new tag]         v10.1.1                     -> v10.1.1
 * [new tag]         v10.1.1-rc1                 -> v10.1.1-rc1
 * [new tag]         v10.1.1rc2                  -> v10.1.1rc2
 * [new tag]         v10.1.2                     -> v10.1.2
 * [new tag]         v10.1.3                     -> v10.1.3
 * [new tag]         v10.1.4                     -> v10.1.4
 * [new tag]         v10.1.5                     -> v10.1.5
 * [new tag]         v11.0.0                     -> v11.0.0
 * [new tag]         v11.0.0r                    -> v11.0.0r
 * [new tag]         v11.0.0rc1                  -> v11.0.0rc1
 * [new tag]         v11.0.0rc2                  -> v11.0.0rc2
 * [new tag]         v11.0.1                     -> v11.0.1
 * [new tag]         v11.0.2                     -> v11.0.2
 * [new tag]         v11.0.3                     -> v11.0.3
 * [new tag]         v11.0.4                     -> v11.0.4
 * [new tag]         v12.0.0                     -> v12.0.0
 * [new tag]         v12.0.0rc1                  -> v12.0.0rc1
 * [new tag]         v12.0.1                     -> v12.0.1
 * [new tag]         v12.0.2                     -> v12.0.2
 * [new tag]         v12.0.3                     -> v12.0.3
 * [new tag]         v12.0.4                     -> v12.0.4
 * [new tag]         v12.0.5                     -> v12.0.5
 * [new tag]         v12.0.6                     -> v12.0.6
 * [new tag]         v13.0.0                     -> v13.0.0
 * [new tag]         v13.0.0rc1                  -> v13.0.0rc1
 * [new tag]         v13.0.0rc2                  -> v13.0.0rc2
 * [new tag]         v13.0.1                     -> v13.0.1
 * [new tag]         v14.0.0                     -> v14.0.0
 * [new tag]         v14.0.0rc1                  -> v14.0.0rc1
 * [new tag]         v4.0.0                      -> v4.0.0
 * [new tag]         v4.0.1                      -> v4.0.1
 * [new tag]         v5.0.0                      -> v5.0.0
 * [new tag]         v5.0.1                      -> v5.0.1
 * [new tag]         v5.0.2                      -> v5.0.2
 * [new tag]         v5.0.3                      -> v5.0.3
 * [new tag]         v5.0.4                      -> v5.0.4
 * [new tag]         v5.0.5                      -> v5.0.5
 * [new tag]         v6.0.0                      -> v6.0.0
 * [new tag]         v6.0.1                      -> v6.0.1
 * [new tag]         v6.0.2                      -> v6.0.2
 * [new tag]         v6.0.2rc1                   -> v6.0.2rc1
 * [new tag]         v6.0.3                      -> v6.0.3
 * [new tag]         v6.0.4                      -> v6.0.4
 * [new tag]         v6.0.4rc1                   -> v6.0.4rc1
 * [new tag]         v7.0.0                      -> v7.0.0
 * [new tag]         v7.0.0rc1                   -> v7.0.0rc1
 * [new tag]         v7.0.1                      -> v7.0.1
 * [new tag]         v7.0.1rc1                   -> v7.0.1rc1
 * [new tag]         v7.0.1rc2                   -> v7.0.1rc2
 * [new tag]         v7.0.1rc3                   -> v7.0.1rc3
 * [new tag]         v7.1.0                      -> v7.1.0
 * [new tag]         v7.1.0rc1                   -> v7.1.0rc1
 * [new tag]         v7.1.0rc2                   -> v7.1.0rc2
 * [new tag]         v7.1.0rc3                   -> v7.1.0rc3
 * [new tag]         v7.1.0rc4                   -> v7.1.0rc4
 * [new tag]         v7.1.0rc5                   -> v7.1.0rc5
 * [new tag]         v7.1.0rc6                   -> v7.1.0rc6
 * [new tag]         v7.1.2                      -> v7.1.2
 * [new tag]         v7.1.3                      -> v7.1.3
 * [new tag]         v7.1.4                      -> v7.1.4
 * [new tag]         v7.1.5                      -> v7.1.5
 * [new tag]         v8.0.0                      -> v8.0.0
 * [new tag]         v8.0.0rc1                   -> v8.0.0rc1
 * [new tag]         v8.0.0rc2                   -> v8.0.0rc2
 * [new tag]         v8.0.0rc3                   -> v8.0.0rc3
 * [new tag]         v8.0.1                      -> v8.0.1
 * [new tag]         v8.0.1rc1                   -> v8.0.1rc1
 * [new tag]         v8.0.2                      -> v8.0.2
 * [new tag]         v8.0.3                      -> v8.0.3
 * [new tag]         v8.0.4                      -> v8.0.4
 * [new tag]         v9.0.0                      -> v9.0.0
 * [new tag]         v9.0.0rc1                   -> v9.0.0rc1
 * [new tag]         v9.1.0                      -> v9.1.0
 * [new tag]         v9.1.1                      -> v9.1.1
 * [new tag]         v9.1.1rc1                   -> v9.1.1rc1
 * [new tag]         v9.1.2                      -> v9.1.2
 * [new tag]         v9.1.3                      -> v9.1.3
 * [new tag]         v9.1.4                      -> v9.1.4
 * [new tag]         v9.1.5                      -> v9.1.5
[Pipeline] sh
[common-stage_2_v10.0] Running shell script
+ git fetch origin refs/changes/12/13812/1
From https://osm.etsi.org/gerrit/osm/common
 * branch            refs/changes/12/13812/1 -> FETCH_HEAD
[Pipeline] sh
[common-stage_2_v10.0] Running shell script
+ git checkout -f 7ddcf697a6a19d03211cf78bc653cc3974594b1e
Previous HEAD position was 828249f Fix bug 2231: reverse_sync in fsmongo obtains file timestamp with UTC timezone instead of local timezone, so that filesystem and mongodb timestamps are correctly compared
HEAD is now at 7ddcf69 Pinning version of flake8
[Pipeline] sh
[common-stage_2_v10.0] Running shell script
+ sudo git clean -dfx
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (License Scan)
[Pipeline] sh
[common-stage_2_v10.0] Running shell script
+ devops/tools/license_scan.sh
releasenotes/notes/pin-flake8-d82d4ad0779e5610.yaml Apache-2.0
tox.ini 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
[common-stage_2_v10.0] Running shell script
+ docker build -t osm/common-v10.0 .
Sending build context to Docker daemon  49.26MB

Step 1/8 : FROM ubuntu:20.04
 ---> 6df894023726
Step 2/8 : ARG APT_PROXY
 ---> Using cache
 ---> 58cec15cf614
Step 3/8 : 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
 ---> 7bf9b07e9e2c
Step 4/8 : 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
 ---> Using cache
 ---> 425f36f45443
Step 5/8 : RUN python3 -m easy_install pip==21.3.1
 ---> Using cache
 ---> 5be8156c11a7
Step 6/8 : RUN pip install tox==3.24.5
 ---> Using cache
 ---> 97dfc65817a2
Step 7/8 : ENV LC_ALL C.UTF-8
 ---> Using cache
 ---> 378f48486565
Step 8/8 : ENV LANG C.UTF-8
 ---> Using cache
 ---> 3b18dc27e56b
Successfully built 3b18dc27e56b
Successfully tagged osm/common-v10.0:latest
[Pipeline] }
[Pipeline] // stage
[Pipeline] sh
[common-stage_2_v10.0] Running shell script
+ id -u
[Pipeline] sh
[common-stage_2_v10.0] Running shell script
+ id -g
[Pipeline] withDockerContainer
osm worker 2 does not seem to be running inside a container
$ docker run -t -d -u 1001:1001 -u root -w /home/jenkins/workspace/common-stage_2_v10.0 -v /home/jenkins/workspace/common-stage_2_v10.0:/home/jenkins/workspace/common-stage_2_v10.0:rw,z -v /home/jenkins/workspace/common-stage_2_v10.0@tmp:/home/jenkins/workspace/common-stage_2_v10.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/common-v10.0
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Test)
[Pipeline] sh
[common-stage_2_v10.0] Running shell script
+ groupadd -o -g 1001 -r jenkins
[Pipeline] sh
[common-stage_2_v10.0] Running shell script
+ pwd
+ useradd -o -u 1001 -d /home/jenkins/workspace/common-stage_2_v10.0 -r -g jenkins jenkins
[Pipeline] sh
[common-stage_2_v10.0] Running shell script
+ echo #! /bin/sh
[Pipeline] sh
[common-stage_2_v10.0] Running shell script
+ chmod 755 /usr/bin/mesg
[Pipeline] sh
[common-stage_2_v10.0] Running shell script
+ runuser jenkins -c devops-stages/stage-test.sh
✔ OK black in 6.479 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==6.0.0, flake8-import-order
flake8 develop-inst: /home/jenkins/workspace/common-stage_2_v10.0
flake8 installed: flake8==6.0.0,flake8-import-order==0.18.2,mccabe==0.7.0,-e git+https://osm.etsi.org/gerrit/osm/common.git@7ddcf697a6a19d03211cf78bc653cc3974594b1e#egg=osm_common,pycodestyle==2.10.0,pyflakes==3.0.1
flake8 run-test-pre: PYTHONHASHSEED='193823617'
flake8 run-test: commands[0] | flake8 osm_common/ setup.py
osm_common/dbbase.py:19:1: I100 Import statements are in the wrong order. 'import logging' should be before 'import yaml' and in a different group.
import logging
^
osm_common/dbbase.py:19:1: I201 Missing newline between import groups. 'import logging' is identified as Stdlib and 'import yaml' is identified as Third Party.
import logging
^
osm_common/dbbase.py:22:1: I100 Import statements are in the wrong order. 'from copy import deepcopy' should be before 'from http import HTTPStatus'
from copy import deepcopy
^
osm_common/dbbase.py:23:1: I201 Missing newline between import groups. 'from Crypto.Cipher import AES' is identified as Third Party and 'from copy import deepcopy' is identified as Stdlib.
from Crypto.Cipher import AES
^
osm_common/dbbase.py:24:1: I100 Import statements are in the wrong order. 'from base64 import b64decode, b64encode' should be before 'from Crypto.Cipher import AES' and in a different group.
from base64 import b64decode, b64encode
^
osm_common/dbbase.py:24:1: I201 Missing newline between import groups. 'from base64 import b64decode, b64encode' is identified as Stdlib and 'from Crypto.Cipher import AES' is identified as Third Party.
from base64 import b64decode, b64encode
^
osm_common/dbbase.py:25:1: I201 Missing newline between import groups. 'from osm_common.common_utils import FakeLock' is identified as Third Party and 'from base64 import b64decode, b64encode' is identified as Stdlib.
from osm_common.common_utils import FakeLock
^
osm_common/dbbase.py:26:1: I100 Import statements are in the wrong order. 'from threading import Lock' should be before 'from osm_common.common_utils import FakeLock' and in a different group.
from threading import Lock
^
osm_common/dbbase.py:26:1: I201 Missing newline between import groups. 'from threading import Lock' is identified as Stdlib and 'from osm_common.common_utils import FakeLock' is identified as Third Party.
from threading import Lock
^
osm_common/dbmemory.py:19:1: I101 Imported names are in the wrong order. Should be DbBase, DbException
from osm_common.dbbase import DbException, DbBase
^
osm_common/dbmemory.py:19:1: I201 Missing newline between import groups. 'from osm_common.dbbase import DbException, DbBase' is identified as Third Party and 'import logging' is identified as Stdlib.
from osm_common.dbbase import DbException, DbBase
^
osm_common/dbmemory.py:21:1: I100 Import statements are in the wrong order. 'from http import HTTPStatus' should be before 'from osm_common.dbmongo import deep_update' and in a different group.
from http import HTTPStatus
^
osm_common/dbmemory.py:21:1: I201 Missing newline between import groups. 'from http import HTTPStatus' is identified as Stdlib and 'from osm_common.dbmongo import deep_update' is identified as Third Party.
from http import HTTPStatus
^
osm_common/dbmemory.py:23:1: I100 Import statements are in the wrong order. 'from copy import deepcopy' should be before 'from uuid import uuid4'
from copy import deepcopy
^
osm_common/dbmongo.py:20:1: I201 Missing newline between import groups. 'from pymongo import MongoClient, errors' is identified as Third Party and 'import logging' is identified as Stdlib.
from pymongo import MongoClient, errors
^
osm_common/dbmongo.py:21:1: I101 Imported names are in the wrong order. Should be DbBase, DbException
from osm_common.dbbase import DbException, DbBase
^
osm_common/dbmongo.py:21:1: I100 Import statements are in the wrong order. 'from osm_common.dbbase import DbException, DbBase' should be before 'from pymongo import MongoClient, errors' and in a different group.
from osm_common.dbbase import DbException, DbBase
^
osm_common/dbmongo.py:21:1: I201 Missing newline between import groups. 'from osm_common.dbbase import DbException, DbBase' is identified as Third Party and 'from pymongo import MongoClient, errors' is identified as Third Party.
from osm_common.dbbase import DbException, DbBase
^
osm_common/dbmongo.py:22:1: I100 Import statements are in the wrong order. 'from http import HTTPStatus' should be before 'from osm_common.dbbase import DbException, DbBase' and in a different group.
from http import HTTPStatus
^
osm_common/dbmongo.py:22:1: I201 Missing newline between import groups. 'from http import HTTPStatus' is identified as Stdlib and 'from osm_common.dbbase import DbException, DbBase' is identified as Third Party.
from http import HTTPStatus
^
osm_common/dbmongo.py:23:1: I101 Imported names are in the wrong order. Should be sleep, time
from time import time, sleep
^
osm_common/dbmongo.py:24:1: I100 Import statements are in the wrong order. 'from copy import deepcopy' should be before 'from time import time, sleep'
from copy import deepcopy
^
osm_common/dbmongo.py:25:1: I100 Import statements are in the wrong order. 'from base64 import b64decode' should be before 'from copy import deepcopy'
from base64 import b64decode
^
osm_common/fsbase.py:21:1: I201 Missing newline between import groups. 'from osm_common.common_utils import FakeLock' is identified as Third Party and 'from http import HTTPStatus' is identified as Stdlib.
from osm_common.common_utils import FakeLock
^
osm_common/fsbase.py:22:1: I100 Import statements are in the wrong order. 'from threading import Lock' should be before 'from osm_common.common_utils import FakeLock' and in a different group.
from threading import Lock
^
osm_common/fsbase.py:22:1: I201 Missing newline between import groups. 'from threading import Lock' is identified as Stdlib and 'from osm_common.common_utils import FakeLock' is identified as Third Party.
from threading import Lock
^
osm_common/fslocal.py:19:1: I100 Import statements are in the wrong order. 'import logging' should be before 'import os'
import logging
^
osm_common/fslocal.py:22:1: I202 Additional newline in a group of imports. 'from http import HTTPStatus' is identified as Stdlib and 'import logging' is identified as Stdlib.
from http import HTTPStatus
^
osm_common/fslocal.py:24:1: I201 Missing newline between import groups. 'from osm_common.fsbase import FsBase, FsException' is identified as Third Party and 'from shutil import rmtree' is identified as Stdlib.
from osm_common.fsbase import FsBase, FsException
^
osm_common/fsmongo.py:22:1: I100 Import statements are in the wrong order. 'import logging' should be before 'from io import BytesIO, StringIO'
import logging
^
osm_common/fsmongo.py:24:1: I100 Import statements are in the wrong order. 'import datetime' should be before 'import os'
import datetime
^
osm_common/fsmongo.py:27:1: I201 Missing newline between import groups. 'from osm_common.fsbase import FsBase, FsException' is identified as Third Party and 'from gridfs import GridFSBucket, errors' is identified as Third Party.
from osm_common.fsbase import FsBase, FsException
^
osm_common/fsmongo.py:28:1: I201 Missing newline between import groups. 'from pymongo import MongoClient' is identified as Third Party and 'from osm_common.fsbase import FsBase, FsException' is identified as Third Party.
from pymongo import MongoClient
^
osm_common/msgbase.py:20:1: I201 Missing newline between import groups. 'from osm_common.common_utils import FakeLock' is identified as Third Party and 'from http import HTTPStatus' is identified as Stdlib.
from osm_common.common_utils import FakeLock
^
osm_common/msgbase.py:21:1: I100 Import statements are in the wrong order. 'from threading import Lock' should be before 'from osm_common.common_utils import FakeLock' and in a different group.
from threading import Lock
^
osm_common/msgbase.py:21:1: I201 Missing newline between import groups. 'from threading import Lock' is identified as Stdlib and 'from osm_common.common_utils import FakeLock' is identified as Third Party.
from threading import Lock
^
osm_common/msgkafka.py:17:1: I100 Import statements are in the wrong order. 'import asyncio' should be before 'import logging'
import asyncio
^
osm_common/msgkafka.py:18:1: I201 Missing newline between import groups. 'import yaml' is identified as Third Party and 'import asyncio' is identified as Stdlib.
import yaml
^
osm_common/msgkafka.py:19:1: I100 Import statements are in the wrong order. 'from aiokafka import AIOKafkaConsumer' should be before 'import yaml' and in a different group.
from aiokafka import AIOKafkaConsumer
^
osm_common/msgkafka.py:19:1: I201 Missing newline between import groups. 'from aiokafka import AIOKafkaConsumer' is identified as Third Party and 'import yaml' is identified as Third Party.
from aiokafka import AIOKafkaConsumer
^
osm_common/msgkafka.py:22:1: I201 Missing newline between import groups. 'from osm_common.msgbase import MsgBase, MsgException' is identified as Third Party and 'from aiokafka.errors import KafkaError' is identified as Third Party.
from osm_common.msgbase import MsgBase, MsgException
^
osm_common/msglocal.py:20:1: I201 Missing newline between import groups. 'import yaml' is identified as Third Party and 'import os' is identified as Stdlib.
import yaml
^
osm_common/msglocal.py:21:1: I100 Import statements are in the wrong order. 'import asyncio' should be before 'import yaml' and in a different group.
import asyncio
^
osm_common/msglocal.py:21:1: I201 Missing newline between import groups. 'import asyncio' is identified as Stdlib and 'import yaml' is identified as Third Party.
import asyncio
^
osm_common/msglocal.py:22:1: I201 Missing newline between import groups. 'from osm_common.msgbase import MsgBase, MsgException' is identified as Third Party and 'import asyncio' is identified as Stdlib.
from osm_common.msgbase import MsgBase, MsgException
^
osm_common/msglocal.py:23:1: I100 Import statements are in the wrong order. 'from time import sleep' should be before 'from osm_common.msgbase import MsgBase, MsgException' and in a different group.
from time import sleep
^
osm_common/msglocal.py:23:1: I201 Missing newline between import groups. 'from time import sleep' is identified as Stdlib and 'from osm_common.msgbase import MsgBase, MsgException' is identified as Third Party.
from time import sleep
^
osm_common/msglocal.py:24:1: I100 Import statements are in the wrong order. 'from http import HTTPStatus' should be before 'from time import sleep'
from http import HTTPStatus
^
osm_common/sol004_package.py:59:1: I100 Import statements are in the wrong order. 'import os' should be before 'import yaml' and in a different group.
import os
^
osm_common/sol004_package.py:59:1: I201 Missing newline between import groups. 'import os' is identified as Stdlib and 'import yaml' is identified as Third Party.
import os
^
osm_common/sol004_package.py:60:1: I100 Import statements are in the wrong order. 'import hashlib' should be before 'import os'
import hashlib
^
osm_common/tests/packages/invalid_package_vnf/Scripts/charms/simple/src/charm.py:20:1: I100 Import statements are in the wrong order. 'import subprocess' should be before 'import sys'
import subprocess
^
osm_common/tests/packages/native_charm_with_metadata_dir_vnf/Scripts/charms/simple/src/charm.py:20:1: I100 Import statements are in the wrong order. 'import subprocess' should be before 'import sys'
import subprocess
^
osm_common/tests/packages/native_charm_without_metadata_dir_vnf/Scripts/charms/simple/src/charm.py:20:1: I100 Import statements are in the wrong order. 'import subprocess' should be before 'import sys'
import subprocess
^
osm_common/tests/test_dbbase.py:21:1: I201 Missing newline between import groups. 'import pytest' is identified as Third Party and 'import http' is identified as Stdlib.
import pytest
^
osm_common/tests/test_dbbase.py:22:1: I100 Import statements are in the wrong order. 'import unittest' should be before 'import pytest' and in a different group.
import unittest
^
osm_common/tests/test_dbbase.py:22:1: I201 Missing newline between import groups. 'import unittest' is identified as Stdlib and 'import pytest' is identified as Third Party.
import unittest
^
osm_common/tests/test_dbbase.py:23:1: I201 Missing newline between import groups. 'from osm_common.dbbase import DbBase, DbException, deep_update' is identified as Third Party and 'import unittest' is identified as Stdlib.
from osm_common.dbbase import DbBase, DbException, deep_update
^
osm_common/tests/test_dbbase.py:24:1: I100 Import statements are in the wrong order. 'from os import urandom' should be before 'from osm_common.dbbase import DbBase, DbException, deep_update' and in a different group.
from os import urandom
^
osm_common/tests/test_dbbase.py:24:1: I201 Missing newline between import groups. 'from os import urandom' is identified as Stdlib and 'from osm_common.dbbase import DbBase, DbException, deep_update' is identified as Third Party.
from os import urandom
^
osm_common/tests/test_dbbase.py:25:1: I100 Import statements are in the wrong order. 'from http import HTTPStatus' should be before 'from os import urandom'
from http import HTTPStatus
^
osm_common/tests/test_dbmemory.py:22:1: I201 Missing newline between import groups. 'import pytest' is identified as Third Party and 'import logging' is identified as Stdlib.
import pytest
^
osm_common/tests/test_dbmemory.py:23:1: I100 Import statements are in the wrong order. 'import unittest' should be before 'import pytest' and in a different group.
import unittest
^
osm_common/tests/test_dbmemory.py:23:1: I201 Missing newline between import groups. 'import unittest' is identified as Stdlib and 'import pytest' is identified as Third Party.
import unittest
^
osm_common/tests/test_dbmemory.py:26:1: I100 Import statements are in the wrong order. 'from unittest.mock import MagicMock' should be before 'from unittest.mock import Mock'
from unittest.mock import MagicMock
^
osm_common/tests/test_dbmemory.py:26:1: I202 Additional newline in a group of imports. 'from unittest.mock import MagicMock' is identified as Stdlib and 'from unittest.mock import Mock' is identified as Stdlib.
from unittest.mock import MagicMock
^
osm_common/tests/test_dbmemory.py:27:1: I201 Missing newline between import groups. 'from osm_common.dbbase import DbException' is identified as Third Party and 'from unittest.mock import MagicMock' is identified as Stdlib.
from osm_common.dbbase import DbException
^
osm_common/tests/test_dbmemory.py:29:1: I100 Import statements are in the wrong order. 'from copy import deepcopy' should be before 'from osm_common.dbmemory import DbMemory' and in a different group.
from copy import deepcopy
^
osm_common/tests/test_dbmemory.py:29:1: I201 Missing newline between import groups. 'from copy import deepcopy' is identified as Stdlib and 'from osm_common.dbmemory import DbMemory' is identified as Third Party.
from copy import deepcopy
^
osm_common/tests/test_fsbase.py:21:1: I201 Missing newline between import groups. 'import pytest' is identified as Third Party and 'import http' is identified as Stdlib.
import pytest
^
osm_common/tests/test_fsbase.py:23:1: I100 Import statements are in the wrong order. 'from osm_common.fsbase import FsBase, FsException' should be before 'import pytest' and in a different group.
from osm_common.fsbase import FsBase, FsException
^
osm_common/tests/test_fslocal.py:22:1: I100 Import statements are in the wrong order. 'import http' should be before 'import logging'
import http
^
osm_common/tests/test_fslocal.py:24:1: I201 Missing newline between import groups. 'import pytest' is identified as Third Party and 'import os' is identified as Stdlib.
import pytest
^
osm_common/tests/test_fslocal.py:25:1: I100 Import statements are in the wrong order. 'import tarfile' should be before 'import pytest' and in a different group.
import tarfile
^
osm_common/tests/test_fslocal.py:25:1: I201 Missing newline between import groups. 'import tarfile' is identified as Stdlib and 'import pytest' is identified as Third Party.
import tarfile
^
osm_common/tests/test_fslocal.py:28:1: I100 Import statements are in the wrong order. 'import shutil' should be before 'import uuid'
import shutil
^
osm_common/tests/test_fsmongo.py:20:1: I201 Missing newline between import groups. 'import pytest' is identified as Third Party and 'import logging' is identified as Stdlib.
import pytest
^
osm_common/tests/test_fsmongo.py:21:1: I100 Import statements are in the wrong order. 'import tempfile' should be before 'import pytest' and in a different group.
import tempfile
^
osm_common/tests/test_fsmongo.py:21:1: I201 Missing newline between import groups. 'import tempfile' is identified as Stdlib and 'import pytest' is identified as Third Party.
import tempfile
^
osm_common/tests/test_fsmongo.py:22:1: I100 Import statements are in the wrong order. 'import tarfile' should be before 'import tempfile'
import tarfile
^
osm_common/tests/test_fsmongo.py:23:1: I100 Import statements are in the wrong order. 'import os' should be before 'import tarfile'
import os
^
osm_common/tests/test_fsmongo.py:27:1: I100 Import statements are in the wrong order. 'from gridfs import GridFSBucket' should be before 'from pymongo import MongoClient' and in a different group.
from gridfs import GridFSBucket
^
osm_common/tests/test_fsmongo.py:27:1: I201 Missing newline between import groups. 'from gridfs import GridFSBucket' is identified as Third Party and 'from pymongo import MongoClient' is identified as Third Party.
from gridfs import GridFSBucket
^
osm_common/tests/test_fsmongo.py:29:1: I100 Import statements are in the wrong order. 'from io import BytesIO' should be before 'from gridfs import GridFSBucket' and in a different group.
from io import BytesIO
^
osm_common/tests/test_fsmongo.py:31:1: I202 Additional newline in a group of imports. 'from unittest.mock import Mock' is identified as Stdlib and 'from io import BytesIO' is identified as Stdlib.
from unittest.mock import Mock
^
osm_common/tests/test_fsmongo.py:35:1: I100 Import statements are in the wrong order. 'from pathlib import Path' should be before 'from osm_common.fsmongo import FsMongo' and in a different group.
from pathlib import Path
^
osm_common/tests/test_fsmongo.py:35:1: I201 Missing newline between import groups. 'from pathlib import Path' is identified as Stdlib and 'from osm_common.fsmongo import FsMongo' is identified as Third Party.
from pathlib import Path
^
osm_common/tests/test_msgbase.py:21:1: I201 Missing newline between import groups. 'import pytest' is identified as Third Party and 'import http' is identified as Stdlib.
import pytest
^
osm_common/tests/test_msgbase.py:23:1: I100 Import statements are in the wrong order. 'from osm_common.msgbase import MsgBase, MsgException' should be before 'import pytest' and in a different group.
from osm_common.msgbase import MsgBase, MsgException
^
osm_common/tests/test_msglocal.py:22:1: I201 Missing newline between import groups. 'import pytest' is identified as Third Party and 'import logging' is identified as Stdlib.
import pytest
^
osm_common/tests/test_msglocal.py:23:1: I100 Import statements are in the wrong order. 'import tempfile' should be before 'import pytest' and in a different group.
import tempfile
^
osm_common/tests/test_msglocal.py:23:1: I201 Missing newline between import groups. 'import tempfile' is identified as Stdlib and 'import pytest' is identified as Third Party.
import tempfile
^
osm_common/tests/test_msglocal.py:24:1: I100 Import statements are in the wrong order. 'import shutil' should be before 'import tempfile'
import shutil
^
osm_common/tests/test_msglocal.py:26:1: I100 Import statements are in the wrong order. 'import os' should be before 'import uuid'
import os
^
osm_common/tests/test_msglocal.py:27:1: I201 Missing newline between import groups. 'import yaml' is identified as Third Party and 'import os' is identified as Stdlib.
import yaml
^
osm_common/tests/test_msglocal.py:28:1: I100 Import statements are in the wrong order. 'import time' should be before 'import yaml' and in a different group.
import time
^
osm_common/tests/test_msglocal.py:28:1: I201 Missing newline between import groups. 'import time' is identified as Stdlib and 'import yaml' is identified as Third Party.
import time
^
osm_common/tests/test_msglocal.py:29:1: I100 Import statements are in the wrong order. 'import threading' should be before 'import time'
import threading
^
osm_common/tests/test_msglocal.py:31:1: I202 Additional newline in a group of imports. 'from unittest.mock import MagicMock' is identified as Stdlib and 'import threading' is identified as Stdlib.
from unittest.mock import MagicMock
^
osm_common/tests/test_msglocal.py:32:1: I201 Missing newline between import groups. 'from osm_common.msgbase import MsgException' is identified as Third Party and 'from unittest.mock import MagicMock' is identified as Stdlib.
from osm_common.msgbase import MsgException
^
osm_common/tests/test_sol004_package.py:26:1: I100 Import statements are in the wrong order. 'import unittest' should be before 'from osm_common.sol004_package import SOL004Package, SOL004PackageException' and in a different group.
import unittest
^
osm_common/tests/test_sol004_package.py:26:1: I201 Missing newline between import groups. 'import unittest' is identified as Stdlib and 'from osm_common.sol004_package import SOL004Package, SOL004PackageException' is identified as Third Party.
import unittest
^
setup.py:21:1: I201 Missing newline between import groups. 'from setuptools import setup' is identified as Third Party and 'import os' is identified as Stdlib.
from setuptools import setup
^
ERROR: InvocationError for command /tmp/.tox/flake8/bin/flake8 osm_common/ setup.py (exited with code 1)

=================================== log end ====================================
✖ FAIL flake8 in 9.732 seconds
✔ OK safety in 24.531 seconds
✔ OK cover in 26.942 seconds
✔ OK pylint in 35.877 seconds
___________________________________ summary ____________________________________
  black: commands succeeded
  cover: commands succeeded
ERROR:   flake8: parallel child exit code 1
  pylint: commands succeeded
  safety: commands succeeded[Pipeline] fileExists
[Pipeline] step
[Cobertura] Publishing Cobertura coverage report...

[Cobertura] Publishing Cobertura coverage results...

[Cobertura] Cobertura coverage report found.

[Pipeline] fileExists
[Pipeline] junit
Recording test results
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Build)
[Pipeline] sh
[common-stage_2_v10.0] Running shell script
+ runuser jenkins -c devops-stages/stage-build.sh
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Archive)
[Pipeline] sh
[common-stage_2_v10.0] Running shell script
+ runuser jenkins -c mkdir -p changelog
[Pipeline] sh
[common-stage_2_v10.0] Running shell script
+ runuser jenkins -c devops/tools/generatechangelog-pipeline.sh > changelog/changelog-common.html
[Pipeline] sh
[common-stage_2_v10.0] Running shell script
+ runuser jenkins -c devops-stages/stage-archive.sh
devops-stages/stage-archive.sh: 22: apt-ftparchive: not found
[Pipeline] getArtifactoryServer
[Pipeline] newBuildInfo
[Pipeline] artifactoryUpload
[consumer_0] Deploying artifact: https://artifactory-osm.etsi.org/artifactory/osm-common/v10.0-staging/8/dists/unstable/common/binary-amd64/Packages.gz
[consumer_1] Deploying artifact: https://artifactory-osm.etsi.org/artifactory/osm-common/v10.0-staging/8/dists/unstable/common/binary-amd64/Packages
[consumer_2] Deploying artifact: https://artifactory-osm.etsi.org/artifactory/osm-common/v10.0-staging/8/pool/common/python3-osm-common_10.1.5.post3%2Bg7ddcf69-1_all.deb
[consumer_0] Deploying artifact: https://artifactory-osm.etsi.org/artifactory/osm-common/v10.0-staging/8/changelog/changelog-common.html
[Pipeline] publishBuildInfo
Deploying build info to: https://artifactory-osm.etsi.org/artifactory/api/build
Deploying build descriptor to: https://artifactory-osm.etsi.org/artifactory/api/build
Build successfully deployed. Browse it in Artifactory under https://artifactory-osm.etsi.org/artifactory/webapp/builds/common-stage_2%20::%20v10.0/8
[Pipeline] sh
[common-stage_2_v10.0] Running shell script
+ env
[Pipeline] step
Archiving artifacts
Recording fingerprints
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
$ docker stop --time=1 4b0ea2098875372acd6b79e81cef49936e5787e1afb76c5c13ce5419fed32682
$ docker rm -f 4b0ea2098875372acd6b79e81cef49936e5787e1afb76c5c13ce5419fed32682
[Pipeline] // withDockerContainer
[Pipeline] fileExists
[Pipeline] stage
[Pipeline] { (Build System)
[Pipeline] build (Building osm-stage_3 » v10.0)
Scheduling project: osm-stage_3 » v10.0
Starting building: osm-stage_3 » v10.0 #684
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: SUCCESS