Started by timer Running as SYSTEM [EnvInject] - Loading node environment variables. Building remotely on prd-ubuntu1804-builder-4c-4g-175 (ubuntu1804-builder-4c-4g) in workspace /w/workspace/dcaegen2-collectors-snmptrap-sonar The recommended git tool is: NONE using credential onap-jenkins-ssh Wiping out workspace first. Cloning the remote Git repository Cloning repository git://cloud.onap.org/mirror/dcaegen2/collectors/snmptrap > git init /w/workspace/dcaegen2-collectors-snmptrap-sonar # timeout=10 Fetching upstream changes from git://cloud.onap.org/mirror/dcaegen2/collectors/snmptrap > git --version # timeout=10 > git --version # 'git version 2.17.1' using GIT_SSH to set credentials Gerrit user Verifying host key using manually-configured host key entries > git fetch --tags --progress -- git://cloud.onap.org/mirror/dcaegen2/collectors/snmptrap +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git://cloud.onap.org/mirror/dcaegen2/collectors/snmptrap # timeout=10 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 Avoid second fetch > git rev-parse refs/remotes/origin/master^{commit} # timeout=10 Checking out Revision 9b79aa3ae4802be5774119df475cfb8581a0f864 (refs/remotes/origin/master) > git config core.sparsecheckout # timeout=10 > git checkout -f 9b79aa3ae4802be5774119df475cfb8581a0f864 # timeout=10 Commit message: "[SNMPTRAP] Release snmptrap collector 2.0.8" > git rev-list --no-walk 9b79aa3ae4802be5774119df475cfb8581a0f864 # timeout=10 Run condition [Boolean condition] enabling prebuild for step [BuilderChain] Run condition [Not] preventing prebuild for step [BuilderChain] [dcaegen2-collectors-snmptrap-sonar] $ /bin/bash /tmp/jenkins14720451002502796299.sh ---> python-tools-install.sh Setup pyenv: * system (set by /opt/pyenv/version) * 3.8.13 (set by /opt/pyenv/version) * 3.9.13 (set by /opt/pyenv/version) * 3.10.6 (set by /opt/pyenv/version) lf-activate-venv(): INFO: Creating python3 venv at /tmp/venv-iBrR lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) lf-activate-venv(): INFO: Attempting to install with network-safe options... lf-activate-venv(): INFO: Base packages installed successfully lf-activate-venv(): INFO: Installing additional packages: lftools lf-activate-venv(): INFO: Adding /tmp/venv-iBrR/bin to PATH Generating Requirements File ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. httplib2 0.31.0 requires pyparsing<4,>=3.0.4, but you have pyparsing 2.4.7 which is incompatible. Python 3.10.6 pip 25.2 from /tmp/venv-iBrR/lib/python3.10/site-packages/pip (python 3.10) appdirs==1.4.4 argcomplete==3.6.2 aspy.yaml==1.3.0 attrs==25.3.0 autopage==0.5.2 beautifulsoup4==4.14.2 boto3==1.40.45 botocore==1.40.45 bs4==0.0.2 cachetools==6.2.0 certifi==2025.8.3 cffi==2.0.0 cfgv==3.4.0 chardet==5.2.0 charset-normalizer==3.4.3 click==8.3.0 cliff==4.11.0 cmd2==2.7.0 cryptography==3.3.2 debtcollector==3.0.0 decorator==5.2.1 defusedxml==0.7.1 Deprecated==1.2.18 distlib==0.4.0 dnspython==2.8.0 docker==7.1.0 dogpile.cache==1.4.1 durationpy==0.10 email-validator==2.3.0 filelock==3.19.1 future==1.0.0 gitdb==4.0.12 GitPython==3.1.45 google-auth==2.41.1 httplib2==0.31.0 identify==2.6.15 idna==3.10 importlib-resources==1.5.0 iso8601==2.1.0 Jinja2==3.1.6 jmespath==1.0.1 jsonpatch==1.33 jsonpointer==3.0.0 jsonschema==4.25.1 jsonschema-specifications==2025.9.1 keystoneauth1==5.12.0 kubernetes==34.1.0 lftools==0.37.14 lxml==6.0.2 markdown-it-py==4.0.0 MarkupSafe==3.0.3 mdurl==0.1.2 msgpack==1.1.1 multi_key_dict==2.0.3 munch==4.0.0 netaddr==1.3.0 niet==1.4.2 nodeenv==1.9.1 oauth2client==4.1.3 oauthlib==3.3.1 openstacksdk==4.7.1 os-service-types==1.8.0 osc-lib==4.2.0 oslo.config==10.0.0 oslo.context==6.1.0 oslo.i18n==6.6.0 oslo.log==7.2.1 oslo.serialization==5.8.0 oslo.utils==9.1.0 packaging==25.0 pbr==7.0.1 platformdirs==4.4.0 prettytable==3.16.0 psutil==7.1.0 pyasn1==0.6.1 pyasn1_modules==0.4.2 pycparser==2.23 pygerrit2==2.0.15 PyGithub==2.8.1 Pygments==2.19.2 PyJWT==2.10.1 PyNaCl==1.6.0 pyparsing==2.4.7 pyperclip==1.11.0 pyrsistent==0.20.0 python-cinderclient==9.8.0 python-dateutil==2.9.0.post0 python-heatclient==4.3.0 python-jenkins==1.8.3 python-keystoneclient==5.7.0 python-magnumclient==4.9.0 python-openstackclient==8.2.0 python-swiftclient==4.8.0 PyYAML==6.0.3 referencing==0.36.2 requests==2.32.5 requests-oauthlib==2.0.0 requestsexceptions==1.4.0 rfc3986==2.0.0 rich==14.1.0 rich-argparse==1.7.1 rpds-py==0.27.1 rsa==4.9.1 ruamel.yaml==0.18.15 ruamel.yaml.clib==0.2.14 s3transfer==0.14.0 simplejson==3.20.2 six==1.17.0 smmap==5.0.2 soupsieve==2.8 stevedore==5.5.0 tabulate==0.9.0 toml==0.10.2 tomlkit==0.13.3 tqdm==4.67.1 typing_extensions==4.15.0 tzdata==2025.2 urllib3==1.26.20 virtualenv==20.34.0 wcwidth==0.2.14 websocket-client==1.8.0 wrapt==1.17.3 xdg==6.0.0 xmltodict==1.0.2 yq==3.4.3 [Boolean condition] checking [true] against [^(1|y|yes|t|true|on|run)$] (origin token: true) Run condition [Boolean condition] enabling perform for step [BuilderChain] [dcaegen2-collectors-snmptrap-sonar] $ /bin/sh -xe /tmp/jenkins2818880251722365671.sh + echo Using SonarCloud Using SonarCloud [dcaegen2-collectors-snmptrap-sonar] $ /bin/sh -xe /tmp/jenkins18221575908274853860.sh + echo quiet=on Unpacking https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.zip to /w/tools/hudson.tasks.Maven_MavenInstallation/mvn35 on prd-ubuntu1804-builder-4c-4g-175 [dcaegen2-collectors-snmptrap-sonar] $ /w/tools/hudson.tasks.Maven_MavenInstallation/mvn35/bin/mvn -DGERRIT_BRANCH=master -DPROJECT=dcaegen2/collectors/snmptrap -DMVN=/w/tools/hudson.tasks.Maven_MavenInstallation/mvn35/bin/mvn -DSTREAM=master "-DARCHIVE_ARTIFACTS=**/*.log **/hs_err_*.log **/target/**/feature.xml **/target/failsafe-reports/failsafe-summary.xml **/target/surefire-reports/*-output.txt " -DJAVA_OPTS= -DGERRIT_PROJECT=dcaegen2/collectors/snmptrap -Dsha1=origin/master "-DMAVEN_OPTS=-Xmx1024m -XX:MaxMetaspaceSize=256m" -DGERRIT_REFSPEC=refs/heads/master -DM2_HOME=/w/tools/hudson.tasks.Maven_MavenInstallation/mvn35 -DMAVEN_PARAMS= -DSONAR_MAVEN_GOAL=org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar --version Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z) Maven home: /w/tools/hudson.tasks.Maven_MavenInstallation/mvn35 Java version: 11.0.16, vendor: Ubuntu, runtime: /usr/lib/jvm/java-11-openjdk-amd64 Default locale: en, platform encoding: UTF-8 OS name: "linux", version: "4.15.0-194-generic", arch: "amd64", family: "unix" [dcaegen2-collectors-snmptrap-sonar] $ /bin/sh -xe /tmp/jenkins17869717636129860122.sh + rm /home/jenkins/.wgetrc [EnvInject] - Injecting environment variables from a build step. [EnvInject] - Injecting as environment variables the properties content SET_JDK_VERSION=openjdk11 GIT_URL="git://cloud.onap.org/mirror" [EnvInject] - Variables injected successfully. [dcaegen2-collectors-snmptrap-sonar] $ /bin/sh /tmp/jenkins8245562939864277635.sh ---> update-java-alternatives.sh ---> Updating Java version ---> Ubuntu/Debian system detected update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/java to provide /usr/bin/java (java) in manual mode update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64/bin/javac to provide /usr/bin/javac (javac) in manual mode update-alternatives: using /usr/lib/jvm/java-11-openjdk-amd64 to provide /usr/lib/jvm/java-openjdk (java_sdk_openjdk) in manual mode openjdk version "11.0.16" 2022-07-19 OpenJDK Runtime Environment (build 11.0.16+8-post-Ubuntu-0ubuntu118.04) OpenJDK 64-Bit Server VM (build 11.0.16+8-post-Ubuntu-0ubuntu118.04, mixed mode) JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 [EnvInject] - Injecting environment variables from a build step. [EnvInject] - Injecting as environment variables the properties file path '/tmp/java.env' [EnvInject] - Variables injected successfully. [EnvInject] - Injecting environment variables from a build step. [EnvInject] - Injecting as environment variables the properties content MAVEN_GOALS=clean install SONARCLOUD_JAVA_VERSION=openjdk17 SONARCLOUD_QUALITYGATE_WAIT=False SCAN_DEV_BRANCH=False PROJECT_ORGANIZATION=onap SONAR_HOST_URL=https://sonarcloud.io PROJECT_KEY=onap_dcaegen2-collectors-snmptrap [EnvInject] - Variables injected successfully. provisioning config files... copy managed file [global-settings] to file:/w/workspace/dcaegen2-collectors-snmptrap-sonar@tmp/config15642944970857926575tmp copy managed file [dcaegen2-collectors-snmptrap-settings] to file:/w/workspace/dcaegen2-collectors-snmptrap-sonar@tmp/config11686235543988138679tmp [dcaegen2-collectors-snmptrap-sonar] $ /bin/bash -l /tmp/jenkins6513505346586081862.sh ---> common-variables.sh --show-version --batch-mode -Djenkins -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r ---> maven-sonar.sh + set +u + export MAVEN_OPTS + declare -a params + params+=("--global-settings $GLOBAL_SETTINGS_FILE") + params+=("--settings $SETTINGS_FILE") + _JAVA_OPTIONS= + /w/tools/hudson.tasks.Maven_MavenInstallation/mvn35/bin/mvn clean install -e -Dsonar --global-settings /w/workspace/dcaegen2-collectors-snmptrap-sonar@tmp/config15642944970857926575tmp --settings /w/workspace/dcaegen2-collectors-snmptrap-sonar@tmp/config11686235543988138679tmp --show-version --batch-mode -Djenkins -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r Picked up _JAVA_OPTIONS: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z) Maven home: /w/tools/hudson.tasks.Maven_MavenInstallation/mvn35 Java version: 11.0.16, vendor: Ubuntu, runtime: /usr/lib/jvm/java-11-openjdk-amd64 Default locale: en, platform encoding: UTF-8 OS name: "linux", version: "4.15.0-194-generic", arch: "amd64", family: "unix" [INFO] Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Inspecting build with total of 1 modules... [INFO] Installing Nexus Staging features: [INFO] ... total of 1 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin [INFO] [INFO] ---------------< org.onap.dcaegen2.collectors:snmptrap >---------------- [INFO] Building dcaegen2-collectors-snmptrap 2.0.8-SNAPSHOT [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ snmptrap --- [INFO] [INFO] --- exec-maven-plugin:1.2.1:exec (clean phase script) @ snmptrap --- + echo 'running script: [/w/workspace/dcaegen2-collectors-snmptrap-sonar/mvn-phase-script.sh] for module [__] at stage [clean]' + MVN_PROJECT_MODULEID=__ + MVN_PHASE=clean ++ dirname /w/workspace/dcaegen2-collectors-snmptrap-sonar/mvn-phase-script.sh + PROJECT_ROOT=/w/workspace/dcaegen2-collectors-snmptrap-sonar + source /w/workspace/dcaegen2-collectors-snmptrap-sonar/mvn-phase-lib.sh ++ FQDN=org.onap.dcaegen2.collectors.snmptrap ++ '[' __ == __ ']' ++ MVN_PROJECT_MODULEID= running script: [/w/workspace/dcaegen2-collectors-snmptrap-sonar/mvn-phase-script.sh] for module [__] at stage [clean] => for SNAPSHOT artifact build MVN_DEPLOYMENT_TYPE is [SNAPSHOT] => Nexus Proxy at nexus.onap.org, https://nexus.onap.org MVN_RELEASE_TAG is [] MVN_PROJECT_MODULEID is [] MVN_PHASE is [clean] MVN_PROJECT_GROUPID is [org.onap.dcaegen2.collectors] MVN_PROJECT_ARTIFACTID is [snmptrap] MVN_PROJECT_VERSION is [2.0.8-SNAPSHOT] MVN_NEXUSPROXY is [https://nexus.onap.org] MVN_RAWREPO_BASEURL_UPLOAD is [https://nexus.onap.org/content/sites/raw] MVN_RAWREPO_BASEURL_DOWNLOAD is [https://nexus.onap.org/service/local/repositories/raw/content] ++ [[ 2.0.8-SNAPSHOT == *SNAPSHOT ]] ++ echo '=> for SNAPSHOT artifact build' ++ MVN_DEPLOYMENT_TYPE=SNAPSHOT ++ echo 'MVN_DEPLOYMENT_TYPE is [SNAPSHOT]' +++ date +%C%y%m%dT%H%M%S ++ TIMESTAMP=20251004T065643 ++ '[' -z https://nexus.onap.org ']' +++ cut -f3 -d/ +++ echo https://nexus.onap.org +++ cut -f1 -d: ++ MVN_NEXUSPROXY_HOST=nexus.onap.org ++ echo '=> Nexus Proxy at nexus.onap.org, https://nexus.onap.org' ++ '[' -z /w/workspace/dcaegen2-collectors-snmptrap-sonar ']' ++ export SETTINGS_FILE=/w/workspace/dcaegen2-collectors-snmptrap-sonar@tmp/config11686235543988138679tmp ++ SETTINGS_FILE=/w/workspace/dcaegen2-collectors-snmptrap-sonar@tmp/config11686235543988138679tmp ++ MVN_PHASE=clean ++ echo 'MVN_RELEASE_TAG is []' ++ echo 'MVN_PROJECT_MODULEID is []' ++ echo 'MVN_PHASE is [clean]' ++ echo 'MVN_PROJECT_GROUPID is [org.onap.dcaegen2.collectors]' ++ echo 'MVN_PROJECT_ARTIFACTID is [snmptrap]' ++ echo 'MVN_PROJECT_VERSION is [2.0.8-SNAPSHOT]' ++ echo 'MVN_NEXUSPROXY is [https://nexus.onap.org]' ++ echo 'MVN_RAWREPO_BASEURL_UPLOAD is [https://nexus.onap.org/content/sites/raw]' ++ echo 'MVN_RAWREPO_BASEURL_DOWNLOAD is [https://nexus.onap.org/service/local/repositories/raw/content]' +++ echo https://nexus.onap.org/content/sites/raw +++ cut -f1 -d: +++ cut -f3 -d/ ++ MVN_RAWREPO_HOST=nexus.onap.org MVN_RAWREPO_HOST is [nexus.onap.org] MVN_RAWREPO_SERVERID is [ecomp-raw] ++ echo 'MVN_RAWREPO_HOST is [nexus.onap.org]' MVN_DOCKERREGISTRY_SNAPSHOT is [nexus3.onap.org:10003] MVN_DOCKERREGISTRY_PUBLIC is [] ++ echo 'MVN_RAWREPO_SERVERID is [ecomp-raw]' MVN_DOCKERREGISTRY_RELEASE is [nexus3.onap.org:10002] MVN_PYPISERVER_SERVERID [] MVN_PYPISERVER_BASEURL is [] ++ echo 'MVN_DOCKERREGISTRY_SNAPSHOT is [nexus3.onap.org:10003]' ++ echo 'MVN_DOCKERREGISTRY_PUBLIC is []' ++ echo 'MVN_DOCKERREGISTRY_RELEASE is [nexus3.onap.org:10002]' ++ echo 'MVN_PYPISERVER_SERVERID []' ++ echo 'MVN_PYPISERVER_BASEURL is []' ==> clean phase script + case $MVN_PHASE in + echo '==> clean phase script' + clean_templated_files ++ find . -name '*-template' + TEMPLATE_FILES= + clean_tox_files ++ find . -name .tox + TOX_FILES= ++ find . -name venv-tox + TOX_FILES=' ' + rm -rf './venv-*' './*.wgn' [INFO] [INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-no-snapshots) @ snmptrap --- [INFO] Skipping Rule Enforcement. [INFO] [INFO] --- jacoco-maven-plugin:0.7.7.201606060606:prepare-agent (pre-unit-test) @ snmptrap --- [INFO] surefireArgLine set to -javaagent:/tmp/r/org/jacoco/org.jacoco.agent/0.7.7.201606060606/org.jacoco.agent-0.7.7.201606060606-runtime.jar=destfile=/w/workspace/dcaegen2-collectors-snmptrap-sonar/target/code-coverage/jacoco-ut.exec,excludes=**/gen/**:**/generated-sources/**:**/yang-gen/**:**/pax/** [INFO] [INFO] --- exec-maven-plugin:1.2.1:exec (generate-sources script) @ snmptrap --- running script: [/w/workspace/dcaegen2-collectors-snmptrap-sonar/mvn-phase-script.sh] for module [__] at stage [generate-sources] + echo 'running script: [/w/workspace/dcaegen2-collectors-snmptrap-sonar/mvn-phase-script.sh] for module [__] at stage [generate-sources]' + MVN_PROJECT_MODULEID=__ + MVN_PHASE=generate-sources ++ dirname /w/workspace/dcaegen2-collectors-snmptrap-sonar/mvn-phase-script.sh + PROJECT_ROOT=/w/workspace/dcaegen2-collectors-snmptrap-sonar + source /w/workspace/dcaegen2-collectors-snmptrap-sonar/mvn-phase-lib.sh ++ FQDN=org.onap.dcaegen2.collectors.snmptrap ++ '[' __ == __ ']' ++ MVN_PROJECT_MODULEID= => for SNAPSHOT artifact build MVN_DEPLOYMENT_TYPE is [SNAPSHOT] ++ [[ 2.0.8-SNAPSHOT == *SNAPSHOT ]] ++ echo '=> for SNAPSHOT artifact build' ++ MVN_DEPLOYMENT_TYPE=SNAPSHOT ++ echo 'MVN_DEPLOYMENT_TYPE is [SNAPSHOT]' +++ date +%C%y%m%dT%H%M%S ++ TIMESTAMP=20251004T065647 ++ '[' -z https://nexus.onap.org ']' +++ cut -f3 -d/ +++ echo https://nexus.onap.org +++ cut -f1 -d: ++ MVN_NEXUSPROXY_HOST=nexus.onap.org => Nexus Proxy at nexus.onap.org, https://nexus.onap.org ++ echo '=> Nexus Proxy at nexus.onap.org, https://nexus.onap.org' ++ '[' -z /w/workspace/dcaegen2-collectors-snmptrap-sonar ']' ++ export SETTINGS_FILE=/w/workspace/dcaegen2-collectors-snmptrap-sonar@tmp/config11686235543988138679tmp ++ SETTINGS_FILE=/w/workspace/dcaegen2-collectors-snmptrap-sonar@tmp/config11686235543988138679tmp ++ MVN_PHASE=generate-sources ++ echo 'MVN_RELEASE_TAG is []' ++ echo 'MVN_PROJECT_MODULEID is []' ++ echo 'MVN_PHASE is [generate-sources]' MVN_RELEASE_TAG is [] MVN_PROJECT_MODULEID is [] MVN_PHASE is [generate-sources] MVN_PROJECT_GROUPID is [org.onap.dcaegen2.collectors] MVN_PROJECT_ARTIFACTID is [snmptrap] MVN_PROJECT_VERSION is [2.0.8-SNAPSHOT] MVN_NEXUSPROXY is [https://nexus.onap.org] MVN_RAWREPO_BASEURL_UPLOAD is [https://nexus.onap.org/content/sites/raw] MVN_RAWREPO_BASEURL_DOWNLOAD is [https://nexus.onap.org/service/local/repositories/raw/content] ++ echo 'MVN_PROJECT_GROUPID is [org.onap.dcaegen2.collectors]' ++ echo 'MVN_PROJECT_ARTIFACTID is [snmptrap]' ++ echo 'MVN_PROJECT_VERSION is [2.0.8-SNAPSHOT]' ++ echo 'MVN_NEXUSPROXY is [https://nexus.onap.org]' ++ echo 'MVN_RAWREPO_BASEURL_UPLOAD is [https://nexus.onap.org/content/sites/raw]' ++ echo 'MVN_RAWREPO_BASEURL_DOWNLOAD is [https://nexus.onap.org/service/local/repositories/raw/content]' +++ echo https://nexus.onap.org/content/sites/raw +++ cut -f1 -d: +++ cut -f3 -d/ ++ MVN_RAWREPO_HOST=nexus.onap.org MVN_RAWREPO_HOST is [nexus.onap.org] MVN_RAWREPO_SERVERID is [ecomp-raw] MVN_DOCKERREGISTRY_SNAPSHOT is [nexus3.onap.org:10003] MVN_DOCKERREGISTRY_PUBLIC is [] MVN_DOCKERREGISTRY_RELEASE is [nexus3.onap.org:10002] ++ echo 'MVN_RAWREPO_HOST is [nexus.onap.org]' ++ echo 'MVN_RAWREPO_SERVERID is [ecomp-raw]' ++ echo 'MVN_DOCKERREGISTRY_SNAPSHOT is [nexus3.onap.org:10003]' ++ echo 'MVN_DOCKERREGISTRY_PUBLIC is []' ++ echo 'MVN_DOCKERREGISTRY_RELEASE is [nexus3.onap.org:10002]' ++ echo 'MVN_PYPISERVER_SERVERID []' ++ echo 'MVN_PYPISERVER_BASEURL is []' MVN_PYPISERVER_SERVERID [] MVN_PYPISERVER_BASEURL is [] + case $MVN_PHASE in + echo '==> generate-sources phase script' + expand_templates ==> generate-sources phase script + set +x ====> Done template resolving [INFO] [INFO] --- maven-checkstyle-plugin:2.17:check (onap-license) @ snmptrap --- [INFO] Starting audit... Audit done. [INFO] [INFO] --- maven-checkstyle-plugin:2.17:check (onap-java-style) @ snmptrap --- [INFO] Starting audit... Audit done. [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ snmptrap --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /w/workspace/dcaegen2-collectors-snmptrap-sonar/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ snmptrap --- [INFO] No sources to compile [INFO] [INFO] --- exec-maven-plugin:1.2.1:exec (compile script) @ snmptrap --- running script: [/w/workspace/dcaegen2-collectors-snmptrap-sonar/mvn-phase-script.sh] for module [__] at stage [compile] + echo 'running script: [/w/workspace/dcaegen2-collectors-snmptrap-sonar/mvn-phase-script.sh] for module [__] at stage [compile]' + MVN_PROJECT_MODULEID=__ + MVN_PHASE=compile ++ dirname /w/workspace/dcaegen2-collectors-snmptrap-sonar/mvn-phase-script.sh + PROJECT_ROOT=/w/workspace/dcaegen2-collectors-snmptrap-sonar + source /w/workspace/dcaegen2-collectors-snmptrap-sonar/mvn-phase-lib.sh ++ FQDN=org.onap.dcaegen2.collectors.snmptrap ++ '[' __ == __ ']' ++ MVN_PROJECT_MODULEID= ++ [[ 2.0.8-SNAPSHOT == *SNAPSHOT ]] => for SNAPSHOT artifact build MVN_DEPLOYMENT_TYPE is [SNAPSHOT] ++ echo '=> for SNAPSHOT artifact build' ++ MVN_DEPLOYMENT_TYPE=SNAPSHOT ++ echo 'MVN_DEPLOYMENT_TYPE is [SNAPSHOT]' +++ date +%C%y%m%dT%H%M%S ++ TIMESTAMP=20251004T065650 ++ '[' -z https://nexus.onap.org ']' +++ echo https://nexus.onap.org +++ cut -f1 -d: +++ cut -f3 -d/ ++ MVN_NEXUSPROXY_HOST=nexus.onap.org ++ echo '=> Nexus Proxy at nexus.onap.org, https://nexus.onap.org' ++ '[' -z /w/workspace/dcaegen2-collectors-snmptrap-sonar ']' => Nexus Proxy at nexus.onap.org, https://nexus.onap.org MVN_RELEASE_TAG is [] MVN_PROJECT_MODULEID is [] MVN_PHASE is [compile] ++ export SETTINGS_FILE=/w/workspace/dcaegen2-collectors-snmptrap-sonar@tmp/config11686235543988138679tmp ++ SETTINGS_FILE=/w/workspace/dcaegen2-collectors-snmptrap-sonar@tmp/config11686235543988138679tmp ++ MVN_PHASE=compile ++ echo 'MVN_RELEASE_TAG is []' ++ echo 'MVN_PROJECT_MODULEID is []' ++ echo 'MVN_PHASE is [compile]' ++ echo 'MVN_PROJECT_GROUPID is [org.onap.dcaegen2.collectors]' ++ echo 'MVN_PROJECT_ARTIFACTID is [snmptrap]' ++ echo 'MVN_PROJECT_VERSION is [2.0.8-SNAPSHOT]' ++ echo 'MVN_NEXUSPROXY is [https://nexus.onap.org]' ++ echo 'MVN_RAWREPO_BASEURL_UPLOAD is [https://nexus.onap.org/content/sites/raw]' ++ echo 'MVN_RAWREPO_BASEURL_DOWNLOAD is [https://nexus.onap.org/service/local/repositories/raw/content]' MVN_PROJECT_GROUPID is [org.onap.dcaegen2.collectors] MVN_PROJECT_ARTIFACTID is [snmptrap] MVN_PROJECT_VERSION is [2.0.8-SNAPSHOT] MVN_NEXUSPROXY is [https://nexus.onap.org] MVN_RAWREPO_BASEURL_UPLOAD is [https://nexus.onap.org/content/sites/raw] MVN_RAWREPO_BASEURL_DOWNLOAD is [https://nexus.onap.org/service/local/repositories/raw/content] +++ echo https://nexus.onap.org/content/sites/raw +++ cut -f3 -d/ +++ cut -f1 -d: ++ MVN_RAWREPO_HOST=nexus.onap.org ++ echo 'MVN_RAWREPO_HOST is [nexus.onap.org]' MVN_RAWREPO_HOST is [nexus.onap.org] MVN_RAWREPO_SERVERID is [ecomp-raw] ++ echo 'MVN_RAWREPO_SERVERID is [ecomp-raw]' ++ echo 'MVN_DOCKERREGISTRY_SNAPSHOT is [nexus3.onap.org:10003]' ++ echo 'MVN_DOCKERREGISTRY_PUBLIC is []' ++ echo 'MVN_DOCKERREGISTRY_RELEASE is [nexus3.onap.org:10002]' ++ echo 'MVN_PYPISERVER_SERVERID []' ++ echo 'MVN_PYPISERVER_BASEURL is []' MVN_DOCKERREGISTRY_SNAPSHOT is [nexus3.onap.org:10003] MVN_DOCKERREGISTRY_PUBLIC is [] MVN_DOCKERREGISTRY_RELEASE is [nexus3.onap.org:10002] MVN_PYPISERVER_SERVERID [] MVN_PYPISERVER_BASEURL is [] + case $MVN_PHASE in + echo '==> compile phase script' ==> compile phase script [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ snmptrap --- [INFO] Not copying test resources [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ snmptrap --- [INFO] Not compiling test sources [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ snmptrap --- [INFO] Tests are skipped. [INFO] [INFO] --- jacoco-maven-plugin:0.7.7.201606060606:report (post-unit-test) @ snmptrap --- [INFO] Skipping JaCoCo execution due to missing execution data file. [INFO] [INFO] --- exec-maven-plugin:1.2.1:exec (test script) @ snmptrap --- running script: [/w/workspace/dcaegen2-collectors-snmptrap-sonar/mvn-phase-script.sh] for module [__] at stage [test] => for SNAPSHOT artifact build MVN_DEPLOYMENT_TYPE is [SNAPSHOT] + echo 'running script: [/w/workspace/dcaegen2-collectors-snmptrap-sonar/mvn-phase-script.sh] for module [__] at stage [test]' + MVN_PROJECT_MODULEID=__ + MVN_PHASE=test ++ dirname /w/workspace/dcaegen2-collectors-snmptrap-sonar/mvn-phase-script.sh + PROJECT_ROOT=/w/workspace/dcaegen2-collectors-snmptrap-sonar + source /w/workspace/dcaegen2-collectors-snmptrap-sonar/mvn-phase-lib.sh ++ FQDN=org.onap.dcaegen2.collectors.snmptrap ++ '[' __ == __ ']' ++ MVN_PROJECT_MODULEID= ++ [[ 2.0.8-SNAPSHOT == *SNAPSHOT ]] ++ echo '=> for SNAPSHOT artifact build' ++ MVN_DEPLOYMENT_TYPE=SNAPSHOT ++ echo 'MVN_DEPLOYMENT_TYPE is [SNAPSHOT]' +++ date +%C%y%m%dT%H%M%S ++ TIMESTAMP=20251004T065650 ++ '[' -z https://nexus.onap.org ']' +++ echo https://nexus.onap.org +++ cut -f1 -d: +++ cut -f3 -d/ => Nexus Proxy at nexus.onap.org, https://nexus.onap.org MVN_RELEASE_TAG is [] MVN_PROJECT_MODULEID is [] MVN_PHASE is [test] MVN_PROJECT_GROUPID is [org.onap.dcaegen2.collectors] MVN_PROJECT_ARTIFACTID is [snmptrap] MVN_PROJECT_VERSION is [2.0.8-SNAPSHOT] MVN_NEXUSPROXY is [https://nexus.onap.org] MVN_RAWREPO_BASEURL_UPLOAD is [https://nexus.onap.org/content/sites/raw] MVN_RAWREPO_BASEURL_DOWNLOAD is [https://nexus.onap.org/service/local/repositories/raw/content] ++ MVN_NEXUSPROXY_HOST=nexus.onap.org ++ echo '=> Nexus Proxy at nexus.onap.org, https://nexus.onap.org' ++ '[' -z /w/workspace/dcaegen2-collectors-snmptrap-sonar ']' ++ export SETTINGS_FILE=/w/workspace/dcaegen2-collectors-snmptrap-sonar@tmp/config11686235543988138679tmp ++ SETTINGS_FILE=/w/workspace/dcaegen2-collectors-snmptrap-sonar@tmp/config11686235543988138679tmp ++ MVN_PHASE=test ++ echo 'MVN_RELEASE_TAG is []' ++ echo 'MVN_PROJECT_MODULEID is []' ++ echo 'MVN_PHASE is [test]' ++ echo 'MVN_PROJECT_GROUPID is [org.onap.dcaegen2.collectors]' ++ echo 'MVN_PROJECT_ARTIFACTID is [snmptrap]' ++ echo 'MVN_PROJECT_VERSION is [2.0.8-SNAPSHOT]' ++ echo 'MVN_NEXUSPROXY is [https://nexus.onap.org]' ++ echo 'MVN_RAWREPO_BASEURL_UPLOAD is [https://nexus.onap.org/content/sites/raw]' ++ echo 'MVN_RAWREPO_BASEURL_DOWNLOAD is [https://nexus.onap.org/service/local/repositories/raw/content]' +++ cut -f3 -d/ +++ echo https://nexus.onap.org/content/sites/raw +++ cut -f1 -d: MVN_RAWREPO_HOST is [nexus.onap.org] MVN_RAWREPO_SERVERID is [ecomp-raw] MVN_DOCKERREGISTRY_SNAPSHOT is [nexus3.onap.org:10003] ++ MVN_RAWREPO_HOST=nexus.onap.org MVN_DOCKERREGISTRY_PUBLIC is [] ++ echo 'MVN_RAWREPO_HOST is [nexus.onap.org]' MVN_DOCKERREGISTRY_RELEASE is [nexus3.onap.org:10002] ++ echo 'MVN_RAWREPO_SERVERID is [ecomp-raw]' MVN_PYPISERVER_SERVERID [] ++ echo 'MVN_DOCKERREGISTRY_SNAPSHOT is [nexus3.onap.org:10003]' MVN_PYPISERVER_BASEURL is [] ++ echo 'MVN_DOCKERREGISTRY_PUBLIC is []' ++ echo 'MVN_DOCKERREGISTRY_RELEASE is [nexus3.onap.org:10002]' ++ echo 'MVN_PYPISERVER_SERVERID []' ++ echo 'MVN_PYPISERVER_BASEURL is []' + case $MVN_PHASE in + echo '==> test phase script' + run_tox_test + set -e -x ==> test phase script ++ pwd + CURDIR=/w/workspace/dcaegen2-collectors-snmptrap-sonar ++ find . -name tox.ini + TOXINIS=./tox.ini + for TOXINI in "${TOXINIS[@]}" ++ dirname ./tox.ini + DIR=. + cd /w/workspace/dcaegen2-collectors-snmptrap-sonar/. + rm -rf ./venv-tox ./.tox + python3 -m venv ./venv-tox + source ./venv-tox/bin/activate ++ deactivate nondestructive ++ '[' -n '' ']' ++ '[' -n '' ']' ++ '[' -n /bin/bash -o -n '' ']' ++ hash -r ++ '[' -n '' ']' ++ unset VIRTUAL_ENV ++ '[' '!' nondestructive = nondestructive ']' ++ VIRTUAL_ENV=/w/workspace/dcaegen2-collectors-snmptrap-sonar/venv-tox ++ export VIRTUAL_ENV ++ _OLD_VIRTUAL_PATH=/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin ++ PATH=/w/workspace/dcaegen2-collectors-snmptrap-sonar/venv-tox/bin:/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin ++ export PATH ++ '[' -n '' ']' ++ '[' -z '' ']' ++ _OLD_VIRTUAL_PS1= ++ '[' 'x(venv-tox) ' '!=' x ']' ++ PS1='(venv-tox) ' ++ export PS1 ++ '[' -n /bin/bash -o -n '' ']' ++ hash -r + pip3 install pip==9.0.3 Collecting pip==9.0.3 Cache entry deserialization failed, entry ignored Downloading https://files.pythonhosted.org/packages/ac/95/a05b56bb975efa78d3557efa36acaf9cf5d2fd0ee0062060493687432e03/pip-9.0.3-py2.py3-none-any.whl (1.4MB) Installing collected packages: pip Found existing installation: pip 9.0.1 Uninstalling pip-9.0.1: Successfully uninstalled pip-9.0.1 Successfully installed pip-9.0.3 + pip3 install --upgrade argparse Collecting argparse Downloading https://files.pythonhosted.org/packages/f2/94/3af39d34be01a24a6e65433d19e107099374224905f1e0cc6bbe1fd22a2f/argparse-1.4.0-py2.py3-none-any.whl Installing collected packages: argparse Successfully installed argparse-1.4.0 You are using pip version 9.0.3, however version 25.2 is available. You should consider upgrading via the 'pip install --upgrade pip' command. + pip3 install tox==2.9.1 Collecting tox==2.9.1 Downloading https://files.pythonhosted.org/packages/1d/4e/20c679f8c5948f7c48591fde33d442e716af66a31a88f5791850a75041eb/tox-2.9.1-py2.py3-none-any.whl (73kB) Collecting pluggy<1.0,>=0.3.0 (from tox==2.9.1) Downloading https://files.pythonhosted.org/packages/a0/28/85c7aa31b80d150b772fbe4a229487bc6644da9ccb7e427dd8cc60cb8a62/pluggy-0.13.1-py2.py3-none-any.whl Collecting py>=1.4.17 (from tox==2.9.1) Downloading https://files.pythonhosted.org/packages/f6/f0/10642828a8dfb741e5f3fbaac830550a518a775c7fff6f04a007259b0548/py-1.11.0-py2.py3-none-any.whl (98kB) Collecting six (from tox==2.9.1) Downloading https://files.pythonhosted.org/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl Collecting virtualenv>=1.11.2; python_version != "3.2" (from tox==2.9.1) Cache entry deserialization failed, entry ignored Downloading https://files.pythonhosted.org/packages/18/a2/7931d40ecb02b5236a34ac53770f2f6931e3082b7a7dafe915d892d749d6/virtualenv-20.17.1-py3-none-any.whl (8.8MB) Collecting importlib-metadata>=0.12; python_version < "3.8" (from pluggy<1.0,>=0.3.0->tox==2.9.1) Downloading https://files.pythonhosted.org/packages/a0/a1/b153a0a4caf7a7e3f15c2cd56c7702e2cf3d89b1b359d1f1c5e59d68f4ce/importlib_metadata-4.8.3-py3-none-any.whl Collecting filelock<4,>=3.4.1 (from virtualenv>=1.11.2; python_version != "3.2"->tox==2.9.1) Cache entry deserialization failed, entry ignored Downloading https://files.pythonhosted.org/packages/84/ce/8916d10ef537f3f3b046843255f9799504aa41862bfa87844b9bdc5361cd/filelock-3.4.1-py3-none-any.whl Collecting importlib-resources>=5.4; python_version < "3.7" (from virtualenv>=1.11.2; python_version != "3.2"->tox==2.9.1) Downloading https://files.pythonhosted.org/packages/24/1b/33e489669a94da3ef4562938cd306e8fa915e13939d7b8277cb5569cb405/importlib_resources-5.4.0-py3-none-any.whl Collecting distlib<1,>=0.3.6 (from virtualenv>=1.11.2; python_version != "3.2"->tox==2.9.1) Cache entry deserialization failed, entry ignored Cache entry deserialization failed, entry ignored Downloading https://files.pythonhosted.org/packages/33/6b/e0547afaf41bf2c42e52430072fa5658766e3d65bd4b03a563d1b6336f57/distlib-0.4.0-py2.py3-none-any.whl (469kB) Collecting platformdirs<3,>=2.4 (from virtualenv>=1.11.2; python_version != "3.2"->tox==2.9.1) Cache entry deserialization failed, entry ignored Downloading https://files.pythonhosted.org/packages/b1/78/dcfd84d3aabd46a9c77260fb47ea5d244806e4daef83aa6fe5d83adb182c/platformdirs-2.4.0-py3-none-any.whl Collecting zipp>=0.5 (from importlib-metadata>=0.12; python_version < "3.8"->pluggy<1.0,>=0.3.0->tox==2.9.1) Downloading https://files.pythonhosted.org/packages/bd/df/d4a4974a3e3957fd1c1fa3082366d7fff6e428ddb55f074bf64876f8e8ad/zipp-3.6.0-py3-none-any.whl Collecting typing-extensions>=3.6.4; python_version < "3.8" (from importlib-metadata>=0.12; python_version < "3.8"->pluggy<1.0,>=0.3.0->tox==2.9.1) Cache entry deserialization failed, entry ignored Downloading https://files.pythonhosted.org/packages/45/6b/44f7f8f1e110027cf88956b59f2fad776cca7e1704396d043f89effd3a0e/typing_extensions-4.1.1-py3-none-any.whl Installing collected packages: zipp, typing-extensions, importlib-metadata, pluggy, py, six, filelock, importlib-resources, distlib, platformdirs, virtualenv, tox Successfully installed distlib-0.4.0 filelock-3.4.1 importlib-metadata-4.8.3 importlib-resources-5.4.0 platformdirs-2.4.0 pluggy-0.13.1 py-1.11.0 six-1.17.0 tox-2.9.1 typing-extensions-4.1.1 virtualenv-20.17.1 zipp-3.6.0 You are using pip version 9.0.3, however version 25.2 is available. You should consider upgrading via the 'pip install --upgrade pip' command. + '[' '' = yes ']' + pip3 freeze You are using pip version 9.0.3, however version 25.2 is available. You should consider upgrading via the 'pip install --upgrade pip' command. distlib==0.4.0 filelock==3.4.1 importlib-metadata==4.8.3 importlib-resources==5.4.0 pkg-resources==0.0.0 platformdirs==2.4.0 pluggy==0.13.1 py==1.11.0 six==1.17.0 tox==2.9.1 typing-extensions==4.1.1 virtualenv==20.17.1 zipp==3.6.0 + tox GLOB sdist-make: /w/workspace/dcaegen2-collectors-snmptrap-sonar/setup.py py37 create: /w/workspace/dcaegen2-collectors-snmptrap-sonar/.tox/py37 py37 installdeps: -rrequirements.txt, pytest, coverage, pytest-cov py37 inst: /w/workspace/dcaegen2-collectors-snmptrap-sonar/.tox/dist/snmptrap-2.0.8.zip py37 installed: certifi==2025.8.3,chardet==3.0.4,coverage==7.2.7,exceptiongroup==1.3.0,idna==2.5,importlib-metadata==6.7.0,iniconfig==2.0.0,onap-dcae-cbs-docker-client==2.2.1,packaging==24.0,pluggy==1.2.0,ply==3.11,pyasn1==0.4.8,pycryptodomex==3.23.0,pysmi==0.3.4,pysnmp==4.4.12,pytest==7.4.4,pytest-cov==4.1.0,PyYAML==6.0.1,requests==2.18.3,snmptrap @ file:///w/workspace/dcaegen2-collectors-snmptrap-sonar/.tox/dist/snmptrap-2.0.8.zip,tomli==2.0.1,typing_extensions==4.7.1,urllib3==1.22,zipp==3.15.0 py37 runtests: PYTHONHASHSEED='1843189608' py37 runtests: commands[0] | pytest --cov snmptrap --cov-report=xml --cov-report=html --cov-report=term tests --verbose --verbose --verbose ============================= test session starts ============================== platform linux -- Python 3.7.15, pytest-7.4.4, pluggy-1.2.0 -- /w/workspace/dcaegen2-collectors-snmptrap-sonar/.tox/py37/bin/python cachedir: .pytest_cache rootdir: /w/workspace/dcaegen2-collectors-snmptrap-sonar plugins: cov-4.1.0 collecting ... collected 96 items tests/test_snmptrapd.py::test_snmptrapd::test_add_varbind_to_json PASSED [ 1%] tests/test_snmptrapd.py::test_snmptrapd::test_add_varbind_to_log_string PASSED [ 2%] tests/test_snmptrapd.py::test_snmptrapd::test_comm_string_rewrite_observer SKIPPEDthod) [ 3%] tests/test_snmptrapd.py::test_snmptrapd::test_load_all_configs PASSED [ 4%] tests/test_snmptrapd.py::test_snmptrapd::test_load_all_configs_signal PASSED [ 5%] tests/test_snmptrapd.py::test_snmptrapd::test_log_all_arriving_traps PASSED [ 6%] tests/test_snmptrapd.py::test_snmptrapd::test_log_all_incorrect_log_type PASSED [ 7%] tests/test_snmptrapd.py::test_snmptrapd::test_notif_receiver_cb PASSED [ 8%] tests/test_snmptrapd.py::test_snmptrapd::test_post_dmaap PASSED [ 9%] tests/test_snmptrapd.py::test_snmptrapd::test_resolve_ip PASSED [ 10%] tests/test_snmptrapd.py::test_snmptrapd::test_snmp_engine_observer_cb PASSED [ 11%] tests/test_snmptrapd.py::test_snmptrapd::test_usage_err PASSED [ 12%] tests/test_snmptrapd.py::test_snmptrapd::test_v1_trap_receipt PASSED [ 13%] tests/test_trapd_exit.py::test_cleanup_and_exit::test_abnormal_exit PASSED [ 14%] tests/test_trapd_exit.py::test_cleanup_and_exit::test_normal_exit PASSED [ 15%] tests/test_trapd_get_cbs_config.py::test_trapd_get_cbs_config::test_cbs_env_present PASSED [ 16%] tests/test_trapd_get_cbs_config.py::test_trapd_get_cbs_config::test_cbs_fallback_env_present PASSED [ 17%] tests/test_trapd_get_cbs_config.py::test_trapd_get_cbs_config::test_cbs_fallback_env_present_bad_numbers PASSED [ 18%] tests/test_trapd_get_cbs_config.py::test_trapd_get_cbs_config::test_cbs_override_env_invalid PASSED [ 19%] tests/test_trapd_get_cbs_config.py::test_trapd_get_cbs_config::test_cbs_override_env_undefined PASSED [ 20%] tests/test_trapd_http_session.py::test_init_session_obj::test_close_existing_session PASSED [ 21%] tests/test_trapd_http_session.py::test_init_session_obj::test_close_nonexisting_close_raises PASSED [ 22%] tests/test_trapd_http_session.py::test_init_session_obj::test_close_nonexisting_session PASSED [ 23%] tests/test_trapd_http_session.py::test_init_session_obj::test_init_session_obj PASSED [ 25%] tests/test_trapd_http_session.py::test_init_session_obj::test_init_session_obj_raises PASSED [ 26%] tests/test_trapd_http_session.py::test_init_session_obj::test_reset PASSED [ 27%] tests/test_trapd_io.py::test_trapd_io::test_close_file_does_not_exist PASSED [ 28%] tests/test_trapd_io.py::test_trapd_io::test_close_file_exists PASSED [ 29%] tests/test_trapd_io.py::test_trapd_io::test_ecomp_logger_type_audit PASSED [ 30%] tests/test_trapd_io.py::test_trapd_io::test_ecomp_logger_type_audit_bad_fd PASSED [ 31%] tests/test_trapd_io.py::test_trapd_io::test_ecomp_logger_type_error PASSED [ 32%] tests/test_trapd_io.py::test_trapd_io::test_ecomp_logger_type_error_bad_fd PASSED [ 33%] tests/test_trapd_io.py::test_trapd_io::test_ecomp_logger_type_metrics PASSED [ 34%] tests/test_trapd_io.py::test_trapd_io::test_ecomp_logger_type_metrics_bad_fd PASSED [ 35%] tests/test_trapd_io.py::test_trapd_io::test_ecomp_logger_type_unknown PASSED [ 36%] tests/test_trapd_io.py::test_trapd_io::test_ecomp_logger_type_unknown_bad_fd PASSED [ 37%] tests/test_trapd_io.py::test_trapd_io::test_open_eelf_audit_file PASSED [ 38%] tests/test_trapd_io.py::test_trapd_io::test_open_eelf_audit_file_missing_name PASSED [ 39%] tests/test_trapd_io.py::test_trapd_io::test_open_eelf_debug_file PASSED [ 40%] tests/test_trapd_io.py::test_trapd_io::test_open_eelf_debug_file_missing_name PASSED [ 41%] tests/test_trapd_io.py::test_trapd_io::test_open_eelf_error_file PASSED [ 42%] tests/test_trapd_io.py::test_trapd_io::test_open_eelf_error_file_missing_name PASSED [ 43%] tests/test_trapd_io.py::test_trapd_io::test_open_eelf_metrics_file PASSED [ 44%] tests/test_trapd_io.py::test_trapd_io::test_open_eelf_metrics_file_missing_name PASSED [ 45%] tests/test_trapd_io.py::test_trapd_io::test_open_file_exists PASSED [ 46%] tests/test_trapd_io.py::test_trapd_io::test_open_file_exists_does_not_exist PASSED [ 47%] tests/test_trapd_io.py::test_trapd_io::test_roll_all_logs PASSED [ 48%] tests/test_trapd_io.py::test_trapd_io::test_roll_all_logs_not_open PASSED [ 50%] tests/test_trapd_io.py::test_trapd_io::test_roll_all_logs_open_eelf_logs_returns_false PASSED [ 51%] tests/test_trapd_io.py::test_trapd_io::test_roll_all_logs_open_file_arriving_traps_throws PASSED [ 52%] tests/test_trapd_io.py::test_trapd_io::test_roll_all_logs_open_file_json_traps_throws PASSED [ 53%] tests/test_trapd_io.py::test_trapd_io::test_roll_all_logs_roll_file_throws PASSED [ 54%] tests/test_trapd_io.py::test_trapd_io::test_roll_file PASSED [ 55%] tests/test_trapd_io.py::test_trapd_io::test_roll_file_no_write_perms PASSED [ 56%] tests/test_trapd_io.py::test_trapd_io::test_roll_file_not_present PASSED [ 57%] tests/test_trapd_runtime_pid.py::test_trapd_runtime_pid::test_correct_usage PASSED [ 58%] tests/test_trapd_runtime_pid.py::test_trapd_runtime_pid::test_correct_usage_but_throws PASSED [ 59%] tests/test_trapd_runtime_pid.py::test_trapd_runtime_pid::test_missing_directory PASSED [ 60%] tests/test_trapd_runtime_pid.py::test_trapd_runtime_pid::test_missing_file PASSED [ 61%] tests/test_trapd_settings.py::test_trapd_settings::test_config_dict PASSED [ 62%] tests/test_trapd_settings.py::test_trapd_settings::test_dns_cache_ip_expires PASSED [ 63%] tests/test_trapd_settings.py::test_trapd_settings::test_dns_cache_ip_to_name PASSED [ 64%] tests/test_trapd_settings.py::test_trapd_settings::test_nonexistent_dict PASSED [ 65%] tests/test_trapd_snmpv3.py::test_snmpv3_config::test_v3_config_missing_engine PASSED [ 66%] tests/test_trapd_snmpv3.py::test_snmpv3_config::test_v3_config_missing_user SKIPPED [ 67%] tests/test_trapd_snmpv3.py::test_snmpv3_config::test_v3_config_not_present PASSED [ 68%] tests/test_trapd_snmpv3.py::test_snmpv3_config::test_v3_config_present PASSED [ 69%] tests/test_trapd_stormwatch.py::test_cleanup_and_exit::test_increment_existing_counter PASSED [ 70%] tests/test_trapd_stormwatch.py::test_cleanup_and_exit::test_sw_clear_dicts PASSED [ 71%] tests/test_trapd_stormwatch.py::test_cleanup_and_exit::test_sw_init PASSED [ 72%] tests/test_trapd_stormwatch.py::test_cleanup_and_exit::test_sw_load_trap_config PASSED [ 73%] tests/test_trapd_stormwatch.py::test_cleanup_and_exit::test_sw_log_metrics PASSED [ 75%] tests/test_trapd_stormwatch.py::test_cleanup_and_exit::test_sw_reset_counter_dict PASSED [ 76%] tests/test_trapd_stormwatch.py::test_cleanup_and_exit::test_sw_storm_active PASSED [ 77%] tests/test_trapd_stormwatch_settings.py::test_cleanup_and_exit::test_nonexistent_dict PASSED [ 78%] tests/test_trapd_stormwatch_settings.py::test_cleanup_and_exit::test_storm_active_dict PASSED [ 79%] tests/test_trapd_stormwatch_settings.py::test_cleanup_and_exit::test_storm_counter_dict PASSED [ 80%] tests/test_trapd_stormwatch_settings.py::test_cleanup_and_exit::test_sw_config_category PASSED [ 81%] tests/test_trapd_stormwatch_settings.py::test_cleanup_and_exit::test_sw_config_high_water_in_interval_dict PASSED [ 82%] tests/test_trapd_stormwatch_settings.py::test_cleanup_and_exit::test_sw_config_low_water_in_interval_dict PASSED [ 83%] tests/test_trapd_stormwatch_settings.py::test_cleanup_and_exit::test_sw_config_oid_dict PASSED [ 84%] tests/test_trapd_stormwatch_settings.py::test_cleanup_and_exit::test_sw_interval_in_seconds PASSED [ 85%] tests/test_trapd_stormwatch_settings.py::test_cleanup_and_exit::test_sw_last_stormwatch_dict_analysis PASSED [ 86%] tests/test_trapd_vb_types.py::test_trapd_vb_types::test_trapd_vb_type_conversion_bits PASSED [ 87%] tests/test_trapd_vb_types.py::test_trapd_vb_types::test_trapd_vb_type_conversion_counter32 PASSED [ 88%] tests/test_trapd_vb_types.py::test_trapd_vb_types::test_trapd_vb_type_conversion_gauge32 PASSED [ 89%] tests/test_trapd_vb_types.py::test_trapd_vb_types::test_trapd_vb_type_conversion_integer PASSED [ 90%] tests/test_trapd_vb_types.py::test_trapd_vb_types::test_trapd_vb_type_conversion_integer32 PASSED [ 91%] tests/test_trapd_vb_types.py::test_trapd_vb_types::test_trapd_vb_type_conversion_invalid PASSED [ 92%] tests/test_trapd_vb_types.py::test_trapd_vb_types::test_trapd_vb_type_conversion_ipaddress PASSED [ 93%] tests/test_trapd_vb_types.py::test_trapd_vb_types::test_trapd_vb_type_conversion_null PASSED [ 94%] tests/test_trapd_vb_types.py::test_trapd_vb_types::test_trapd_vb_type_conversion_objectidentifier PASSED [ 95%] tests/test_trapd_vb_types.py::test_trapd_vb_types::test_trapd_vb_type_conversion_octetstring PASSED [ 96%] tests/test_trapd_vb_types.py::test_trapd_vb_types::test_trapd_vb_type_conversion_py_type_5 PASSED [ 97%] tests/test_trapd_vb_types.py::test_trapd_vb_types::test_trapd_vb_type_conversion_py_type_6 PASSED [ 98%] tests/test_trapd_vb_types.py::test_trapd_vb_types::test_trapd_vb_type_conversion_timeticks PASSED [100%] =============================== warnings summary =============================== .tox/py37/lib/python3.7/site-packages/urllib3/util/selectors.py:14 /w/workspace/dcaegen2-collectors-snmptrap-sonar/.tox/py37/lib/python3.7/site-packages/urllib3/util/selectors.py:14: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working from collections import namedtuple, Mapping .tox/py37/lib/python3.7/site-packages/urllib3/_collections.py:2 /w/workspace/dcaegen2-collectors-snmptrap-sonar/.tox/py37/lib/python3.7/site-packages/urllib3/_collections.py:2: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3,and in 3.9 it will stop working from collections import Mapping, MutableMapping -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html ---------- coverage: platform linux, python 3.7.15-final-0 ----------- Name Stmts Miss Cover --------------------------------------------------------------- snmptrap/__init__.py 0 0 100% snmptrap/mod/__init__.py 0 0 100% snmptrap/mod/trapd_exit.py 11 0 100% snmptrap/mod/trapd_get_cbs_config.py 58 3 95% snmptrap/mod/trapd_http_session.py 32 0 100% snmptrap/mod/trapd_io.py 160 0 100% snmptrap/mod/trapd_runtime_pid.py 26 0 100% snmptrap/mod/trapd_settings.py 55 0 100% snmptrap/mod/trapd_snmpv3.py 108 2 98% snmptrap/mod/trapd_stats_settings.py 7 0 100% snmptrap/mod/trapd_stormwatch.py 228 19 92% snmptrap/mod/trapd_stormwatch_settings.py 11 0 100% snmptrap/mod/trapd_vb_types.py 24 0 100% snmptrap/snmptrapd.py 363 84 77% --------------------------------------------------------------- TOTAL 1083 108 90% Coverage HTML written to dir htmlcov Coverage XML written to file coverage.xml ================== 94 passed, 2 skipped, 2 warnings in 11.66s ================== py38 create: /w/workspace/dcaegen2-collectors-snmptrap-sonar/.tox/py38 py38 installdeps: -rrequirements.txt, pytest, coverage, pytest-cov py38 inst: /w/workspace/dcaegen2-collectors-snmptrap-sonar/.tox/dist/snmptrap-2.0.8.zip py38 installed: attrs==22.2.0,certifi==2025.4.26,chardet==3.0.4,coverage==6.2,idna==2.5,importlib-metadata==4.8.3,iniconfig==1.1.1,onap-dcae-cbs-docker-client==2.2.1,packaging==21.3,pluggy==1.0.0,ply==3.11,py==1.11.0,pyasn1==0.4.8,pycryptodomex==3.21.0,pyparsing==3.1.4,pysmi==0.3.4,pysnmp==4.4.12,pytest==7.0.1,pytest-cov==4.0.0,PyYAML==6.0.1,requests==2.18.3,snmptrap @ file:///w/workspace/dcaegen2-collectors-snmptrap-sonar/.tox/dist/snmptrap-2.0.8.zip,tomli==1.2.3,typing_extensions==4.1.1,urllib3==1.22,zipp==3.6.0 py38 runtests: PYTHONHASHSEED='1843189608' py38 runtests: commands[0] | pytest --cov snmptrap --cov-report=xml --cov-report=html --cov-report=term tests --verbose --verbose --verbose ============================= test session starts ============================== platform linux -- Python 3.6.9, pytest-7.0.1, pluggy-1.0.0 -- /w/workspace/dcaegen2-collectors-snmptrap-sonar/.tox/py38/bin/python cachedir: .pytest_cache rootdir: /w/workspace/dcaegen2-collectors-snmptrap-sonar plugins: cov-4.0.0 collecting ... collected 96 items tests/test_snmptrapd.py::test_snmptrapd::test_add_varbind_to_json PASSED [ 1%] tests/test_snmptrapd.py::test_snmptrapd::test_add_varbind_to_log_string PASSED [ 2%] tests/test_snmptrapd.py::test_snmptrapd::test_comm_string_rewrite_observer SKIPPED [ 3%] tests/test_snmptrapd.py::test_snmptrapd::test_load_all_configs PASSED [ 4%] tests/test_snmptrapd.py::test_snmptrapd::test_load_all_configs_signal PASSED [ 5%] tests/test_snmptrapd.py::test_snmptrapd::test_log_all_arriving_traps PASSED [ 6%] tests/test_snmptrapd.py::test_snmptrapd::test_log_all_incorrect_log_type PASSED [ 7%] tests/test_snmptrapd.py::test_snmptrapd::test_notif_receiver_cb PASSED [ 8%] tests/test_snmptrapd.py::test_snmptrapd::test_post_dmaap PASSED [ 9%] tests/test_snmptrapd.py::test_snmptrapd::test_resolve_ip PASSED [ 10%] tests/test_snmptrapd.py::test_snmptrapd::test_snmp_engine_observer_cb PASSED [ 11%] tests/test_snmptrapd.py::test_snmptrapd::test_usage_err PASSED [ 12%] tests/test_snmptrapd.py::test_snmptrapd::test_v1_trap_receipt PASSED [ 13%] tests/test_trapd_exit.py::test_cleanup_and_exit::test_abnormal_exit PASSED [ 14%] tests/test_trapd_exit.py::test_cleanup_and_exit::test_normal_exit PASSED [ 15%] tests/test_trapd_get_cbs_config.py::test_trapd_get_cbs_config::test_cbs_env_present PASSED [ 16%] tests/test_trapd_get_cbs_config.py::test_trapd_get_cbs_config::test_cbs_fallback_env_present PASSED [ 17%] tests/test_trapd_get_cbs_config.py::test_trapd_get_cbs_config::test_cbs_fallback_env_present_bad_numbers PASSED [ 18%] tests/test_trapd_get_cbs_config.py::test_trapd_get_cbs_config::test_cbs_override_env_invalid PASSED [ 19%] tests/test_trapd_get_cbs_config.py::test_trapd_get_cbs_config::test_cbs_override_env_undefined PASSED [ 20%] tests/test_trapd_http_session.py::test_init_session_obj::test_close_existing_session PASSED [ 21%] tests/test_trapd_http_session.py::test_init_session_obj::test_close_nonexisting_close_raises PASSED [ 22%] tests/test_trapd_http_session.py::test_init_session_obj::test_close_nonexisting_session PASSED [ 23%] tests/test_trapd_http_session.py::test_init_session_obj::test_init_session_obj PASSED [ 25%] tests/test_trapd_http_session.py::test_init_session_obj::test_init_session_obj_raises PASSED [ 26%] tests/test_trapd_http_session.py::test_init_session_obj::test_reset PASSED [ 27%] tests/test_trapd_io.py::test_trapd_io::test_close_file_does_not_exist PASSED [ 28%] tests/test_trapd_io.py::test_trapd_io::test_close_file_exists PASSED [ 29%] tests/test_trapd_io.py::test_trapd_io::test_ecomp_logger_type_audit PASSED [ 30%] tests/test_trapd_io.py::test_trapd_io::test_ecomp_logger_type_audit_bad_fd PASSED [ 31%] tests/test_trapd_io.py::test_trapd_io::test_ecomp_logger_type_error PASSED [ 32%] tests/test_trapd_io.py::test_trapd_io::test_ecomp_logger_type_error_bad_fd PASSED [ 33%] tests/test_trapd_io.py::test_trapd_io::test_ecomp_logger_type_metrics PASSED [ 34%] tests/test_trapd_io.py::test_trapd_io::test_ecomp_logger_type_metrics_bad_fd PASSED [ 35%] tests/test_trapd_io.py::test_trapd_io::test_ecomp_logger_type_unknown PASSED [ 36%] tests/test_trapd_io.py::test_trapd_io::test_ecomp_logger_type_unknown_bad_fd PASSED [ 37%] tests/test_trapd_io.py::test_trapd_io::test_open_eelf_audit_file PASSED [ 38%] tests/test_trapd_io.py::test_trapd_io::test_open_eelf_audit_file_missing_name PASSED [ 39%] tests/test_trapd_io.py::test_trapd_io::test_open_eelf_debug_file PASSED [ 40%] tests/test_trapd_io.py::test_trapd_io::test_open_eelf_debug_file_missing_name PASSED [ 41%] tests/test_trapd_io.py::test_trapd_io::test_open_eelf_error_file PASSED [ 42%] tests/test_trapd_io.py::test_trapd_io::test_open_eelf_error_file_missing_name PASSED [ 43%] tests/test_trapd_io.py::test_trapd_io::test_open_eelf_metrics_file PASSED [ 44%] tests/test_trapd_io.py::test_trapd_io::test_open_eelf_metrics_file_missing_name PASSED [ 45%] tests/test_trapd_io.py::test_trapd_io::test_open_file_exists PASSED [ 46%] tests/test_trapd_io.py::test_trapd_io::test_open_file_exists_does_not_exist PASSED [ 47%] tests/test_trapd_io.py::test_trapd_io::test_roll_all_logs PASSED [ 48%] tests/test_trapd_io.py::test_trapd_io::test_roll_all_logs_not_open PASSED [ 50%] tests/test_trapd_io.py::test_trapd_io::test_roll_all_logs_open_eelf_logs_returns_false PASSED [ 51%] tests/test_trapd_io.py::test_trapd_io::test_roll_all_logs_open_file_arriving_traps_throws PASSED [ 52%] tests/test_trapd_io.py::test_trapd_io::test_roll_all_logs_open_file_json_traps_throws PASSED [ 53%] tests/test_trapd_io.py::test_trapd_io::test_roll_all_logs_roll_file_throws PASSED [ 54%] tests/test_trapd_io.py::test_trapd_io::test_roll_file PASSED [ 55%] tests/test_trapd_io.py::test_trapd_io::test_roll_file_no_write_perms PASSED [ 56%] tests/test_trapd_io.py::test_trapd_io::test_roll_file_not_present PASSED [ 57%] tests/test_trapd_runtime_pid.py::test_trapd_runtime_pid::test_correct_usage PASSED [ 58%] tests/test_trapd_runtime_pid.py::test_trapd_runtime_pid::test_correct_usage_but_throws PASSED [ 59%] tests/test_trapd_runtime_pid.py::test_trapd_runtime_pid::test_missing_directory PASSED [ 60%] tests/test_trapd_runtime_pid.py::test_trapd_runtime_pid::test_missing_file PASSED [ 61%] tests/test_trapd_settings.py::test_trapd_settings::test_config_dict PASSED [ 62%] tests/test_trapd_settings.py::test_trapd_settings::test_dns_cache_ip_expires PASSED [ 63%] tests/test_trapd_settings.py::test_trapd_settings::test_dns_cache_ip_to_name PASSED [ 64%] tests/test_trapd_settings.py::test_trapd_settings::test_nonexistent_dict PASSED [ 65%] tests/test_trapd_snmpv3.py::test_snmpv3_config::test_v3_config_missing_engine PASSED [ 66%] tests/test_trapd_snmpv3.py::test_snmpv3_config::test_v3_config_missing_user SKIPPED [ 67%] tests/test_trapd_snmpv3.py::test_snmpv3_config::test_v3_config_not_present PASSED [ 68%] tests/test_trapd_snmpv3.py::test_snmpv3_config::test_v3_config_present PASSED [ 69%] tests/test_trapd_stormwatch.py::test_cleanup_and_exit::test_increment_existing_counter PASSED [ 70%] tests/test_trapd_stormwatch.py::test_cleanup_and_exit::test_sw_clear_dicts PASSED [ 71%] tests/test_trapd_stormwatch.py::test_cleanup_and_exit::test_sw_init PASSED [ 72%] tests/test_trapd_stormwatch.py::test_cleanup_and_exit::test_sw_load_trap_config PASSED [ 73%] tests/test_trapd_stormwatch.py::test_cleanup_and_exit::test_sw_log_metrics PASSED [ 75%] tests/test_trapd_stormwatch.py::test_cleanup_and_exit::test_sw_reset_counter_dict PASSED [ 76%] tests/test_trapd_stormwatch.py::test_cleanup_and_exit::test_sw_storm_active PASSED [ 77%] tests/test_trapd_stormwatch_settings.py::test_cleanup_and_exit::test_nonexistent_dict PASSED [ 78%] tests/test_trapd_stormwatch_settings.py::test_cleanup_and_exit::test_storm_active_dict PASSED [ 79%] tests/test_trapd_stormwatch_settings.py::test_cleanup_and_exit::test_storm_counter_dict PASSED [ 80%] tests/test_trapd_stormwatch_settings.py::test_cleanup_and_exit::test_sw_config_category PASSED [ 81%] tests/test_trapd_stormwatch_settings.py::test_cleanup_and_exit::test_sw_config_high_water_in_interval_dict PASSED [ 82%] tests/test_trapd_stormwatch_settings.py::test_cleanup_and_exit::test_sw_config_low_water_in_interval_dict PASSED [ 83%] tests/test_trapd_stormwatch_settings.py::test_cleanup_and_exit::test_sw_config_oid_dict PASSED [ 84%] tests/test_trapd_stormwatch_settings.py::test_cleanup_and_exit::test_sw_interval_in_seconds PASSED [ 85%] tests/test_trapd_stormwatch_settings.py::test_cleanup_and_exit::test_sw_last_stormwatch_dict_analysis PASSED [ 86%] tests/test_trapd_vb_types.py::test_trapd_vb_types::test_trapd_vb_type_conversion_bits PASSED [ 87%] tests/test_trapd_vb_types.py::test_trapd_vb_types::test_trapd_vb_type_conversion_counter32 PASSED [ 88%] tests/test_trapd_vb_types.py::test_trapd_vb_types::test_trapd_vb_type_conversion_gauge32 PASSED [ 89%] tests/test_trapd_vb_types.py::test_trapd_vb_types::test_trapd_vb_type_conversion_integer PASSED [ 90%] tests/test_trapd_vb_types.py::test_trapd_vb_types::test_trapd_vb_type_conversion_integer32 PASSED [ 91%] tests/test_trapd_vb_types.py::test_trapd_vb_types::test_trapd_vb_type_conversion_invalid PASSED [ 92%] tests/test_trapd_vb_types.py::test_trapd_vb_types::test_trapd_vb_type_conversion_ipaddress PASSED [ 93%] tests/test_trapd_vb_types.py::test_trapd_vb_types::test_trapd_vb_type_conversion_null PASSED [ 94%] tests/test_trapd_vb_types.py::test_trapd_vb_types::test_trapd_vb_type_conversion_objectidentifier PASSED [ 95%] tests/test_trapd_vb_types.py::test_trapd_vb_types::test_trapd_vb_type_conversion_octetstring PASSED [ 96%] tests/test_trapd_vb_types.py::test_trapd_vb_types::test_trapd_vb_type_conversion_py_type_5 PASSED [ 97%] tests/test_trapd_vb_types.py::test_trapd_vb_types::test_trapd_vb_type_conversion_py_type_6 PASSED [ 98%] tests/test_trapd_vb_types.py::test_trapd_vb_types::test_trapd_vb_type_conversion_timeticks PASSED [100%] ----------- coverage: platform linux, python 3.6.9-final-0 ----------- Name Stmts Miss Cover --------------------------------------------------------------- snmptrap/__init__.py 0 0 100% snmptrap/mod/__init__.py 0 0 100% snmptrap/mod/trapd_exit.py 11 0 100% snmptrap/mod/trapd_get_cbs_config.py 58 3 95% snmptrap/mod/trapd_http_session.py 32 0 100% snmptrap/mod/trapd_io.py 160 0 100% snmptrap/mod/trapd_runtime_pid.py 26 0 100% snmptrap/mod/trapd_settings.py 55 0 100% snmptrap/mod/trapd_snmpv3.py 108 2 98% snmptrap/mod/trapd_stats_settings.py 7 0 100% snmptrap/mod/trapd_stormwatch.py 228 19 92% snmptrap/mod/trapd_stormwatch_settings.py 11 0 100% snmptrap/mod/trapd_vb_types.py 24 0 100% snmptrap/snmptrapd.py 363 84 77% --------------------------------------------------------------- TOTAL 1083 108 90% Coverage HTML written to dir htmlcov Coverage XML written to file coverage.xml ======================== 94 passed, 2 skipped in 10.66s ======================== py39 create: /w/workspace/dcaegen2-collectors-snmptrap-sonar/.tox/py39 py39 installdeps: -rrequirements.txt, pytest, coverage, pytest-cov py39 inst: /w/workspace/dcaegen2-collectors-snmptrap-sonar/.tox/dist/snmptrap-2.0.8.zip py39 installed: attrs==22.2.0,certifi==2025.4.26,chardet==3.0.4,coverage==6.2,idna==2.5,importlib-metadata==4.8.3,iniconfig==1.1.1,onap-dcae-cbs-docker-client==2.2.1,packaging==21.3,pluggy==1.0.0,ply==3.11,py==1.11.0,pyasn1==0.4.8,pycryptodomex==3.21.0,pyparsing==3.1.4,pysmi==0.3.4,pysnmp==4.4.12,pytest==7.0.1,pytest-cov==4.0.0,PyYAML==6.0.1,requests==2.18.3,snmptrap @ file:///w/workspace/dcaegen2-collectors-snmptrap-sonar/.tox/dist/snmptrap-2.0.8.zip,tomli==1.2.3,typing_extensions==4.1.1,urllib3==1.22,zipp==3.6.0 py39 runtests: PYTHONHASHSEED='1843189608' py39 runtests: commands[0] | pytest --cov snmptrap --cov-report=xml --cov-report=html --cov-report=term tests --verbose --verbose --verbose ============================= test session starts ============================== platform linux -- Python 3.6.9, pytest-7.0.1, pluggy-1.0.0 -- /w/workspace/dcaegen2-collectors-snmptrap-sonar/.tox/py39/bin/python cachedir: .pytest_cache rootdir: /w/workspace/dcaegen2-collectors-snmptrap-sonar plugins: cov-4.0.0 collecting ... collected 96 items tests/test_snmptrapd.py::test_snmptrapd::test_add_varbind_to_json PASSED [ 1%] tests/test_snmptrapd.py::test_snmptrapd::test_add_varbind_to_log_string PASSED [ 2%] tests/test_snmptrapd.py::test_snmptrapd::test_comm_string_rewrite_observer SKIPPED [ 3%] tests/test_snmptrapd.py::test_snmptrapd::test_load_all_configs PASSED [ 4%] tests/test_snmptrapd.py::test_snmptrapd::test_load_all_configs_signal PASSED [ 5%] tests/test_snmptrapd.py::test_snmptrapd::test_log_all_arriving_traps PASSED [ 6%] tests/test_snmptrapd.py::test_snmptrapd::test_log_all_incorrect_log_type PASSED [ 7%] tests/test_snmptrapd.py::test_snmptrapd::test_notif_receiver_cb PASSED [ 8%] tests/test_snmptrapd.py::test_snmptrapd::test_post_dmaap PASSED [ 9%] tests/test_snmptrapd.py::test_snmptrapd::test_resolve_ip PASSED [ 10%] tests/test_snmptrapd.py::test_snmptrapd::test_snmp_engine_observer_cb PASSED [ 11%] tests/test_snmptrapd.py::test_snmptrapd::test_usage_err PASSED [ 12%] tests/test_snmptrapd.py::test_snmptrapd::test_v1_trap_receipt PASSED [ 13%] tests/test_trapd_exit.py::test_cleanup_and_exit::test_abnormal_exit PASSED [ 14%] tests/test_trapd_exit.py::test_cleanup_and_exit::test_normal_exit PASSED [ 15%] tests/test_trapd_get_cbs_config.py::test_trapd_get_cbs_config::test_cbs_env_present PASSED [ 16%] tests/test_trapd_get_cbs_config.py::test_trapd_get_cbs_config::test_cbs_fallback_env_present PASSED [ 17%] tests/test_trapd_get_cbs_config.py::test_trapd_get_cbs_config::test_cbs_fallback_env_present_bad_numbers PASSED [ 18%] tests/test_trapd_get_cbs_config.py::test_trapd_get_cbs_config::test_cbs_override_env_invalid PASSED [ 19%] tests/test_trapd_get_cbs_config.py::test_trapd_get_cbs_config::test_cbs_override_env_undefined PASSED [ 20%] tests/test_trapd_http_session.py::test_init_session_obj::test_close_existing_session PASSED [ 21%] tests/test_trapd_http_session.py::test_init_session_obj::test_close_nonexisting_close_raises PASSED [ 22%] tests/test_trapd_http_session.py::test_init_session_obj::test_close_nonexisting_session PASSED [ 23%] tests/test_trapd_http_session.py::test_init_session_obj::test_init_session_obj PASSED [ 25%] tests/test_trapd_http_session.py::test_init_session_obj::test_init_session_obj_raises PASSED [ 26%] tests/test_trapd_http_session.py::test_init_session_obj::test_reset PASSED [ 27%] tests/test_trapd_io.py::test_trapd_io::test_close_file_does_not_exist PASSED [ 28%] tests/test_trapd_io.py::test_trapd_io::test_close_file_exists PASSED [ 29%] tests/test_trapd_io.py::test_trapd_io::test_ecomp_logger_type_audit PASSED [ 30%] tests/test_trapd_io.py::test_trapd_io::test_ecomp_logger_type_audit_bad_fd PASSED [ 31%] tests/test_trapd_io.py::test_trapd_io::test_ecomp_logger_type_error PASSED [ 32%] tests/test_trapd_io.py::test_trapd_io::test_ecomp_logger_type_error_bad_fd PASSED [ 33%] tests/test_trapd_io.py::test_trapd_io::test_ecomp_logger_type_metrics PASSED [ 34%] tests/test_trapd_io.py::test_trapd_io::test_ecomp_logger_type_metrics_bad_fd PASSED [ 35%] tests/test_trapd_io.py::test_trapd_io::test_ecomp_logger_type_unknown PASSED [ 36%] tests/test_trapd_io.py::test_trapd_io::test_ecomp_logger_type_unknown_bad_fd PASSED [ 37%] tests/test_trapd_io.py::test_trapd_io::test_open_eelf_audit_file PASSED [ 38%] tests/test_trapd_io.py::test_trapd_io::test_open_eelf_audit_file_missing_name PASSED [ 39%] tests/test_trapd_io.py::test_trapd_io::test_open_eelf_debug_file PASSED [ 40%] tests/test_trapd_io.py::test_trapd_io::test_open_eelf_debug_file_missing_name PASSED [ 41%] tests/test_trapd_io.py::test_trapd_io::test_open_eelf_error_file PASSED [ 42%] tests/test_trapd_io.py::test_trapd_io::test_open_eelf_error_file_missing_name PASSED [ 43%] tests/test_trapd_io.py::test_trapd_io::test_open_eelf_metrics_file PASSED [ 44%] tests/test_trapd_io.py::test_trapd_io::test_open_eelf_metrics_file_missing_name PASSED [ 45%] tests/test_trapd_io.py::test_trapd_io::test_open_file_exists PASSED [ 46%] tests/test_trapd_io.py::test_trapd_io::test_open_file_exists_does_not_exist PASSED [ 47%] tests/test_trapd_io.py::test_trapd_io::test_roll_all_logs PASSED [ 48%] tests/test_trapd_io.py::test_trapd_io::test_roll_all_logs_not_open PASSED [ 50%] tests/test_trapd_io.py::test_trapd_io::test_roll_all_logs_open_eelf_logs_returns_false PASSED [ 51%] tests/test_trapd_io.py::test_trapd_io::test_roll_all_logs_open_file_arriving_traps_throws PASSED [ 52%] tests/test_trapd_io.py::test_trapd_io::test_roll_all_logs_open_file_json_traps_throws PASSED [ 53%] tests/test_trapd_io.py::test_trapd_io::test_roll_all_logs_roll_file_throws PASSED [ 54%] tests/test_trapd_io.py::test_trapd_io::test_roll_file PASSED [ 55%] tests/test_trapd_io.py::test_trapd_io::test_roll_file_no_write_perms PASSED [ 56%] tests/test_trapd_io.py::test_trapd_io::test_roll_file_not_present PASSED [ 57%] tests/test_trapd_runtime_pid.py::test_trapd_runtime_pid::test_correct_usage PASSED [ 58%] tests/test_trapd_runtime_pid.py::test_trapd_runtime_pid::test_correct_usage_but_throws PASSED [ 59%] tests/test_trapd_runtime_pid.py::test_trapd_runtime_pid::test_missing_directory PASSED [ 60%] tests/test_trapd_runtime_pid.py::test_trapd_runtime_pid::test_missing_file PASSED [ 61%] tests/test_trapd_settings.py::test_trapd_settings::test_config_dict PASSED [ 62%] tests/test_trapd_settings.py::test_trapd_settings::test_dns_cache_ip_expires PASSED [ 63%] tests/test_trapd_settings.py::test_trapd_settings::test_dns_cache_ip_to_name PASSED [ 64%] tests/test_trapd_settings.py::test_trapd_settings::test_nonexistent_dict PASSED [ 65%] tests/test_trapd_snmpv3.py::test_snmpv3_config::test_v3_config_missing_engine PASSED [ 66%] tests/test_trapd_snmpv3.py::test_snmpv3_config::test_v3_config_missing_user SKIPPED [ 67%] tests/test_trapd_snmpv3.py::test_snmpv3_config::test_v3_config_not_present PASSED [ 68%] tests/test_trapd_snmpv3.py::test_snmpv3_config::test_v3_config_present PASSED [ 69%] tests/test_trapd_stormwatch.py::test_cleanup_and_exit::test_increment_existing_counter PASSED [ 70%] tests/test_trapd_stormwatch.py::test_cleanup_and_exit::test_sw_clear_dicts PASSED [ 71%] tests/test_trapd_stormwatch.py::test_cleanup_and_exit::test_sw_init PASSED [ 72%] tests/test_trapd_stormwatch.py::test_cleanup_and_exit::test_sw_load_trap_config PASSED [ 73%] tests/test_trapd_stormwatch.py::test_cleanup_and_exit::test_sw_log_metrics PASSED [ 75%] tests/test_trapd_stormwatch.py::test_cleanup_and_exit::test_sw_reset_counter_dict PASSED [ 76%] tests/test_trapd_stormwatch.py::test_cleanup_and_exit::test_sw_storm_active PASSED [ 77%] tests/test_trapd_stormwatch_settings.py::test_cleanup_and_exit::test_nonexistent_dict PASSED [ 78%] tests/test_trapd_stormwatch_settings.py::test_cleanup_and_exit::test_storm_active_dict PASSED [ 79%] tests/test_trapd_stormwatch_settings.py::test_cleanup_and_exit::test_storm_counter_dict PASSED [ 80%] tests/test_trapd_stormwatch_settings.py::test_cleanup_and_exit::test_sw_config_category PASSED [ 81%] tests/test_trapd_stormwatch_settings.py::test_cleanup_and_exit::test_sw_config_high_water_in_interval_dict PASSED [ 82%] tests/test_trapd_stormwatch_settings.py::test_cleanup_and_exit::test_sw_config_low_water_in_interval_dict PASSED [ 83%] tests/test_trapd_stormwatch_settings.py::test_cleanup_and_exit::test_sw_config_oid_dict PASSED [ 84%] tests/test_trapd_stormwatch_settings.py::test_cleanup_and_exit::test_sw_interval_in_seconds PASSED [ 85%] tests/test_trapd_stormwatch_settings.py::test_cleanup_and_exit::test_sw_last_stormwatch_dict_analysis PASSED [ 86%] tests/test_trapd_vb_types.py::test_trapd_vb_types::test_trapd_vb_type_conversion_bits PASSED [ 87%] tests/test_trapd_vb_types.py::test_trapd_vb_types::test_trapd_vb_type_conversion_counter32 PASSED [ 88%] tests/test_trapd_vb_types.py::test_trapd_vb_types::test_trapd_vb_type_conversion_gauge32 PASSED [ 89%] tests/test_trapd_vb_types.py::test_trapd_vb_types::test_trapd_vb_type_conversion_integer PASSED [ 90%] tests/test_trapd_vb_types.py::test_trapd_vb_types::test_trapd_vb_type_conversion_integer32 PASSED [ 91%] tests/test_trapd_vb_types.py::test_trapd_vb_types::test_trapd_vb_type_conversion_invalid PASSED [ 92%] tests/test_trapd_vb_types.py::test_trapd_vb_types::test_trapd_vb_type_conversion_ipaddress PASSED [ 93%] tests/test_trapd_vb_types.py::test_trapd_vb_types::test_trapd_vb_type_conversion_null PASSED [ 94%] tests/test_trapd_vb_types.py::test_trapd_vb_types::test_trapd_vb_type_conversion_objectidentifier PASSED [ 95%] tests/test_trapd_vb_types.py::test_trapd_vb_types::test_trapd_vb_type_conversion_octetstring PASSED [ 96%] tests/test_trapd_vb_types.py::test_trapd_vb_types::test_trapd_vb_type_conversion_py_type_5 PASSED [ 97%] tests/test_trapd_vb_types.py::test_trapd_vb_types::test_trapd_vb_type_conversion_py_type_6 PASSED [ 98%] tests/test_trapd_vb_types.py::test_trapd_vb_types::test_trapd_vb_type_conversion_timeticks PASSED [100%] ----------- coverage: platform linux, python 3.6.9-final-0 ----------- Name Stmts Miss Cover --------------------------------------------------------------- snmptrap/__init__.py 0 0 100% snmptrap/mod/__init__.py 0 0 100% snmptrap/mod/trapd_exit.py 11 0 100% snmptrap/mod/trapd_get_cbs_config.py 58 3 95% snmptrap/mod/trapd_http_session.py 32 0 100% snmptrap/mod/trapd_io.py 160 0 100% snmptrap/mod/trapd_runtime_pid.py 26 0 100% snmptrap/mod/trapd_settings.py 55 0 100% snmptrap/mod/trapd_snmpv3.py 108 2 98% snmptrap/mod/trapd_stats_settings.py 7 0 100% snmptrap/mod/trapd_stormwatch.py 228 19 92% snmptrap/mod/trapd_stormwatch_settings.py 11 0 100% snmptrap/mod/trapd_vb_types.py 24 0 100% snmptrap/snmptrapd.py 363 84 77% --------------------------------------------------------------- TOTAL 1083 108 90% Coverage HTML written to dir htmlcov Coverage XML written to file coverage.xml ======================== 94 passed, 2 skipped in 10.59s ======================== ___________________________________ summary ____________________________________ py37: commands succeeded py38: commands succeeded py39: commands succeeded congratulations :) + deactivate + '[' -n /home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin ']' + PATH=/home/jenkins/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/puppetlabs/bin + export PATH + unset _OLD_VIRTUAL_PATH + '[' -n '' ']' + '[' -n /bin/bash -o -n '' ']' + hash -r + '[' -n '' ']' + unset VIRTUAL_ENV + '[' '!' '' = nondestructive ']' + unset -f deactivate + rm -rf ./venv-tox ./.tox [INFO] [INFO] --- exec-maven-plugin:1.2.1:exec (package script) @ snmptrap --- running script: [/w/workspace/dcaegen2-collectors-snmptrap-sonar/mvn-phase-script.sh] for module [__] at stage [package] => for SNAPSHOT artifact build MVN_DEPLOYMENT_TYPE is [SNAPSHOT] + echo 'running script: [/w/workspace/dcaegen2-collectors-snmptrap-sonar/mvn-phase-script.sh] for module [__] at stage [package]' + MVN_PROJECT_MODULEID=__ + MVN_PHASE=package ++ dirname /w/workspace/dcaegen2-collectors-snmptrap-sonar/mvn-phase-script.sh + PROJECT_ROOT=/w/workspace/dcaegen2-collectors-snmptrap-sonar + source /w/workspace/dcaegen2-collectors-snmptrap-sonar/mvn-phase-lib.sh ++ FQDN=org.onap.dcaegen2.collectors.snmptrap ++ '[' __ == __ ']' ++ MVN_PROJECT_MODULEID= ++ [[ 2.0.8-SNAPSHOT == *SNAPSHOT ]] ++ echo '=> for SNAPSHOT artifact build' ++ MVN_DEPLOYMENT_TYPE=SNAPSHOT ++ echo 'MVN_DEPLOYMENT_TYPE is [SNAPSHOT]' +++ date +%C%y%m%dT%H%M%S ++ TIMESTAMP=20251004T065802 ++ '[' -z https://nexus.onap.org ']' +++ echo https://nexus.onap.org +++ cut -f3 -d/ +++ cut -f1 -d: ++ MVN_NEXUSPROXY_HOST=nexus.onap.org ++ echo '=> Nexus Proxy at nexus.onap.org, https://nexus.onap.org' => Nexus Proxy at nexus.onap.org, https://nexus.onap.org ++ '[' -z /w/workspace/dcaegen2-collectors-snmptrap-sonar ']' ++ export SETTINGS_FILE=/w/workspace/dcaegen2-collectors-snmptrap-sonar@tmp/config11686235543988138679tmp ++ SETTINGS_FILE=/w/workspace/dcaegen2-collectors-snmptrap-sonar@tmp/config11686235543988138679tmp ++ MVN_PHASE=package ++ echo 'MVN_RELEASE_TAG is []' MVN_RELEASE_TAG is [] ++ echo 'MVN_PROJECT_MODULEID is []' MVN_PROJECT_MODULEID is [] ++ echo 'MVN_PHASE is [package]' MVN_PHASE is [package] ++ echo 'MVN_PROJECT_GROUPID is [org.onap.dcaegen2.collectors]' MVN_PROJECT_GROUPID is [org.onap.dcaegen2.collectors] ++ echo 'MVN_PROJECT_ARTIFACTID is [snmptrap]' MVN_PROJECT_ARTIFACTID is [snmptrap] ++ echo 'MVN_PROJECT_VERSION is [2.0.8-SNAPSHOT]' MVN_PROJECT_VERSION is [2.0.8-SNAPSHOT] ++ echo 'MVN_NEXUSPROXY is [https://nexus.onap.org]' MVN_NEXUSPROXY is [https://nexus.onap.org] ++ echo 'MVN_RAWREPO_BASEURL_UPLOAD is [https://nexus.onap.org/content/sites/raw]' MVN_RAWREPO_BASEURL_UPLOAD is [https://nexus.onap.org/content/sites/raw] MVN_RAWREPO_BASEURL_DOWNLOAD is [https://nexus.onap.org/service/local/repositories/raw/content] ++ echo 'MVN_RAWREPO_BASEURL_DOWNLOAD is [https://nexus.onap.org/service/local/repositories/raw/content]' +++ echo https://nexus.onap.org/content/sites/raw +++ cut -f3 -d/ +++ cut -f1 -d: ++ MVN_RAWREPO_HOST=nexus.onap.org ++ echo 'MVN_RAWREPO_HOST is [nexus.onap.org]' MVN_RAWREPO_HOST is [nexus.onap.org] MVN_RAWREPO_SERVERID is [ecomp-raw] ++ echo 'MVN_RAWREPO_SERVERID is [ecomp-raw]' ++ echo 'MVN_DOCKERREGISTRY_SNAPSHOT is [nexus3.onap.org:10003]' MVN_DOCKERREGISTRY_SNAPSHOT is [nexus3.onap.org:10003] MVN_DOCKERREGISTRY_PUBLIC is [] MVN_DOCKERREGISTRY_RELEASE is [nexus3.onap.org:10002] MVN_PYPISERVER_SERVERID [] MVN_PYPISERVER_BASEURL is [] ++ echo 'MVN_DOCKERREGISTRY_PUBLIC is []' ++ echo 'MVN_DOCKERREGISTRY_RELEASE is [nexus3.onap.org:10002]' ++ echo 'MVN_PYPISERVER_SERVERID []' ++ echo 'MVN_PYPISERVER_BASEURL is []' + case $MVN_PHASE in + echo '==> package phase script' ==> package phase script [INFO] [INFO] --- jacoco-maven-plugin:0.7.7.201606060606:prepare-agent (pre-integration-test) @ snmptrap --- [INFO] failsafeArgLine set to -javaagent:/tmp/r/org/jacoco/org.jacoco.agent/0.7.7.201606060606/org.jacoco.agent-0.7.7.201606060606-runtime.jar=destfile=/w/workspace/dcaegen2-collectors-snmptrap-sonar/target/code-coverage/jacoco-it.exec,excludes=**/gen/**:**/generated-sources/**:**/yang-gen/**:**/pax/** [INFO] [INFO] --- maven-failsafe-plugin:2.22.0:integration-test (integration-tests) @ snmptrap --- [INFO] No tests to run. [INFO] [INFO] --- jacoco-maven-plugin:0.7.7.201606060606:report (post-integration-test) @ snmptrap --- [INFO] Skipping JaCoCo execution due to missing execution data file. [INFO] [INFO] --- maven-failsafe-plugin:2.22.0:verify (integration-tests) @ snmptrap --- [INFO] Failsafe report directory: /w/workspace/dcaegen2-collectors-snmptrap-sonar/target/failsafe-reports [INFO] [INFO] --- maven-install-plugin:2.4:install (default-install) @ snmptrap --- [INFO] Skipping artifact installation [INFO] [INFO] --- exec-maven-plugin:1.2.1:exec (install script) @ snmptrap --- running script: [/w/workspace/dcaegen2-collectors-snmptrap-sonar/mvn-phase-script.sh] for module [__] at stage [install] + echo 'running script: [/w/workspace/dcaegen2-collectors-snmptrap-sonar/mvn-phase-script.sh] for module [__] at stage [install]' + MVN_PROJECT_MODULEID=__ + MVN_PHASE=install ++ dirname /w/workspace/dcaegen2-collectors-snmptrap-sonar/mvn-phase-script.sh + PROJECT_ROOT=/w/workspace/dcaegen2-collectors-snmptrap-sonar + source /w/workspace/dcaegen2-collectors-snmptrap-sonar/mvn-phase-lib.sh ++ FQDN=org.onap.dcaegen2.collectors.snmptrap ++ '[' __ == __ ']' ++ MVN_PROJECT_MODULEID= => for SNAPSHOT artifact build MVN_DEPLOYMENT_TYPE is [SNAPSHOT] ++ [[ 2.0.8-SNAPSHOT == *SNAPSHOT ]] ++ echo '=> for SNAPSHOT artifact build' ++ MVN_DEPLOYMENT_TYPE=SNAPSHOT ++ echo 'MVN_DEPLOYMENT_TYPE is [SNAPSHOT]' +++ date +%C%y%m%dT%H%M%S ++ TIMESTAMP=20251004T065803 ++ '[' -z https://nexus.onap.org ']' +++ cut -f1 -d: +++ echo https://nexus.onap.org +++ cut -f3 -d/ ++ MVN_NEXUSPROXY_HOST=nexus.onap.org ++ echo '=> Nexus Proxy at nexus.onap.org, https://nexus.onap.org' ++ '[' -z /w/workspace/dcaegen2-collectors-snmptrap-sonar ']' ++ export SETTINGS_FILE=/w/workspace/dcaegen2-collectors-snmptrap-sonar@tmp/config11686235543988138679tmp ++ SETTINGS_FILE=/w/workspace/dcaegen2-collectors-snmptrap-sonar@tmp/config11686235543988138679tmp ++ MVN_PHASE=install ++ echo 'MVN_RELEASE_TAG is []' ++ echo 'MVN_PROJECT_MODULEID is []' ++ echo 'MVN_PHASE is [install]' ++ echo 'MVN_PROJECT_GROUPID is [org.onap.dcaegen2.collectors]' ++ echo 'MVN_PROJECT_ARTIFACTID is [snmptrap]' ++ echo 'MVN_PROJECT_VERSION is [2.0.8-SNAPSHOT]' ++ echo 'MVN_NEXUSPROXY is [https://nexus.onap.org]' ++ echo 'MVN_RAWREPO_BASEURL_UPLOAD is [https://nexus.onap.org/content/sites/raw]' ++ echo 'MVN_RAWREPO_BASEURL_DOWNLOAD is [https://nexus.onap.org/service/local/repositories/raw/content]' => Nexus Proxy at nexus.onap.org, https://nexus.onap.org MVN_RELEASE_TAG is [] MVN_PROJECT_MODULEID is [] MVN_PHASE is [install] MVN_PROJECT_GROUPID is [org.onap.dcaegen2.collectors] MVN_PROJECT_ARTIFACTID is [snmptrap] MVN_PROJECT_VERSION is [2.0.8-SNAPSHOT] MVN_NEXUSPROXY is [https://nexus.onap.org] MVN_RAWREPO_BASEURL_UPLOAD is [https://nexus.onap.org/content/sites/raw] MVN_RAWREPO_BASEURL_DOWNLOAD is [https://nexus.onap.org/service/local/repositories/raw/content] +++ echo https://nexus.onap.org/content/sites/raw +++ cut -f3 -d/ +++ cut -f1 -d: ++ MVN_RAWREPO_HOST=nexus.onap.org MVN_RAWREPO_HOST is [nexus.onap.org] MVN_RAWREPO_SERVERID is [ecomp-raw] MVN_DOCKERREGISTRY_SNAPSHOT is [nexus3.onap.org:10003] ++ echo 'MVN_RAWREPO_HOST is [nexus.onap.org]' ++ echo 'MVN_RAWREPO_SERVERID is [ecomp-raw]' ++ echo 'MVN_DOCKERREGISTRY_SNAPSHOT is [nexus3.onap.org:10003]' ++ echo 'MVN_DOCKERREGISTRY_PUBLIC is []' ++ echo 'MVN_DOCKERREGISTRY_RELEASE is [nexus3.onap.org:10002]' ++ echo 'MVN_PYPISERVER_SERVERID []' ++ echo 'MVN_PYPISERVER_BASEURL is []' MVN_DOCKERREGISTRY_PUBLIC is [] MVN_DOCKERREGISTRY_RELEASE is [nexus3.onap.org:10002] MVN_PYPISERVER_SERVERID [] MVN_PYPISERVER_BASEURL is [] + case $MVN_PHASE in + echo '==> install phase script' ==> install phase script [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:23 min [INFO] Finished at: 2025-10-04T06:58:03Z [INFO] ------------------------------------------------------------------------ + '[' https://sonarcloud.io = https://sonarcloud.io ']' + params+=("-Dsonar.projectKey=$PROJECT_KEY") + params+=("-Dsonar.organization=$PROJECT_ORGANIZATION") + params+=("-Dsonar.login=$API_TOKEN") + '[' False = True ']' + '[' -n openjdk17 ']' + '[' openjdk11 '!=' openjdk17 ']' + export SET_JDK_VERSION=openjdk17 + SET_JDK_VERSION=openjdk17 + bash /dev/fd/63 ++ curl -s https://raw.githubusercontent.com/lfit/releng-global-jjb/master/shell/update-java-alternatives.sh ---> update-java-alternatives.sh ---> Updating Java version ---> Ubuntu/Debian system detected update-alternatives: using /usr/lib/jvm/java-17-openjdk-amd64/bin/java to provide /usr/bin/java (java) in manual mode update-alternatives: using /usr/lib/jvm/java-17-openjdk-amd64/bin/javac to provide /usr/bin/javac (javac) in manual mode update-alternatives: using /usr/lib/jvm/java-17-openjdk-amd64 to provide /usr/lib/jvm/java-openjdk (java_sdk_openjdk) in manual mode openjdk version "17.0.4" 2022-07-19 OpenJDK Runtime Environment (build 17.0.4+8-Ubuntu-118.04) OpenJDK 64-Bit Server VM (build 17.0.4+8-Ubuntu-118.04, mixed mode, sharing) JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 + source /tmp/java.env ++ JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64 + /w/tools/hudson.tasks.Maven_MavenInstallation/mvn35/bin/mvn org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar -e -Dsonar -Dsonar.host.url=https://sonarcloud.io --global-settings /w/workspace/dcaegen2-collectors-snmptrap-sonar@tmp/config15642944970857926575tmp --settings /w/workspace/dcaegen2-collectors-snmptrap-sonar@tmp/config11686235543988138679tmp -Dsonar.projectKey=onap_dcaegen2-collectors-snmptrap -Dsonar.organization=onap -Dsonar.login=**** --show-version --batch-mode -Djenkins -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -Dmaven.repo.local=/tmp/r -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z) Maven home: /w/tools/hudson.tasks.Maven_MavenInstallation/mvn35 Java version: 17.0.4, vendor: Private Build, runtime: /usr/lib/jvm/java-17-openjdk-amd64 Default locale: en, platform encoding: UTF-8 OS name: "linux", version: "4.15.0-194-generic", arch: "amd64", family: "unix" [INFO] Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Inspecting build with total of 1 modules... [INFO] Installing Nexus Staging features: [INFO] ... total of 1 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin [INFO] [INFO] ---------------< org.onap.dcaegen2.collectors:snmptrap >---------------- [INFO] Building dcaegen2-collectors-snmptrap 2.0.8-SNAPSHOT [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- sonar-maven-plugin:3.9.1.2184:sonar (default-cli) @ snmptrap --- [INFO] User cache: /home/jenkins/.sonar/cache [INFO] SonarQube version: 11.23.0.1000 [INFO] Default locale: "en", source code encoding: "UTF-8" [INFO] Load global settings [INFO] Load global settings (done) | time=498ms [INFO] Server id: 1BD809FA-AWHW8ct9-T_TB3XqouNu [INFO] Loading required plugins [INFO] Load plugins index [INFO] Load plugins index (done) | time=182ms [INFO] Load/download plugins [INFO] Load/download plugins (done) | time=660ms [INFO] Found an active CI vendor: 'Jenkins' [INFO] Load project settings for component key: 'onap_dcaegen2-collectors-snmptrap' [INFO] Load project settings for component key: 'onap_dcaegen2-collectors-snmptrap' (done) | time=316ms [INFO] Process project properties [INFO] Execute project builders [INFO] Execute project builders (done) | time=1ms [INFO] Project key: onap_dcaegen2-collectors-snmptrap [INFO] Base dir: /w/workspace/dcaegen2-collectors-snmptrap-sonar [INFO] Working dir: /w/workspace/dcaegen2-collectors-snmptrap-sonar/target/sonar [INFO] Load project branches [INFO] Load project branches (done) | time=254ms [INFO] Check ALM binding of project 'onap_dcaegen2-collectors-snmptrap' [INFO] Detected project binding: NOT_BOUND [INFO] Check ALM binding of project 'onap_dcaegen2-collectors-snmptrap' (done) | time=169ms [INFO] Load project pull requests [INFO] Load project pull requests (done) | time=168ms [INFO] Load branch configuration [INFO] Load branch configuration (done) | time=2ms [INFO] Load quality profiles [INFO] Load quality profiles (done) | time=460ms [INFO] Inferred api base url 'https://api.sonarcloud.io' from host url 'https://sonarcloud.io'. [INFO] Inferred api base url 'https://api.sonarcloud.io' from host url 'https://sonarcloud.io'. [INFO] Create analysis [INFO] Create analysis (done) | time=454ms [INFO] Inferred api base url 'https://api.sonarcloud.io' from host url 'https://sonarcloud.io'. [INFO] Load active rules [INFO] Load active rules (done) | time=1021ms [INFO] Organization key: onap [WARNING] The property 'sonar.login' is deprecated and will be removed in the future. Please use the 'sonar.token' property instead when passing a token. [INFO] Preprocessing files... [INFO] 1 language detected in 12 preprocessed files (done) | time=120ms [INFO] 207 files ignored because of inclusion/exclusion patterns [INFO] 0 files ignored because of scm ignore settings [INFO] Loading plugins for detected languages [INFO] Load/download plugins [INFO] Load/download plugins (done) | time=730ms [INFO] Load project repositories [INFO] Load project repositories (done) | time=203ms [INFO] Indexing files... [INFO] Project configuration: [INFO] Included sources: **/*.py [INFO] Excluded sources: target/**, tests/**, setup.py, **/__init__.py, **/build-wrapper-dump.json [INFO] 12 files indexed (done) | time=9ms [INFO] Quality profile for py: Sonar way [INFO] ------------- Run sensors on module dcaegen2-collectors-snmptrap [INFO] Load metrics repository [INFO] Load metrics repository (done) | time=118ms [INFO] Sensor cache enabled [INFO] Inferred api base url 'https://api.sonarcloud.io' from host url 'https://sonarcloud.io'. [INFO] Load sensor cache [INFO] Load sensor cache (125 KB) | time=920ms [INFO] Inferred api base url 'https://api.sonarcloud.io' from host url 'https://sonarcloud.io'. [INFO] Sensor Python Sensor [python] [WARNING] Your code is analyzed as compatible with all Python 3 versions by default. You can get a more precise analysis by setting the exact Python version in your configuration via the parameter "sonar.python.version" [INFO] Starting global symbols computation [INFO] 12 source files to be analyzed [INFO] 12/12 source files have been analyzed [INFO] Finished step global symbols computation in 575ms [INFO] Starting rules execution [INFO] 12 source files to be analyzed [INFO] 12/12 source files have been analyzed [INFO] Finished step rules execution in 3502ms [INFO] The Python analyzer was able to leverage cached data from previous analyses for 0 out of 12 files. These files were not parsed. [INFO] Sensor Python Sensor [python] (done) | time=4286ms [INFO] Sensor Cobertura Sensor for Python coverage [python] [INFO] Python test coverage [INFO] Parsing report '/w/workspace/dcaegen2-collectors-snmptrap-sonar/coverage.xml' [INFO] Sensor Cobertura Sensor for Python coverage [python] (done) | time=147ms [INFO] Sensor PythonXUnitSensor [python] [INFO] Sensor PythonXUnitSensor [python] (done) | time=51ms [INFO] Sensor Python Dependency Sensor [python] [INFO] Sensor Python Dependency Sensor [python] (done) | time=4ms [INFO] Sensor Python HTML templates processing [securitypythonfrontend] [INFO] HTML files are not indexed : you may want to add them in the scanned files of this project to detect Python XSS vulnerabilities [INFO] Sensor Python HTML templates processing [securitypythonfrontend] (done) | time=25ms [INFO] Sensor JaCoCo XML Report Importer [jacoco] [INFO] 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml [INFO] No report imported, no coverage information will be imported by JaCoCo XML Report Importer [INFO] Sensor JaCoCo XML Report Importer [jacoco] (done) | time=2ms [INFO] Sensor IaC GitHub Actions Sensor [iacenterprise] [INFO] There are no files to be analyzed for the GitHub Actions language [INFO] Sensor IaC GitHub Actions Sensor [iacenterprise] (done) | time=3ms [INFO] Sensor IaC Docker Sensor [iac] [INFO] There are no files to be analyzed for the Docker language [INFO] Sensor IaC Docker Sensor [iac] (done) | time=16ms [INFO] Sensor IaC hadolint report Sensor [iac] [INFO] Sensor IaC hadolint report Sensor [iac] (done) | time=1ms [INFO] Sensor Java Config Sensor [iac] [INFO] There are no files to be analyzed for the Java language [INFO] Sensor Java Config Sensor [iac] (done) | time=6ms [INFO] Sensor Serverless configuration file sensor [security] [INFO] 0 Serverless function entries were found in the project [INFO] 0 Serverless function handlers were kept as entrypoints [INFO] Sensor Serverless configuration file sensor [security] (done) | time=3ms [INFO] Sensor AWS SAM template file sensor [security] [INFO] Sensor AWS SAM template file sensor [security] (done) | time=0ms [INFO] Sensor AWS SAM Inline template file sensor [security] [INFO] Sensor AWS SAM Inline template file sensor [security] (done) | time=1ms [INFO] Sensor EnterpriseTextAndSecretsSensor [textenterprise] [INFO] Available processors: 4 [INFO] Using 4 threads for analysis. [INFO] The property "sonar.tests" is not set. To improve the analysis accuracy, we categorize a file as a test file if any of the following is true: * The filename starts with "test" * The filename contains "test." or "tests." * Any directory in the file path is named: "doc", "docs", "test" or "tests" * Any directory in the file path has a name ending in "test" or "tests" [INFO] Start fetching files for the text and secrets analysis [INFO] Using Git CLI to retrieve untracked files [INFO] Retrieving language associated files and files included via "sonar.text.inclusions" that are tracked by git [INFO] Starting the text and secrets analysis [INFO] 12 source files to be analyzed for the text and secrets analysis [INFO] 12/12 source files have been analyzed for the text and secrets analysis [INFO] Start fetching files for the binary file analysis [INFO] There are no files to be analyzed for the binary file analysis [INFO] Sensor EnterpriseTextAndSecretsSensor [textenterprise] (done) | time=857ms [INFO] Sensor javabugs [dbd] [INFO] No IR files have been included for analysis. [INFO] Sensor javabugs [dbd] (done) | time=7ms [INFO] Sensor pythonbugs [dbd] [INFO] Analyzing 33/62 functions to detect bugs. [INFO] Sensor pythonbugs [dbd] (done) | time=374ms [INFO] Sensor JavaSecuritySensor [security] [INFO] 13 taint analysis rules enabled. [INFO] No UCFGs have been included for analysis. [INFO] java security sensor: Begin: 2025-10-04T06:58:23.307376052Z, End: 2025-10-04T06:58:23.320795425Z, Duration: 00:00:00.013 Load type hierarchy and UCFGs: Begin: 2025-10-04T06:58:23.313761727Z, End: 2025-10-04T06:58:23.314844628Z, Duration: 00:00:00.001 Load type hierarchy: Begin: 2025-10-04T06:58:23.313777288Z, End: 2025-10-04T06:58:23.314586073Z, Duration: 00:00:00.000 Load UCFGs: Begin: 2025-10-04T06:58:23.314763437Z, End: 2025-10-04T06:58:23.314784557Z, Duration: 00:00:00.000 [INFO] java security sensor peak memory: 387 MB [INFO] Sensor JavaSecuritySensor [security] (done) | time=51ms [INFO] Sensor CSharpSecuritySensor [security] [INFO] 27 taint analysis rules enabled. [INFO] No UCFGs have been included for analysis. [INFO] csharp security sensor: Begin: 2025-10-04T06:58:23.353769099Z, End: 2025-10-04T06:58:23.357404770Z, Duration: 00:00:00.003 Load type hierarchy and UCFGs: Begin: 2025-10-04T06:58:23.355796639Z, End: 2025-10-04T06:58:23.355998483Z, Duration: 00:00:00.000 Load type hierarchy: Begin: 2025-10-04T06:58:23.355799629Z, End: 2025-10-04T06:58:23.355901421Z, Duration: 00:00:00.000 Load UCFGs: Begin: 2025-10-04T06:58:23.355960322Z, End: 2025-10-04T06:58:23.355970772Z, Duration: 00:00:00.000 [INFO] csharp security sensor peak memory: 387 MB [INFO] Sensor CSharpSecuritySensor [security] (done) | time=12ms [INFO] Sensor VbNetSecuritySensor [security] [INFO] 25 taint analysis rules enabled. [INFO] No UCFGs have been included for analysis. [INFO] vbnet security sensor: Begin: 2025-10-04T06:58:23.364170393Z, End: 2025-10-04T06:58:23.365302025Z, Duration: 00:00:00.001 Load type hierarchy and UCFGs: Begin: 2025-10-04T06:58:23.364405947Z, End: 2025-10-04T06:58:23.364575731Z, Duration: 00:00:00.000 Load type hierarchy: Begin: 2025-10-04T06:58:23.364407757Z, End: 2025-10-04T06:58:23.364443098Z, Duration: 00:00:00.000 Load UCFGs: Begin: 2025-10-04T06:58:23.364547710Z, End: 2025-10-04T06:58:23.364559610Z, Duration: 00:00:00.000 [INFO] vbnet security sensor peak memory: 387 MB [INFO] Sensor VbNetSecuritySensor [security] (done) | time=4ms [INFO] Sensor PhpSecuritySensor [security] [INFO] 18 taint analysis rules enabled. [INFO] No UCFGs have been included for analysis. [INFO] php security sensor: Begin: 2025-10-04T06:58:23.368290263Z, End: 2025-10-04T06:58:23.368753332Z, Duration: 00:00:00.000 Load type hierarchy and UCFGs: Begin: 2025-10-04T06:58:23.368462527Z, End: 2025-10-04T06:58:23.368539458Z, Duration: 00:00:00.000 Load type hierarchy: Begin: 2025-10-04T06:58:23.368464367Z, End: 2025-10-04T06:58:23.368491037Z, Duration: 00:00:00.000 Load UCFGs: Begin: 2025-10-04T06:58:23.368519878Z, End: 2025-10-04T06:58:23.368525488Z, Duration: 00:00:00.000 [INFO] php security sensor peak memory: 387 MB [INFO] Sensor PhpSecuritySensor [security] (done) | time=1ms [INFO] Sensor PythonSecuritySensor [security] [INFO] 21 taint analysis rules enabled. [INFO] Analyzing 6637 UCFGs to detect vulnerabilities. [INFO] No entry points found. [INFO] python security sensor: Begin: 2025-10-04T06:58:23.369658290Z, End: 2025-10-04T06:58:24.460103434Z, Duration: 00:00:01.090 Load type hierarchy and UCFGs: Begin: 2025-10-04T06:58:23.369849974Z, End: 2025-10-04T06:58:23.969796123Z, Duration: 00:00:00.599 Load type hierarchy: Begin: 2025-10-04T06:58:23.369851724Z, End: 2025-10-04T06:58:23.474148053Z, Duration: 00:00:00.104 Load UCFGs: Begin: 2025-10-04T06:58:23.474204884Z, End: 2025-10-04T06:58:23.969661800Z, Duration: 00:00:00.495 Check cache: Begin: 2025-10-04T06:58:23.970729901Z, End: 2025-10-04T06:58:23.970971456Z, Duration: 00:00:00.000 Load cache: Begin: 2025-10-04T06:58:23.970735741Z, End: 2025-10-04T06:58:23.970758481Z, Duration: 00:00:00.000 Create runtime call graph: Begin: 2025-10-04T06:58:23.970992046Z, End: 2025-10-04T06:58:24.200687506Z, Duration: 00:00:00.229 Variable Type Analysis #1: Begin: 2025-10-04T06:58:23.971648719Z, End: 2025-10-04T06:58:24.106114431Z, Duration: 00:00:00.134 Create runtime type propagation graph: Begin: 2025-10-04T06:58:23.972302292Z, End: 2025-10-04T06:58:24.040433Z, Duration: 00:00:00.068 Run SCC (Tarjan) on 15458 nodes: Begin: 2025-10-04T06:58:24.040843898Z, End: 2025-10-04T06:58:24.057720032Z, Duration: 00:00:00.016 Propagate runtime types to strongly connected components: Begin: 2025-10-04T06:58:24.057833474Z, End: 2025-10-04T06:58:24.106026399Z, Duration: 00:00:00.048 Variable Type Analysis #2: Begin: 2025-10-04T06:58:24.108593638Z, End: 2025-10-04T06:58:24.195600808Z, Duration: 00:00:00.087 Create runtime type propagation graph: Begin: 2025-10-04T06:58:24.108599808Z, End: 2025-10-04T06:58:24.149648246Z, Duration: 00:00:00.041 Run SCC (Tarjan) on 14813 nodes: Begin: 2025-10-04T06:58:24.149766348Z, End: 2025-10-04T06:58:24.160573326Z, Duration: 00:00:00.010 Propagate runtime types to strongly connected components: Begin: 2025-10-04T06:58:24.160618357Z, End: 2025-10-04T06:58:24.195466985Z, Duration: 00:00:00.034 Load config: Begin: 2025-10-04T06:58:24.200722266Z, End: 2025-10-04T06:58:24.412596843Z, Duration: 00:00:00.211 Compute entry points: Begin: 2025-10-04T06:58:24.412726865Z, End: 2025-10-04T06:58:24.459068295Z, Duration: 00:00:00.046 [INFO] python security sensor peak memory: 608 MB [INFO] Sensor PythonSecuritySensor [security] (done) | time=1102ms [INFO] Sensor JsSecuritySensor [security] [INFO] 15 taint analysis rules enabled. [INFO] No UCFGs have been included for analysis. [INFO] js security sensor: Begin: 2025-10-04T06:58:24.472577314Z, End: 2025-10-04T06:58:24.473645484Z, Duration: 00:00:00.001 Load type hierarchy and UCFGs: Begin: 2025-10-04T06:58:24.473294158Z, End: 2025-10-04T06:58:24.473461271Z, Duration: 00:00:00.000 Load type hierarchy: Begin: 2025-10-04T06:58:24.473297048Z, End: 2025-10-04T06:58:24.473395650Z, Duration: 00:00:00.000 Load UCFGs: Begin: 2025-10-04T06:58:24.473442990Z, End: 2025-10-04T06:58:24.473449331Z, Duration: 00:00:00.000 [INFO] js security sensor peak memory: 397 MB [INFO] Sensor JsSecuritySensor [security] (done) | time=2ms [INFO] Sensor KotlinSecuritySensor [security] [INFO] 28 taint analysis rules enabled. [INFO] No UCFGs have been included for analysis. [INFO] kotlin security sensor: Begin: 2025-10-04T06:58:24.474433550Z, End: 2025-10-04T06:58:24.474900048Z, Duration: 00:00:00.000 Load type hierarchy and UCFGs: Begin: 2025-10-04T06:58:24.474659404Z, End: 2025-10-04T06:58:24.474725055Z, Duration: 00:00:00.000 Load type hierarchy: Begin: 2025-10-04T06:58:24.474661144Z, End: 2025-10-04T06:58:24.474687914Z, Duration: 00:00:00.000 Load UCFGs: Begin: 2025-10-04T06:58:24.474707275Z, End: 2025-10-04T06:58:24.474714945Z, Duration: 00:00:00.000 [INFO] kotlin security sensor peak memory: 397 MB [INFO] Sensor KotlinSecuritySensor [security] (done) | time=1ms [INFO] Sensor GoSecuritySensor [security] [INFO] 9 taint analysis rules enabled. [INFO] No UCFGs have been included for analysis. [INFO] go security sensor: Begin: 2025-10-04T06:58:24.475678223Z, End: 2025-10-04T06:58:24.476009470Z, Duration: 00:00:00.000 Load type hierarchy and UCFGs: Begin: 2025-10-04T06:58:24.475775855Z, End: 2025-10-04T06:58:24.475838436Z, Duration: 00:00:00.000 Load type hierarchy: Begin: 2025-10-04T06:58:24.475777385Z, End: 2025-10-04T06:58:24.475802946Z, Duration: 00:00:00.000 Load UCFGs: Begin: 2025-10-04T06:58:24.475823876Z, End: 2025-10-04T06:58:24.475828776Z, Duration: 00:00:00.000 [INFO] go security sensor peak memory: 398 MB [INFO] Sensor GoSecuritySensor [security] (done) | time=1ms [INFO] ------------- Run sensors on project [INFO] Sensor PythonArchitectureSensor [architecture] [INFO] Sensor PythonArchitectureSensor [architecture] (done) | time=11ms [INFO] Sensor Zero Coverage Sensor [INFO] Sensor Zero Coverage Sensor (done) | time=1ms [INFO] ------------- Gather SCA dependencies on project [INFO] Checking if SCA is enabled for organization onap [INFO] Dependency analysis skipped [INFO] CPD Executor Calculating CPD for 12 files [INFO] CPD Executor CPD calculation finished (done) | time=14ms [INFO] Analysis report generated in 157ms, dir size=494 KB [INFO] Analysis report compressed in 32ms, zip size=131 KB [INFO] Analysis report uploaded in 613ms [INFO] ANALYSIS SUCCESSFUL, you can find the results at: https://sonarcloud.io/dashboard?id=onap_dcaegen2-collectors-snmptrap [INFO] Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report [INFO] More about the report processing at https://sonarcloud.io/api/ce/task?id=AZmuA8D8mJSqJRW3A2TK [INFO] ------------- Upload SCA dependency files [INFO] Sensor cache published successfully [INFO] Inferred api base url 'https://api.sonarcloud.io' from host url 'https://sonarcloud.io'. [INFO] Analysis total time: 15.864 s [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 21.832 s [INFO] Finished at: 2025-10-04T06:58:26Z [INFO] ------------------------------------------------------------------------ [dcaegen2-collectors-snmptrap-sonar] $ /bin/bash /tmp/jenkins9279080395214709800.sh [Boolean condition] checking [true] against [^(1|y|yes|t|true|on|run)$] (origin token: true) Run condition [Not] preventing perform for step [BuilderChain] [FINDBUGS] Collecting findbugs analysis files... [FINDBUGS] Searching for all files in /w/workspace/dcaegen2-collectors-snmptrap-sonar that match the pattern **/findbugs.xml [FINDBUGS] No files found. Configuration error? The recommended git tool is: NONE using credential onap-jenkins-ssh Using GitBlamer to create author and commit information for all warnings. GIT_COMMIT=9b79aa3ae4802be5774119df475cfb8581a0f864, workspace=/w/workspace/dcaegen2-collectors-snmptrap-sonar [FINDBUGS] Computing warning deltas based on reference build #2220 [PostBuildScript] - [INFO] Executing post build scripts. [dcaegen2-collectors-snmptrap-sonar] $ /bin/bash /tmp/jenkins9892795213210206397.sh ---> sysstat.sh [dcaegen2-collectors-snmptrap-sonar] $ /bin/bash /tmp/jenkins4755744246777251443.sh ---> package-listing.sh ++ facter osfamily ++ tr '[:upper:]' '[:lower:]' + OS_FAMILY=debian + workspace=/w/workspace/dcaegen2-collectors-snmptrap-sonar + START_PACKAGES=/tmp/packages_start.txt + END_PACKAGES=/tmp/packages_end.txt + DIFF_PACKAGES=/tmp/packages_diff.txt + PACKAGES=/tmp/packages_start.txt + '[' /w/workspace/dcaegen2-collectors-snmptrap-sonar ']' + PACKAGES=/tmp/packages_end.txt + case "${OS_FAMILY}" in + dpkg -l + grep '^ii' + '[' -f /tmp/packages_start.txt ']' + '[' -f /tmp/packages_end.txt ']' + diff /tmp/packages_start.txt /tmp/packages_end.txt + '[' /w/workspace/dcaegen2-collectors-snmptrap-sonar ']' + mkdir -p /w/workspace/dcaegen2-collectors-snmptrap-sonar/archives/ + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/dcaegen2-collectors-snmptrap-sonar/archives/ [dcaegen2-collectors-snmptrap-sonar] $ /bin/bash /tmp/jenkins15098959513385678159.sh ---> capture-instance-metadata.sh Setup pyenv: system 3.8.13 3.9.13 * 3.10.6 (set by /w/workspace/dcaegen2-collectors-snmptrap-sonar/.python-version) lf-activate-venv(): INFO: Reuse venv:/tmp/venv-iBrR from file:/tmp/.os_lf_venv lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) lf-activate-venv(): INFO: Attempting to install with network-safe options... lf-activate-venv(): INFO: Base packages installed successfully lf-activate-venv(): INFO: Installing additional packages: lftools lf-activate-venv(): INFO: Adding /tmp/venv-iBrR/bin to PATH INFO: Running in OpenStack, capturing instance metadata [dcaegen2-collectors-snmptrap-sonar] $ /bin/bash /tmp/jenkins18133940246340504204.sh provisioning config files... copy managed file [jenkins-log-archives-settings] to file:/w/workspace/dcaegen2-collectors-snmptrap-sonar@tmp/config10465551041154600943tmp Regular expression run condition: Expression=[^.*logs-s3.*], Label=[] Run condition [Regular expression match] preventing perform for step [Provide Configuration files] [EnvInject] - Injecting environment variables from a build step. [EnvInject] - Injecting as environment variables the properties content SERVER_ID=logs [EnvInject] - Variables injected successfully. [dcaegen2-collectors-snmptrap-sonar] $ /bin/bash /tmp/jenkins5941619927892924429.sh ---> create-netrc.sh [dcaegen2-collectors-snmptrap-sonar] $ /bin/bash /tmp/jenkins1463325433248601583.sh ---> python-tools-install.sh Setup pyenv: system 3.8.13 3.9.13 * 3.10.6 (set by /w/workspace/dcaegen2-collectors-snmptrap-sonar/.python-version) lf-activate-venv(): INFO: Reuse venv:/tmp/venv-iBrR from file:/tmp/.os_lf_venv lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) lf-activate-venv(): INFO: Attempting to install with network-safe options... lf-activate-venv(): INFO: Base packages installed successfully lf-activate-venv(): INFO: Installing additional packages: lftools lf-activate-venv(): INFO: Adding /tmp/venv-iBrR/bin to PATH [dcaegen2-collectors-snmptrap-sonar] $ /bin/bash /tmp/jenkins1852994178077082620.sh ---> sudo-logs.sh Archiving 'sudo' log.. [dcaegen2-collectors-snmptrap-sonar] $ /bin/bash /tmp/jenkins16954524575812387875.sh ---> job-cost.sh Setup pyenv: system 3.8.13 3.9.13 * 3.10.6 (set by /w/workspace/dcaegen2-collectors-snmptrap-sonar/.python-version) lf-activate-venv(): INFO: Reuse venv:/tmp/venv-iBrR from file:/tmp/.os_lf_venv lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) lf-activate-venv(): INFO: Attempting to install with network-safe options... lf-activate-venv(): INFO: Base packages installed successfully lf-activate-venv(): INFO: Installing additional packages: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 lf-activate-venv(): INFO: Adding /tmp/venv-iBrR/bin to PATH INFO: No Stack... INFO: Retrieving Pricing Info for: v3-standard-4 INFO: Archiving Costs [dcaegen2-collectors-snmptrap-sonar] $ /bin/bash -l /tmp/jenkins16068114290117577185.sh ---> logs-deploy.sh Setup pyenv: system 3.8.13 3.9.13 * 3.10.6 (set by /w/workspace/dcaegen2-collectors-snmptrap-sonar/.python-version) lf-activate-venv(): INFO: Reuse venv:/tmp/venv-iBrR from file:/tmp/.os_lf_venv lf-activate-venv(): INFO: Installing base packages (pip, setuptools, virtualenv) lf-activate-venv(): INFO: Attempting to install with network-safe options... lf-activate-venv(): INFO: Base packages installed successfully lf-activate-venv(): INFO: Installing additional packages: lftools lf-activate-venv(): INFO: Adding /tmp/venv-iBrR/bin to PATH INFO: Nexus URL https://nexus.onap.org path production/vex-yul-ecomp-jenkins-1/dcaegen2-collectors-snmptrap-sonar/2221 INFO: archiving workspace using pattern(s): -p **/*.log -p **/hs_err_*.log -p **/target/**/feature.xml -p **/target/failsafe-reports/failsafe-summary.xml -p **/target/surefire-reports/*-output.txt Archives upload complete. INFO: archiving logs to Nexus ---> uname -a: Linux prd-ubuntu1804-builder-4c-4g-175 4.15.0-194-generic #205-Ubuntu SMP Fri Sep 16 19:49:27 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux ---> lscpu: Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian CPU(s): 4 On-line CPU(s) list: 0-3 Thread(s) per core: 1 Core(s) per socket: 1 Socket(s): 4 NUMA node(s): 1 Vendor ID: AuthenticAMD CPU family: 23 Model: 49 Model name: AMD EPYC-Rome Processor Stepping: 0 CPU MHz: 2800.000 BogoMIPS: 5600.00 Virtualization: AMD-V Hypervisor vendor: KVM Virtualization type: full L1d cache: 32K L1i cache: 32K L2 cache: 512K L3 cache: 16384K NUMA node0 CPU(s): 0-3 Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm rep_good nopl xtopology cpuid extd_apicid tsc_known_freq pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy svm cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw topoext perfctr_core ssbd ibrs ibpb stibp vmmcall fsgsbase tsc_adjust bmi1 avx2 smep bmi2 rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves clzero xsaveerptr arat npt nrip_save umip rdpid arch_capabilities ---> nproc: 4 ---> df -h: Filesystem Size Used Avail Use% Mounted on udev 7.9G 0 7.9G 0% /dev tmpfs 1.6G 680K 1.6G 1% /run /dev/vda1 78G 8.5G 69G 11% / tmpfs 7.9G 0 7.9G 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup /dev/vda15 105M 4.4M 100M 5% /boot/efi tmpfs 1.6G 0 1.6G 0% /run/user/1001 ---> free -m: total used free shared buff/cache available Mem: 16040 620 13066 0 2353 15100 Swap: 1023 0 1023 ---> ip addr: 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: ens3: mtu 1458 qdisc mq state UP group default qlen 1000 link/ether fa:16:3e:b3:ea:e9 brd ff:ff:ff:ff:ff:ff inet 10.30.106.110/23 brd 10.30.107.255 scope global dynamic ens3 valid_lft 86170sec preferred_lft 86170sec inet6 fe80::f816:3eff:feb3:eae9/64 scope link valid_lft forever preferred_lft forever ---> sar -b -r -n DEV: Linux 4.15.0-194-generic (prd-ubuntu1804-builder-4c-4g-175) 10/04/25 _x86_64_ (4 CPU) 06:55:23 LINUX RESTART (4 CPU) 06:56:01 tps rtps wtps bread/s bwrtn/s 06:57:01 171.85 19.91 151.94 660.02 39517.28 06:58:01 95.80 2.85 92.95 158.64 33807.70 06:59:01 59.85 30.54 29.31 1959.75 8484.64 Average: 109.16 17.77 91.40 926.19 27268.83 06:56:01 kbmemfree kbavail kbmemused %memused kbbuffers kbcached kbcommit %commit kbactive kbinact kbdirty 06:57:01 13320232 15128448 3104736 18.90 77288 1918276 1288740 7.38 1122676 1738328 163336 06:58:01 13158996 15125520 3265972 19.88 87316 2055872 1262568 7.23 1164688 1835940 47704 06:59:01 13399248 15479592 3025720 18.42 90464 2170816 830868 4.76 889968 1882636 27268 Average: 13292825 15244520 3132143 19.07 85023 2048321 1127392 6.45 1059111 1818968 79436 06:56:01 IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s %ifutil 06:57:01 ens3 217.11 167.66 2061.02 35.03 0.00 0.00 0.00 0.00 06:57:01 lo 2.80 2.80 0.35 0.35 0.00 0.00 0.00 0.00 06:58:01 ens3 23.06 20.20 180.56 4.54 0.00 0.00 0.00 0.00 06:58:01 lo 3.70 3.70 0.54 0.54 0.00 0.00 0.00 0.00 06:59:01 ens3 525.79 323.14 2626.79 83.47 0.00 0.00 0.00 0.00 06:59:01 lo 1.13 1.13 0.13 0.13 0.00 0.00 0.00 0.00 Average: ens3 255.34 170.34 1622.84 41.01 0.00 0.00 0.00 0.00 Average: lo 2.54 2.54 0.34 0.34 0.00 0.00 0.00 0.00 ---> sar -P ALL: Linux 4.15.0-194-generic (prd-ubuntu1804-builder-4c-4g-175) 10/04/25 _x86_64_ (4 CPU) 06:55:23 LINUX RESTART (4 CPU) 06:56:01 CPU %user %nice %system %iowait %steal %idle 06:57:01 all 29.45 0.00 2.03 3.15 0.07 65.29 06:57:01 0 16.84 0.00 1.16 5.66 0.07 76.28 06:57:01 1 23.42 0.00 1.77 1.37 0.08 73.36 06:57:01 2 44.86 0.00 3.04 0.79 0.08 51.23 06:57:01 3 32.87 0.00 2.15 4.76 0.05 60.17 06:58:01 all 19.63 0.00 1.11 2.14 0.05 77.06 06:58:01 0 10.88 0.00 0.99 0.18 0.03 87.91 06:58:01 1 18.82 0.00 1.52 2.12 0.07 77.47 06:58:01 2 26.18 0.00 1.20 0.33 0.07 72.21 06:58:01 3 22.61 0.00 0.73 5.92 0.05 70.68 06:59:01 all 33.32 0.00 2.16 0.76 0.07 63.69 06:59:01 0 29.77 0.00 2.06 0.87 0.05 67.25 06:59:01 1 23.57 0.00 1.60 0.52 0.05 74.26 06:59:01 2 57.99 0.00 2.93 0.62 0.12 38.34 06:59:01 3 21.96 0.00 2.04 1.02 0.05 74.93 Average: all 27.47 0.00 1.77 2.02 0.07 68.68 Average: 0 19.15 0.00 1.40 2.26 0.05 77.15 Average: 1 21.94 0.00 1.63 1.34 0.07 75.03 Average: 2 43.00 0.00 2.39 0.58 0.09 53.95 Average: 3 25.81 0.00 1.64 3.90 0.05 68.59