Started by timer Running as SYSTEM [EnvInject] - Loading node environment variables. Building remotely on prd-ubuntu1804-builder-4c-4g-10055 (ubuntu1804-builder-4c-4g) in workspace /w/workspace/multicloud-openstack-fcaps-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/multicloud/openstack > git init /w/workspace/multicloud-openstack-fcaps-sonar # timeout=10 Fetching upstream changes from git://cloud.onap.org/mirror/multicloud/openstack > 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/multicloud/openstack +refs/heads/*:refs/remotes/origin/* # timeout=10 > git config remote.origin.url git://cloud.onap.org/mirror/multicloud/openstack # 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 d0e9fd36a6fefe632a0d0622585af49be0594ce6 (refs/remotes/origin/master) > git config core.sparsecheckout # timeout=10 > git checkout -f d0e9fd36a6fefe632a0d0622585af49be0594ce6 # timeout=10 Commit message: "Bump up version" > git rev-list --no-walk d0e9fd36a6fefe632a0d0622585af49be0594ce6 # timeout=10 Run condition [Boolean condition] enabling prebuild for step [BuilderChain] Run condition [Not] preventing prebuild for step [BuilderChain] [multicloud-openstack-fcaps-sonar] $ /bin/bash /tmp/jenkins2799411484665176040.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-nAua lf-activate-venv(): INFO: Save venv in file: /tmp/.os_lf_venv lf-activate-venv(): INFO: Installing: lftools lf-activate-venv(): INFO: Adding /tmp/venv-nAua/bin to PATH Generating Requirements File Python 3.10.6 pip 23.3.2 from /tmp/venv-nAua/lib/python3.10/site-packages/pip (python 3.10) appdirs==1.4.4 argcomplete==3.2.1 aspy.yaml==1.3.0 attrs==23.2.0 autopage==0.5.2 Babel==2.14.0 beautifulsoup4==4.12.2 boto3==1.34.14 botocore==1.34.14 bs4==0.0.1 cachetools==5.3.2 certifi==2023.11.17 cffi==1.16.0 cfgv==3.4.0 chardet==5.2.0 charset-normalizer==3.3.2 click==8.1.7 cliff==4.4.0 cmd2==2.4.3 cryptography==3.3.2 debtcollector==2.5.0 decorator==5.1.1 defusedxml==0.7.1 Deprecated==1.2.14 distlib==0.3.8 dnspython==2.4.2 docker==4.2.2 dogpile.cache==1.3.0 email-validator==2.1.0.post1 filelock==3.13.1 future==0.18.3 gitdb==4.0.11 GitPython==3.1.40 google-auth==2.26.1 httplib2==0.22.0 identify==2.5.33 idna==3.6 importlib-metadata==7.0.1 importlib-resources==1.5.0 iso8601==2.1.0 Jinja2==3.1.2 jmespath==1.0.1 jsonpatch==1.33 jsonpointer==2.4 jsonschema==4.20.0 jsonschema-specifications==2023.12.1 keystoneauth1==5.4.0 kubernetes==28.1.0 lftools==0.37.8 lxml==5.0.1 MarkupSafe==2.1.3 msgpack==1.0.7 multi_key_dict==2.0.3 munch==4.0.0 netaddr==0.10.1 netifaces==0.11.0 niet==1.4.2 nodeenv==1.8.0 oauth2client==4.1.3 oauthlib==3.2.2 openstacksdk==0.62.0 os-client-config==2.1.0 os-service-types==1.7.0 osc-lib==2.9.0 oslo.config==9.2.0 oslo.context==5.3.0 oslo.i18n==6.2.0 oslo.log==5.4.0 oslo.serialization==5.2.0 oslo.utils==6.3.0 packaging==23.2 pbr==6.0.0 platformdirs==4.1.0 prettytable==3.9.0 pyasn1==0.5.1 pyasn1-modules==0.3.0 pycparser==2.21 pygerrit2==2.0.15 PyGithub==2.1.1 pyinotify==0.9.6 PyJWT==2.8.0 PyNaCl==1.5.0 pyparsing==2.4.7 pyperclip==1.8.2 pyrsistent==0.20.0 python-cinderclient==9.4.0 python-dateutil==2.8.2 python-heatclient==3.3.0 python-jenkins==1.8.2 python-keystoneclient==5.2.0 python-magnumclient==4.3.0 python-novaclient==18.4.0 python-openstackclient==6.0.0 python-swiftclient==4.4.0 pytz==2023.3.post1 PyYAML==6.0.1 referencing==0.32.1 requests==2.31.0 requests-oauthlib==1.3.1 requestsexceptions==1.4.0 rfc3986==2.0.0 rpds-py==0.16.2 rsa==4.9 ruamel.yaml==0.18.5 ruamel.yaml.clib==0.2.8 s3transfer==0.10.0 simplejson==3.19.2 six==1.16.0 smmap==5.0.1 soupsieve==2.5 stevedore==5.1.0 tabulate==0.9.0 toml==0.10.2 tomlkit==0.12.3 tqdm==4.66.1 typing_extensions==4.9.0 tzdata==2023.4 urllib3==1.26.18 virtualenv==20.25.0 wcwidth==0.2.13 websocket-client==1.7.0 wrapt==1.16.0 xdg==6.0.0 xmltodict==0.13.0 yq==3.2.3 zipp==3.17.0 [Boolean condition] checking [true] against [^(1|y|yes|t|true|on|run)$] (origin token: true) Run condition [Boolean condition] enabling perform for step [BuilderChain] [multicloud-openstack-fcaps-sonar] $ /bin/sh -xe /tmp/jenkins142255309834519241.sh + echo Using SonarCloud Using SonarCloud [multicloud-openstack-fcaps-sonar] $ /bin/sh -xe /tmp/jenkins1407138963893138037.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-10055 [multicloud-openstack-fcaps-sonar] $ /w/tools/hudson.tasks.Maven_MavenInstallation/mvn35/bin/mvn -DGERRIT_BRANCH=master -DPROJECT=multicloud/openstack -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=multicloud/openstack -Dsha1=origin/master "-DMAVEN_OPTS=-Xmx1024m -XX:MaxPermSize=256m" -DGERRIT_REFSPEC=refs/heads/master -DM2_HOME=/w/tools/hudson.tasks.Maven_MavenInstallation/mvn35 "-DMAVEN_PARAMS=-f fcaps/pom.xml" -DSONAR_MAVEN_GOAL=org.sonarsource.scanner.maven:sonar-maven-plugin:3.9.1.2184:sonar --version OpenJDK 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0 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" [multicloud-openstack-fcaps-sonar] $ /bin/sh -xe /tmp/jenkins10765753640718029937.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. [multicloud-openstack-fcaps-sonar] $ /bin/sh /tmp/jenkins12814771871034939631.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_multicloud-openstack-fcaps [EnvInject] - Variables injected successfully. provisioning config files... copy managed file [global-settings] to file:/w/workspace/multicloud-openstack-fcaps-sonar@tmp/config11221113648807368627tmp copy managed file [multicloud-openstack-settings] to file:/w/workspace/multicloud-openstack-fcaps-sonar@tmp/config14705171335298064935tmp [multicloud-openstack-fcaps-sonar] $ /bin/bash -l /tmp/jenkins14181532574520868274.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/multicloud-openstack-fcaps-sonar@tmp/config11221113648807368627tmp --settings /w/workspace/multicloud-openstack-fcaps-sonar@tmp/config14705171335298064935tmp --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 -f fcaps/pom.xml Picked up _JAVA_OPTIONS: OpenJDK 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0 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] [INFO] ------< org.onap.multicloud.openstack:multicloud-openstack-fcaps >------ [INFO] Building multicloud-openstack-fcaps 1.5.8-SNAPSHOT [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ multicloud-openstack-fcaps --- [INFO] [INFO] --- exec-maven-plugin:1.2.1:exec (clean phase script) @ multicloud-openstack-fcaps --- running script: [/w/workspace/multicloud-openstack-fcaps-sonar/fcaps/mvn-phase-script.sh] for module [__] at stage [clean] MVN_PROJECT_MODULEID is [] MVN_PHASE is [clean] MVN_PROJECT_GROUPID is [org.onap.multicloud.openstack] MVN_PROJECT_ARTIFACTID is [multicloud-openstack-fcaps] MVN_PROJECT_VERSION is [1.5.8-SNAPSHOT] ==> clean phase script [INFO] [INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce (enforce-property) @ multicloud-openstack-fcaps --- [INFO] [INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce (enforce-no-snapshots) @ multicloud-openstack-fcaps --- [INFO] [INFO] --- jacoco-maven-plugin:0.8.2:prepare-agent (pre-unit-test) @ multicloud-openstack-fcaps --- [INFO] surefireArgLine set to -javaagent:/tmp/r/org/jacoco/org.jacoco.agent/0.8.2/org.jacoco.agent-0.8.2-runtime.jar=destfile=/w/workspace/multicloud-openstack-fcaps-sonar/fcaps/target/code-coverage/jacoco-ut.exec,excludes=**/gen/**:**/generated-sources/**:**/yang-gen/**:**/pax/** [INFO] [INFO] --- maven-checkstyle-plugin:2.17:check (onap-license) @ multicloud-openstack-fcaps --- [INFO] Starting audit... Audit done. [INFO] [INFO] --- maven-checkstyle-plugin:2.17:check (onap-java-style) @ multicloud-openstack-fcaps --- [INFO] Starting audit... Audit done. [INFO] [INFO] --- jacoco-maven-plugin:0.8.2:report (post-unit-test) @ multicloud-openstack-fcaps --- [INFO] Skipping JaCoCo execution due to missing execution data file. [INFO] [INFO] --- exec-maven-plugin:1.2.1:exec (test script) @ multicloud-openstack-fcaps --- running script: [/w/workspace/multicloud-openstack-fcaps-sonar/fcaps/mvn-phase-script.sh] for module [__] at stage [test] MVN_PROJECT_MODULEID is [] MVN_PHASE is [test] MVN_PROJECT_GROUPID is [org.onap.multicloud.openstack] MVN_PROJECT_ARTIFACTID is [multicloud-openstack-fcaps] MVN_PROJECT_VERSION is [1.5.8-SNAPSHOT] ==> test phase script /w/workspace/multicloud-openstack-fcaps-sonar/fcaps + echo /w/workspace/multicloud-openstack-fcaps-sonar/fcaps ++ pwd + CURDIR=/w/workspace/multicloud-openstack-fcaps-sonar/fcaps ++ find . -name tox.ini + TOXINIS=./tox.ini + cd .. + for TOXINI in "${TOXINIS[@]}" ++ rev ++ rev ++ echo ./tox.ini ++ cut -f2- -d/ + DIR=. + cd /w/workspace/multicloud-openstack-fcaps-sonar/fcaps/. + rm -rf ./venv-tox ./.tox + virtualenv ./venv-tox --python=python3 Already using interpreter /usr/bin/python3 Using base prefix '/usr' New python executable in /w/workspace/multicloud-openstack-fcaps-sonar/fcaps/venv-tox/bin/python3 Also creating executable in /w/workspace/multicloud-openstack-fcaps-sonar/fcaps/venv-tox/bin/python Installing setuptools, pkg_resources, pip, wheel...done. + source ./venv-tox/bin/activate ++ deactivate nondestructive ++ unset -f pydoc ++ '[' -z '' ']' ++ '[' -z '' ']' ++ '[' -n /bin/bash ']' ++ hash -r ++ '[' -z '' ']' ++ unset VIRTUAL_ENV ++ '[' '!' nondestructive = nondestructive ']' ++ VIRTUAL_ENV=/w/workspace/multicloud-openstack-fcaps-sonar/fcaps/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/multicloud-openstack-fcaps-sonar/fcaps/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 ++ '[' -z '' ']' ++ '[' -z '' ']' ++ _OLD_VIRTUAL_PS1= ++ '[' x '!=' x ']' +++ basename /w/workspace/multicloud-openstack-fcaps-sonar/fcaps/venv-tox ++ PS1='(venv-tox) ' ++ export PS1 ++ alias pydoc ++ '[' -n /bin/bash ']' ++ hash -r + pip install --upgrade pip Requirement already satisfied: pip in ./venv-tox/lib/python3.6/site-packages (21.3.1) + pip install --upgrade tox argparse Collecting tox Downloading tox-3.28.0-py2.py3-none-any.whl (86 kB) Collecting argparse Downloading argparse-1.4.0-py2.py3-none-any.whl (23 kB) Collecting virtualenv!=20.0.0,!=20.0.1,!=20.0.2,!=20.0.3,!=20.0.4,!=20.0.5,!=20.0.6,!=20.0.7,>=16.0.0 Downloading virtualenv-20.17.1-py3-none-any.whl (8.8 MB) Collecting packaging>=14 Downloading packaging-21.3-py3-none-any.whl (40 kB) Collecting filelock>=3.0.0 Downloading filelock-3.4.1-py3-none-any.whl (9.9 kB) Collecting py>=1.4.17 Downloading py-1.11.0-py2.py3-none-any.whl (98 kB) Collecting toml>=0.10.2 Downloading toml-0.10.2-py2.py3-none-any.whl (16 kB) Collecting importlib-metadata>=0.12 Downloading importlib_metadata-4.8.3-py3-none-any.whl (17 kB) Collecting six>=1.14.0 Downloading six-1.16.0-py2.py3-none-any.whl (11 kB) Collecting pluggy>=0.12.0 Downloading pluggy-1.0.0-py2.py3-none-any.whl (13 kB) Collecting zipp>=0.5 Downloading zipp-3.6.0-py3-none-any.whl (5.3 kB) Collecting typing-extensions>=3.6.4 Downloading typing_extensions-4.1.1-py3-none-any.whl (26 kB) Collecting pyparsing!=3.0.5,>=2.0.2 Downloading pyparsing-3.1.1-py3-none-any.whl (103 kB) Collecting platformdirs<3,>=2.4 Downloading platformdirs-2.4.0-py3-none-any.whl (14 kB) Collecting distlib<1,>=0.3.6 Using cached distlib-0.3.8-py2.py3-none-any.whl (468 kB) Collecting importlib-resources>=5.4 Downloading importlib_resources-5.4.0-py3-none-any.whl (28 kB) Installing collected packages: zipp, typing-extensions, pyparsing, platformdirs, importlib-resources, importlib-metadata, filelock, distlib, virtualenv, toml, six, py, pluggy, packaging, tox, argparse Successfully installed argparse-1.4.0 distlib-0.3.8 filelock-3.4.1 importlib-metadata-4.8.3 importlib-resources-5.4.0 packaging-21.3 platformdirs-2.4.0 pluggy-1.0.0 py-1.11.0 pyparsing-3.1.1 six-1.16.0 toml-0.10.2 tox-3.28.0 typing-extensions-4.1.1 virtualenv-20.17.1 zipp-3.6.0 + pip freeze distlib==0.3.8 filelock==3.4.1 importlib-metadata==4.8.3 importlib-resources==5.4.0 packaging==21.3 pkg_resources==0.0.0 platformdirs==2.4.0 pluggy==1.0.0 py==1.11.0 pyparsing==3.1.1 six==1.16.0 toml==0.10.2 tox==3.28.0 typing_extensions==4.1.1 virtualenv==20.17.1 zipp==3.6.0 + cd /w/workspace/multicloud-openstack-fcaps-sonar/fcaps + tox py36 create: /w/workspace/multicloud-openstack-fcaps-sonar/fcaps/.tox/py36 py36 installdeps: -r/w/workspace/multicloud-openstack-fcaps-sonar/fcaps/requirements.txt, -r/w/workspace/multicloud-openstack-fcaps-sonar/fcaps/test-requirements.txt py36 installed: amqp==5.2.0,asgiref==3.4.1,astroid==2.11.7,billiard==3.6.4.0,cached-property==1.5.2,celery==5.1.2,certifi==2023.11.17,charset-normalizer==2.0.12,click==7.1.2,click-didyoumean==0.3.0,click-plugins==1.1.1,click-repl==0.3.0,coverage==4.2,dill==0.3.4,Django==3.2.7,djangorestframework==3.12.4,httplib2==0.19.1,idna==3.6,importlib-metadata==4.8.3,iso8601==1.1.0,isort==5.10.1,keystoneauth1==2.18.0,kombu==5.1.0,lazy-object-proxy==1.7.1,mccabe==0.7.0,mock==3.0.5,pbr==6.0.0,platformdirs==2.4.0,positional==1.2.1,prompt-toolkit==3.0.36,pylint==2.13.9,pyparsing==2.4.7,python-memcached==1.61,pytz==2023.3.post1,PyYAML==5.4.1,requests==2.27.1,six==1.16.0,sqlparse==0.4.4,stevedore==3.5.2,tomli==1.2.3,typed-ast==1.5.5,typing_extensions==4.1.1,unittest-xml-reporting==1.12.0,urllib3==1.26.18,vine==5.1.0,wcwidth==0.2.13,wrapt==1.16.0,zipp==3.6.0 py36 run-test-pre: PYTHONHASHSEED='1882819440' py36 run-test: commands[0] | coverage run --branch manage.py test fcaps System check identified no issues (0 silenced). Running tests... ---------------------------------------------------------------------- test_sample (fcaps.samples.tests_sample.SampleViewTest) ... OK (0.003s) test_buildBacklog_fault_vm (fcaps.vesagent.tests.tests_fault_vm.FaultVMTest) ... OK (0.001s) test_buildBacklog_fault_vm_wo_server (fcaps.vesagent.tests.tests_fault_vm.FaultVMTest) ... OK (0.000s) test_buildBacklog_fault_vm_wo_server_id (fcaps.vesagent.tests.tests_fault_vm.FaultVMTest) ... OK (0.000s) test_buildBacklog_fault_vm_wo_tenant (fcaps.vesagent.tests.tests_fault_vm.FaultVMTest) ... OK (0.001s) test_buildBacklog_fault_vm_wo_tenant_id (fcaps.vesagent.tests.tests_fault_vm.FaultVMTest) ... OK (0.001s) test_get_epoch_now_usecond (fcaps.vesagent.tests.tests_fault_vm.FaultVMTest) ... OK (0.000s) test_processBacklog_fault_vm (fcaps.vesagent.tests.tests_fault_vm.FaultVMTest) ... OK (0.001s) test_processBacklog_fault_vm_wo_server (fcaps.vesagent.tests.tests_fault_vm.FaultVMTest) ... OK (0.001s) test_buildBacklog_pm_vm (fcaps.vesagent.tests.tests_pm_vm.PmVMTest) ... OK (0.000s) test_buildBacklog_pm_vm_wo_server (fcaps.vesagent.tests.tests_pm_vm.PmVMTest) ... OK (0.000s) test_buildBacklog_pm_vm_wo_server_id (fcaps.vesagent.tests.tests_pm_vm.PmVMTest) ... OK (0.001s) test_buildBacklog_pm_vm_wo_tenant (fcaps.vesagent.tests.tests_pm_vm.PmVMTest) ... OK (0.000s) test_buildBacklog_pm_vm_wo_tenant_id (fcaps.vesagent.tests.tests_pm_vm.PmVMTest) ... OK (0.000s) test_get_epoch_now_usecond (fcaps.vesagent.tests.tests_pm_vm.PmVMTest) ... OK (0.000s) test_processBacklog_pm_vm (fcaps.vesagent.tests.tests_pm_vm.PmVMTest) ... OK (0.001s) test_processBacklog_pm_vm_wo_server (fcaps.vesagent.tests.tests_pm_vm.PmVMTest) ... OK (0.001s) test_tasks_processBacklogs (fcaps.vesagent.tests.tests_tasks.VesTaskTest) ... OK (0.001s) test_tasks_processBacklogsOfOneVIM (fcaps.vesagent.tests.tests_tasks.VesTaskTest) ... OK (0.001s) test_tasks_processOneBacklog (fcaps.vesagent.tests.tests_tasks.VesTaskTest) ... OK (0.000s) test_tasks_scheduleBacklogs (fcaps.vesagent.tests.tests_tasks.VesTaskTest) ... OK (1.002s) test_buildBacklog (fcaps.vesagent.tests.tests_vesagent_ctrl.VesAgentCtrlTest) ... OK (0.001s) test_buildBacklogsOneVIM (fcaps.vesagent.tests.tests_vesagent_ctrl.VesAgentCtrlTest) ... OK (0.015s) test_clearBacklogsOneVIM (fcaps.vesagent.tests.tests_vesagent_ctrl.VesAgentCtrlTest) ... OK (0.002s) test_delete (fcaps.vesagent.tests.tests_vesagent_ctrl.VesAgentCtrlTest) ... OK (0.001s) test_get (fcaps.vesagent.tests.tests_vesagent_ctrl.VesAgentCtrlTest) ... OK (0.002s) test_getBacklogsOneVIM (fcaps.vesagent.tests.tests_vesagent_ctrl.VesAgentCtrlTest) ... OK (0.001s) test_post (fcaps.vesagent.tests.tests_vesagent_ctrl.VesAgentCtrlTest) ... OK (0.001s) test_publishAnyEventToVES (fcaps.vesagent.tests.tests_vespublish.VespublishTest) ... OK (1.002s) ---------------------------------------------------------------------- Ran 29 tests in 2.042s OK Generating XML reports... py36 run-test: commands[1] | coverage report '--omit=./venv-tox/*,./.tox/*,*tests*,*__init__.py,*newton_base*,*common*,*starlingx_base*' --fail-under=30 Name Stmts Miss Branch BrPart Cover --------------------------------------------------------------------------- fcaps/celery.py 12 1 0 0 92% fcaps/samples/urls.py 3 0 0 0 100% fcaps/samples/views.py 8 0 0 0 100% fcaps/settings.py 61 8 8 3 81% fcaps/urls.py 3 0 0 0 100% fcaps/vesagent/event_domain/fault_vm.py 160 48 36 13 68% fcaps/vesagent/event_domain/pm_vm.py 135 65 32 6 48% fcaps/vesagent/tasks.py 111 34 32 11 66% fcaps/vesagent/vesagent_ctrl.py 159 50 28 10 67% fcaps/vesagent/vespublish.py 29 8 10 4 64% manage.py 6 0 2 1 88% --------------------------------------------------------------------------- TOTAL 687 214 148 48 65% cov create: /w/workspace/multicloud-openstack-fcaps-sonar/fcaps/.tox/cov cov installdeps: -r/w/workspace/multicloud-openstack-fcaps-sonar/fcaps/requirements.txt, -r/w/workspace/multicloud-openstack-fcaps-sonar/fcaps/test-requirements.txt cov installed: amqp==5.2.0,asgiref==3.4.1,astroid==2.11.7,billiard==3.6.4.0,cached-property==1.5.2,celery==5.1.2,certifi==2023.11.17,charset-normalizer==2.0.12,click==7.1.2,click-didyoumean==0.3.0,click-plugins==1.1.1,click-repl==0.3.0,coverage==4.2,dill==0.3.4,Django==3.2.7,djangorestframework==3.12.4,httplib2==0.19.1,idna==3.6,importlib-metadata==4.8.3,iso8601==1.1.0,isort==5.10.1,keystoneauth1==2.18.0,kombu==5.1.0,lazy-object-proxy==1.7.1,mccabe==0.7.0,mock==3.0.5,pbr==6.0.0,platformdirs==2.4.0,positional==1.2.1,prompt-toolkit==3.0.36,pylint==2.13.9,pyparsing==2.4.7,python-memcached==1.61,pytz==2023.3.post1,PyYAML==5.4.1,requests==2.27.1,six==1.16.0,sqlparse==0.4.4,stevedore==3.5.2,tomli==1.2.3,typed-ast==1.5.5,typing_extensions==4.1.1,unittest-xml-reporting==1.12.0,urllib3==1.26.18,vine==5.1.0,wcwidth==0.2.13,wrapt==1.16.0,zipp==3.6.0 cov run-test-pre: PYTHONHASHSEED='1882819440' cov run-test: commands[0] | coverage xml '--omit=./venv-tox/*,./.tox/*,*tests*,*__init__.py,*newton_base*,*common*, *site-packages*' pylint create: /w/workspace/multicloud-openstack-fcaps-sonar/fcaps/.tox/pylint pylint installdeps: -r/w/workspace/multicloud-openstack-fcaps-sonar/fcaps/requirements.txt, -r/w/workspace/multicloud-openstack-fcaps-sonar/fcaps/test-requirements.txt pylint installed: amqp==5.2.0,asgiref==3.4.1,astroid==2.11.7,billiard==3.6.4.0,cached-property==1.5.2,celery==5.1.2,certifi==2023.11.17,charset-normalizer==2.0.12,click==7.1.2,click-didyoumean==0.3.0,click-plugins==1.1.1,click-repl==0.3.0,coverage==4.2,dill==0.3.4,Django==3.2.7,djangorestframework==3.12.4,httplib2==0.19.1,idna==3.6,importlib-metadata==4.8.3,iso8601==1.1.0,isort==5.10.1,keystoneauth1==2.18.0,kombu==5.1.0,lazy-object-proxy==1.7.1,mccabe==0.7.0,mock==3.0.5,pbr==6.0.0,platformdirs==2.4.0,positional==1.2.1,prompt-toolkit==3.0.36,pylint==2.13.9,pyparsing==2.4.7,python-memcached==1.61,pytz==2023.3.post1,PyYAML==5.4.1,requests==2.27.1,six==1.16.0,sqlparse==0.4.4,stevedore==3.5.2,tomli==1.2.3,typed-ast==1.5.5,typing_extensions==4.1.1,unittest-xml-reporting==1.12.0,urllib3==1.26.18,vine==5.1.0,wcwidth==0.2.13,wrapt==1.16.0,zipp==3.6.0 pylint run-test-pre: PYTHONHASHSEED='1882819440' pylint run-test: commands[0] | bash -c 'pylint -f parseable --reports=y fcaps | tee pylint.out' ************* Module fcaps fcaps/__init__.py:1: [C0114(missing-module-docstring), ] Missing module docstring ************* Module fcaps.urls fcaps/urls.py:24: [C0301(line-too-long), ] Line too long (116/100) fcaps/urls.py:1: [C0114(missing-module-docstring), ] Missing module docstring ************* Module fcaps.wsgi fcaps/wsgi.py:1: [C0114(missing-module-docstring), ] Missing module docstring ************* Module fcaps.settings fcaps/settings.py:142: [C0301(line-too-long), ] Line too long (107/100) fcaps/settings.py:1: [C0114(missing-module-docstring), ] Missing module docstring fcaps/settings.py:86: [C0209(consider-using-f-string), ] Formatting a regular string which could be a f-string fcaps/settings.py:101: [C0209(consider-using-f-string), ] Formatting a regular string which could be a f-string fcaps/settings.py:111: [C0209(consider-using-f-string), ] Formatting a regular string which could be a f-string fcaps/settings.py:114: [C0209(consider-using-f-string), ] Formatting a regular string which could be a f-string fcaps/settings.py:120: [C0209(consider-using-f-string), ] Formatting a regular string which could be a f-string fcaps/settings.py:125: [C0209(consider-using-f-string), ] Formatting a regular string which could be a f-string fcaps/settings.py:167: [C0103(invalid-name), ] Constant name "log_path" doesn't conform to UPPER_CASE naming style fcaps/settings.py:183: [W0404(reimported), ] Reimport 'platform' (imported line 17) fcaps/settings.py:19: [C0411(wrong-import-order), ] standard import "from logging import config as log_config" should be placed before "import yaml" fcaps/settings.py:183: [C0412(ungrouped-imports), ] Imports from package platform are not grouped ************* Module fcaps.celery fcaps/celery.py:1: [C0114(missing-module-docstring), ] Missing module docstring fcaps/celery.py:41: [C0116(missing-function-docstring), debug_task] Missing function or method docstring fcaps/celery.py:41: [W0613(unused-argument), debug_task] Unused argument 'self' fcaps/celery.py:18: [C0411(wrong-import-order), ] standard import "import logging" should be placed before "from celery import Celery" ************* Module fcaps.vesagent.tasks fcaps/vesagent/tasks.py:72: [C0301(line-too-long), ] Line too long (106/100) fcaps/vesagent/tasks.py:110: [C0301(line-too-long), ] Line too long (112/100) fcaps/vesagent/tasks.py:115: [C0301(line-too-long), ] Line too long (117/100) fcaps/vesagent/tasks.py:120: [C0301(line-too-long), ] Line too long (116/100) fcaps/vesagent/tasks.py:125: [C0301(line-too-long), ] Line too long (104/100) fcaps/vesagent/tasks.py:132: [C0301(line-too-long), ] Line too long (105/100) fcaps/vesagent/tasks.py:134: [C0301(line-too-long), ] Line too long (106/100) fcaps/vesagent/tasks.py:1: [C0114(missing-module-docstring), ] Missing module docstring fcaps/vesagent/tasks.py:32: [C0103(invalid-name), scheduleBacklogs] Function name "scheduleBacklogs" doesn't conform to snake_case naming style fcaps/vesagent/tasks.py:32: [C0116(missing-function-docstring), scheduleBacklogs] Missing function or method docstring fcaps/vesagent/tasks.py:38: [W1201(logging-not-lazy), scheduleBacklogs] Use lazy % formatting in logging functions fcaps/vesagent/tasks.py:38: [C0209(consider-using-f-string), scheduleBacklogs] Formatting a regular string which could be a f-string fcaps/vesagent/tasks.py:32: [W0613(unused-argument), scheduleBacklogs] Unused argument 'self' fcaps/vesagent/tasks.py:32: [W0613(unused-argument), scheduleBacklogs] Unused argument 'vimid' fcaps/vesagent/tasks.py:48: [C0103(invalid-name), processBacklogs] Function name "processBacklogs" doesn't conform to snake_case naming style fcaps/vesagent/tasks.py:48: [C0116(missing-function-docstring), processBacklogs] Missing function or method docstring fcaps/vesagent/tasks.py:75: [W0703(broad-except), processBacklogs] Catching too general exception Exception fcaps/vesagent/tasks.py:54: [C0103(invalid-name), processBacklogs] Variable name "VesAgentBacklogsVimListStr" doesn't conform to snake_case naming style fcaps/vesagent/tasks.py:56: [W1505(deprecated-method), processBacklogs] Using deprecated method warn() fcaps/vesagent/tasks.py:59: [W1201(logging-not-lazy), processBacklogs] Use lazy % formatting in logging functions fcaps/vesagent/tasks.py:59: [C0209(consider-using-f-string), processBacklogs] Formatting a regular string which could be a f-string fcaps/vesagent/tasks.py:61: [C0103(invalid-name), processBacklogs] Variable name "backlogsAllVims" doesn't conform to snake_case naming style fcaps/vesagent/tasks.py:63: [W1505(deprecated-method), processBacklogs] Using deprecated method warn() fcaps/vesagent/tasks.py:69: [W1201(logging-not-lazy), processBacklogs] Use lazy % formatting in logging functions fcaps/vesagent/tasks.py:69: [C0209(consider-using-f-string), processBacklogs] Formatting a regular string which could be a f-string fcaps/vesagent/tasks.py:73: [W0107(unnecessary-pass), processBacklogs] Unnecessary pass statement fcaps/vesagent/tasks.py:75: [C0103(invalid-name), processBacklogs] Variable name "e" doesn't conform to snake_case naming style fcaps/vesagent/tasks.py:76: [W1201(logging-not-lazy), processBacklogs] Use lazy % formatting in logging functions fcaps/vesagent/tasks.py:76: [C0209(consider-using-f-string), processBacklogs] Formatting a regular string which could be a f-string fcaps/vesagent/tasks.py:80: [W0101(unreachable), processBacklogs] Unreachable code fcaps/vesagent/tasks.py:80: [W0107(unnecessary-pass), processBacklogs] Unnecessary pass statement fcaps/vesagent/tasks.py:83: [C0103(invalid-name), processBacklogsOfOneVIM] Function name "processBacklogsOfOneVIM" doesn't conform to snake_case naming style fcaps/vesagent/tasks.py:142: [W0703(broad-except), processBacklogsOfOneVIM] Catching too general exception Exception fcaps/vesagent/tasks.py:93: [C0103(invalid-name), processBacklogsOfOneVIM] Variable name "vesAgentConfigStr" doesn't conform to snake_case naming style fcaps/vesagent/tasks.py:93: [C0209(consider-using-f-string), processBacklogsOfOneVIM] Formatting a regular string which could be a f-string fcaps/vesagent/tasks.py:95: [W1201(logging-not-lazy), processBacklogsOfOneVIM] Use lazy % formatting in logging functions fcaps/vesagent/tasks.py:95: [W1505(deprecated-method), processBacklogsOfOneVIM] Using deprecated method warn() fcaps/vesagent/tasks.py:95: [C0209(consider-using-f-string), processBacklogsOfOneVIM] Formatting a regular string which could be a f-string fcaps/vesagent/tasks.py:98: [W1201(logging-not-lazy), processBacklogsOfOneVIM] Use lazy % formatting in logging functions fcaps/vesagent/tasks.py:98: [C0209(consider-using-f-string), processBacklogsOfOneVIM] Formatting a regular string which could be a f-string fcaps/vesagent/tasks.py:100: [C0103(invalid-name), processBacklogsOfOneVIM] Variable name "vesAgentConfig" doesn't conform to snake_case naming style fcaps/vesagent/tasks.py:102: [W1201(logging-not-lazy), processBacklogsOfOneVIM] Use lazy % formatting in logging functions fcaps/vesagent/tasks.py:102: [W1505(deprecated-method), processBacklogsOfOneVIM] Using deprecated method warn() fcaps/vesagent/tasks.py:102: [C0209(consider-using-f-string), processBacklogsOfOneVIM] Formatting a regular string which could be a f-string fcaps/vesagent/tasks.py:105: [C0103(invalid-name), processBacklogsOfOneVIM] Variable name "vesAgentStateStr" doesn't conform to snake_case naming style fcaps/vesagent/tasks.py:105: [C0209(consider-using-f-string), processBacklogsOfOneVIM] Formatting a regular string which could be a f-string fcaps/vesagent/tasks.py:106: [C0103(invalid-name), processBacklogsOfOneVIM] Variable name "vesAgentState" doesn't conform to snake_case naming style fcaps/vesagent/tasks.py:110: [W1201(logging-not-lazy), processBacklogsOfOneVIM] Use lazy % formatting in logging functions fcaps/vesagent/tasks.py:110: [W1505(deprecated-method), processBacklogsOfOneVIM] Using deprecated method warn() fcaps/vesagent/tasks.py:110: [C0209(consider-using-f-string), processBacklogsOfOneVIM] Formatting a regular string which could be a f-string fcaps/vesagent/tasks.py:115: [W1201(logging-not-lazy), processBacklogsOfOneVIM] Use lazy % formatting in logging functions fcaps/vesagent/tasks.py:115: [W1505(deprecated-method), processBacklogsOfOneVIM] Using deprecated method warn() fcaps/vesagent/tasks.py:115: [C0209(consider-using-f-string), processBacklogsOfOneVIM] Formatting a regular string which could be a f-string fcaps/vesagent/tasks.py:120: [W1201(logging-not-lazy), processBacklogsOfOneVIM] Use lazy % formatting in logging functions fcaps/vesagent/tasks.py:120: [W1505(deprecated-method), processBacklogsOfOneVIM] Using deprecated method warn() fcaps/vesagent/tasks.py:120: [C0209(consider-using-f-string), processBacklogsOfOneVIM] Formatting a regular string which could be a f-string fcaps/vesagent/tasks.py:125: [W1201(logging-not-lazy), processBacklogsOfOneVIM] Use lazy % formatting in logging functions fcaps/vesagent/tasks.py:125: [W1505(deprecated-method), processBacklogsOfOneVIM] Using deprecated method warn() fcaps/vesagent/tasks.py:125: [C0209(consider-using-f-string), processBacklogsOfOneVIM] Formatting a regular string which could be a f-string fcaps/vesagent/tasks.py:132: [W1201(logging-not-lazy), processBacklogsOfOneVIM] Use lazy % formatting in logging functions fcaps/vesagent/tasks.py:132: [C0209(consider-using-f-string), processBacklogsOfOneVIM] Formatting a regular string which could be a f-string fcaps/vesagent/tasks.py:136: [W0107(unnecessary-pass), processBacklogsOfOneVIM] Unnecessary pass statement fcaps/vesagent/tasks.py:139: [C0103(invalid-name), processBacklogsOfOneVIM] Variable name "vesAgentStateStr" doesn't conform to snake_case naming style fcaps/vesagent/tasks.py:140: [C0209(consider-using-f-string), processBacklogsOfOneVIM] Formatting a regular string which could be a f-string fcaps/vesagent/tasks.py:142: [C0103(invalid-name), processBacklogsOfOneVIM] Variable name "e" doesn't conform to snake_case naming style fcaps/vesagent/tasks.py:143: [W1201(logging-not-lazy), processBacklogsOfOneVIM] Use lazy % formatting in logging functions fcaps/vesagent/tasks.py:143: [C0209(consider-using-f-string), processBacklogsOfOneVIM] Formatting a regular string which could be a f-string fcaps/vesagent/tasks.py:83: [R0911(too-many-return-statements), processBacklogsOfOneVIM] Too many return statements (7/6) fcaps/vesagent/tasks.py:148: [C0103(invalid-name), processOneBacklog] Function name "processOneBacklog" doesn't conform to snake_case naming style fcaps/vesagent/tasks.py:148: [C0103(invalid-name), processOneBacklog] Argument name "vesAgentConfig" doesn't conform to snake_case naming style fcaps/vesagent/tasks.py:148: [C0103(invalid-name), processOneBacklog] Argument name "vesAgentState" doesn't conform to snake_case naming style fcaps/vesagent/tasks.py:148: [C0103(invalid-name), processOneBacklog] Argument name "oneBacklog" doesn't conform to snake_case naming style fcaps/vesagent/tasks.py:148: [C0116(missing-function-docstring), processOneBacklog] Missing function or method docstring fcaps/vesagent/tasks.py:196: [W0703(broad-except), processOneBacklog] Catching too general exception Exception fcaps/vesagent/tasks.py:160: [W1201(logging-not-lazy), processOneBacklog] Use lazy % formatting in logging functions fcaps/vesagent/tasks.py:160: [W1505(deprecated-method), processOneBacklog] Using deprecated method warn() fcaps/vesagent/tasks.py:160: [C0209(consider-using-f-string), processOneBacklog] Formatting a regular string which could be a f-string fcaps/vesagent/tasks.py:163: [C0103(invalid-name), processOneBacklog] Variable name "backlogState" doesn't conform to snake_case naming style fcaps/vesagent/tasks.py:163: [C0209(consider-using-f-string), processOneBacklog] Formatting a regular string which could be a f-string fcaps/vesagent/tasks.py:165: [C0103(invalid-name), processOneBacklog] Variable name "initialBacklogState" doesn't conform to snake_case naming style fcaps/vesagent/tasks.py:168: [C0209(consider-using-f-string), processOneBacklog] Formatting a regular string which could be a f-string fcaps/vesagent/tasks.py:169: [C0103(invalid-name), processOneBacklog] Variable name "backlogState" doesn't conform to snake_case naming style fcaps/vesagent/tasks.py:189: [W1201(logging-not-lazy), processOneBacklog] Use lazy % formatting in logging functions fcaps/vesagent/tasks.py:189: [W1505(deprecated-method), processOneBacklog] Using deprecated method warn() fcaps/vesagent/tasks.py:189: [C0209(consider-using-f-string), processOneBacklog] Formatting a regular string which could be a f-string fcaps/vesagent/tasks.py:192: [W0107(unnecessary-pass), processOneBacklog] Unnecessary pass statement fcaps/vesagent/tasks.py:196: [C0103(invalid-name), processOneBacklog] Variable name "e" doesn't conform to snake_case naming style fcaps/vesagent/tasks.py:197: [W1201(logging-not-lazy), processOneBacklog] Use lazy % formatting in logging functions fcaps/vesagent/tasks.py:197: [C0209(consider-using-f-string), processOneBacklog] Formatting a regular string which could be a f-string fcaps/vesagent/tasks.py:19: [C0411(wrong-import-order), ] standard import "import logging" should be placed before "from fcaps.celery import app" fcaps/vesagent/tasks.py:20: [C0411(wrong-import-order), ] standard import "import json" should be placed before "from fcaps.celery import app" fcaps/vesagent/tasks.py:21: [C0411(wrong-import-order), ] standard import "import time" should be placed before "from fcaps.celery import app" fcaps/vesagent/tasks.py:23: [C0411(wrong-import-order), ] third party import "from django.core.cache import cache" should be placed before "from fcaps.celery import app" fcaps/vesagent/tasks.py:25: [C0412(ungrouped-imports), ] Imports from package fcaps are not grouped ************* Module fcaps.vesagent.vesagent_ctrl fcaps/vesagent/vesagent_ctrl.py:39: [C0301(line-too-long), ] Line too long (105/100) fcaps/vesagent/vesagent_ctrl.py:41: [C0301(line-too-long), ] Line too long (105/100) fcaps/vesagent/vesagent_ctrl.py:47: [C0301(line-too-long), ] Line too long (111/100) fcaps/vesagent/vesagent_ctrl.py:48: [C0301(line-too-long), ] Line too long (105/100) fcaps/vesagent/vesagent_ctrl.py:51: [C0301(line-too-long), ] Line too long (108/100) fcaps/vesagent/vesagent_ctrl.py:54: [C0301(line-too-long), ] Line too long (106/100) fcaps/vesagent/vesagent_ctrl.py:57: [C0301(line-too-long), ] Line too long (104/100) fcaps/vesagent/vesagent_ctrl.py:59: [C0301(line-too-long), ] Line too long (104/100) fcaps/vesagent/vesagent_ctrl.py:64: [C0301(line-too-long), ] Line too long (102/100) fcaps/vesagent/vesagent_ctrl.py:65: [C0301(line-too-long), ] Line too long (112/100) fcaps/vesagent/vesagent_ctrl.py:95: [C0301(line-too-long), ] Line too long (101/100) fcaps/vesagent/vesagent_ctrl.py:97: [C0301(line-too-long), ] Line too long (107/100) fcaps/vesagent/vesagent_ctrl.py:171: [C0301(line-too-long), ] Line too long (107/100) fcaps/vesagent/vesagent_ctrl.py:172: [C0301(line-too-long), ] Line too long (121/100) fcaps/vesagent/vesagent_ctrl.py:175: [C0301(line-too-long), ] Line too long (117/100) fcaps/vesagent/vesagent_ctrl.py:194: [C0301(line-too-long), ] Line too long (120/100) fcaps/vesagent/vesagent_ctrl.py:195: [C0301(line-too-long), ] Line too long (120/100) fcaps/vesagent/vesagent_ctrl.py:219: [C0301(line-too-long), ] Line too long (113/100) fcaps/vesagent/vesagent_ctrl.py:220: [C0301(line-too-long), ] Line too long (121/100) fcaps/vesagent/vesagent_ctrl.py:245: [C0301(line-too-long), ] Line too long (109/100) fcaps/vesagent/vesagent_ctrl.py:358: [C0301(line-too-long), ] Line too long (106/100) fcaps/vesagent/vesagent_ctrl.py:1: [C0114(missing-module-docstring), ] Missing module docstring fcaps/vesagent/vesagent_ctrl.py:153: [W0231(super-init-not-called), VesAgentCtrl.__init__] __init__ method from base class 'APIView' is not called fcaps/vesagent/vesagent_ctrl.py:164: [W1201(logging-not-lazy), VesAgentCtrl.get] Use lazy % formatting in logging functions fcaps/vesagent/vesagent_ctrl.py:164: [C0209(consider-using-f-string), VesAgentCtrl.get] Formatting a regular string which could be a f-string fcaps/vesagent/vesagent_ctrl.py:165: [W1201(logging-not-lazy), VesAgentCtrl.get] Use lazy % formatting in logging functions fcaps/vesagent/vesagent_ctrl.py:165: [C0209(consider-using-f-string), VesAgentCtrl.get] Formatting a regular string which could be a f-string fcaps/vesagent/vesagent_ctrl.py:180: [W0703(broad-except), VesAgentCtrl.get] Catching too general exception Exception fcaps/vesagent/vesagent_ctrl.py:173: [W0703(broad-except), VesAgentCtrl.get] Catching too general exception Exception fcaps/vesagent/vesagent_ctrl.py:175: [W1201(logging-not-lazy), VesAgentCtrl.get] Use lazy % formatting in logging functions fcaps/vesagent/vesagent_ctrl.py:175: [W1505(deprecated-method), VesAgentCtrl.get] Using deprecated method warn() fcaps/vesagent/vesagent_ctrl.py:175: [C0209(consider-using-f-string), VesAgentCtrl.get] Formatting a regular string which could be a f-string fcaps/vesagent/vesagent_ctrl.py:176: [W0107(unnecessary-pass), VesAgentCtrl.get] Unnecessary pass statement fcaps/vesagent/vesagent_ctrl.py:180: [C0103(invalid-name), VesAgentCtrl.get] Variable name "e" doesn't conform to snake_case naming style fcaps/vesagent/vesagent_ctrl.py:181: [W1201(logging-not-lazy), VesAgentCtrl.get] Use lazy % formatting in logging functions fcaps/vesagent/vesagent_ctrl.py:181: [C0209(consider-using-f-string), VesAgentCtrl.get] Formatting a regular string which could be a f-string fcaps/vesagent/vesagent_ctrl.py:185: [W1201(logging-not-lazy), VesAgentCtrl.get] Use lazy % formatting in logging functions fcaps/vesagent/vesagent_ctrl.py:185: [C0209(consider-using-f-string), VesAgentCtrl.get] Formatting a regular string which could be a f-string fcaps/vesagent/vesagent_ctrl.py:211: [W1201(logging-not-lazy), VesAgentCtrl.post] Use lazy % formatting in logging functions fcaps/vesagent/vesagent_ctrl.py:211: [C0209(consider-using-f-string), VesAgentCtrl.post] Formatting a regular string which could be a f-string fcaps/vesagent/vesagent_ctrl.py:212: [W1201(logging-not-lazy), VesAgentCtrl.post] Use lazy % formatting in logging functions fcaps/vesagent/vesagent_ctrl.py:212: [C0209(consider-using-f-string), VesAgentCtrl.post] Formatting a regular string which could be a f-string fcaps/vesagent/vesagent_ctrl.py:233: [W0703(broad-except), VesAgentCtrl.post] Catching too general exception Exception fcaps/vesagent/vesagent_ctrl.py:233: [C0103(invalid-name), VesAgentCtrl.post] Variable name "e" doesn't conform to snake_case naming style fcaps/vesagent/vesagent_ctrl.py:234: [W1201(logging-not-lazy), VesAgentCtrl.post] Use lazy % formatting in logging functions fcaps/vesagent/vesagent_ctrl.py:234: [C0209(consider-using-f-string), VesAgentCtrl.post] Formatting a regular string which could be a f-string fcaps/vesagent/vesagent_ctrl.py:238: [W1201(logging-not-lazy), VesAgentCtrl.post] Use lazy % formatting in logging functions fcaps/vesagent/vesagent_ctrl.py:238: [C0209(consider-using-f-string), VesAgentCtrl.post] Formatting a regular string which could be a f-string fcaps/vesagent/vesagent_ctrl.py:250: [W1201(logging-not-lazy), VesAgentCtrl.delete] Use lazy % formatting in logging functions fcaps/vesagent/vesagent_ctrl.py:250: [C0209(consider-using-f-string), VesAgentCtrl.delete] Formatting a regular string which could be a f-string fcaps/vesagent/vesagent_ctrl.py:251: [W1201(logging-not-lazy), VesAgentCtrl.delete] Use lazy % formatting in logging functions fcaps/vesagent/vesagent_ctrl.py:251: [C0209(consider-using-f-string), VesAgentCtrl.delete] Formatting a regular string which could be a f-string fcaps/vesagent/vesagent_ctrl.py:255: [W0703(broad-except), VesAgentCtrl.delete] Catching too general exception Exception fcaps/vesagent/vesagent_ctrl.py:255: [C0103(invalid-name), VesAgentCtrl.delete] Variable name "e" doesn't conform to snake_case naming style fcaps/vesagent/vesagent_ctrl.py:256: [W1201(logging-not-lazy), VesAgentCtrl.delete] Use lazy % formatting in logging functions fcaps/vesagent/vesagent_ctrl.py:256: [C0209(consider-using-f-string), VesAgentCtrl.delete] Formatting a regular string which could be a f-string fcaps/vesagent/vesagent_ctrl.py:260: [W1201(logging-not-lazy), VesAgentCtrl.delete] Use lazy % formatting in logging functions fcaps/vesagent/vesagent_ctrl.py:260: [C0209(consider-using-f-string), VesAgentCtrl.delete] Formatting a regular string which could be a f-string fcaps/vesagent/vesagent_ctrl.py:263: [C0103(invalid-name), VesAgentCtrl.getBacklogsOneVIM] Method name "getBacklogsOneVIM" doesn't conform to snake_case naming style fcaps/vesagent/vesagent_ctrl.py:269: [W1201(logging-not-lazy), VesAgentCtrl.getBacklogsOneVIM] Use lazy % formatting in logging functions fcaps/vesagent/vesagent_ctrl.py:269: [C0209(consider-using-f-string), VesAgentCtrl.getBacklogsOneVIM] Formatting a regular string which could be a f-string fcaps/vesagent/vesagent_ctrl.py:271: [C0103(invalid-name), VesAgentCtrl.getBacklogsOneVIM] Variable name "vesAgentConfig" doesn't conform to snake_case naming style fcaps/vesagent/vesagent_ctrl.py:286: [W0703(broad-except), VesAgentCtrl.getBacklogsOneVIM] Catching too general exception Exception fcaps/vesagent/vesagent_ctrl.py:274: [C0103(invalid-name), VesAgentCtrl.getBacklogsOneVIM] Variable name "vesAgentConfigStr" doesn't conform to snake_case naming style fcaps/vesagent/vesagent_ctrl.py:274: [C0209(consider-using-f-string), VesAgentCtrl.getBacklogsOneVIM] Formatting a regular string which could be a f-string fcaps/vesagent/vesagent_ctrl.py:276: [W1201(logging-not-lazy), VesAgentCtrl.getBacklogsOneVIM] Use lazy % formatting in logging functions fcaps/vesagent/vesagent_ctrl.py:276: [W1505(deprecated-method), VesAgentCtrl.getBacklogsOneVIM] Using deprecated method warn() fcaps/vesagent/vesagent_ctrl.py:276: [C0209(consider-using-f-string), VesAgentCtrl.getBacklogsOneVIM] Formatting a regular string which could be a f-string fcaps/vesagent/vesagent_ctrl.py:279: [W1201(logging-not-lazy), VesAgentCtrl.getBacklogsOneVIM] Use lazy % formatting in logging functions fcaps/vesagent/vesagent_ctrl.py:279: [C0209(consider-using-f-string), VesAgentCtrl.getBacklogsOneVIM] Formatting a regular string which could be a f-string fcaps/vesagent/vesagent_ctrl.py:281: [C0103(invalid-name), VesAgentCtrl.getBacklogsOneVIM] Variable name "vesAgentConfig" doesn't conform to snake_case naming style fcaps/vesagent/vesagent_ctrl.py:283: [W1201(logging-not-lazy), VesAgentCtrl.getBacklogsOneVIM] Use lazy % formatting in logging functions fcaps/vesagent/vesagent_ctrl.py:283: [W1505(deprecated-method), VesAgentCtrl.getBacklogsOneVIM] Using deprecated method warn() fcaps/vesagent/vesagent_ctrl.py:283: [C0209(consider-using-f-string), VesAgentCtrl.getBacklogsOneVIM] Formatting a regular string which could be a f-string fcaps/vesagent/vesagent_ctrl.py:286: [C0103(invalid-name), VesAgentCtrl.getBacklogsOneVIM] Variable name "e" doesn't conform to snake_case naming style fcaps/vesagent/vesagent_ctrl.py:287: [W1201(logging-not-lazy), VesAgentCtrl.getBacklogsOneVIM] Use lazy % formatting in logging functions fcaps/vesagent/vesagent_ctrl.py:287: [C0209(consider-using-f-string), VesAgentCtrl.getBacklogsOneVIM] Formatting a regular string which could be a f-string fcaps/vesagent/vesagent_ctrl.py:288: [C0103(invalid-name), VesAgentCtrl.getBacklogsOneVIM] Variable name "vesAgentConfig" doesn't conform to snake_case naming style fcaps/vesagent/vesagent_ctrl.py:293: [C0103(invalid-name), VesAgentCtrl.clearBacklogsOneVIM] Method name "clearBacklogsOneVIM" doesn't conform to snake_case naming style fcaps/vesagent/vesagent_ctrl.py:300: [W1201(logging-not-lazy), VesAgentCtrl.clearBacklogsOneVIM] Use lazy % formatting in logging functions fcaps/vesagent/vesagent_ctrl.py:300: [C0209(consider-using-f-string), VesAgentCtrl.clearBacklogsOneVIM] Formatting a regular string which could be a f-string fcaps/vesagent/vesagent_ctrl.py:334: [W0703(broad-except), VesAgentCtrl.clearBacklogsOneVIM] Catching too general exception Exception fcaps/vesagent/vesagent_ctrl.py:304: [C0103(invalid-name), VesAgentCtrl.clearBacklogsOneVIM] Variable name "VesAgentBacklogsVimListStr" doesn't conform to snake_case naming style fcaps/vesagent/vesagent_ctrl.py:305: [C0103(invalid-name), VesAgentCtrl.clearBacklogsOneVIM] Variable name "VesAgentBacklogsVimList" doesn't conform to snake_case naming style fcaps/vesagent/vesagent_ctrl.py:307: [C0103(invalid-name), VesAgentCtrl.clearBacklogsOneVIM] Variable name "VesAgentBacklogsVimList" doesn't conform to snake_case naming style fcaps/vesagent/vesagent_ctrl.py:308: [C0103(invalid-name), VesAgentCtrl.clearBacklogsOneVIM] Variable name "VesAgentBacklogsVimList" doesn't conform to snake_case naming style fcaps/vesagent/vesagent_ctrl.py:310: [W1201(logging-not-lazy), VesAgentCtrl.clearBacklogsOneVIM] Use lazy % formatting in logging functions fcaps/vesagent/vesagent_ctrl.py:310: [C0209(consider-using-f-string), VesAgentCtrl.clearBacklogsOneVIM] Formatting a regular string which could be a f-string fcaps/vesagent/vesagent_ctrl.py:316: [C0103(invalid-name), VesAgentCtrl.clearBacklogsOneVIM] Variable name "vesAgentConfigStr" doesn't conform to snake_case naming style fcaps/vesagent/vesagent_ctrl.py:316: [C0209(consider-using-f-string), VesAgentCtrl.clearBacklogsOneVIM] Formatting a regular string which could be a f-string fcaps/vesagent/vesagent_ctrl.py:318: [W1201(logging-not-lazy), VesAgentCtrl.clearBacklogsOneVIM] Use lazy % formatting in logging functions fcaps/vesagent/vesagent_ctrl.py:318: [W1505(deprecated-method), VesAgentCtrl.clearBacklogsOneVIM] Using deprecated method warn() fcaps/vesagent/vesagent_ctrl.py:318: [C0209(consider-using-f-string), VesAgentCtrl.clearBacklogsOneVIM] Formatting a regular string which could be a f-string fcaps/vesagent/vesagent_ctrl.py:321: [W1201(logging-not-lazy), VesAgentCtrl.clearBacklogsOneVIM] Use lazy % formatting in logging functions fcaps/vesagent/vesagent_ctrl.py:321: [C0209(consider-using-f-string), VesAgentCtrl.clearBacklogsOneVIM] Formatting a regular string which could be a f-string fcaps/vesagent/vesagent_ctrl.py:323: [C0103(invalid-name), VesAgentCtrl.clearBacklogsOneVIM] Variable name "vesAgentConfig" doesn't conform to snake_case naming style fcaps/vesagent/vesagent_ctrl.py:325: [W1201(logging-not-lazy), VesAgentCtrl.clearBacklogsOneVIM] Use lazy % formatting in logging functions fcaps/vesagent/vesagent_ctrl.py:325: [W1505(deprecated-method), VesAgentCtrl.clearBacklogsOneVIM] Using deprecated method warn() fcaps/vesagent/vesagent_ctrl.py:325: [C0209(consider-using-f-string), VesAgentCtrl.clearBacklogsOneVIM] Formatting a regular string which could be a f-string fcaps/vesagent/vesagent_ctrl.py:332: [C0209(consider-using-f-string), VesAgentCtrl.clearBacklogsOneVIM] Formatting a regular string which could be a f-string fcaps/vesagent/vesagent_ctrl.py:334: [C0103(invalid-name), VesAgentCtrl.clearBacklogsOneVIM] Variable name "e" doesn't conform to snake_case naming style fcaps/vesagent/vesagent_ctrl.py:335: [W1201(logging-not-lazy), VesAgentCtrl.clearBacklogsOneVIM] Use lazy % formatting in logging functions fcaps/vesagent/vesagent_ctrl.py:335: [C0209(consider-using-f-string), VesAgentCtrl.clearBacklogsOneVIM] Formatting a regular string which could be a f-string fcaps/vesagent/vesagent_ctrl.py:340: [C0103(invalid-name), VesAgentCtrl.buildBacklogsOneVIM] Method name "buildBacklogsOneVIM" doesn't conform to snake_case naming style fcaps/vesagent/vesagent_ctrl.py:347: [W1201(logging-not-lazy), VesAgentCtrl.buildBacklogsOneVIM] Use lazy % formatting in logging functions fcaps/vesagent/vesagent_ctrl.py:347: [C0209(consider-using-f-string), VesAgentCtrl.buildBacklogsOneVIM] Formatting a regular string which could be a f-string fcaps/vesagent/vesagent_ctrl.py:348: [W1201(logging-not-lazy), VesAgentCtrl.buildBacklogsOneVIM] Use lazy % formatting in logging functions fcaps/vesagent/vesagent_ctrl.py:348: [C0209(consider-using-f-string), VesAgentCtrl.buildBacklogsOneVIM] Formatting a regular string which could be a f-string fcaps/vesagent/vesagent_ctrl.py:350: [C0103(invalid-name), VesAgentCtrl.buildBacklogsOneVIM] Variable name "VesAgentBacklogsConfig" doesn't conform to snake_case naming style fcaps/vesagent/vesagent_ctrl.py:382: [W0703(broad-except), VesAgentCtrl.buildBacklogsOneVIM] Catching too general exception Exception fcaps/vesagent/vesagent_ctrl.py:354: [C0103(invalid-name), VesAgentCtrl.buildBacklogsOneVIM] Variable name "VesAgentBacklogsConfig" doesn't conform to snake_case naming style fcaps/vesagent/vesagent_ctrl.py:362: [C0103(invalid-name), VesAgentCtrl.buildBacklogsOneVIM] Variable name "VesAgentBacklogsConfigStr" doesn't conform to snake_case naming style fcaps/vesagent/vesagent_ctrl.py:364: [C0209(consider-using-f-string), VesAgentCtrl.buildBacklogsOneVIM] Formatting a regular string which could be a f-string fcaps/vesagent/vesagent_ctrl.py:368: [C0103(invalid-name), VesAgentCtrl.buildBacklogsOneVIM] Variable name "VesAgentBacklogsVimListStr" doesn't conform to snake_case naming style fcaps/vesagent/vesagent_ctrl.py:369: [C0103(invalid-name), VesAgentCtrl.buildBacklogsOneVIM] Variable name "VesAgentBacklogsVimList" doesn't conform to snake_case naming style fcaps/vesagent/vesagent_ctrl.py:371: [C0103(invalid-name), VesAgentCtrl.buildBacklogsOneVIM] Variable name "VesAgentBacklogsVimList" doesn't conform to snake_case naming style fcaps/vesagent/vesagent_ctrl.py:372: [C0103(invalid-name), VesAgentCtrl.buildBacklogsOneVIM] Variable name "VesAgentBacklogsVimList" doesn't conform to snake_case naming style fcaps/vesagent/vesagent_ctrl.py:375: [W1201(logging-not-lazy), VesAgentCtrl.buildBacklogsOneVIM] Use lazy % formatting in logging functions fcaps/vesagent/vesagent_ctrl.py:375: [C0209(consider-using-f-string), VesAgentCtrl.buildBacklogsOneVIM] Formatting a regular string which could be a f-string fcaps/vesagent/vesagent_ctrl.py:382: [C0103(invalid-name), VesAgentCtrl.buildBacklogsOneVIM] Variable name "e" doesn't conform to snake_case naming style fcaps/vesagent/vesagent_ctrl.py:383: [W1201(logging-not-lazy), VesAgentCtrl.buildBacklogsOneVIM] Use lazy % formatting in logging functions fcaps/vesagent/vesagent_ctrl.py:383: [C0209(consider-using-f-string), VesAgentCtrl.buildBacklogsOneVIM] Formatting a regular string which could be a f-string fcaps/vesagent/vesagent_ctrl.py:384: [C0103(invalid-name), VesAgentCtrl.buildBacklogsOneVIM] Variable name "VesAgentBacklogsConfig" doesn't conform to snake_case naming style fcaps/vesagent/vesagent_ctrl.py:389: [C0103(invalid-name), VesAgentCtrl.buildBacklog] Method name "buildBacklog" doesn't conform to snake_case naming style fcaps/vesagent/vesagent_ctrl.py:389: [C0116(missing-function-docstring), VesAgentCtrl.buildBacklog] Missing function or method docstring fcaps/vesagent/vesagent_ctrl.py:390: [W1201(logging-not-lazy), VesAgentCtrl.buildBacklog] Use lazy % formatting in logging functions fcaps/vesagent/vesagent_ctrl.py:390: [C0209(consider-using-f-string), VesAgentCtrl.buildBacklog] Formatting a regular string which could be a f-string fcaps/vesagent/vesagent_ctrl.py:391: [W1201(logging-not-lazy), VesAgentCtrl.buildBacklog] Use lazy % formatting in logging functions fcaps/vesagent/vesagent_ctrl.py:391: [C0209(consider-using-f-string), VesAgentCtrl.buildBacklog] Formatting a regular string which could be a f-string fcaps/vesagent/vesagent_ctrl.py:402: [W0703(broad-except), VesAgentCtrl.buildBacklog] Catching too general exception Exception fcaps/vesagent/vesagent_ctrl.py:394: [R1705(no-else-return), VesAgentCtrl.buildBacklog] Unnecessary "elif" after "return", remove the leading "el" from "elif" fcaps/vesagent/vesagent_ctrl.py:399: [W1201(logging-not-lazy), VesAgentCtrl.buildBacklog] Use lazy % formatting in logging functions fcaps/vesagent/vesagent_ctrl.py:399: [W1505(deprecated-method), VesAgentCtrl.buildBacklog] Using deprecated method warn() fcaps/vesagent/vesagent_ctrl.py:399: [C0209(consider-using-f-string), VesAgentCtrl.buildBacklog] Formatting a regular string which could be a f-string fcaps/vesagent/vesagent_ctrl.py:402: [C0103(invalid-name), VesAgentCtrl.buildBacklog] Variable name "e" doesn't conform to snake_case naming style fcaps/vesagent/vesagent_ctrl.py:403: [W1201(logging-not-lazy), VesAgentCtrl.buildBacklog] Use lazy % formatting in logging functions fcaps/vesagent/vesagent_ctrl.py:403: [C0209(consider-using-f-string), VesAgentCtrl.buildBacklog] Formatting a regular string which could be a f-string fcaps/vesagent/vesagent_ctrl.py:410: [C0115(missing-class-docstring), APIv1VesAgentCtrl] Missing class docstring fcaps/vesagent/vesagent_ctrl.py:413: [R1725(super-with-arguments), APIv1VesAgentCtrl.__init__] Consider using Python 3 style super() without arguments fcaps/vesagent/vesagent_ctrl.py:417: [W0237(arguments-renamed), APIv1VesAgentCtrl.get] Parameter 'vimid' has been renamed to 'cloud_owner' in overridden 'APIv1VesAgentCtrl.get' method fcaps/vesagent/vesagent_ctrl.py:424: [W1201(logging-not-lazy), APIv1VesAgentCtrl.get] Use lazy % formatting in logging functions fcaps/vesagent/vesagent_ctrl.py:424: [C0209(consider-using-f-string), APIv1VesAgentCtrl.get] Formatting a regular string which could be a f-string fcaps/vesagent/vesagent_ctrl.py:427: [R1725(super-with-arguments), APIv1VesAgentCtrl.get] Consider using Python 3 style super() without arguments fcaps/vesagent/vesagent_ctrl.py:429: [W0237(arguments-renamed), APIv1VesAgentCtrl.post] Parameter 'vimid' has been renamed to 'cloud_owner' in overridden 'APIv1VesAgentCtrl.post' method fcaps/vesagent/vesagent_ctrl.py:437: [W1201(logging-not-lazy), APIv1VesAgentCtrl.post] Use lazy % formatting in logging functions fcaps/vesagent/vesagent_ctrl.py:437: [C0209(consider-using-f-string), APIv1VesAgentCtrl.post] Formatting a regular string which could be a f-string fcaps/vesagent/vesagent_ctrl.py:440: [R1725(super-with-arguments), APIv1VesAgentCtrl.post] Consider using Python 3 style super() without arguments fcaps/vesagent/vesagent_ctrl.py:442: [W0237(arguments-renamed), APIv1VesAgentCtrl.delete] Parameter 'vimid' has been renamed to 'cloud_owner' in overridden 'APIv1VesAgentCtrl.delete' method fcaps/vesagent/vesagent_ctrl.py:450: [W1201(logging-not-lazy), APIv1VesAgentCtrl.delete] Use lazy % formatting in logging functions fcaps/vesagent/vesagent_ctrl.py:451: [C0209(consider-using-f-string), APIv1VesAgentCtrl.delete] Formatting a regular string which could be a f-string fcaps/vesagent/vesagent_ctrl.py:455: [R1725(super-with-arguments), APIv1VesAgentCtrl.delete] Consider using Python 3 style super() without arguments fcaps/vesagent/vesagent_ctrl.py:29: [C0411(wrong-import-order), ] third party import "from django.core.cache import cache" should be placed before "from fcaps.vesagent.tasks import scheduleBacklogs" fcaps/vesagent/vesagent_ctrl.py:29: [C0412(ungrouped-imports), ] Imports from package django are not grouped ************* Module fcaps.vesagent.vespublish fcaps/vesagent/vespublish.py:1: [C0114(missing-module-docstring), ] Missing module docstring fcaps/vesagent/vespublish.py:26: [C0103(invalid-name), publishAnyEventToVES] Function name "publishAnyEventToVES" doesn't conform to snake_case naming style fcaps/vesagent/vespublish.py:26: [C0116(missing-function-docstring), publishAnyEventToVES] Missing function or method docstring fcaps/vesagent/vespublish.py:51: [W0703(broad-except), publishAnyEventToVES] Catching too general exception Exception fcaps/vesagent/vespublish.py:38: [C0209(consider-using-f-string), publishAnyEventToVES] Formatting a regular string which could be a f-string fcaps/vesagent/vespublish.py:43: [W1201(logging-not-lazy), publishAnyEventToVES] Use lazy % formatting in logging functions fcaps/vesagent/vespublish.py:43: [C0209(consider-using-f-string), publishAnyEventToVES] Formatting a regular string which could be a f-string fcaps/vesagent/vespublish.py:48: [W1201(logging-not-lazy), publishAnyEventToVES] Use lazy % formatting in logging functions fcaps/vesagent/vespublish.py:48: [C0209(consider-using-f-string), publishAnyEventToVES] Formatting a regular string which could be a f-string fcaps/vesagent/vespublish.py:49: [C0103(invalid-name), publishAnyEventToVES] Variable name "e" doesn't conform to snake_case naming style fcaps/vesagent/vespublish.py:50: [W1201(logging-not-lazy), publishAnyEventToVES] Use lazy % formatting in logging functions fcaps/vesagent/vespublish.py:50: [C0209(consider-using-f-string), publishAnyEventToVES] Formatting a regular string which could be a f-string fcaps/vesagent/vespublish.py:51: [C0103(invalid-name), publishAnyEventToVES] Variable name "e" doesn't conform to snake_case naming style fcaps/vesagent/vespublish.py:52: [W1201(logging-not-lazy), publishAnyEventToVES] Use lazy % formatting in logging functions fcaps/vesagent/vespublish.py:52: [C0209(consider-using-f-string), publishAnyEventToVES] Formatting a regular string which could be a f-string fcaps/vesagent/vespublish.py:47: [R1732(consider-using-with), publishAnyEventToVES] Consider using 'with' for resource-allocating operations ************* Module fcaps.vesagent.tests.tests_tasks fcaps/vesagent/tests/tests_tasks.py:43: [C0301(line-too-long), ] Line too long (241/100) fcaps/vesagent/tests/tests_tasks.py:95: [C0301(line-too-long), ] Line too long (134/100) fcaps/vesagent/tests/tests_tasks.py:121: [C0301(line-too-long), ] Line too long (134/100) fcaps/vesagent/tests/tests_tasks.py:133: [C0301(line-too-long), ] Line too long (136/100) fcaps/vesagent/tests/tests_tasks.py:1: [C0114(missing-module-docstring), ] Missing module docstring fcaps/vesagent/tests/tests_tasks.py:51: [C0115(missing-class-docstring), VesTaskTest] Missing class docstring fcaps/vesagent/tests/tests_tasks.py:60: [C0103(invalid-name), VesTaskTest.test_tasks_scheduleBacklogs] Method name "test_tasks_scheduleBacklogs" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_tasks.py:60: [C0103(invalid-name), VesTaskTest.test_tasks_scheduleBacklogs] Argument name "mock_processBacklogs" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_tasks.py:60: [C0116(missing-function-docstring), VesTaskTest.test_tasks_scheduleBacklogs] Missing function or method docstring fcaps/vesagent/tests/tests_tasks.py:66: [E1120(no-value-for-parameter), VesTaskTest.test_tasks_scheduleBacklogs] No value for argument 'self' in function call fcaps/vesagent/tests/tests_tasks.py:71: [C0103(invalid-name), VesTaskTest.test_tasks_processBacklogs] Method name "test_tasks_processBacklogs" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_tasks.py:72: [C0103(invalid-name), VesTaskTest.test_tasks_processBacklogs] Argument name "mock_tasks_processBacklogsOfOneVIM" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_tasks.py:71: [C0116(missing-function-docstring), VesTaskTest.test_tasks_processBacklogs] Missing function or method docstring fcaps/vesagent/tests/tests_tasks.py:73: [C0103(invalid-name), VesTaskTest.test_tasks_processBacklogs] Variable name "mock_VesAgentBacklogs_vimlist" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_tasks.py:74: [C0103(invalid-name), VesTaskTest.test_tasks_processBacklogs] Variable name "COUNT_TIME_SLOT_ONE_VIM" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_tasks.py:85: [C0103(invalid-name), VesTaskTest.test_tasks_processBacklogsOfOneVIM] Method name "test_tasks_processBacklogsOfOneVIM" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_tasks.py:86: [C0103(invalid-name), VesTaskTest.test_tasks_processBacklogsOfOneVIM] Argument name "mock_tasks_processOneBacklog" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_tasks.py:85: [C0116(missing-function-docstring), VesTaskTest.test_tasks_processBacklogsOfOneVIM] Missing function or method docstring fcaps/vesagent/tests/tests_tasks.py:107: [C0103(invalid-name), VesTaskTest.test_tasks_processBacklogsOfOneVIM] Variable name "COUNT_TIME_SLOT" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_tasks.py:111: [C0103(invalid-name), VesTaskTest.test_tasks_processOneBacklog] Method name "test_tasks_processOneBacklog" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_tasks.py:112: [C0103(invalid-name), VesTaskTest.test_tasks_processOneBacklog] Argument name "mock_fault_vm_processBacklog_fault_vm" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_tasks.py:111: [C0116(missing-function-docstring), VesTaskTest.test_tasks_processOneBacklog] Missing function or method docstring fcaps/vesagent/tests/tests_tasks.py:142: [C0103(invalid-name), VesTaskTest.test_tasks_processOneBacklog] Variable name "COUNT_TIME_SLOT" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_tasks.py:17: [C0411(wrong-import-order), ] standard import "import unittest" should be placed before "import mock" fcaps/vesagent/tests/tests_tasks.py:18: [C0411(wrong-import-order), ] standard import "import json" should be placed before "import mock" ************* Module fcaps.vesagent.tests.tests_pm_vm fcaps/vesagent/tests/tests_pm_vm.py:30: [C0301(line-too-long), ] Line too long (121/100) fcaps/vesagent/tests/tests_pm_vm.py:39: [C0301(line-too-long), ] Line too long (129/100) fcaps/vesagent/tests/tests_pm_vm.py:42: [C0301(line-too-long), ] Line too long (128/100) fcaps/vesagent/tests/tests_pm_vm.py:53: [C0301(line-too-long), ] Line too long (120/100) fcaps/vesagent/tests/tests_pm_vm.py:62: [C0301(line-too-long), ] Line too long (120/100) fcaps/vesagent/tests/tests_pm_vm.py:83: [C0301(line-too-long), ] Line too long (101/100) fcaps/vesagent/tests/tests_pm_vm.py:88: [C0301(line-too-long), ] Line too long (103/100) fcaps/vesagent/tests/tests_pm_vm.py:111: [C0301(line-too-long), ] Line too long (125/100) fcaps/vesagent/tests/tests_pm_vm.py:125: [C0301(line-too-long), ] Line too long (120/100) fcaps/vesagent/tests/tests_pm_vm.py:1: [C0114(missing-module-docstring), ] Missing module docstring fcaps/vesagent/tests/tests_pm_vm.py:129: [C0115(missing-class-docstring), PmVMTest] Missing class docstring fcaps/vesagent/tests/tests_pm_vm.py:136: [C0116(missing-function-docstring), PmVMTest.test_get_epoch_now_usecond] Missing function or method docstring fcaps/vesagent/tests/tests_pm_vm.py:141: [C0103(invalid-name), PmVMTest.test_buildBacklog_pm_vm] Method name "test_buildBacklog_pm_vm" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_pm_vm.py:141: [C0116(missing-function-docstring), PmVMTest.test_buildBacklog_pm_vm] Missing function or method docstring fcaps/vesagent/tests/tests_pm_vm.py:153: [C0103(invalid-name), PmVMTest.test_buildBacklog_pm_vm_wo_tenant_id] Method name "test_buildBacklog_pm_vm_wo_tenant_id" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_pm_vm.py:153: [C0116(missing-function-docstring), PmVMTest.test_buildBacklog_pm_vm_wo_tenant_id] Missing function or method docstring fcaps/vesagent/tests/tests_pm_vm.py:164: [C0103(invalid-name), PmVMTest.test_buildBacklog_pm_vm_wo_tenant] Method name "test_buildBacklog_pm_vm_wo_tenant" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_pm_vm.py:164: [C0116(missing-function-docstring), PmVMTest.test_buildBacklog_pm_vm_wo_tenant] Missing function or method docstring fcaps/vesagent/tests/tests_pm_vm.py:175: [C0103(invalid-name), PmVMTest.test_buildBacklog_pm_vm_wo_server_id] Method name "test_buildBacklog_pm_vm_wo_server_id" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_pm_vm.py:175: [C0116(missing-function-docstring), PmVMTest.test_buildBacklog_pm_vm_wo_server_id] Missing function or method docstring fcaps/vesagent/tests/tests_pm_vm.py:186: [C0103(invalid-name), PmVMTest.test_buildBacklog_pm_vm_wo_server] Method name "test_buildBacklog_pm_vm_wo_server" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_pm_vm.py:186: [C0116(missing-function-docstring), PmVMTest.test_buildBacklog_pm_vm_wo_server] Missing function or method docstring fcaps/vesagent/tests/tests_pm_vm.py:198: [C0103(invalid-name), PmVMTest.test_processBacklog_pm_vm] Method name "test_processBacklog_pm_vm" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_pm_vm.py:199: [C0103(invalid-name), PmVMTest.test_processBacklog_pm_vm] Argument name "mock_publishAnyEventToVES" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_pm_vm.py:198: [C0116(missing-function-docstring), PmVMTest.test_processBacklog_pm_vm] Missing function or method docstring fcaps/vesagent/tests/tests_pm_vm.py:206: [E1128(assignment-from-none), PmVMTest.test_processBacklog_pm_vm] Assigning result of a function call, where the function returns None fcaps/vesagent/tests/tests_pm_vm.py:211: [W0107(unnecessary-pass), PmVMTest.test_processBacklog_pm_vm] Unnecessary pass statement fcaps/vesagent/tests/tests_pm_vm.py:215: [C0103(invalid-name), PmVMTest.test_processBacklog_pm_vm_wo_server] Method name "test_processBacklog_pm_vm_wo_server" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_pm_vm.py:216: [C0103(invalid-name), PmVMTest.test_processBacklog_pm_vm_wo_server] Argument name "mock_publishAnyEventToVES" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_pm_vm.py:215: [C0116(missing-function-docstring), PmVMTest.test_processBacklog_pm_vm_wo_server] Missing function or method docstring fcaps/vesagent/tests/tests_pm_vm.py:223: [E1128(assignment-from-none), PmVMTest.test_processBacklog_pm_vm_wo_server] Assigning result of a function call, where the function returns None fcaps/vesagent/tests/tests_pm_vm.py:17: [C0411(wrong-import-order), ] standard import "import unittest" should be placed before "import mock" fcaps/vesagent/tests/tests_pm_vm.py:18: [C0411(wrong-import-order), ] standard import "import json" should be placed before "import mock" fcaps/vesagent/tests/tests_pm_vm.py:21: [C0411(wrong-import-order), ] third party import "from common.utils import restcall" should be placed before "from fcaps.vesagent import vespublish" fcaps/vesagent/tests/tests_pm_vm.py:22: [C0412(ungrouped-imports), ] Imports from package fcaps are not grouped ************* Module fcaps.vesagent.tests.tests_vespublish fcaps/vesagent/tests/tests_vespublish.py:1: [C0114(missing-module-docstring), ] Missing module docstring fcaps/vesagent/tests/tests_vespublish.py:33: [C0115(missing-class-docstring), VespublishTest] Missing class docstring fcaps/vesagent/tests/tests_vespublish.py:42: [C0103(invalid-name), VespublishTest.test_publishAnyEventToVES] Method name "test_publishAnyEventToVES" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_vespublish.py:42: [C0103(invalid-name), VespublishTest.test_publishAnyEventToVES] Argument name "mock_Request" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_vespublish.py:42: [C0116(missing-function-docstring), VespublishTest.test_publishAnyEventToVES] Missing function or method docstring fcaps/vesagent/tests/tests_vespublish.py:42: [R0201(no-self-use), VespublishTest.test_publishAnyEventToVES] Method could be a function fcaps/vesagent/tests/tests_vespublish.py:17: [C0411(wrong-import-order), ] standard import "import unittest" should be placed before "import mock" fcaps/vesagent/tests/tests_vespublish.py:20: [C0411(wrong-import-order), ] standard import "import urllib" should be placed before "import mock" ************* Module fcaps.vesagent.tests.tests_fault_vm fcaps/vesagent/tests/tests_fault_vm.py:30: [C0301(line-too-long), ] Line too long (107/100) fcaps/vesagent/tests/tests_fault_vm.py:39: [C0301(line-too-long), ] Line too long (129/100) fcaps/vesagent/tests/tests_fault_vm.py:42: [C0301(line-too-long), ] Line too long (128/100) fcaps/vesagent/tests/tests_fault_vm.py:53: [C0301(line-too-long), ] Line too long (120/100) fcaps/vesagent/tests/tests_fault_vm.py:62: [C0301(line-too-long), ] Line too long (120/100) fcaps/vesagent/tests/tests_fault_vm.py:83: [C0301(line-too-long), ] Line too long (101/100) fcaps/vesagent/tests/tests_fault_vm.py:88: [C0301(line-too-long), ] Line too long (103/100) fcaps/vesagent/tests/tests_fault_vm.py:111: [C0301(line-too-long), ] Line too long (125/100) fcaps/vesagent/tests/tests_fault_vm.py:125: [C0301(line-too-long), ] Line too long (120/100) fcaps/vesagent/tests/tests_fault_vm.py:1: [C0114(missing-module-docstring), ] Missing module docstring fcaps/vesagent/tests/tests_fault_vm.py:129: [C0115(missing-class-docstring), FaultVMTest] Missing class docstring fcaps/vesagent/tests/tests_fault_vm.py:136: [C0116(missing-function-docstring), FaultVMTest.test_get_epoch_now_usecond] Missing function or method docstring fcaps/vesagent/tests/tests_fault_vm.py:141: [C0103(invalid-name), FaultVMTest.test_buildBacklog_fault_vm] Method name "test_buildBacklog_fault_vm" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_fault_vm.py:141: [C0116(missing-function-docstring), FaultVMTest.test_buildBacklog_fault_vm] Missing function or method docstring fcaps/vesagent/tests/tests_fault_vm.py:153: [C0103(invalid-name), FaultVMTest.test_buildBacklog_fault_vm_wo_tenant_id] Method name "test_buildBacklog_fault_vm_wo_tenant_id" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_fault_vm.py:153: [C0116(missing-function-docstring), FaultVMTest.test_buildBacklog_fault_vm_wo_tenant_id] Missing function or method docstring fcaps/vesagent/tests/tests_fault_vm.py:164: [C0103(invalid-name), FaultVMTest.test_buildBacklog_fault_vm_wo_tenant] Method name "test_buildBacklog_fault_vm_wo_tenant" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_fault_vm.py:164: [C0116(missing-function-docstring), FaultVMTest.test_buildBacklog_fault_vm_wo_tenant] Missing function or method docstring fcaps/vesagent/tests/tests_fault_vm.py:175: [C0103(invalid-name), FaultVMTest.test_buildBacklog_fault_vm_wo_server_id] Method name "test_buildBacklog_fault_vm_wo_server_id" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_fault_vm.py:175: [C0116(missing-function-docstring), FaultVMTest.test_buildBacklog_fault_vm_wo_server_id] Missing function or method docstring fcaps/vesagent/tests/tests_fault_vm.py:186: [C0103(invalid-name), FaultVMTest.test_buildBacklog_fault_vm_wo_server] Method name "test_buildBacklog_fault_vm_wo_server" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_fault_vm.py:186: [C0116(missing-function-docstring), FaultVMTest.test_buildBacklog_fault_vm_wo_server] Missing function or method docstring fcaps/vesagent/tests/tests_fault_vm.py:198: [C0103(invalid-name), FaultVMTest.test_processBacklog_fault_vm] Method name "test_processBacklog_fault_vm" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_fault_vm.py:199: [C0103(invalid-name), FaultVMTest.test_processBacklog_fault_vm] Argument name "mock_publishAnyEventToVES" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_fault_vm.py:198: [C0116(missing-function-docstring), FaultVMTest.test_processBacklog_fault_vm] Missing function or method docstring fcaps/vesagent/tests/tests_fault_vm.py:206: [E1128(assignment-from-none), FaultVMTest.test_processBacklog_fault_vm] Assigning result of a function call, where the function returns None fcaps/vesagent/tests/tests_fault_vm.py:211: [W0107(unnecessary-pass), FaultVMTest.test_processBacklog_fault_vm] Unnecessary pass statement fcaps/vesagent/tests/tests_fault_vm.py:215: [C0103(invalid-name), FaultVMTest.test_processBacklog_fault_vm_wo_server] Method name "test_processBacklog_fault_vm_wo_server" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_fault_vm.py:216: [C0103(invalid-name), FaultVMTest.test_processBacklog_fault_vm_wo_server] Argument name "mock_publishAnyEventToVES" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_fault_vm.py:215: [C0116(missing-function-docstring), FaultVMTest.test_processBacklog_fault_vm_wo_server] Missing function or method docstring fcaps/vesagent/tests/tests_fault_vm.py:223: [E1128(assignment-from-none), FaultVMTest.test_processBacklog_fault_vm_wo_server] Assigning result of a function call, where the function returns None fcaps/vesagent/tests/tests_fault_vm.py:17: [C0411(wrong-import-order), ] standard import "import unittest" should be placed before "import mock" fcaps/vesagent/tests/tests_fault_vm.py:18: [C0411(wrong-import-order), ] standard import "import json" should be placed before "import mock" fcaps/vesagent/tests/tests_fault_vm.py:21: [C0411(wrong-import-order), ] third party import "from common.utils import restcall" should be placed before "from fcaps.vesagent import vespublish" fcaps/vesagent/tests/tests_fault_vm.py:22: [C0412(ungrouped-imports), ] Imports from package fcaps are not grouped ************* Module fcaps.vesagent.tests.tests_vesagent_ctrl fcaps/vesagent/tests/tests_vesagent_ctrl.py:43: [C0301(line-too-long), ] Line too long (248/100) fcaps/vesagent/tests/tests_vesagent_ctrl.py:61: [C0301(line-too-long), ] Line too long (571/100) fcaps/vesagent/tests/tests_vesagent_ctrl.py:91: [C0301(line-too-long), ] Line too long (101/100) fcaps/vesagent/tests/tests_vesagent_ctrl.py:93: [C0301(line-too-long), ] Line too long (115/100) fcaps/vesagent/tests/tests_vesagent_ctrl.py:95: [C0301(line-too-long), ] Line too long (170/100) fcaps/vesagent/tests/tests_vesagent_ctrl.py:116: [C0301(line-too-long), ] Line too long (133/100) fcaps/vesagent/tests/tests_vesagent_ctrl.py:145: [C0301(line-too-long), ] Line too long (150/100) fcaps/vesagent/tests/tests_vesagent_ctrl.py:171: [C0301(line-too-long), ] Line too long (128/100) fcaps/vesagent/tests/tests_vesagent_ctrl.py:1: [C0114(missing-module-docstring), ] Missing module docstring fcaps/vesagent/tests/tests_vesagent_ctrl.py:48: [C0115(missing-class-docstring), VesAgentCtrlTest] Missing class docstring fcaps/vesagent/tests/tests_vesagent_ctrl.py:58: [C0116(missing-function-docstring), VesAgentCtrlTest.test_get] Missing function or method docstring fcaps/vesagent/tests/tests_vesagent_ctrl.py:68: [C0103(invalid-name), VesAgentCtrlTest.test_post] Argument name "mock_buildBacklogsOneVIM" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_vesagent_ctrl.py:68: [C0116(missing-function-docstring), VesAgentCtrlTest.test_post] Missing function or method docstring fcaps/vesagent/tests/tests_vesagent_ctrl.py:80: [C0103(invalid-name), VesAgentCtrlTest.test_delete] Argument name "mock_clearBacklogsOneVIM" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_vesagent_ctrl.py:80: [C0116(missing-function-docstring), VesAgentCtrlTest.test_delete] Missing function or method docstring fcaps/vesagent/tests/tests_vesagent_ctrl.py:90: [C0103(invalid-name), VesAgentCtrlTest.test_getBacklogsOneVIM] Method name "test_getBacklogsOneVIM" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_vesagent_ctrl.py:90: [C0116(missing-function-docstring), VesAgentCtrlTest.test_getBacklogsOneVIM] Missing function or method docstring fcaps/vesagent/tests/tests_vesagent_ctrl.py:102: [C0103(invalid-name), VesAgentCtrlTest.test_getBacklogsOneVIM] Variable name "vesAgentConfig" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_vesagent_ctrl.py:107: [C0103(invalid-name), VesAgentCtrlTest.test_clearBacklogsOneVIM] Method name "test_clearBacklogsOneVIM" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_vesagent_ctrl.py:107: [C0116(missing-function-docstring), VesAgentCtrlTest.test_clearBacklogsOneVIM] Missing function or method docstring fcaps/vesagent/tests/tests_vesagent_ctrl.py:108: [C0103(invalid-name), VesAgentCtrlTest.test_clearBacklogsOneVIM] Variable name "mock_VesAgentBacklogs_vimlist" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_vesagent_ctrl.py:137: [C0103(invalid-name), VesAgentCtrlTest.test_buildBacklogsOneVIM] Method name "test_buildBacklogsOneVIM" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_vesagent_ctrl.py:138: [C0103(invalid-name), VesAgentCtrlTest.test_buildBacklogsOneVIM] Argument name "mock_scheduleBacklogs_delay" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_vesagent_ctrl.py:137: [C0116(missing-function-docstring), VesAgentCtrlTest.test_buildBacklogsOneVIM] Missing function or method docstring fcaps/vesagent/tests/tests_vesagent_ctrl.py:139: [C0103(invalid-name), VesAgentCtrlTest.test_buildBacklogsOneVIM] Variable name "mock_VesAgentBacklogs_vimlist" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_vesagent_ctrl.py:158: [C0103(invalid-name), VesAgentCtrlTest.test_buildBacklogsOneVIM] Variable name "VesAgentBacklogsConfig" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_vesagent_ctrl.py:164: [C0103(invalid-name), VesAgentCtrlTest.test_buildBacklog] Method name "test_buildBacklog" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_vesagent_ctrl.py:164: [C0103(invalid-name), VesAgentCtrlTest.test_buildBacklog] Argument name "mock_buildBacklog_fault_vm" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_vesagent_ctrl.py:164: [C0116(missing-function-docstring), VesAgentCtrlTest.test_buildBacklog] Missing function or method docstring fcaps/vesagent/tests/tests_vesagent_ctrl.py:176: [C0103(invalid-name), VesAgentCtrlTest.test_buildBacklog] Variable name "VesAgentBacklogsConfig" doesn't conform to snake_case naming style fcaps/vesagent/tests/tests_vesagent_ctrl.py:17: [C0411(wrong-import-order), ] standard import "import unittest" should be placed before "import mock" fcaps/vesagent/tests/tests_vesagent_ctrl.py:18: [C0411(wrong-import-order), ] standard import "import json" should be placed before "import mock" fcaps/vesagent/tests/tests_vesagent_ctrl.py:22: [C0412(ungrouped-imports), ] Imports from package django are not grouped ************* Module fcaps.vesagent.event_domain.fault_vm fcaps/vesagent/event_domain/fault_vm.py:85: [C0301(line-too-long), ] Line too long (104/100) fcaps/vesagent/event_domain/fault_vm.py:220: [C0301(line-too-long), ] Line too long (110/100) fcaps/vesagent/event_domain/fault_vm.py:242: [C0301(line-too-long), ] Line too long (109/100) fcaps/vesagent/event_domain/fault_vm.py:1: [C0114(missing-module-docstring), ] Missing module docstring fcaps/vesagent/event_domain/fault_vm.py:42: [C0103(invalid-name), buildBacklog_fault_vm] Function name "buildBacklog_fault_vm" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/fault_vm.py:42: [C0116(missing-function-docstring), buildBacklog_fault_vm] Missing function or method docstring fcaps/vesagent/event_domain/fault_vm.py:42: [R0914(too-many-locals), buildBacklog_fault_vm] Too many local variables (22/15) fcaps/vesagent/event_domain/fault_vm.py:45: [W1201(logging-not-lazy), buildBacklog_fault_vm] Use lazy % formatting in logging functions fcaps/vesagent/event_domain/fault_vm.py:45: [C0209(consider-using-f-string), buildBacklog_fault_vm] Formatting a regular string which could be a f-string fcaps/vesagent/event_domain/fault_vm.py:46: [W1201(logging-not-lazy), buildBacklog_fault_vm] Use lazy % formatting in logging functions fcaps/vesagent/event_domain/fault_vm.py:46: [C0209(consider-using-f-string), buildBacklog_fault_vm] Formatting a regular string which could be a f-string fcaps/vesagent/event_domain/fault_vm.py:122: [W0703(broad-except), buildBacklog_fault_vm] Catching too general exception Exception fcaps/vesagent/event_domain/fault_vm.py:66: [W0212(protected-access), buildBacklog_fault_vm] Access to a protected member _call_req of a client class fcaps/vesagent/event_domain/fault_vm.py:69: [W1201(logging-not-lazy), buildBacklog_fault_vm] Use lazy % formatting in logging functions fcaps/vesagent/event_domain/fault_vm.py:69: [C0209(consider-using-f-string), buildBacklog_fault_vm] Formatting a regular string which could be a f-string fcaps/vesagent/event_domain/fault_vm.py:85: [W0212(protected-access), buildBacklog_fault_vm] Access to a protected member _call_req of a client class fcaps/vesagent/event_domain/fault_vm.py:87: [W1201(logging-not-lazy), buildBacklog_fault_vm] Use lazy % formatting in logging functions fcaps/vesagent/event_domain/fault_vm.py:87: [C0209(consider-using-f-string), buildBacklog_fault_vm] Formatting a regular string which could be a f-string fcaps/vesagent/event_domain/fault_vm.py:92: [C0103(invalid-name), buildBacklog_fault_vm] Variable name "s" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/fault_vm.py:97: [W1201(logging-not-lazy), buildBacklog_fault_vm] Use lazy % formatting in logging functions fcaps/vesagent/event_domain/fault_vm.py:97: [W1505(deprecated-method), buildBacklog_fault_vm] Using deprecated method warn() fcaps/vesagent/event_domain/fault_vm.py:97: [C0209(consider-using-f-string), buildBacklog_fault_vm] Formatting a regular string which could be a f-string fcaps/vesagent/event_domain/fault_vm.py:115: [C0209(consider-using-f-string), buildBacklog_fault_vm] Formatting a regular string which could be a f-string fcaps/vesagent/event_domain/fault_vm.py:122: [C0103(invalid-name), buildBacklog_fault_vm] Variable name "e" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/fault_vm.py:123: [W1201(logging-not-lazy), buildBacklog_fault_vm] Use lazy % formatting in logging functions fcaps/vesagent/event_domain/fault_vm.py:123: [C0209(consider-using-f-string), buildBacklog_fault_vm] Formatting a regular string which could be a f-string fcaps/vesagent/event_domain/fault_vm.py:127: [W1201(logging-not-lazy), buildBacklog_fault_vm] Use lazy % formatting in logging functions fcaps/vesagent/event_domain/fault_vm.py:134: [C0103(invalid-name), processBacklog_fault_vm] Function name "processBacklog_fault_vm" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/fault_vm.py:134: [C0103(invalid-name), processBacklog_fault_vm] Argument name "vesAgentConfig" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/fault_vm.py:134: [C0103(invalid-name), processBacklog_fault_vm] Argument name "vesAgentState" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/fault_vm.py:134: [C0103(invalid-name), processBacklog_fault_vm] Argument name "oneBacklog" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/fault_vm.py:134: [C0116(missing-function-docstring), processBacklog_fault_vm] Missing function or method docstring fcaps/vesagent/event_domain/fault_vm.py:134: [R0914(too-many-locals), processBacklog_fault_vm] Too many local variables (28/15) fcaps/vesagent/event_domain/fault_vm.py:135: [W1201(logging-not-lazy), processBacklog_fault_vm] Use lazy % formatting in logging functions fcaps/vesagent/event_domain/fault_vm.py:135: [C0209(consider-using-f-string), processBacklog_fault_vm] Formatting a regular string which could be a f-string fcaps/vesagent/event_domain/fault_vm.py:203: [W0703(broad-except), processBacklog_fault_vm] Catching too general exception Exception fcaps/vesagent/event_domain/fault_vm.py:148: [W1201(logging-not-lazy), processBacklog_fault_vm] Use lazy % formatting in logging functions fcaps/vesagent/event_domain/fault_vm.py:148: [C0209(consider-using-f-string), processBacklog_fault_vm] Formatting a regular string which could be a f-string fcaps/vesagent/event_domain/fault_vm.py:149: [W0212(protected-access), processBacklog_fault_vm] Access to a protected member _call_req of a client class fcaps/vesagent/event_domain/fault_vm.py:152: [W1201(logging-not-lazy), processBacklog_fault_vm] Use lazy % formatting in logging functions fcaps/vesagent/event_domain/fault_vm.py:152: [C0209(consider-using-f-string), processBacklog_fault_vm] Formatting a regular string which could be a f-string fcaps/vesagent/event_domain/fault_vm.py:156: [W1201(logging-not-lazy), processBacklog_fault_vm] Use lazy % formatting in logging functions fcaps/vesagent/event_domain/fault_vm.py:156: [C0209(consider-using-f-string), processBacklog_fault_vm] Formatting a regular string which could be a f-string fcaps/vesagent/event_domain/fault_vm.py:166: [W1201(logging-not-lazy), processBacklog_fault_vm] Use lazy % formatting in logging functions fcaps/vesagent/event_domain/fault_vm.py:166: [C0209(consider-using-f-string), processBacklog_fault_vm] Formatting a regular string which could be a f-string fcaps/vesagent/event_domain/fault_vm.py:168: [W0212(protected-access), processBacklog_fault_vm] Access to a protected member _call_req of a client class fcaps/vesagent/event_domain/fault_vm.py:170: [W1201(logging-not-lazy), processBacklog_fault_vm] Use lazy % formatting in logging functions fcaps/vesagent/event_domain/fault_vm.py:170: [C0209(consider-using-f-string), processBacklog_fault_vm] Formatting a regular string which could be a f-string fcaps/vesagent/event_domain/fault_vm.py:173: [W1201(logging-not-lazy), processBacklog_fault_vm] Use lazy % formatting in logging functions fcaps/vesagent/event_domain/fault_vm.py:173: [C0209(consider-using-f-string), processBacklog_fault_vm] Formatting a regular string which could be a f-string fcaps/vesagent/event_domain/fault_vm.py:177: [C0103(invalid-name), processBacklog_fault_vm] Variable name "backlogState" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/fault_vm.py:177: [C0209(consider-using-f-string), processBacklog_fault_vm] Formatting a regular string which could be a f-string fcaps/vesagent/event_domain/fault_vm.py:182: [C0103(invalid-name), processBacklog_fault_vm] Variable name "s" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/fault_vm.py:188: [C0209(consider-using-f-string), processBacklog_fault_vm] Formatting a regular string which could be a f-string fcaps/vesagent/event_domain/fault_vm.py:189: [W1201(logging-not-lazy), processBacklog_fault_vm] Use lazy % formatting in logging functions fcaps/vesagent/event_domain/fault_vm.py:189: [C0209(consider-using-f-string), processBacklog_fault_vm] Formatting a regular string which could be a f-string fcaps/vesagent/event_domain/fault_vm.py:193: [W1201(logging-not-lazy), processBacklog_fault_vm] Use lazy % formatting in logging functions fcaps/vesagent/event_domain/fault_vm.py:193: [C0209(consider-using-f-string), processBacklog_fault_vm] Formatting a regular string which could be a f-string fcaps/vesagent/event_domain/fault_vm.py:195: [C0209(consider-using-f-string), processBacklog_fault_vm] Formatting a regular string which could be a f-string fcaps/vesagent/event_domain/fault_vm.py:203: [C0103(invalid-name), processBacklog_fault_vm] Variable name "e" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/fault_vm.py:204: [W1201(logging-not-lazy), processBacklog_fault_vm] Use lazy % formatting in logging functions fcaps/vesagent/event_domain/fault_vm.py:204: [C0209(consider-using-f-string), processBacklog_fault_vm] Formatting a regular string which could be a f-string fcaps/vesagent/event_domain/fault_vm.py:211: [C0103(invalid-name), data2event_fault_vm] Argument name "oneBacklog" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/fault_vm.py:211: [C0116(missing-function-docstring), data2event_fault_vm] Missing function or method docstring fcaps/vesagent/event_domain/fault_vm.py:211: [R0914(too-many-locals), data2event_fault_vm] Too many local variables (21/15) fcaps/vesagent/event_domain/fault_vm.py:212: [C0103(invalid-name), data2event_fault_vm] Variable name "VES_EVENT_VERSION" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/fault_vm.py:213: [C0103(invalid-name), data2event_fault_vm] Variable name "VES_EVENT_FAULT_VERSION" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/fault_vm.py:214: [C0103(invalid-name), data2event_fault_vm] Variable name "VES_EVENT_FAULT_DOMAIN" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/fault_vm.py:308: [W0703(broad-except), data2event_fault_vm] Catching too general exception Exception fcaps/vesagent/event_domain/fault_vm.py:224: [C0103(invalid-name), data2event_fault_vm] Variable name "eventName" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/fault_vm.py:226: [C0103(invalid-name), data2event_fault_vm] Variable name "eventSeverity" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/fault_vm.py:227: [C0103(invalid-name), data2event_fault_vm] Variable name "alarmCondition" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/fault_vm.py:229: [C0103(invalid-name), data2event_fault_vm] Variable name "specificProblem" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/fault_vm.py:230: [C0103(invalid-name), data2event_fault_vm] Variable name "eventType" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/fault_vm.py:231: [C0103(invalid-name), data2event_fault_vm] Variable name "reportingEntityId" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/fault_vm.py:232: [C0103(invalid-name), data2event_fault_vm] Variable name "reportingEntityName" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/fault_vm.py:235: [C0103(invalid-name), data2event_fault_vm] Variable name "startEpochMicrosec" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/fault_vm.py:236: [C0103(invalid-name), data2event_fault_vm] Variable name "lastEpochMicrosec" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/fault_vm.py:238: [C0103(invalid-name), data2event_fault_vm] Variable name "eventId" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/fault_vm.py:239: [W0107(unnecessary-pass), data2event_fault_vm] Unnecessary pass statement fcaps/vesagent/event_domain/fault_vm.py:246: [C0103(invalid-name), data2event_fault_vm] Variable name "eventName" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/fault_vm.py:248: [C0103(invalid-name), data2event_fault_vm] Variable name "eventSeverity" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/fault_vm.py:249: [C0103(invalid-name), data2event_fault_vm] Variable name "alarmCondition" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/fault_vm.py:251: [C0103(invalid-name), data2event_fault_vm] Variable name "specificProblem" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/fault_vm.py:252: [C0103(invalid-name), data2event_fault_vm] Variable name "eventType" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/fault_vm.py:253: [C0103(invalid-name), data2event_fault_vm] Variable name "reportingEntityId" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/fault_vm.py:254: [C0103(invalid-name), data2event_fault_vm] Variable name "reportingEntityName" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/fault_vm.py:257: [C0103(invalid-name), data2event_fault_vm] Variable name "startEpochMicrosec" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/fault_vm.py:258: [C0103(invalid-name), data2event_fault_vm] Variable name "lastEpochMicrosec" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/fault_vm.py:260: [C0103(invalid-name), data2event_fault_vm] Variable name "eventId" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/fault_vm.py:262: [W0107(unnecessary-pass), data2event_fault_vm] Unnecessary pass statement fcaps/vesagent/event_domain/fault_vm.py:308: [C0103(invalid-name), data2event_fault_vm] Variable name "e" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/fault_vm.py:309: [W1201(logging-not-lazy), data2event_fault_vm] Use lazy % formatting in logging functions fcaps/vesagent/event_domain/fault_vm.py:309: [C0209(consider-using-f-string), data2event_fault_vm] Formatting a regular string which could be a f-string fcaps/vesagent/event_domain/fault_vm.py:211: [W0613(unused-argument), data2event_fault_vm] Unused argument 'oneBacklog' fcaps/vesagent/event_domain/fault_vm.py:322: [R1705(no-else-return), vm_status_is_fault] Unnecessary "else" after "return", remove the "else" and de-indent the code inside it fcaps/vesagent/event_domain/fault_vm.py:23: [C0411(wrong-import-order), ] third party import "from common.utils import restcall" should be placed before "from fcaps.vesagent.vespublish import publishAnyEventToVES" fcaps/vesagent/event_domain/fault_vm.py:26: [C0411(wrong-import-order), ] standard import "import datetime" should be placed before "from django.conf import settings" fcaps/vesagent/event_domain/fault_vm.py:27: [C0411(wrong-import-order), ] standard import "import time" should be placed before "from django.conf import settings" ************* Module fcaps.vesagent.event_domain.pm_vm fcaps/vesagent/event_domain/pm_vm.py:85: [C0301(line-too-long), ] Line too long (104/100) fcaps/vesagent/event_domain/pm_vm.py:203: [C0301(line-too-long), ] Line too long (101/100) fcaps/vesagent/event_domain/pm_vm.py:253: [C0301(line-too-long), ] Line too long (130/100) fcaps/vesagent/event_domain/pm_vm.py:254: [C0304(missing-final-newline), ] Final newline missing fcaps/vesagent/event_domain/pm_vm.py:1: [C0114(missing-module-docstring), ] Missing module docstring fcaps/vesagent/event_domain/pm_vm.py:43: [C0103(invalid-name), buildBacklog_pm_vm] Function name "buildBacklog_pm_vm" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/pm_vm.py:43: [C0116(missing-function-docstring), buildBacklog_pm_vm] Missing function or method docstring fcaps/vesagent/event_domain/pm_vm.py:43: [R0914(too-many-locals), buildBacklog_pm_vm] Too many local variables (22/15) fcaps/vesagent/event_domain/pm_vm.py:46: [W1201(logging-not-lazy), buildBacklog_pm_vm] Use lazy % formatting in logging functions fcaps/vesagent/event_domain/pm_vm.py:46: [C0209(consider-using-f-string), buildBacklog_pm_vm] Formatting a regular string which could be a f-string fcaps/vesagent/event_domain/pm_vm.py:47: [W1201(logging-not-lazy), buildBacklog_pm_vm] Use lazy % formatting in logging functions fcaps/vesagent/event_domain/pm_vm.py:47: [C0209(consider-using-f-string), buildBacklog_pm_vm] Formatting a regular string which could be a f-string fcaps/vesagent/event_domain/pm_vm.py:122: [W0703(broad-except), buildBacklog_pm_vm] Catching too general exception Exception fcaps/vesagent/event_domain/pm_vm.py:66: [W0212(protected-access), buildBacklog_pm_vm] Access to a protected member _call_req of a client class fcaps/vesagent/event_domain/pm_vm.py:69: [W1201(logging-not-lazy), buildBacklog_pm_vm] Use lazy % formatting in logging functions fcaps/vesagent/event_domain/pm_vm.py:69: [C0209(consider-using-f-string), buildBacklog_pm_vm] Formatting a regular string which could be a f-string fcaps/vesagent/event_domain/pm_vm.py:85: [W0212(protected-access), buildBacklog_pm_vm] Access to a protected member _call_req of a client class fcaps/vesagent/event_domain/pm_vm.py:87: [W1201(logging-not-lazy), buildBacklog_pm_vm] Use lazy % formatting in logging functions fcaps/vesagent/event_domain/pm_vm.py:87: [C0209(consider-using-f-string), buildBacklog_pm_vm] Formatting a regular string which could be a f-string fcaps/vesagent/event_domain/pm_vm.py:92: [C0103(invalid-name), buildBacklog_pm_vm] Variable name "s" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/pm_vm.py:97: [W1201(logging-not-lazy), buildBacklog_pm_vm] Use lazy % formatting in logging functions fcaps/vesagent/event_domain/pm_vm.py:97: [W1505(deprecated-method), buildBacklog_pm_vm] Using deprecated method warn() fcaps/vesagent/event_domain/pm_vm.py:97: [C0209(consider-using-f-string), buildBacklog_pm_vm] Formatting a regular string which could be a f-string fcaps/vesagent/event_domain/pm_vm.py:115: [C0209(consider-using-f-string), buildBacklog_pm_vm] Formatting a regular string which could be a f-string fcaps/vesagent/event_domain/pm_vm.py:122: [C0103(invalid-name), buildBacklog_pm_vm] Variable name "e" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/pm_vm.py:123: [W1201(logging-not-lazy), buildBacklog_pm_vm] Use lazy % formatting in logging functions fcaps/vesagent/event_domain/pm_vm.py:123: [C0209(consider-using-f-string), buildBacklog_pm_vm] Formatting a regular string which could be a f-string fcaps/vesagent/event_domain/pm_vm.py:127: [W1201(logging-not-lazy), buildBacklog_pm_vm] Use lazy % formatting in logging functions fcaps/vesagent/event_domain/pm_vm.py:134: [C0103(invalid-name), processBacklog_pm_vm] Function name "processBacklog_pm_vm" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/pm_vm.py:134: [C0103(invalid-name), processBacklog_pm_vm] Argument name "vesAgentConfig" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/pm_vm.py:134: [C0103(invalid-name), processBacklog_pm_vm] Argument name "vesAgentState" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/pm_vm.py:134: [C0103(invalid-name), processBacklog_pm_vm] Argument name "oneBacklog" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/pm_vm.py:134: [C0116(missing-function-docstring), processBacklog_pm_vm] Missing function or method docstring fcaps/vesagent/event_domain/pm_vm.py:134: [R0914(too-many-locals), processBacklog_pm_vm] Too many local variables (19/15) fcaps/vesagent/event_domain/pm_vm.py:135: [W1201(logging-not-lazy), processBacklog_pm_vm] Use lazy % formatting in logging functions fcaps/vesagent/event_domain/pm_vm.py:135: [C0209(consider-using-f-string), processBacklog_pm_vm] Formatting a regular string which could be a f-string fcaps/vesagent/event_domain/pm_vm.py:182: [W0703(broad-except), processBacklog_pm_vm] Catching too general exception Exception fcaps/vesagent/event_domain/pm_vm.py:149: [W1201(logging-not-lazy), processBacklog_pm_vm] Use lazy % formatting in logging functions fcaps/vesagent/event_domain/pm_vm.py:149: [C0209(consider-using-f-string), processBacklog_pm_vm] Formatting a regular string which could be a f-string fcaps/vesagent/event_domain/pm_vm.py:156: [W1201(logging-not-lazy), processBacklog_pm_vm] Use lazy % formatting in logging functions fcaps/vesagent/event_domain/pm_vm.py:156: [C0209(consider-using-f-string), processBacklog_pm_vm] Formatting a regular string which could be a f-string fcaps/vesagent/event_domain/pm_vm.py:167: [C0103(invalid-name), processBacklog_pm_vm] Variable name "encodeData" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/pm_vm.py:173: [W1201(logging-not-lazy), processBacklog_pm_vm] Use lazy % formatting in logging functions fcaps/vesagent/event_domain/pm_vm.py:173: [C0209(consider-using-f-string), processBacklog_pm_vm] Formatting a regular string which could be a f-string fcaps/vesagent/event_domain/pm_vm.py:182: [C0103(invalid-name), processBacklog_pm_vm] Variable name "e" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/pm_vm.py:183: [W1201(logging-not-lazy), processBacklog_pm_vm] Use lazy % formatting in logging functions fcaps/vesagent/event_domain/pm_vm.py:183: [C0209(consider-using-f-string), processBacklog_pm_vm] Formatting a regular string which could be a f-string fcaps/vesagent/event_domain/pm_vm.py:145: [W0612(unused-variable), processBacklog_pm_vm] Unused variable 'os_status' fcaps/vesagent/event_domain/pm_vm.py:190: [C0116(missing-function-docstring), data2event_pm_vm] Missing function or method docstring fcaps/vesagent/event_domain/pm_vm.py:190: [R0914(too-many-locals), data2event_pm_vm] Too many local variables (18/15) fcaps/vesagent/event_domain/pm_vm.py:191: [C0103(invalid-name), data2event_pm_vm] Variable name "VES_EVENT_VERSION" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/pm_vm.py:192: [C0103(invalid-name), data2event_pm_vm] Variable name "VES_EVENT_pm_VERSION" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/pm_vm.py:193: [C0103(invalid-name), data2event_pm_vm] Variable name "VES_EVENT_pm_DOMAIN" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/pm_vm.py:194: [C0103(invalid-name), data2event_pm_vm] Variable name "eventId" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/pm_vm.py:195: [C0103(invalid-name), data2event_pm_vm] Variable name "eventName" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/pm_vm.py:196: [C0103(invalid-name), data2event_pm_vm] Variable name "eventType" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/pm_vm.py:197: [C0103(invalid-name), data2event_pm_vm] Variable name "sourceId" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/pm_vm.py:198: [C0103(invalid-name), data2event_pm_vm] Variable name "sourceName" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/pm_vm.py:199: [C0103(invalid-name), data2event_pm_vm] Variable name "reportingEntityId" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/pm_vm.py:200: [C0103(invalid-name), data2event_pm_vm] Variable name "reportingEntityName" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/pm_vm.py:203: [C0103(invalid-name), data2event_pm_vm] Variable name "startEpochMicrosec" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/pm_vm.py:204: [C0103(invalid-name), data2event_pm_vm] Variable name "lastEpochMicrosec" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/pm_vm.py:205: [C0103(invalid-name), data2event_pm_vm] Variable name "additionalMeasurements" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/pm_vm.py:206: [C0103(invalid-name), data2event_pm_vm] Variable name "arrayOfFields" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/pm_vm.py:236: [C0116(missing-function-docstring), partition_samples] Missing function or method docstring fcaps/vesagent/event_domain/pm_vm.py:245: [C0103(invalid-name), partition_samples] Variable name "additionalMeasurements" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/pm_vm.py:246: [C0103(invalid-name), partition_samples] Variable name "arrayOfFields" doesn't conform to snake_case naming style fcaps/vesagent/event_domain/pm_vm.py:23: [C0411(wrong-import-order), ] third party import "from common.utils import restcall" should be placed before "from fcaps.vesagent.vespublish import publishAnyEventToVES" fcaps/vesagent/event_domain/pm_vm.py:24: [C0411(wrong-import-order), ] third party import "from common.msapi.helper import Helper as helper" should be placed before "from fcaps.vesagent.vespublish import publishAnyEventToVES" fcaps/vesagent/event_domain/pm_vm.py:25: [C0411(wrong-import-order), ] third party import "from common.msapi import extsys" should be placed before "from fcaps.vesagent.vespublish import publishAnyEventToVES" fcaps/vesagent/event_domain/pm_vm.py:27: [C0411(wrong-import-order), ] standard import "import datetime" should be placed before "from django.conf import settings" fcaps/vesagent/event_domain/pm_vm.py:28: [C0411(wrong-import-order), ] standard import "import time" should be placed before "from django.conf import settings" ************* Module fcaps.samples.views fcaps/samples/views.py:1: [C0114(missing-module-docstring), ] Missing module docstring fcaps/samples/views.py:27: [W0622(redefined-builtin), SampleList.get] Redefining built-in 'format' fcaps/samples/views.py:27: [C0116(missing-function-docstring), SampleList.get] Missing function or method docstring fcaps/samples/views.py:27: [W0613(unused-argument), SampleList.get] Unused argument 'request' fcaps/samples/views.py:27: [W0613(unused-argument), SampleList.get] Unused argument 'format' fcaps/samples/views.py:27: [R0201(no-self-use), SampleList.get] Method could be a function ************* Module fcaps.samples.urls fcaps/samples/urls.py:1: [C0114(missing-module-docstring), ] Missing module docstring ************* Module fcaps.samples.tests_sample fcaps/samples/tests_sample.py:1: [C0114(missing-module-docstring), ] Missing module docstring fcaps/samples/tests_sample.py:20: [C0115(missing-class-docstring), SampleViewTest] Missing class docstring fcaps/samples/tests_sample.py:27: [C0116(missing-function-docstring), SampleViewTest.test_sample] Missing function or method docstring ************* Module fcaps.pub.config.config fcaps/pub/config/config.py:1: [R0801(duplicate-code), ] Similar lines in 2 files ==fcaps.vesagent.event_domain.fault_vm:[44:103] ==fcaps.vesagent.event_domain.pm_vm:[45:102] logger.info("vimid: %s" % vimid) logger.debug("with input: %s" % backlog_input) try: # must resolve the tenant id and server id while building the backlog tenant_id = backlog_input.get("tenantid", None) server_id = backlog_input.get("sourceid", None) server_name = backlog_input.get("source", None) # should resolve the name to id later if tenant_id is None: tenant_name = backlog_input["tenant"] # get token # resolve tenant_name to tenant_id auth_api_url_format = "/{f_vim_id}/identity/v2.0/tokens" auth_api_url = auth_api_url_format.format(f_vim_id=vimid) auth_api_data = {"auth": {"tenantName": tenant_name}} base_url = settings.MULTICLOUD_PREFIX extra_headers = '' ret = restcall._call_req(base_url, "", "", 0, auth_api_url, "POST", extra_headers, json.dumps(auth_api_data)) if ret[0] > 0 or ret[1] is None: logger.critical("call url %s failed with status %s" % (auth_api_url, ret[0])) return None token_resp = json.JSONDecoder().decode(ret[1]) token = token_resp["access"]["token"]["id"] tenant_id = token_resp["access"]["token"]["tenant"]["id"] if server_id is None and server_name: # resolve server_name to server_id in case no wildcast in server_name vserver_api_url_format \ = "/{f_vim_id}/compute/v2.1/{f_tenant_id}/servers?name={f_server_name}" vserver_api_url = vserver_api_url_format.format(f_vim_id=vimid, f_tenant_id=tenant_id, f_server_name=server_name) base_url = settings.MULTICLOUD_PREFIX extra_headers = {'X-Auth-Token': token} ret = restcall._call_req(base_url, "", "", 0, vserver_api_url, "GET", extra_headers, "") if ret[0] > 0 or ret[1] is None: logger.critical("call url %s failed with status %s" % (vserver_api_url, ret[0])) return None server_resp = json.JSONDecoder().decode(ret[1]) # find out the server wanted for s in server_resp.get("servers", []): if s["name"] == server_name: server_id = s["id"] break if server_id is None: logger.warn("source %s cannot be found under tenant id %s " % (server_name, tenant_id)) return None # m.c. proxied OpenStack API if server_id is None and server_name is None: # monitor all VMs of the specified VIMs since no server_id can be resolved fcaps/pub/config/config.py:1: [R0801(duplicate-code), ] Similar lines in 2 files ==fcaps.vesagent.tests.tests_fault_vm:[77:106] ==fcaps.vesagent.tests.tests_pm_vm:[77:106] MOCK_SERVER_GET_RESPONSE = { "server": {"wrs-res:topology": "node:0, 4096MB, pgsize:2M, vcpus:0,1, pol:sha", "OS-EXT-STS:task_state": None, "addresses": { "oam_onap_BTHY": [{"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:6c:0d:6b", "version": 4, "addr": "10.0.13.1", "OS-EXT-IPS:type": "fixed"}, {"OS-EXT-IPS-MAC:mac_addr": "fa:16:3e:6c:0d:6b", "version": 4, "addr": "10.12.5.185", "OS-EXT-IPS:type": "floating"}]}, "links": [], "image": {"id": "6e219e86-cd94-4989-9119-def29aa10b12", "links": []}, "wrs-if:nics": [], "wrs-sg:server_group": "", "OS-EXT-STS:vm_state": "active", "OS-SRV-USG:launched_at": "2018-04-26T08:01:28.000000", "flavor": {}, "id": "c4b575fa-ed85-4642-ab4b-335cb5744721", "security_groups": [{"name": "onap_sg_BTHY"}], "user_id": "ba76c94eb5e94bb7bec6980e5507aae2", "OS-DCF:diskConfig": "MANUAL", "accessIPv4": "", "accessIPv6": "", "progress": 0, "OS-EXT-STS:power_state": 1, "OS-EXT-AZ:availability_zone": "nova", "metadata": {}, "status": "ACTIVE", "updated": "2018-04-26T08:01:28Z", "hostId": "17acc9f2ae4f618c314e4cdf0c206585b895bc72a9ec57e57b254133", "OS-SRV-USG:terminated_at": None, "wrs-res:pci_devices": "", "wrs-res:vcpus": [2, 2, 2], "key_name": "onap_key_BTHY", "name": "onap-aaf", "created": "2018-04-26T08:01:20Z", "tenant_id": "0e148b76ee8c42f78d37013bf6b7b1ae", "os-extended-volumes:volumes_attached": [], "config_drive": ""}} MOCK_SERVER_GET_RESPONSE_empty = {} MOCK_vesAgentConfig = { "backlogs": [ {"backlog_uuid": "ce2d7597-22e1-4239-890f-bc303bd67076", fcaps/pub/config/config.py:1: [R0801(duplicate-code), ] Similar lines in 2 files ==fcaps.vesagent.event_domain.fault_vm:[111:133] ==fcaps.vesagent.event_domain.pm_vm:[111:133] backlog = { "backlog_uuid": str(uuid.uuid3(uuid.NAMESPACE_URL, str("%s-%s-%s" % (vimid, tenant_id, server_id)))), "tenant_id": tenant_id, "server_id": server_id, "api_method": "GET", "api_link": api_url, } backlog.update(backlog_input) except Exception as e: logger.error("exception:%s" % str(e)) return None logger.info("return") logger.debug("with backlog: %s" % backlog) return backlog # process backlog with domain:"fault", type:"vm" fcaps/pub/config/config.py:1: [R0801(duplicate-code), ] Similar lines in 2 files ==fcaps.vesagent.tests.tests_fault_vm:[30:48] ==fcaps.vesagent.tests.tests_pm_vm:[30:48] "serviceCatalog": [], "user": {"domain": {"id": "default", "name": "Default"}, "id": "ba76c94eb5e94bb7bec6980e5507aae2", "name": "demo"}} } MOCK_SERVERS_GET_RESPONSE = { "servers": [ {"id": "c4b575fa-ed85-4642-ab4b-335cb5744721", "links": [{ "href": "http://10.12.25.2:8774/v2.1/0e148b76ee8c42f78d37013bf6b7b1ae/servers/c4b575fa-ed85-4642-ab4b-335cb5744721", "rel": "self"}, { "href": "http://10.12.25.2:8774/0e148b76ee8c42f78d37013bf6b7b1ae/servers/c4b575fa-ed85-4642-ab4b-335cb5744721", "rel": "bookmark"}], "name": "onap-aaf"}] } MOCK_BACKLOG_INPUT = { "backlog_uuid": "ce2d7597-22e1-4239-890f-bc303bd67076", fcaps/pub/config/config.py:1: [R0801(duplicate-code), ] Similar lines in 2 files ==fcaps.vesagent.tests.tests_tasks:[27:42] ==fcaps.vesagent.tests.tests_vesagent_ctrl:[27:42] MOCK_VIM_INFO = { "createTime": "2017-04-01 02:22:27", "domain": "Default", "name": "TiS_R4", "password": "admin", "tenant": "admin", "type": "openstack", "url": "http://128.224.180.14:5000/v3", "userName": "admin", "vendor": "WindRiver", "version": "newton", "vimId": "fcaps-hudson-dc_RegionOne", 'cloud_owner': 'fcaps-hudson-dc', 'cloud_region_id': 'RegionOne', 'cloud_extra_info': fcaps/pub/config/config.py:1: [R0801(duplicate-code), ] Similar lines in 2 files ==fcaps.vesagent.tests.tests_fault_vm:[104:113] ==fcaps.vesagent.tests.tests_vesagent_ctrl:[109:118] "backlogs": [ {"backlog_uuid": "ce2d7597-22e1-4239-890f-bc303bd67076", "server_id": "c4b575fa-ed85-4642-ab4b-335cb5744721", "tenant_id": "0e148b76ee8c42f78d37013bf6b7b1ae", "api_method": "GET", "source": "onap-aaf", "api_link": "/onaplab_RegionOne/compute/v2.1/0e148b76ee8c42f78d37013bf6b7b1ae/servers/c4b575fa-ed85-4642-ab4b-335cb5744721", "domain": "fault", "type": "vm", "tenant": "VIM"} ], fcaps/pub/config/config.py:1: [R0801(duplicate-code), ] Similar lines in 2 files ==fcaps.vesagent.event_domain.fault_vm:[197:210] ==fcaps.vesagent.event_domain.pm_vm:[176:189] if len(all_events) > 0: ves_subscription = vesAgentConfig.get("subscription", None) publishAnyEventToVES(ves_subscription, all_events) # store the latest data into cache, never expire except Exception as e: logger.error("exception:%s" % str(e)) return logger.info("return") return fcaps/pub/config/config.py:1: [R0801(duplicate-code), ] Similar lines in 2 files ==fcaps.vesagent.event_domain.fault_vm:[274:281] ==fcaps.vesagent.event_domain.pm_vm:[218:225] 'reportingEntityId': reportingEntityId, 'reportingEntityName': reportingEntityName, 'priority': priority, 'startEpochMicrosec': startEpochMicrosec, 'lastEpochMicrosec': lastEpochMicrosec, 'sequence': sequence }, fcaps/pub/config/config.py:1: [R0801(duplicate-code), ] Similar lines in 2 files ==fcaps.vesagent.event_domain.fault_vm:[25:41] ==fcaps.vesagent.event_domain.pm_vm:[26:42] import datetime import time logger = logging.getLogger(__name__) def get_epoch_now_usecond(): ''' get epoch timestamp of this moment in usecond :return: ''' now_time = datetime.datetime.now() epoch_time_sec = time.mktime(now_time.timetuple()) return int(epoch_time_sec * 1e6 + now_time.microsecond) fcaps/pub/config/config.py:1: [R0801(duplicate-code), ] Similar lines in 2 files ==fcaps.vesagent.tests.tests_fault_vm:[206:214] ==fcaps.vesagent.tests.tests_pm_vm:[206:214] vesAgentConfig=MOCK_vesAgentConfig, vesAgentState=MOCK_vesAgentState, oneBacklog=MOCK_oneBacklog) self.assertIsNone(result) pass @mock.patch.object(vespublish, 'publishAnyEventToVES') @mock.patch.object(restcall, '_call_req') fcaps/pub/config/config.py:1: [R0801(duplicate-code), ] Similar lines in 2 files ==fcaps.vesagent.event_domain.fault_vm:[16:25] ==fcaps.vesagent.event_domain.pm_vm:[16:23] import logging import json import uuid from django.conf import settings from fcaps.vesagent.vespublish import publishAnyEventToVES from common.utils import restcall # from common.msapi.helper import Helper as helper fcaps/pub/config/config.py:1: [R0801(duplicate-code), ] Similar lines in 2 files ==fcaps.vesagent.tests.tests_fault_vm:[106:112] ==fcaps.vesagent.tests.tests_vesagent_ctrl:[166:173] "server_id": "c4b575fa-ed85-4642-ab4b-335cb5744721", "tenant_id": "0e148b76ee8c42f78d37013bf6b7b1ae", "api_method": "GET", "source": "onap-aaf", "api_link": "/onaplab_RegionOne/compute/v2.1/0e148b76ee8c42f78d37013bf6b7b1ae/servers/c4b575fa-ed85-4642-ab4b-335cb5744721", "domain": "fault", "type": "vm", "tenant": "VIM"} fcaps/pub/config/config.py:1: [R0801(duplicate-code), ] Similar lines in 2 files ==fcaps.vesagent.tests.tests_fault_vm:[215:222] ==fcaps.vesagent.tests.tests_pm_vm:[215:222] self, mock_call_req, mock_publishAnyEventToVES): mock_call_req.side_effect = [ (0, json.dumps(MOCK_TOKEN_RESPONSE), "MOCKED response body"), (0, json.dumps(MOCK_SERVER_GET_RESPONSE_empty), "MOCKED response body") ] mock_publishAnyEventToVES.return_value = "mocked return value" fcaps/pub/config/config.py:1: [R0801(duplicate-code), ] Similar lines in 2 files ==fcaps.vesagent.tests.tests_fault_vm:[198:205] ==fcaps.vesagent.tests.tests_pm_vm:[198:205] self, mock_call_req, mock_publishAnyEventToVES): mock_call_req.side_effect = [ (0, json.dumps(MOCK_TOKEN_RESPONSE), "MOCKED response body"), (0, json.dumps(MOCK_SERVER_GET_RESPONSE), "MOCKED response body") ] mock_publishAnyEventToVES.return_value = "mocked return value" fcaps/pub/config/config.py:1: [R0801(duplicate-code), ] Similar lines in 2 files ==fcaps.vesagent.tests.tests_fault_vm:[107:113] ==fcaps.vesagent.tests.tests_pm_vm:[107:113] "tenant_id": "0e148b76ee8c42f78d37013bf6b7b1ae", "api_method": "GET", "source": "onap-aaf", "api_link": "/onaplab_RegionOne/compute/v2.1/0e148b76ee8c42f78d37013bf6b7b1ae/servers/c4b575fa-ed85-4642-ab4b-335cb5744721", "domain": "fault", "type": "vm", "tenant": "VIM"} ], fcaps/pub/config/config.py:1: [R0801(duplicate-code), ] Similar lines in 2 files ==fcaps.vesagent.event_domain.fault_vm:[264:269] ==fcaps.vesagent.event_domain.pm_vm:[208:213] this_event = { 'event': { 'commonEventHeader': { 'version': VES_EVENT_VERSION, 'eventName': eventName, fcaps/pub/config/config.py:1: [R0801(duplicate-code), ] Similar lines in 2 files ==fcaps.vesagent.event_domain.fault_vm:[142:147] ==fcaps.vesagent.event_domain.pm_vm:[60:65] auth_api_url_format = "/{f_vim_id}/identity/v2.0/tokens" auth_api_url = auth_api_url_format.format(f_vim_id=vimid) auth_api_data = {"auth": {"tenantName": tenant_name}} base_url = settings.MULTICLOUD_PREFIX extra_headers = '' fcaps/pub/config/config.py:1: [R0801(duplicate-code), ] Similar lines in 2 files ==fcaps.vesagent.tests.tests_fault_vm:[47:53] ==fcaps.vesagent.tests.tests_vesagent_ctrl:[165:171] "backlog_uuid": "ce2d7597-22e1-4239-890f-bc303bd67076", "server_id": "c4b575fa-ed85-4642-ab4b-335cb5744721", "tenant_id": "0e148b76ee8c42f78d37013bf6b7b1ae", "api_method": "GET", "source": "onap-aaf", "api_link": "/onaplab_RegionOne/compute/v2.1/0e148b76ee8c42f78d37013bf6b7b1ae/servers/c4b575fa-ed85-4642-ab4b-335cb5744721", fcaps/pub/config/config.py:1: [R0801(duplicate-code), ] Similar lines in 2 files ==fcaps.vesagent.tests.tests_pm_vm:[107:112] ==fcaps.vesagent.tests.tests_vesagent_ctrl:[167:173] "tenant_id": "0e148b76ee8c42f78d37013bf6b7b1ae", "api_method": "GET", "source": "onap-aaf", "api_link": "/onaplab_RegionOne/compute/v2.1/0e148b76ee8c42f78d37013bf6b7b1ae/servers/c4b575fa-ed85-4642-ab4b-335cb5744721", "domain": "fault", "type": "vm", "tenant": "VIM"} fcaps/pub/config/config.py:1: [R0801(duplicate-code), ] Similar lines in 2 files ==fcaps.vesagent.tests.tests_fault_vm:[191:197] ==fcaps.vesagent.tests.tests_pm_vm:[191:197] vimid="fcaps-hudson-dc_RegionOne", backlog_input=MOCK_BACKLOG_INPUT_wo_server) self.assertIsNotNone(backlog) @mock.patch.object(vespublish, 'publishAnyEventToVES') @mock.patch.object(restcall, '_call_req') fcaps/pub/config/config.py:1: [R0801(duplicate-code), ] Similar lines in 2 files ==fcaps.vesagent.tests.tests_fault_vm:[129:136] ==fcaps.vesagent.tests.tests_pm_vm:[129:136] def setUp(self): pass def tearDown(self): pass def test_get_epoch_now_usecond(self): fcaps/pub/config/config.py:1: [R0801(duplicate-code), ] Similar lines in 2 files ==fcaps.vesagent.tests.tests_fault_vm:[121:128] ==fcaps.vesagent.tests.tests_pm_vm:[121:128] "tenant_id": "0e148b76ee8c42f78d37013bf6b7b1ae", "api_method": "GET", "source": "onap-aaf", "api_link": "/onaplab_RegionOne/compute/v2.1/0e148b76ee8c42f78d37013bf6b7b1ae/servers/c4b575fa-ed85-4642-ab4b-335cb5744721", "domain": "fault", "type": "vm", "tenant": "VIM"} fcaps/pub/config/config.py:1: [R0801(duplicate-code), ] Similar lines in 2 files ==fcaps.vesagent.tests.tests_fault_vm:[114:120] ==fcaps.vesagent.tests.tests_pm_vm:[114:120] "ves_subscription": {"username": "user", "password": "password", "endpoint": "http://127.0.0.1:9011/sample"}} MOCK_vesAgentState = {"ce2d7597-22e1-4239-890f-bc303bd67076": {"timestamp": 1525975400}} MOCK_oneBacklog = { "backlog_uuid": "ce2d7597-22e1-4239-890f-bc303bd67076", fcaps/pub/config/config.py:1: [R0801(duplicate-code), ] Similar lines in 2 files ==fcaps.vesagent.tests.tests_fault_vm:[68:75] ==fcaps.vesagent.tests.tests_pm_vm:[68:75] "source": "onap-aaf", "domain": "fault", "type": "vm", } MOCK_BACKLOG_INPUT_wo_server_id = { "source": "onap-aaf", "domain": "fault", "type": "vm", "tenant": "VIM"} fcaps/pub/config/config.py:1: [R0801(duplicate-code), ] Similar lines in 2 files ==fcaps.vesagent.tests.tests_fault_vm:[14:21] ==fcaps.vesagent.tests.tests_pm_vm:[14:21] import mock import unittest import json from fcaps.vesagent import vespublish from common.utils import restcall fcaps/pub/config/config.py:1: [R0801(duplicate-code), ] Similar lines in 2 files ==fcaps.vesagent.tests.tests_fault_vm:[106:111] ==fcaps.vesagent.tests.tests_tasks:[116:121] "server_id": "c4b575fa-ed85-4642-ab4b-335cb5744721", "tenant_id": "0e148b76ee8c42f78d37013bf6b7b1ae", "api_method": "GET", "source": "onap-aaf", "api_link": "/onaplab_RegionOne/compute/v2.1/0e148b76ee8c42f78d37013bf6b7b1ae/servers/c4b575fa-ed85-4642-ab4b-335cb5744721", fcaps/pub/config/config.py:1: [R0801(duplicate-code), ] Similar lines in 2 files ==fcaps.vesagent.tests.tests_fault_vm:[48:53] ==fcaps.vesagent.tests.tests_tasks:[90:95] "server_id": "c4b575fa-ed85-4642-ab4b-335cb5744721", "tenant_id": "0e148b76ee8c42f78d37013bf6b7b1ae", "api_method": "GET", "source": "onap-aaf", "api_link": "/onaplab_RegionOne/compute/v2.1/0e148b76ee8c42f78d37013bf6b7b1ae/servers/c4b575fa-ed85-4642-ab4b-335cb5744721", Report ====== 941 statements analysed. Statistics by type ------------------ +---------+-------+-----------+-----------+------------+---------+ |type |number |old number |difference |%documented |%badname | +=========+=======+===========+===========+============+=========+ |module |25 |NC |NC |28.00 |0.00 | +---------+-------+-----------+-----------+------------+---------+ |class |9 |NC |NC |22.22 |0.00 | +---------+-------+-----------+-----------+------------+---------+ |method |54 |NC |NC |42.59 |50.00 | +---------+-------+-----------+-----------+------------+---------+ |function |16 |NC |NC |25.00 |56.25 | +---------+-------+-----------+-----------+------------+---------+ External dependencies --------------------- :: celery (fcaps.celery) common \-msapi | \-extsys (fcaps.vesagent.event_domain.pm_vm,fcaps.vesagent.tests.tests_tasks,fcaps.vesagent.tests.tests_vesagent_ctrl,fcaps.vesagent.vesagent_ctrl) | \-helper (fcaps.vesagent.event_domain.pm_vm) \-utils \-restcall (fcaps.vesagent.event_domain.fault_vm,fcaps.vesagent.event_domain.pm_vm,fcaps.vesagent.tests.tests_fault_vm,fcaps.vesagent.tests.tests_pm_vm) django \-conf (fcaps.celery,fcaps.vesagent.event_domain.fault_vm,fcaps.vesagent.event_domain.pm_vm,fcaps.vesagent.vesagent_ctrl) | \-urls (fcaps.samples.urls,fcaps.urls) \-core | \-cache (fcaps.vesagent.tasks,fcaps.vesagent.tests.tests_tasks,fcaps.vesagent.tests.tests_vesagent_ctrl,fcaps.vesagent.vesagent_ctrl) | \-wsgi (fcaps.wsgi) \-test (fcaps.samples.tests_sample,fcaps.vesagent.tests.tests_tasks,fcaps.vesagent.tests.tests_vesagent_ctrl) fcaps \-celery (fcaps.vesagent.tasks) \-vesagent \-event_domain | \-fault_vm (fcaps.vesagent.tests.tests_fault_vm,fcaps.vesagent.tests.tests_tasks,fcaps.vesagent.tests.tests_vesagent_ctrl) | \-pm_vm (fcaps.vesagent.tests.tests_pm_vm) \-tasks (fcaps.vesagent.tests.tests_tasks,fcaps.vesagent.tests.tests_vesagent_ctrl) \-vesagent_ctrl (fcaps.vesagent.tests.tests_vesagent_ctrl) \-vespublish (fcaps.vesagent.event_domain.fault_vm,fcaps.vesagent.event_domain.pm_vm,fcaps.vesagent.tests.tests_fault_vm,fcaps.vesagent.tests.tests_pm_vm,fcaps.vesagent.tests.tests_vespublish) mock (fcaps.vesagent.tests.tests_fault_vm,fcaps.vesagent.tests.tests_pm_vm,fcaps.vesagent.tests.tests_tasks,fcaps.vesagent.tests.tests_vesagent_ctrl,fcaps.vesagent.tests.tests_vespublish) rest_framework \-response (fcaps.samples.views,fcaps.vesagent.vesagent_ctrl) \-status (fcaps.samples.tests_sample,fcaps.vesagent.tests.tests_vesagent_ctrl,fcaps.vesagent.vesagent_ctrl) \-views (fcaps.samples.views,fcaps.vesagent.vesagent_ctrl) yaml (fcaps.settings) Raw metrics ----------- +----------+-------+------+---------+-----------+ |type |number |% |previous |difference | +==========+=======+======+=========+===========+ |code |1254 |47.34 |NC |NC | +----------+-------+------+---------+-----------+ |docstring |558 |21.06 |NC |NC | +----------+-------+------+---------+-----------+ |comment |446 |16.84 |NC |NC | +----------+-------+------+---------+-----------+ |empty |391 |14.76 |NC |NC | +----------+-------+------+---------+-----------+ Duplication ----------- +-------------------------+------+---------+-----------+ | |now |previous |difference | +=========================+======+=========+===========+ |nb duplicated lines |0 |NC |NC | +-------------------------+------+---------+-----------+ |percent duplicated lines |0.000 |NC |NC | +-------------------------+------+---------+-----------+ Messages by category -------------------- +-----------+-------+---------+-----------+ |type |number |previous |difference | +===========+=======+=========+===========+ |convention |430 |NC |NC | +-----------+-------+---------+-----------+ |refactor |43 |NC |NC | +-----------+-------+---------+-----------+ |warning |149 |NC |NC | +-----------+-------+---------+-----------+ |error |5 |NC |NC | +-----------+-------+---------+-----------+ Messages -------- +---------------------------+------------+ |message id |occurrences | +===========================+============+ |invalid-name |158 | +---------------------------+------------+ |consider-using-f-string |104 | +---------------------------+------------+ |logging-not-lazy |85 | +---------------------------+------------+ |line-too-long |66 | +---------------------------+------------+ |missing-function-docstring |43 | +---------------------------+------------+ |wrong-import-order |27 | +---------------------------+------------+ |duplicate-code |27 | +---------------------------+------------+ |missing-module-docstring |18 | +---------------------------+------------+ |deprecated-method |18 | +---------------------------+------------+ |broad-except |17 | +---------------------------+------------+ |unnecessary-pass |9 | +---------------------------+------------+ |missing-class-docstring |7 | +---------------------------+------------+ |unused-argument |6 | +---------------------------+------------+ |ungrouped-imports |6 | +---------------------------+------------+ |too-many-locals |6 | +---------------------------+------------+ |protected-access |6 | +---------------------------+------------+ |super-with-arguments |4 | +---------------------------+------------+ |assignment-from-none |4 | +---------------------------+------------+ |arguments-renamed |3 | +---------------------------+------------+ |no-self-use |2 | +---------------------------+------------+ |no-else-return |2 | +---------------------------+------------+ |unused-variable |1 | +---------------------------+------------+ |unreachable |1 | +---------------------------+------------+ |too-many-return-statements |1 | +---------------------------+------------+ |super-init-not-called |1 | +---------------------------+------------+ |reimported |1 | +---------------------------+------------+ |redefined-builtin |1 | +---------------------------+------------+ |no-value-for-parameter |1 | +---------------------------+------------+ |missing-final-newline |1 | +---------------------------+------------+ |consider-using-with |1 | +---------------------------+------------+ ----------------------------------- Your code has been rated at 3.12/10 ___________________________________ summary ____________________________________ py36: commands succeeded cov: commands succeeded pylint: commands succeeded congratulations :) + deactivate + unset -f pydoc + '[' -z _ ']' + 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 + '[' -z '' ']' + '[' -n /bin/bash ']' + hash -r + '[' -z _ ']' + PS1= + export PS1 + unset _OLD_VIRTUAL_PS1 + unset VIRTUAL_ENV + '[' '!' '' = nondestructive ']' + unset -f deactivate + cd .. + rm -rf ./venv-tox ./.tox [INFO] [INFO] --- maven-assembly-plugin:2.2-beta-5:single (make-assembly) @ multicloud-openstack-fcaps --- [INFO] Reading assembly descriptor: assembly.xml [INFO] Building zip: /w/workspace/multicloud-openstack-fcaps-sonar/fcaps/target/multicloud-openstack-fcaps-1.5.8-SNAPSHOT.zip [INFO] [INFO] --- jacoco-maven-plugin:0.8.2:prepare-agent (pre-integration-test) @ multicloud-openstack-fcaps --- [INFO] failsafeArgLine set to -javaagent:/tmp/r/org/jacoco/org.jacoco.agent/0.8.2/org.jacoco.agent-0.8.2-runtime.jar=destfile=/w/workspace/multicloud-openstack-fcaps-sonar/fcaps/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) @ multicloud-openstack-fcaps --- [INFO] No tests to run. [INFO] [INFO] --- jacoco-maven-plugin:0.8.2:report (post-integration-test) @ multicloud-openstack-fcaps --- [INFO] Skipping JaCoCo execution due to missing execution data file. [INFO] [INFO] --- maven-failsafe-plugin:2.22.0:verify (integration-tests) @ multicloud-openstack-fcaps --- [INFO] Failsafe report directory: /w/workspace/multicloud-openstack-fcaps-sonar/fcaps/target/failsafe-reports [INFO] [INFO] --- maven-install-plugin:2.4:install (default-install) @ multicloud-openstack-fcaps --- [INFO] Installing /w/workspace/multicloud-openstack-fcaps-sonar/fcaps/pom.xml to /tmp/r/org/onap/multicloud/openstack/multicloud-openstack-fcaps/1.5.8-SNAPSHOT/multicloud-openstack-fcaps-1.5.8-SNAPSHOT.pom [INFO] Installing /w/workspace/multicloud-openstack-fcaps-sonar/fcaps/target/multicloud-openstack-fcaps-1.5.8-SNAPSHOT.zip to /tmp/r/org/onap/multicloud/openstack/multicloud-openstack-fcaps/1.5.8-SNAPSHOT/multicloud-openstack-fcaps-1.5.8-SNAPSHOT.zip [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:16 min [INFO] Finished at: 2024-01-06T13:42:17Z [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/multicloud-openstack-fcaps-sonar@tmp/config11221113648807368627tmp --settings /w/workspace/multicloud-openstack-fcaps-sonar@tmp/config14705171335298064935tmp -Dsonar.projectKey=onap_multicloud-openstack-fcaps -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 -f fcaps/pom.xml Unrecognized VM option 'MaxPermSize=256m' Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. Build step 'Conditional steps (multiple)' marked build as failure [FINDBUGS] Skipping publisher since build result is FAILURE [PostBuildScript] - [INFO] Executing post build scripts. [multicloud-openstack-fcaps-sonar] $ /bin/bash /tmp/jenkins13090672214283792607.sh ---> sysstat.sh [multicloud-openstack-fcaps-sonar] $ /bin/bash /tmp/jenkins13173057051104650450.sh ---> package-listing.sh ++ tr '[:upper:]' '[:lower:]' ++ facter osfamily + OS_FAMILY=debian + workspace=/w/workspace/multicloud-openstack-fcaps-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/multicloud-openstack-fcaps-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/multicloud-openstack-fcaps-sonar ']' + mkdir -p /w/workspace/multicloud-openstack-fcaps-sonar/archives/ + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/multicloud-openstack-fcaps-sonar/archives/ [multicloud-openstack-fcaps-sonar] $ /bin/bash /tmp/jenkins17249748677745685411.sh ---> capture-instance-metadata.sh Setup pyenv: system 3.8.13 3.9.13 * 3.10.6 (set by /w/workspace/multicloud-openstack-fcaps-sonar/.python-version) lf-activate-venv(): INFO: Reuse venv:/tmp/venv-nAua from file:/tmp/.os_lf_venv lf-activate-venv(): INFO: Installing: lftools lf-activate-venv(): INFO: Adding /tmp/venv-nAua/bin to PATH INFO: Running in OpenStack, capturing instance metadata [multicloud-openstack-fcaps-sonar] $ /bin/bash /tmp/jenkins601074700023164369.sh provisioning config files... copy managed file [jenkins-log-archives-settings] to file:/w/workspace/multicloud-openstack-fcaps-sonar@tmp/config17124838301643614916tmp 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. [multicloud-openstack-fcaps-sonar] $ /bin/bash /tmp/jenkins9639485043945433656.sh ---> create-netrc.sh [multicloud-openstack-fcaps-sonar] $ /bin/bash /tmp/jenkins17295093684934736635.sh ---> python-tools-install.sh Setup pyenv: system 3.8.13 3.9.13 * 3.10.6 (set by /w/workspace/multicloud-openstack-fcaps-sonar/.python-version) lf-activate-venv(): INFO: Reuse venv:/tmp/venv-nAua from file:/tmp/.os_lf_venv lf-activate-venv(): INFO: Installing: lftools lf-activate-venv(): INFO: Adding /tmp/venv-nAua/bin to PATH [multicloud-openstack-fcaps-sonar] $ /bin/bash /tmp/jenkins6572849082182027921.sh ---> sudo-logs.sh Archiving 'sudo' log.. [multicloud-openstack-fcaps-sonar] $ /bin/bash /tmp/jenkins1504212453073273907.sh ---> job-cost.sh Setup pyenv: system 3.8.13 3.9.13 * 3.10.6 (set by /w/workspace/multicloud-openstack-fcaps-sonar/.python-version) lf-activate-venv(): INFO: Reuse venv:/tmp/venv-nAua from file:/tmp/.os_lf_venv lf-activate-venv(): INFO: Installing: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 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. lftools 0.37.8 requires openstacksdk<1.5.0, but you have openstacksdk 2.0.0 which is incompatible. lf-activate-venv(): INFO: Adding /tmp/venv-nAua/bin to PATH INFO: No Stack... INFO: Retrieving Pricing Info for: v3-standard-4 INFO: Archiving Costs [multicloud-openstack-fcaps-sonar] $ /bin/bash -l /tmp/jenkins11816619437593953666.sh ---> logs-deploy.sh Setup pyenv: system 3.8.13 3.9.13 * 3.10.6 (set by /w/workspace/multicloud-openstack-fcaps-sonar/.python-version) lf-activate-venv(): INFO: Reuse venv:/tmp/venv-nAua from file:/tmp/.os_lf_venv lf-activate-venv(): INFO: Installing: lftools 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. python-openstackclient 6.4.0 requires openstacksdk>=2.0.0, but you have openstacksdk 1.4.0 which is incompatible. lf-activate-venv(): INFO: Adding /tmp/venv-nAua/bin to PATH INFO: Nexus URL https://nexus.onap.org path production/vex-yul-ecomp-jenkins-1/multicloud-openstack-fcaps-sonar/1741 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-10055 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 676K 1.6G 1% /run /dev/vda1 78G 8.6G 69G 12% / 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 555 12939 0 2545 15154 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:66:7c:89 brd ff:ff:ff:ff:ff:ff inet 10.30.106.228/23 brd 10.30.107.255 scope global dynamic ens3 valid_lft 86174sec preferred_lft 86174sec inet6 fe80::f816:3eff:fe66:7c89/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-10055) 01/06/24 _x86_64_ (4 CPU) 13:39:21 LINUX RESTART (4 CPU) 13:40:01 tps rtps wtps bread/s bwrtn/s 13:41:01 128.16 23.11 105.05 1172.60 33473.22 13:42:01 140.45 6.85 133.60 226.40 36283.07 13:43:01 128.65 9.73 118.91 1155.14 18766.21 Average: 132.42 13.23 119.19 851.42 29507.12 13:40:01 kbmemfree kbavail kbmemused %memused kbbuffers kbcached kbcommit %commit kbactive kbinact kbdirty 13:41:01 13826608 15538324 2598360 15.82 71260 1834420 1066728 6.10 711484 1659768 161760 13:42:01 13083452 15213896 3341516 20.34 113420 2174268 1216968 6.96 1115244 1932372 204588 13:43:01 13193812 15479336 3231156 19.67 134032 2287188 821796 4.70 890936 2027904 71308 Average: 13367957 15410519 3057011 18.61 106237 2098625 1035164 5.92 905888 1873348 145885 13:40:01 IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s %ifutil 13:41:01 ens3 93.87 61.21 1234.79 19.52 0.00 0.00 0.00 0.00 13:41:01 lo 0.93 0.93 0.10 0.10 0.00 0.00 0.00 0.00 13:42:01 ens3 104.93 94.03 965.21 24.51 0.00 0.00 0.00 0.00 13:42:01 lo 1.83 1.83 0.18 0.18 0.00 0.00 0.00 0.00 13:43:01 ens3 95.45 70.85 142.10 26.68 0.00 0.00 0.00 0.00 13:43:01 lo 0.87 0.87 0.09 0.09 0.00 0.00 0.00 0.00 Average: ens3 98.08 75.36 780.69 23.57 0.00 0.00 0.00 0.00 Average: lo 1.21 1.21 0.13 0.13 0.00 0.00 0.00 0.00 ---> sar -P ALL: Linux 4.15.0-194-generic (prd-ubuntu1804-builder-4c-4g-10055) 01/06/24 _x86_64_ (4 CPU) 13:39:21 LINUX RESTART (4 CPU) 13:40:01 CPU %user %nice %system %iowait %steal %idle 13:41:01 all 22.01 0.00 1.65 5.08 0.05 71.21 13:41:01 0 47.75 0.00 3.05 2.65 0.08 46.47 13:41:01 1 19.02 0.00 1.37 1.34 0.05 78.22 13:41:01 2 4.97 0.00 1.08 15.80 0.03 78.12 13:41:01 3 16.40 0.00 1.07 0.52 0.05 81.96 13:42:01 all 25.91 0.00 1.81 4.24 0.07 67.97 13:42:01 0 12.05 0.00 1.04 0.15 0.05 86.71 13:42:01 1 20.21 0.00 1.57 0.67 0.03 77.52 13:42:01 2 24.14 0.00 1.88 11.97 0.05 61.96 13:42:01 3 47.28 0.00 2.79 4.16 0.12 45.66 13:43:01 all 24.21 0.00 1.82 2.42 0.06 71.49 13:43:01 0 13.99 0.00 0.90 0.27 0.03 84.80 13:43:01 1 24.26 0.00 2.41 3.09 0.08 70.15 13:43:01 2 36.24 0.00 1.95 4.32 0.07 57.42 13:43:01 3 22.31 0.00 2.05 1.98 0.07 73.59 Average: all 24.04 0.00 1.76 3.91 0.06 70.22 Average: 0 24.58 0.00 1.66 1.02 0.06 72.69 Average: 1 21.17 0.00 1.78 1.70 0.06 75.30 Average: 2 21.78 0.00 1.64 10.70 0.05 65.84 Average: 3 28.65 0.00 1.97 2.22 0.08 67.08