Started by timer Running as SYSTEM [EnvInject] - Loading node environment variables. Building remotely on prd-ubuntu1804-builder-4c-4g-23548 (ubuntu1804-builder-4c-4g) in workspace /w/workspace/multicloud-openstack-starlingx-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-starlingx-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-starlingx-sonar] $ /bin/bash /tmp/jenkins413590366064691455.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-ibze 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-ibze/bin to PATH Generating Requirements File Python 3.10.6 pip 24.1.2 from /tmp/venv-ibze/lib/python3.10/site-packages/pip (python 3.10) appdirs==1.4.4 argcomplete==3.4.0 aspy.yaml==1.3.0 attrs==23.2.0 autopage==0.5.2 beautifulsoup4==4.12.3 boto3==1.34.144 botocore==1.34.144 bs4==0.0.2 cachetools==5.3.3 certifi==2024.7.4 cffi==1.16.0 cfgv==3.4.0 chardet==5.2.0 charset-normalizer==3.3.2 click==8.1.7 cliff==4.7.0 cmd2==2.4.3 cryptography==3.3.2 debtcollector==3.0.0 decorator==5.1.1 defusedxml==0.7.1 Deprecated==1.2.14 distlib==0.3.8 dnspython==2.6.1 docker==4.2.2 dogpile.cache==1.3.3 email_validator==2.2.0 filelock==3.15.4 future==1.0.0 gitdb==4.0.11 GitPython==3.1.43 google-auth==2.32.0 httplib2==0.22.0 identify==2.6.0 idna==3.7 importlib-resources==1.5.0 iso8601==2.1.0 Jinja2==3.1.4 jmespath==1.0.1 jsonpatch==1.33 jsonpointer==3.0.0 jsonschema==4.23.0 jsonschema-specifications==2023.12.1 keystoneauth1==5.7.0 kubernetes==30.1.0 lftools==0.37.10 lxml==5.2.2 MarkupSafe==2.1.5 msgpack==1.0.8 multi_key_dict==2.0.3 munch==4.0.0 netaddr==1.3.0 netifaces==0.11.0 niet==1.4.2 nodeenv==1.9.1 oauth2client==4.1.3 oauthlib==3.2.2 openstacksdk==3.2.0 os-client-config==2.1.0 os-service-types==1.7.0 osc-lib==3.1.0 oslo.config==9.5.0 oslo.context==5.5.0 oslo.i18n==6.3.0 oslo.log==6.1.0 oslo.serialization==5.4.0 oslo.utils==7.2.0 packaging==24.1 pbr==6.0.0 platformdirs==4.2.2 prettytable==3.10.2 pyasn1==0.6.0 pyasn1_modules==0.4.0 pycparser==2.22 pygerrit2==2.0.15 PyGithub==2.3.0 PyJWT==2.8.0 PyNaCl==1.5.0 pyparsing==2.4.7 pyperclip==1.9.0 pyrsistent==0.20.0 python-cinderclient==9.5.0 python-dateutil==2.9.0.post0 python-heatclient==3.5.0 python-jenkins==1.8.2 python-keystoneclient==5.4.0 python-magnumclient==4.6.0 python-novaclient==18.6.0 python-openstackclient==6.6.0 python-swiftclient==4.6.0 PyYAML==6.0.1 referencing==0.35.1 requests==2.32.3 requests-oauthlib==2.0.0 requestsexceptions==1.4.0 rfc3986==2.0.0 rpds-py==0.19.0 rsa==4.9 ruamel.yaml==0.18.6 ruamel.yaml.clib==0.2.8 s3transfer==0.10.2 simplejson==3.19.2 six==1.16.0 smmap==5.0.1 soupsieve==2.5 stevedore==5.2.0 tabulate==0.9.0 toml==0.10.2 tomlkit==0.13.0 tqdm==4.66.4 typing_extensions==4.12.2 tzdata==2024.1 urllib3==1.26.19 virtualenv==20.26.3 wcwidth==0.2.13 websocket-client==1.8.0 wrapt==1.16.0 xdg==6.0.0 xmltodict==0.13.0 yq==3.4.3 [Boolean condition] checking [true] against [^(1|y|yes|t|true|on|run)$] (origin token: true) Run condition [Boolean condition] enabling perform for step [BuilderChain] [multicloud-openstack-starlingx-sonar] $ /bin/sh -xe /tmp/jenkins17154722548883651206.sh + echo Using SonarCloud Using SonarCloud [multicloud-openstack-starlingx-sonar] $ /bin/sh -xe /tmp/jenkins739510094796875132.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-23548 [multicloud-openstack-starlingx-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 starlingx/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-starlingx-sonar] $ /bin/sh -xe /tmp/jenkins3885806421572272627.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-starlingx-sonar] $ /bin/sh /tmp/jenkins1432283155160270758.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-starlingx [EnvInject] - Variables injected successfully. provisioning config files... copy managed file [global-settings] to file:/w/workspace/multicloud-openstack-starlingx-sonar@tmp/config1065902495833970713tmp copy managed file [multicloud-openstack-settings] to file:/w/workspace/multicloud-openstack-starlingx-sonar@tmp/config12600068123766818427tmp [multicloud-openstack-starlingx-sonar] $ /bin/bash -l /tmp/jenkins7354496326702971109.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-starlingx-sonar@tmp/config1065902495833970713tmp --settings /w/workspace/multicloud-openstack-starlingx-sonar@tmp/config12600068123766818427tmp --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 starlingx/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-starlingx >---- [INFO] Building multicloud-openstack-starlingx 1.5.8-SNAPSHOT [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ multicloud-openstack-starlingx --- [INFO] [INFO] --- exec-maven-plugin:1.2.1:exec (clean phase script) @ multicloud-openstack-starlingx --- running script: [/w/workspace/multicloud-openstack-starlingx-sonar/starlingx/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-starlingx] 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-starlingx --- [INFO] [INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce (enforce-no-snapshots) @ multicloud-openstack-starlingx --- [INFO] [INFO] --- jacoco-maven-plugin:0.8.2:prepare-agent (pre-unit-test) @ multicloud-openstack-starlingx --- [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-starlingx-sonar/starlingx/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-starlingx --- [INFO] Starting audit... Audit done. [INFO] [INFO] --- maven-checkstyle-plugin:2.17:check (onap-java-style) @ multicloud-openstack-starlingx --- [INFO] Starting audit... Audit done. [INFO] [INFO] --- jacoco-maven-plugin:0.8.2:report (post-unit-test) @ multicloud-openstack-starlingx --- [INFO] Skipping JaCoCo execution due to missing execution data file. [INFO] [INFO] --- exec-maven-plugin:1.2.1:exec (test script) @ multicloud-openstack-starlingx --- running script: [/w/workspace/multicloud-openstack-starlingx-sonar/starlingx/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-starlingx] MVN_PROJECT_VERSION is [1.5.8-SNAPSHOT] ==> test phase script + echo /w/workspace/multicloud-openstack-starlingx-sonar/starlingx ++ pwd + CURDIR=/w/workspace/multicloud-openstack-starlingx-sonar/starlingx /w/workspace/multicloud-openstack-starlingx-sonar/starlingx ++ find . -name tox.ini + TOXINIS=./tox.ini + cd .. + for TOXINI in "${TOXINIS[@]}" ++ rev ++ echo ./tox.ini ++ cut -f2- -d/ ++ rev + DIR=. + cd /w/workspace/multicloud-openstack-starlingx-sonar/starlingx/. + 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-starlingx-sonar/starlingx/venv-tox/bin/python3 Also creating executable in /w/workspace/multicloud-openstack-starlingx-sonar/starlingx/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-starlingx-sonar/starlingx/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-starlingx-sonar/starlingx/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-starlingx-sonar/starlingx/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 packaging>=14 Downloading packaging-21.3-py3-none-any.whl (40 kB) Collecting toml>=0.10.2 Downloading toml-0.10.2-py2.py3-none-any.whl (16 kB) Collecting py>=1.4.17 Downloading py-1.11.0-py2.py3-none-any.whl (98 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 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 filelock>=3.0.0 Downloading filelock-3.4.1-py3-none-any.whl (9.9 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.2-py3-none-any.whl (103 kB) Collecting importlib-resources>=5.4 Downloading importlib_resources-5.4.0-py3-none-any.whl (28 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) 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.2 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.2 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-starlingx-sonar/starlingx + tox py38 create: /w/workspace/multicloud-openstack-starlingx-sonar/starlingx/.tox/py38 py38 installdeps: -r/w/workspace/multicloud-openstack-starlingx-sonar/starlingx/requirements.txt, -r/w/workspace/multicloud-openstack-starlingx-sonar/starlingx/test-requirements.txt py38 installed: asgiref==3.4.1,astroid==2.11.7,certifi==2024.7.4,charset-normalizer==2.0.12,coverage==5.5,dill==0.3.4,Django==3.2.7,djangorestframework==3.12.4,httplib2==0.19.1,idna==3.7,importlib-metadata==4.8.3,iso8601==1.1.0,isort==5.10.1,keystoneauth1==2.18.0,lazy-object-proxy==1.7.1,mccabe==0.7.0,mock==4.0.3,pbr==6.0.0,platformdirs==2.4.0,positional==1.2.1,pylint==2.13.9,pyparsing==2.4.7,python-memcached==1.62,pytz==2024.1,PyYAML==5.4.1,requests==2.27.1,ruamel.yaml==0.17.1,ruamel.yaml.clib==0.2.8,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==3.0.4,urllib3==1.26.19,wrapt==1.16.0,zipp==3.6.0 py38 run-test-pre: PYTHONHASHSEED='115386074' py38 run-test: commands[0] | coverage run --branch manage.py test starlingx System check identified no issues (0 silenced). Running tests... ---------------------------------------------------------------------- test_token (starlingx.proxy.tests.test_identity_proxy.TestIdentityService) ... ok (0.019s) test_token_with_projectid (starlingx.proxy.tests.test_identity_proxy.TestIdentityService) ... ok (0.007s) test_token_with_tenantname (starlingx.proxy.tests.test_identity_proxy.TestIdentityService) ... ok (0.007s) test_tokensV2 (starlingx.proxy.tests.test_identity_proxy.TestIdentityService) ... ok (0.007s) test_tokensV2_with_tenantname (starlingx.proxy.tests.test_identity_proxy.TestIdentityService) ... ok (0.007s) test_crud_resources (starlingx.proxy.tests.test_service_proxy.TestServiceProxy) ... ok (0.027s) test_expired_auth_token (starlingx.proxy.tests.test_service_proxy.TestServiceProxy) ... ok (0.004s) test_get_token (starlingx.proxy.tests.test_service_proxy.TestServiceProxy) ... ok (0.006s) test_request_without_servicetype (starlingx.proxy.tests.test_service_proxy.TestServiceProxy) ... ok (0.009s) test_unauthorized_access (starlingx.proxy.tests.test_service_proxy.TestServiceProxy) ... ok (0.002s) test_fail_unregister_endpoint (starlingx.registration.tests.test_registration.TestRegistration) ... ERROR (0.004s) test_register_endpoint_successfully (starlingx.registration.tests.test_registration.TestRegistration) ... ok (0.012s) test_register_hpa_cpupinning_successfully (starlingx.registration.tests.test_registration.TestRegistration) ... ok (0.018s) test_register_hpa_hugepage_successfully (starlingx.registration.tests.test_registration.TestRegistration) ... ok (0.027s) test_register_hpa_instructionset_successfully (starlingx.registration.tests.test_registration.TestRegistration) ... ok (0.024s) test_register_hpa_numa_successfully (starlingx.registration.tests.test_registration.TestRegistration) ... ok (0.028s) test_register_hpa_topo_successfully (starlingx.registration.tests.test_registration.TestRegistration) ... ok (0.027s) test_register_pcipassthrough_successfully (starlingx.registration.tests.test_registration.TestRegistration) ... ok (0.022s) test_register_sriovnic_successfully (starlingx.registration.tests.test_registration.TestRegistration) ... ok (0.057s) test_discover_flavors (starlingx.registration.tests.test_registration2.TestRegistration2) ... ok (0.007s) test_discover_flavors_w_hpa_numa (starlingx.registration.tests.test_registration2.TestRegistration2) ... ok (0.004s) test_capacity_check_nova_hypervisor_outofram (starlingx.resource.tests.test_capacity.TestCapacity) ... ok (0.010s) test_capacity_check_nova_hypervisor_outofstorage (starlingx.resource.tests.test_capacity.TestCapacity) ... ok (0.008s) test_capacity_check_nova_hypervisor_outofvcpu (starlingx.resource.tests.test_capacity.TestCapacity) ... ok (0.008s) test_capacity_check_nova_limits_failed (starlingx.resource.tests.test_capacity.TestCapacity) ... ok (0.008s) test_capacity_check_nova_limits_outofram (starlingx.resource.tests.test_capacity.TestCapacity) ... ok (0.007s) test_capacity_check_success (starlingx.resource.tests.test_capacity.TestCapacity) ... ok (0.008s) test_capacity_check_volume_limits_outofstorage (starlingx.resource.tests.test_capacity.TestCapacity) ... ok (0.009s) test_get (starlingx.resource.tests.tests_infra_workload.APIv1InfraWorkloadTest) ... ok (0.003s) test_post (starlingx.resource.tests.tests_infra_workload.APIv1InfraWorkloadTest) ... ok (0.003s) test_get (starlingx.resource.tests.tests_infra_workload.InfraWorkloadTest) ... ok (0.003s) test_post (starlingx.resource.tests.tests_infra_workload.InfraWorkloadTest) ... ok (0.003s) test_post_wo_oof_directive (starlingx.resource.tests.tests_infra_workload.InfraWorkloadTest) ... ok (0.003s) test_sample (starlingx.samples.tests.SampleViewTest) ... ok (0.002s) test_sample (starlingx.swagger.tests.SampleViewTest) ... ok (0.004s) ====================================================================== ERROR [0.004s]: test_fail_unregister_endpoint (starlingx.registration.tests.test_registration.TestRegistration) ---------------------------------------------------------------------- Traceback (most recent call last): File "/w/workspace/multicloud-openstack-starlingx-sonar/starlingx/.tox/py38/lib/python3.6/site-packages/mock/mock.py", line 1346, in patched return func(*newargs, **newkeywargs) File "/w/workspace/multicloud-openstack-starlingx-sonar/starlingx/starlingx/registration/tests/test_registration.py", line 272, in test_fail_unregister_endpoint HTTP_X_AUTH_TOKEN=mock_info.MOCK_TOKEN_ID) File "/w/workspace/multicloud-openstack-starlingx-sonar/starlingx/.tox/py38/lib/python3.6/site-packages/django/test/client.py", line 795, in delete response = super().delete(path, data=data, content_type=content_type, secure=secure, **extra) File "/w/workspace/multicloud-openstack-starlingx-sonar/starlingx/.tox/py38/lib/python3.6/site-packages/django/test/client.py", line 447, in delete secure=secure, **extra) File "/w/workspace/multicloud-openstack-starlingx-sonar/starlingx/.tox/py38/lib/python3.6/site-packages/django/test/client.py", line 473, in generic return self.request(**r) File "/w/workspace/multicloud-openstack-starlingx-sonar/starlingx/.tox/py38/lib/python3.6/site-packages/django/test/client.py", line 719, in request self.check_exception(response) File "/w/workspace/multicloud-openstack-starlingx-sonar/starlingx/.tox/py38/lib/python3.6/site-packages/django/test/client.py", line 580, in check_exception raise exc_value File "/w/workspace/multicloud-openstack-starlingx-sonar/starlingx/.tox/py38/lib/python3.6/site-packages/django/core/handlers/exception.py", line 47, in inner response = get_response(request) File "/w/workspace/multicloud-openstack-starlingx-sonar/starlingx/.tox/py38/lib/python3.6/site-packages/django/core/handlers/base.py", line 181, in _get_response response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/w/workspace/multicloud-openstack-starlingx-sonar/starlingx/.tox/py38/lib/python3.6/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view return view_func(*args, **kwargs) File "/w/workspace/multicloud-openstack-starlingx-sonar/starlingx/.tox/py38/lib/python3.6/site-packages/django/views/generic/base.py", line 70, in view return self.dispatch(request, *args, **kwargs) File "/w/workspace/multicloud-openstack-starlingx-sonar/starlingx/.tox/py38/lib/python3.6/site-packages/rest_framework/views.py", line 509, in dispatch response = self.handle_exception(exc) File "/w/workspace/multicloud-openstack-starlingx-sonar/starlingx/.tox/py38/lib/python3.6/site-packages/rest_framework/views.py", line 469, in handle_exception self.raise_uncaught_exception(exc) File "/w/workspace/multicloud-openstack-starlingx-sonar/starlingx/.tox/py38/lib/python3.6/site-packages/rest_framework/views.py", line 480, in raise_uncaught_exception raise exc File "/w/workspace/multicloud-openstack-starlingx-sonar/starlingx/.tox/py38/lib/python3.6/site-packages/rest_framework/views.py", line 506, in dispatch response = handler(request, *args, **kwargs) File "/w/workspace/multicloud-openstack-starlingx-sonar/share/starlingx_base/registration/registration.py", line 79, in delete gAZCapAuditThread.remove(vimid) File "/w/workspace/multicloud-openstack-starlingx-sonar/share/common/msapi/helper.py", line 298, in remove cache.delete(self.cache_prefix + backlog_id) File "/w/workspace/multicloud-openstack-starlingx-sonar/starlingx/.tox/py38/lib/python3.6/site-packages/django/core/cache/backends/memcached.py", line 202, in delete return bool(self._cache._deletetouch([b'DELETED'], 'delete', key)) AttributeError: 'Client' object has no attribute '_deletetouch' ---------------------------------------------------------------------- Ran 35 tests in 0.406s FAILED (errors=1) Generating XML reports... Generated XML report: test-reports/TEST-starlingx.proxy.tests.test_identity_proxy.TestIdentityService-20240713094817.xml Generated XML report: test-reports/TEST-starlingx.proxy.tests.test_service_proxy.TestServiceProxy-20240713094817.xml Generated XML report: test-reports/TEST-starlingx.registration.tests.test_registration.TestRegistration-20240713094817.xml Generated XML report: test-reports/TEST-starlingx.registration.tests.test_registration2.TestRegistration2-20240713094817.xml Generated XML report: test-reports/TEST-starlingx.resource.tests.test_capacity.TestCapacity-20240713094817.xml Generated XML report: test-reports/TEST-starlingx.resource.tests.tests_infra_workload.APIv1InfraWorkloadTest-20240713094817.xml Generated XML report: test-reports/TEST-starlingx.resource.tests.tests_infra_workload.InfraWorkloadTest-20240713094817.xml Generated XML report: test-reports/TEST-starlingx.samples.tests.SampleViewTest-20240713094817.xml Generated XML report: test-reports/TEST-starlingx.swagger.tests.SampleViewTest-20240713094817.xml ERROR: InvocationError for command /w/workspace/multicloud-openstack-starlingx-sonar/starlingx/.tox/py38/bin/coverage run --branch manage.py test starlingx (exited with code 1) cov create: /w/workspace/multicloud-openstack-starlingx-sonar/starlingx/.tox/cov cov installdeps: -r/w/workspace/multicloud-openstack-starlingx-sonar/starlingx/requirements.txt, -r/w/workspace/multicloud-openstack-starlingx-sonar/starlingx/test-requirements.txt cov installed: asgiref==3.4.1,astroid==2.11.7,certifi==2024.7.4,charset-normalizer==2.0.12,coverage==5.5,dill==0.3.4,Django==3.2.7,djangorestframework==3.12.4,httplib2==0.19.1,idna==3.7,importlib-metadata==4.8.3,iso8601==1.1.0,isort==5.10.1,keystoneauth1==2.18.0,lazy-object-proxy==1.7.1,mccabe==0.7.0,mock==4.0.3,pbr==6.0.0,platformdirs==2.4.0,positional==1.2.1,pylint==2.13.9,pyparsing==2.4.7,python-memcached==1.62,pytz==2024.1,PyYAML==5.4.1,requests==2.27.1,ruamel.yaml==0.17.1,ruamel.yaml.clib==0.2.8,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==3.0.4,urllib3==1.26.19,wrapt==1.16.0,zipp==3.6.0 cov run-test-pre: PYTHONHASHSEED='115386074' cov run-test: commands[0] | coverage xml '--omit=./venv-tox/*,./.tox/*,*tests*,*__init__.py,*newton_base*,*common*,*starlingx_base* *site-packages*' pylint create: /w/workspace/multicloud-openstack-starlingx-sonar/starlingx/.tox/pylint pylint installdeps: -r/w/workspace/multicloud-openstack-starlingx-sonar/starlingx/requirements.txt, -r/w/workspace/multicloud-openstack-starlingx-sonar/starlingx/test-requirements.txt pylint installed: asgiref==3.4.1,astroid==2.11.7,certifi==2024.7.4,charset-normalizer==2.0.12,coverage==5.5,dill==0.3.4,Django==3.2.7,djangorestframework==3.12.4,httplib2==0.19.1,idna==3.7,importlib-metadata==4.8.3,iso8601==1.1.0,isort==5.10.1,keystoneauth1==2.18.0,lazy-object-proxy==1.7.1,mccabe==0.7.0,mock==4.0.3,pbr==6.0.0,platformdirs==2.4.0,positional==1.2.1,pylint==2.13.9,pyparsing==2.4.7,python-memcached==1.62,pytz==2024.1,PyYAML==5.4.1,requests==2.27.1,ruamel.yaml==0.17.1,ruamel.yaml.clib==0.2.8,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==3.0.4,urllib3==1.26.19,wrapt==1.16.0,zipp==3.6.0 pylint run-test-pre: PYTHONHASHSEED='115386074' pylint run-test: commands[0] | bash -c 'pylint -f parseable --reports=y starlingx | tee pylint.out' ************* Module starlingx.urls starlingx/urls.py:1: [C0114(missing-module-docstring), ] Missing module docstring starlingx/urls.py:18: [C0412(ungrouped-imports), ] Imports from package starlingx_base are not grouped ************* Module starlingx.wsgi starlingx/wsgi.py:1: [C0114(missing-module-docstring), ] Missing module docstring ************* Module starlingx.settings starlingx/settings.py:143: [C0301(line-too-long), ] Line too long (107/100) starlingx/settings.py:1: [C0114(missing-module-docstring), ] Missing module docstring starlingx/settings.py:85: [C0209(consider-using-f-string), ] Formatting a regular string which could be a f-string starlingx/settings.py:99: [C0209(consider-using-f-string), ] Formatting a regular string which could be a f-string starlingx/settings.py:109: [C0209(consider-using-f-string), ] Formatting a regular string which could be a f-string starlingx/settings.py:112: [C0209(consider-using-f-string), ] Formatting a regular string which could be a f-string starlingx/settings.py:121: [C0209(consider-using-f-string), ] Formatting a regular string which could be a f-string starlingx/settings.py:127: [C0209(consider-using-f-string), ] Formatting a regular string which could be a f-string starlingx/settings.py:183: [C0103(invalid-name), ] Constant name "log_path" doesn't conform to UPPER_CASE naming style starlingx/settings.py:199: [W0404(reimported), ] Reimport 'platform' (imported line 17) starlingx/settings.py:19: [C0411(wrong-import-order), ] standard import "from logging import config as log_config" should be placed before "import yaml" starlingx/settings.py:199: [C0412(ungrouped-imports), ] Imports from package platform are not grouped ************* Module starlingx.requests.urls starlingx/requests/urls.py:1: [C0114(missing-module-docstring), ] Missing module docstring ************* Module starlingx.requests.urlsV1 starlingx/requests/urlsV1.py:1: [C0103(invalid-name), ] Module name "urlsV1" doesn't conform to snake_case naming style starlingx/requests/urlsV1.py:1: [C0114(missing-module-docstring), ] Missing module docstring ************* Module starlingx.proxy.urls starlingx/proxy/urls.py:1: [C0114(missing-module-docstring), ] Missing module docstring starlingx/proxy/urls.py:20: [C0411(wrong-import-order), ] third party import "from newton_base.proxy import dnsaasdelegate" should be placed before "from starlingx.proxy.views import identityV3" ************* Module starlingx.proxy.urlsV1 starlingx/proxy/urlsV1.py:1: [C0103(invalid-name), ] Module name "urlsV1" doesn't conform to snake_case naming style starlingx/proxy/urlsV1.py:1: [C0114(missing-module-docstring), ] Missing module docstring starlingx/proxy/urlsV1.py:20: [C0411(wrong-import-order), ] third party import "from newton_base.proxy import dnsaasdelegate" should be placed before "from starlingx.proxy.views import identityV3" ************* Module starlingx.proxy.views.services starlingx/proxy/views/services.py:113: [C0301(line-too-long), ] Line too long (109/100) starlingx/proxy/views/services.py:142: [C0301(line-too-long), ] Line too long (101/100) starlingx/proxy/views/services.py:1: [C0114(missing-module-docstring), ] Missing module docstring starlingx/proxy/views/services.py:28: [C0115(missing-class-docstring), Services] Missing class docstring starlingx/proxy/views/services.py:30: [W0235(useless-super-delegation), Services.__init__] Useless super delegation in method '__init__' starlingx/proxy/views/services.py:31: [R1725(super-with-arguments), Services.__init__] Consider using Python 3 style super() without arguments starlingx/proxy/views/services.py:40: [W0235(useless-super-delegation), GetTenants.__init__] Useless super delegation in method '__init__' starlingx/proxy/views/services.py:41: [R1725(super-with-arguments), GetTenants.__init__] Consider using Python 3 style super() without arguments starlingx/proxy/views/services.py:45: [W1201(logging-not-lazy), GetTenants.get] Use lazy % formatting in logging functions starlingx/proxy/views/services.py:45: [C0209(consider-using-f-string), GetTenants.get] Formatting a regular string which could be a f-string starlingx/proxy/views/services.py:46: [W1201(logging-not-lazy), GetTenants.get] Use lazy % formatting in logging functions starlingx/proxy/views/services.py:46: [C0209(consider-using-f-string), GetTenants.get] Formatting a regular string which could be a f-string starlingx/proxy/views/services.py:48: [R1725(super-with-arguments), GetTenants.get] Consider using Python 3 style super() without arguments starlingx/proxy/views/services.py:51: [C0115(missing-class-docstring), APIv1Services] Missing class docstring starlingx/proxy/views/services.py:53: [W0235(useless-super-delegation), APIv1Services.__init__] Useless super delegation in method '__init__' starlingx/proxy/views/services.py:54: [R1725(super-with-arguments), APIv1Services.__init__] Consider using Python 3 style super() without arguments starlingx/proxy/views/services.py:57: [W0237(arguments-renamed), APIv1Services.head] Parameter 'vimid' has been renamed to 'cloud_owner' in overridden 'APIv1Services.head' method starlingx/proxy/views/services.py:57: [W0237(arguments-renamed), APIv1Services.head] Parameter 'servicetype' has been renamed to 'cloud_region_id' in overridden 'APIv1Services.head' method starlingx/proxy/views/services.py:57: [W0237(arguments-renamed), APIv1Services.head] Parameter 'requri' has been renamed to 'servicetype' in overridden 'APIv1Services.head' method starlingx/proxy/views/services.py:57: [R0913(too-many-arguments), APIv1Services.head] Too many arguments (6/5) starlingx/proxy/views/services.py:58: [W1201(logging-not-lazy), APIv1Services.head] Use lazy % formatting in logging functions starlingx/proxy/views/services.py:58: [C0209(consider-using-f-string), APIv1Services.head] Formatting a regular string which could be a f-string starlingx/proxy/views/services.py:63: [R1725(super-with-arguments), APIv1Services.head] Consider using Python 3 style super() without arguments starlingx/proxy/views/services.py:65: [W0237(arguments-renamed), APIv1Services.get] Parameter 'vimid' has been renamed to 'cloud_owner' in overridden 'APIv1Services.get' method starlingx/proxy/views/services.py:65: [W0237(arguments-renamed), APIv1Services.get] Parameter 'servicetype' has been renamed to 'cloud_region_id' in overridden 'APIv1Services.get' method starlingx/proxy/views/services.py:65: [W0237(arguments-renamed), APIv1Services.get] Parameter 'requri' has been renamed to 'servicetype' in overridden 'APIv1Services.get' method starlingx/proxy/views/services.py:65: [R0913(too-many-arguments), APIv1Services.get] Too many arguments (6/5) starlingx/proxy/views/services.py:66: [W1201(logging-not-lazy), APIv1Services.get] Use lazy % formatting in logging functions starlingx/proxy/views/services.py:66: [C0209(consider-using-f-string), APIv1Services.get] Formatting a regular string which could be a f-string starlingx/proxy/views/services.py:69: [R1725(super-with-arguments), APIv1Services.get] Consider using Python 3 style super() without arguments starlingx/proxy/views/services.py:71: [W0237(arguments-renamed), APIv1Services.post] Parameter 'vimid' has been renamed to 'cloud_owner' in overridden 'APIv1Services.post' method starlingx/proxy/views/services.py:71: [W0237(arguments-renamed), APIv1Services.post] Parameter 'servicetype' has been renamed to 'cloud_region_id' in overridden 'APIv1Services.post' method starlingx/proxy/views/services.py:71: [W0237(arguments-renamed), APIv1Services.post] Parameter 'requri' has been renamed to 'servicetype' in overridden 'APIv1Services.post' method starlingx/proxy/views/services.py:71: [R0913(too-many-arguments), APIv1Services.post] Too many arguments (6/5) starlingx/proxy/views/services.py:72: [W1201(logging-not-lazy), APIv1Services.post] Use lazy % formatting in logging functions starlingx/proxy/views/services.py:72: [C0209(consider-using-f-string), APIv1Services.post] Formatting a regular string which could be a f-string starlingx/proxy/views/services.py:75: [R1725(super-with-arguments), APIv1Services.post] Consider using Python 3 style super() without arguments starlingx/proxy/views/services.py:77: [W0237(arguments-renamed), APIv1Services.put] Parameter 'vimid' has been renamed to 'cloud_owner' in overridden 'APIv1Services.put' method starlingx/proxy/views/services.py:77: [W0237(arguments-renamed), APIv1Services.put] Parameter 'servicetype' has been renamed to 'cloud_region_id' in overridden 'APIv1Services.put' method starlingx/proxy/views/services.py:77: [W0237(arguments-renamed), APIv1Services.put] Parameter 'requri' has been renamed to 'servicetype' in overridden 'APIv1Services.put' method starlingx/proxy/views/services.py:77: [R0913(too-many-arguments), APIv1Services.put] Too many arguments (6/5) starlingx/proxy/views/services.py:78: [W1201(logging-not-lazy), APIv1Services.put] Use lazy % formatting in logging functions starlingx/proxy/views/services.py:78: [C0209(consider-using-f-string), APIv1Services.put] Formatting a regular string which could be a f-string starlingx/proxy/views/services.py:81: [R1725(super-with-arguments), APIv1Services.put] Consider using Python 3 style super() without arguments starlingx/proxy/views/services.py:83: [W0237(arguments-renamed), APIv1Services.patch] Parameter 'vimid' has been renamed to 'cloud_owner' in overridden 'APIv1Services.patch' method starlingx/proxy/views/services.py:83: [W0237(arguments-renamed), APIv1Services.patch] Parameter 'servicetype' has been renamed to 'cloud_region_id' in overridden 'APIv1Services.patch' method starlingx/proxy/views/services.py:83: [W0237(arguments-renamed), APIv1Services.patch] Parameter 'requri' has been renamed to 'servicetype' in overridden 'APIv1Services.patch' method starlingx/proxy/views/services.py:83: [R0913(too-many-arguments), APIv1Services.patch] Too many arguments (6/5) starlingx/proxy/views/services.py:84: [W1201(logging-not-lazy), APIv1Services.patch] Use lazy % formatting in logging functions starlingx/proxy/views/services.py:84: [C0209(consider-using-f-string), APIv1Services.patch] Formatting a regular string which could be a f-string starlingx/proxy/views/services.py:87: [R1725(super-with-arguments), APIv1Services.patch] Consider using Python 3 style super() without arguments starlingx/proxy/views/services.py:89: [W0237(arguments-renamed), APIv1Services.delete] Parameter 'vimid' has been renamed to 'cloud_owner' in overridden 'APIv1Services.delete' method starlingx/proxy/views/services.py:89: [W0237(arguments-renamed), APIv1Services.delete] Parameter 'servicetype' has been renamed to 'cloud_region_id' in overridden 'APIv1Services.delete' method starlingx/proxy/views/services.py:89: [W0237(arguments-renamed), APIv1Services.delete] Parameter 'requri' has been renamed to 'servicetype' in overridden 'APIv1Services.delete' method starlingx/proxy/views/services.py:89: [R0913(too-many-arguments), APIv1Services.delete] Too many arguments (6/5) starlingx/proxy/views/services.py:90: [W1201(logging-not-lazy), APIv1Services.delete] Use lazy % formatting in logging functions starlingx/proxy/views/services.py:90: [C0209(consider-using-f-string), APIv1Services.delete] Formatting a regular string which could be a f-string starlingx/proxy/views/services.py:93: [R1725(super-with-arguments), APIv1Services.delete] Consider using Python 3 style super() without arguments starlingx/proxy/views/services.py:101: [W0235(useless-super-delegation), APIv1GetTenants.__init__] Useless super delegation in method '__init__' starlingx/proxy/views/services.py:102: [R1725(super-with-arguments), APIv1GetTenants.__init__] Consider using Python 3 style super() without arguments starlingx/proxy/views/services.py:105: [W0237(arguments-renamed), APIv1GetTenants.head] Parameter 'vimid' has been renamed to 'cloud_owner' in overridden 'APIv1GetTenants.head' method starlingx/proxy/views/services.py:105: [W0237(arguments-renamed), APIv1GetTenants.head] Parameter 'servicetype' has been renamed to 'cloud_region_id' in overridden 'APIv1GetTenants.head' method starlingx/proxy/views/services.py:105: [W0237(arguments-renamed), APIv1GetTenants.head] Parameter 'requri' has been renamed to 'servicetype' in overridden 'APIv1GetTenants.head' method starlingx/proxy/views/services.py:105: [R0913(too-many-arguments), APIv1GetTenants.head] Too many arguments (6/5) starlingx/proxy/views/services.py:106: [W1201(logging-not-lazy), APIv1GetTenants.head] Use lazy % formatting in logging functions starlingx/proxy/views/services.py:106: [C0209(consider-using-f-string), APIv1GetTenants.head] Formatting a regular string which could be a f-string starlingx/proxy/views/services.py:111: [R1725(super-with-arguments), APIv1GetTenants.head] Consider using Python 3 style super() without arguments starlingx/proxy/views/services.py:113: [W0237(arguments-renamed), APIv1GetTenants.get] Parameter 'vimid' has been renamed to 'cloud_owner' in overridden 'APIv1GetTenants.get' method starlingx/proxy/views/services.py:113: [W0237(arguments-renamed), APIv1GetTenants.get] Parameter 'servicetype' has been renamed to 'cloud_region_id' in overridden 'APIv1GetTenants.get' method starlingx/proxy/views/services.py:113: [W0237(arguments-renamed), APIv1GetTenants.get] Parameter 'requri' has been renamed to 'servicetype' in overridden 'APIv1GetTenants.get' method starlingx/proxy/views/services.py:113: [R0913(too-many-arguments), APIv1GetTenants.get] Too many arguments (6/5) starlingx/proxy/views/services.py:114: [W1201(logging-not-lazy), APIv1GetTenants.get] Use lazy % formatting in logging functions starlingx/proxy/views/services.py:114: [C0209(consider-using-f-string), APIv1GetTenants.get] Formatting a regular string which could be a f-string starlingx/proxy/views/services.py:119: [R1725(super-with-arguments), APIv1GetTenants.get] Consider using Python 3 style super() without arguments starlingx/proxy/views/services.py:121: [W0237(arguments-renamed), APIv1GetTenants.post] Parameter 'vimid' has been renamed to 'cloud_owner' in overridden 'APIv1GetTenants.post' method starlingx/proxy/views/services.py:121: [W0237(arguments-renamed), APIv1GetTenants.post] Parameter 'servicetype' has been renamed to 'cloud_region_id' in overridden 'APIv1GetTenants.post' method starlingx/proxy/views/services.py:121: [W0237(arguments-renamed), APIv1GetTenants.post] Parameter 'requri' has been renamed to 'servicetype' in overridden 'APIv1GetTenants.post' method starlingx/proxy/views/services.py:121: [R0913(too-many-arguments), APIv1GetTenants.post] Too many arguments (6/5) starlingx/proxy/views/services.py:122: [W1201(logging-not-lazy), APIv1GetTenants.post] Use lazy % formatting in logging functions starlingx/proxy/views/services.py:122: [C0209(consider-using-f-string), APIv1GetTenants.post] Formatting a regular string which could be a f-string starlingx/proxy/views/services.py:128: [R1725(super-with-arguments), APIv1GetTenants.post] Consider using Python 3 style super() without arguments starlingx/proxy/views/services.py:130: [W0237(arguments-renamed), APIv1GetTenants.put] Parameter 'vimid' has been renamed to 'cloud_owner' in overridden 'APIv1GetTenants.put' method starlingx/proxy/views/services.py:130: [W0237(arguments-renamed), APIv1GetTenants.put] Parameter 'servicetype' has been renamed to 'cloud_region_id' in overridden 'APIv1GetTenants.put' method starlingx/proxy/views/services.py:130: [W0237(arguments-renamed), APIv1GetTenants.put] Parameter 'requri' has been renamed to 'servicetype' in overridden 'APIv1GetTenants.put' method starlingx/proxy/views/services.py:130: [R0913(too-many-arguments), APIv1GetTenants.put] Too many arguments (6/5) starlingx/proxy/views/services.py:131: [W1201(logging-not-lazy), APIv1GetTenants.put] Use lazy % formatting in logging functions starlingx/proxy/views/services.py:131: [C0209(consider-using-f-string), APIv1GetTenants.put] Formatting a regular string which could be a f-string starlingx/proxy/views/services.py:134: [R1725(super-with-arguments), APIv1GetTenants.put] Consider using Python 3 style super() without arguments starlingx/proxy/views/services.py:136: [W0237(arguments-renamed), APIv1GetTenants.patch] Parameter 'vimid' has been renamed to 'cloud_owner' in overridden 'APIv1GetTenants.patch' method starlingx/proxy/views/services.py:136: [W0237(arguments-renamed), APIv1GetTenants.patch] Parameter 'servicetype' has been renamed to 'cloud_region_id' in overridden 'APIv1GetTenants.patch' method starlingx/proxy/views/services.py:136: [W0237(arguments-renamed), APIv1GetTenants.patch] Parameter 'requri' has been renamed to 'servicetype' in overridden 'APIv1GetTenants.patch' method starlingx/proxy/views/services.py:136: [R0913(too-many-arguments), APIv1GetTenants.patch] Too many arguments (6/5) starlingx/proxy/views/services.py:137: [W1201(logging-not-lazy), APIv1GetTenants.patch] Use lazy % formatting in logging functions starlingx/proxy/views/services.py:137: [C0209(consider-using-f-string), APIv1GetTenants.patch] Formatting a regular string which could be a f-string starlingx/proxy/views/services.py:140: [R1725(super-with-arguments), APIv1GetTenants.patch] Consider using Python 3 style super() without arguments starlingx/proxy/views/services.py:142: [W0237(arguments-renamed), APIv1GetTenants.delete] Parameter 'vimid' has been renamed to 'cloud_owner' in overridden 'APIv1GetTenants.delete' method starlingx/proxy/views/services.py:142: [W0237(arguments-renamed), APIv1GetTenants.delete] Parameter 'servicetype' has been renamed to 'cloud_region_id' in overridden 'APIv1GetTenants.delete' method starlingx/proxy/views/services.py:142: [W0237(arguments-renamed), APIv1GetTenants.delete] Parameter 'requri' has been renamed to 'servicetype' in overridden 'APIv1GetTenants.delete' method starlingx/proxy/views/services.py:142: [R0913(too-many-arguments), APIv1GetTenants.delete] Too many arguments (6/5) starlingx/proxy/views/services.py:143: [W1201(logging-not-lazy), APIv1GetTenants.delete] Use lazy % formatting in logging functions starlingx/proxy/views/services.py:143: [C0209(consider-using-f-string), APIv1GetTenants.delete] Formatting a regular string which could be a f-string starlingx/proxy/views/services.py:146: [R1725(super-with-arguments), APIv1GetTenants.delete] Consider using Python 3 style super() without arguments ************* Module starlingx.proxy.views.identityV3 starlingx/proxy/views/identityV3.py:1: [C0103(invalid-name), ] Module name "identityV3" doesn't conform to snake_case naming style starlingx/proxy/views/identityV3.py:1: [C0114(missing-module-docstring), ] Missing module docstring starlingx/proxy/views/identityV3.py:27: [C0115(missing-class-docstring), Tokens] Missing class docstring starlingx/proxy/views/identityV3.py:29: [R1725(super-with-arguments), Tokens.__init__] Consider using Python 3 style super() without arguments starlingx/proxy/views/identityV3.py:34: [C0115(missing-class-docstring), TokensV2] Missing class docstring starlingx/proxy/views/identityV3.py:36: [R1725(super-with-arguments), TokensV2.__init__] Consider using Python 3 style super() without arguments starlingx/proxy/views/identityV3.py:41: [C0115(missing-class-docstring), APIv1Tokens] Missing class docstring starlingx/proxy/views/identityV3.py:43: [R1725(super-with-arguments), APIv1Tokens.__init__] Consider using Python 3 style super() without arguments starlingx/proxy/views/identityV3.py:47: [W0237(arguments-renamed), APIv1Tokens.get] Parameter 'vimid' has been renamed to 'cloud_owner' in overridden 'APIv1Tokens.get' method starlingx/proxy/views/identityV3.py:48: [W1201(logging-not-lazy), APIv1Tokens.get] Use lazy % formatting in logging functions starlingx/proxy/views/identityV3.py:48: [C0209(consider-using-f-string), APIv1Tokens.get] Formatting a regular string which could be a f-string starlingx/proxy/views/identityV3.py:53: [R1725(super-with-arguments), APIv1Tokens.get] Consider using Python 3 style super() without arguments starlingx/proxy/views/identityV3.py:55: [W0237(arguments-renamed), APIv1Tokens.post] Parameter 'vimid' has been renamed to 'cloud_owner' in overridden 'APIv1Tokens.post' method starlingx/proxy/views/identityV3.py:56: [W1201(logging-not-lazy), APIv1Tokens.post] Use lazy % formatting in logging functions starlingx/proxy/views/identityV3.py:56: [C0209(consider-using-f-string), APIv1Tokens.post] Formatting a regular string which could be a f-string starlingx/proxy/views/identityV3.py:61: [R1725(super-with-arguments), APIv1Tokens.post] Consider using Python 3 style super() without arguments starlingx/proxy/views/identityV3.py:64: [C0115(missing-class-docstring), APIv1TokensV2] Missing class docstring starlingx/proxy/views/identityV3.py:66: [R1725(super-with-arguments), APIv1TokensV2.__init__] Consider using Python 3 style super() without arguments starlingx/proxy/views/identityV3.py:70: [W0237(arguments-renamed), APIv1TokensV2.get] Parameter 'vimid' has been renamed to 'cloud_owner' in overridden 'APIv1TokensV2.get' method starlingx/proxy/views/identityV3.py:71: [W1201(logging-not-lazy), APIv1TokensV2.get] Use lazy % formatting in logging functions starlingx/proxy/views/identityV3.py:71: [C0209(consider-using-f-string), APIv1TokensV2.get] Formatting a regular string which could be a f-string starlingx/proxy/views/identityV3.py:76: [R1725(super-with-arguments), APIv1TokensV2.get] Consider using Python 3 style super() without arguments starlingx/proxy/views/identityV3.py:78: [W0237(arguments-renamed), APIv1TokensV2.post] Parameter 'vimid' has been renamed to 'cloud_owner' in overridden 'APIv1TokensV2.post' method starlingx/proxy/views/identityV3.py:79: [W1201(logging-not-lazy), APIv1TokensV2.post] Use lazy % formatting in logging functions starlingx/proxy/views/identityV3.py:79: [C0209(consider-using-f-string), APIv1TokensV2.post] Formatting a regular string which could be a f-string starlingx/proxy/views/identityV3.py:84: [R1725(super-with-arguments), APIv1TokensV2.post] Consider using Python 3 style super() without arguments ************* Module starlingx.proxy.tests.test_service_proxy starlingx/proxy/tests/test_service_proxy.py:492: [C0301(line-too-long), ] Line too long (108/100) starlingx/proxy/tests/test_service_proxy.py:497: [C0301(line-too-long), ] Line too long (108/100) starlingx/proxy/tests/test_service_proxy.py:504: [C0301(line-too-long), ] Line too long (112/100) starlingx/proxy/tests/test_service_proxy.py:509: [C0301(line-too-long), ] Line too long (105/100) starlingx/proxy/tests/test_service_proxy.py:514: [C0301(line-too-long), ] Line too long (107/100) starlingx/proxy/tests/test_service_proxy.py:519: [C0301(line-too-long), ] Line too long (107/100) starlingx/proxy/tests/test_service_proxy.py:524: [C0301(line-too-long), ] Line too long (106/100) starlingx/proxy/tests/test_service_proxy.py:529: [C0301(line-too-long), ] Line too long (107/100) starlingx/proxy/tests/test_service_proxy.py:532: [C0301(line-too-long), ] Line too long (103/100) starlingx/proxy/tests/test_service_proxy.py:537: [C0301(line-too-long), ] Line too long (108/100) starlingx/proxy/tests/test_service_proxy.py:544: [C0301(line-too-long), ] Line too long (104/100) starlingx/proxy/tests/test_service_proxy.py:547: [C0301(line-too-long), ] Line too long (107/100) starlingx/proxy/tests/test_service_proxy.py:554: [C0301(line-too-long), ] Line too long (107/100) starlingx/proxy/tests/test_service_proxy.py:557: [C0301(line-too-long), ] Line too long (114/100) starlingx/proxy/tests/test_service_proxy.py:568: [C0301(line-too-long), ] Line too long (140/100) starlingx/proxy/tests/test_service_proxy.py:572: [C0301(line-too-long), ] Line too long (135/100) starlingx/proxy/tests/test_service_proxy.py:585: [C0301(line-too-long), ] Line too long (139/100) starlingx/proxy/tests/test_service_proxy.py:589: [C0301(line-too-long), ] Line too long (134/100) starlingx/proxy/tests/test_service_proxy.py:611: [C0301(line-too-long), ] Line too long (454/100) starlingx/proxy/tests/test_service_proxy.py:633: [C0301(line-too-long), ] Line too long (136/100) starlingx/proxy/tests/test_service_proxy.py:637: [C0301(line-too-long), ] Line too long (133/100) starlingx/proxy/tests/test_service_proxy.py:717: [C0301(line-too-long), ] Line too long (117/100) starlingx/proxy/tests/test_service_proxy.py:719: [C0301(line-too-long), ] Line too long (117/100) starlingx/proxy/tests/test_service_proxy.py:725: [C0301(line-too-long), ] Line too long (117/100) starlingx/proxy/tests/test_service_proxy.py:733: [C0301(line-too-long), ] Line too long (117/100) starlingx/proxy/tests/test_service_proxy.py:751: [C0301(line-too-long), ] Line too long (103/100) starlingx/proxy/tests/test_service_proxy.py:759: [C0301(line-too-long), ] Line too long (103/100) starlingx/proxy/tests/test_service_proxy.py:814: [C0301(line-too-long), ] Line too long (117/100) starlingx/proxy/tests/test_service_proxy.py:818: [C0301(line-too-long), ] Line too long (117/100) starlingx/proxy/tests/test_service_proxy.py:828: [C0301(line-too-long), ] Line too long (117/100) starlingx/proxy/tests/test_service_proxy.py:838: [C0301(line-too-long), ] Line too long (117/100) starlingx/proxy/tests/test_service_proxy.py:848: [C0301(line-too-long), ] Line too long (154/100) starlingx/proxy/tests/test_service_proxy.py:1: [C0114(missing-module-docstring), ] Missing module docstring starlingx/proxy/tests/test_service_proxy.py:691: [C0115(missing-class-docstring), MockResponse] Missing class docstring starlingx/proxy/tests/test_service_proxy.py:691: [R0205(useless-object-inheritance), MockResponse] Class 'MockResponse' inherits from object, can be safely removed from bases in python3 starlingx/proxy/tests/test_service_proxy.py:695: [C0116(missing-function-docstring), MockResponse.json] Missing function or method docstring starlingx/proxy/tests/test_service_proxy.py:691: [R0903(too-few-public-methods), MockResponse] Too few public methods (1/2) starlingx/proxy/tests/test_service_proxy.py:699: [C0115(missing-class-docstring), TestServiceProxy] Missing class docstring starlingx/proxy/tests/test_service_proxy.py:706: [C0116(missing-function-docstring), TestServiceProxy.test_get_token] Missing function or method docstring starlingx/proxy/tests/test_service_proxy.py:723: [C0116(missing-function-docstring), TestServiceProxy.test_unauthorized_access] Missing function or method docstring starlingx/proxy/tests/test_service_proxy.py:729: [C0116(missing-function-docstring), TestServiceProxy.test_expired_auth_token] Missing function or method docstring starlingx/proxy/tests/test_service_proxy.py:739: [C0116(missing-function-docstring), TestServiceProxy.test_request_without_servicetype] Missing function or method docstring starlingx/proxy/tests/test_service_proxy.py:769: [R0913(too-many-arguments), TestServiceProxy.test_crud_resources] Too many arguments (6/5) starlingx/proxy/tests/test_service_proxy.py:21: [C0411(wrong-import-order), ] standard import "import unittest" should be placed before "from django.test import Client" ************* Module starlingx.proxy.tests.test_identity_proxy starlingx/proxy/tests/test_identity_proxy.py:1: [C0114(missing-module-docstring), ] Missing module docstring starlingx/proxy/tests/test_identity_proxy.py:44: [C0103(invalid-name), ] Constant name "mock_token_id" doesn't conform to UPPER_CASE naming style starlingx/proxy/tests/test_identity_proxy.py:492: [C0115(missing-class-docstring), TestIdentityService] Missing class docstring starlingx/proxy/tests/test_identity_proxy.py:527: [W1505(deprecated-method), TestIdentityService.test_token] Using deprecated method failUnlessEqual() starlingx/proxy/tests/test_identity_proxy.py:537: [C0103(invalid-name), TestIdentityService.test_tokensV2] Method name "test_tokensV2" doesn't conform to snake_case naming style starlingx/proxy/tests/test_identity_proxy.py:565: [W1505(deprecated-method), TestIdentityService.test_tokensV2] Using deprecated method failUnlessEqual() starlingx/proxy/tests/test_identity_proxy.py:626: [W1505(deprecated-method), TestIdentityService.test_token_with_tenantname] Using deprecated method failUnlessEqual() starlingx/proxy/tests/test_identity_proxy.py:638: [C0103(invalid-name), TestIdentityService.test_tokensV2_with_tenantname] Method name "test_tokensV2_with_tenantname" doesn't conform to snake_case naming style starlingx/proxy/tests/test_identity_proxy.py:675: [W1505(deprecated-method), TestIdentityService.test_tokensV2_with_tenantname] Using deprecated method failUnlessEqual() starlingx/proxy/tests/test_identity_proxy.py:732: [W1505(deprecated-method), TestIdentityService.test_token_with_projectid] Using deprecated method failUnlessEqual() starlingx/proxy/tests/test_identity_proxy.py:18: [C0411(wrong-import-order), ] standard import "import unittest" should be placed before "import mock" ************* Module starlingx.swagger.views starlingx/swagger/views.py:1: [C0114(missing-module-docstring), ] Missing module docstring starlingx/swagger/views.py:24: [C0115(missing-class-docstring), SwaggerJsonView] Missing class docstring starlingx/swagger/views.py:33: [R1725(super-with-arguments), SwaggerJsonView.get] Consider using Python 3 style super() without arguments starlingx/swagger/views.py:35: [R1705(no-else-return), SwaggerJsonView.get] Unnecessary "else" after "return", remove the "else" and de-indent the code inside it starlingx/swagger/views.py:43: [C0115(missing-class-docstring), APIv1SwaggerJsonView] Missing class docstring starlingx/swagger/views.py:52: [R1725(super-with-arguments), APIv1SwaggerJsonView.get] Consider using Python 3 style super() without arguments starlingx/swagger/views.py:54: [R1705(no-else-return), APIv1SwaggerJsonView.get] Unnecessary "else" after "return", remove the "else" and de-indent the code inside it ************* Module starlingx.swagger.urls starlingx/swagger/urls.py:1: [C0114(missing-module-docstring), ] Missing module docstring ************* Module starlingx.swagger.tests starlingx/swagger/tests.py:1: [C0114(missing-module-docstring), ] Missing module docstring starlingx/swagger/tests.py:20: [C0115(missing-class-docstring), SampleViewTest] Missing class docstring starlingx/swagger/tests.py:27: [C0116(missing-function-docstring), SampleViewTest.test_sample] Missing function or method docstring ************* Module starlingx.samples.views starlingx/samples/views.py:1: [C0114(missing-module-docstring), ] Missing module docstring starlingx/samples/views.py:27: [W0622(redefined-builtin), SampleList.get] Redefining built-in 'format' starlingx/samples/views.py:27: [C0116(missing-function-docstring), SampleList.get] Missing function or method docstring starlingx/samples/views.py:27: [W0613(unused-argument), SampleList.get] Unused argument 'request' starlingx/samples/views.py:27: [W0613(unused-argument), SampleList.get] Unused argument 'format' starlingx/samples/views.py:27: [R0201(no-self-use), SampleList.get] Method could be a function ************* Module starlingx.samples.urls starlingx/samples/urls.py:1: [C0114(missing-module-docstring), ] Missing module docstring ************* Module starlingx.samples.tests starlingx/samples/tests.py:1: [C0114(missing-module-docstring), ] Missing module docstring starlingx/samples/tests.py:20: [C0115(missing-class-docstring), SampleViewTest] Missing class docstring starlingx/samples/tests.py:27: [C0116(missing-function-docstring), SampleViewTest.test_sample] Missing function or method docstring ************* Module starlingx.registration.tests.test_registration2 starlingx/registration/tests/test_registration2.py:109: [R1707(trailing-comma-tuple), ] Disallow trailing comma tuple starlingx/registration/tests/test_registration2.py:1: [C0114(missing-module-docstring), ] Missing module docstring starlingx/registration/tests/test_registration2.py:75: [C0115(missing-class-docstring), TestRegistration2] Missing class docstring starlingx/registration/tests/test_registration2.py:83: [C0116(missing-function-docstring), TestRegistration2.test_discover_flavors] Missing function or method docstring starlingx/registration/tests/test_registration2.py:93: [W0212(protected-access), TestRegistration2.test_discover_flavors] Access to a protected member _discover_flavors of a client class starlingx/registration/tests/test_registration2.py:93: [W0612(unused-variable), TestRegistration2.test_discover_flavors] Unused variable 'content' starlingx/registration/tests/test_registration2.py:100: [C0116(missing-function-docstring), TestRegistration2.test_discover_flavors_w_hpa_numa] Missing function or method docstring starlingx/registration/tests/test_registration2.py:111: [W0212(protected-access), TestRegistration2.test_discover_flavors_w_hpa_numa] Access to a protected member _discover_flavors of a client class starlingx/registration/tests/test_registration2.py:111: [W0612(unused-variable), TestRegistration2.test_discover_flavors_w_hpa_numa] Unused variable 'content' ************* Module starlingx.registration.tests.test_registration starlingx/registration/tests/test_registration.py:1: [C0114(missing-module-docstring), ] Missing module docstring starlingx/registration/tests/test_registration.py:207: [C0115(missing-class-docstring), TestRegistration] Missing class docstring starlingx/registration/tests/test_registration.py:209: [R1725(super-with-arguments), TestRegistration.setUp] Consider using Python 3 style super() without arguments starlingx/registration/tests/test_registration.py:213: [R1725(super-with-arguments), TestRegistration.tearDown] Consider using Python 3 style super() without arguments starlingx/registration/tests/test_registration.py:216: [R0201(no-self-use), TestRegistration._get_mock_response] Method could be a function starlingx/registration/tests/test_registration.py:224: [C0116(missing-function-docstring), TestRegistration.test_register_endpoint_successfully] Missing function or method docstring starlingx/registration/tests/test_registration.py:265: [C0116(missing-function-docstring), TestRegistration.test_fail_unregister_endpoint] Missing function or method docstring starlingx/registration/tests/test_registration.py:279: [C0116(missing-function-docstring), TestRegistration.test_register_hpa_cpupinning_successfully] Missing function or method docstring starlingx/registration/tests/test_registration.py:309: [C0116(missing-function-docstring), TestRegistration.test_register_hpa_topo_successfully] Missing function or method docstring starlingx/registration/tests/test_registration.py:339: [C0116(missing-function-docstring), TestRegistration.test_register_hpa_hugepage_successfully] Missing function or method docstring starlingx/registration/tests/test_registration.py:369: [C0116(missing-function-docstring), TestRegistration.test_register_hpa_numa_successfully] Missing function or method docstring starlingx/registration/tests/test_registration.py:399: [C0116(missing-function-docstring), TestRegistration.test_register_hpa_instructionset_successfully] Missing function or method docstring starlingx/registration/tests/test_registration.py:429: [C0116(missing-function-docstring), TestRegistration.test_register_pcipassthrough_successfully] Missing function or method docstring starlingx/registration/tests/test_registration.py:459: [C0116(missing-function-docstring), TestRegistration.test_register_sriovnic_successfully] Missing function or method docstring ************* Module starlingx.resource.tests.test_capacity starlingx/resource/tests/test_capacity.py:1: [C0114(missing-module-docstring), ] Missing module docstring starlingx/resource/tests/test_capacity.py:117: [C0115(missing-class-docstring), TestCapacity] Missing class docstring starlingx/resource/tests/test_capacity.py:118: [W0235(useless-super-delegation), TestCapacity.setUp] Useless super delegation in method 'setUp' starlingx/resource/tests/test_capacity.py:119: [R1725(super-with-arguments), TestCapacity.setUp] Consider using Python 3 style super() without arguments starlingx/resource/tests/test_capacity.py:121: [R0201(no-self-use), TestCapacity._get_mock_response] Method could be a function starlingx/resource/tests/test_capacity.py:129: [C0116(missing-function-docstring), TestCapacity.test_capacity_check_success] Missing function or method docstring starlingx/resource/tests/test_capacity.py:150: [C0116(missing-function-docstring), TestCapacity.test_capacity_check_nova_limits_failed] Missing function or method docstring starlingx/resource/tests/test_capacity.py:171: [C0116(missing-function-docstring), TestCapacity.test_capacity_check_nova_hypervisor_outofram] Missing function or method docstring starlingx/resource/tests/test_capacity.py:193: [C0116(missing-function-docstring), TestCapacity.test_capacity_check_nova_hypervisor_outofstorage] Missing function or method docstring starlingx/resource/tests/test_capacity.py:215: [C0116(missing-function-docstring), TestCapacity.test_capacity_check_nova_hypervisor_outofvcpu] Missing function or method docstring starlingx/resource/tests/test_capacity.py:237: [C0116(missing-function-docstring), TestCapacity.test_capacity_check_nova_limits_outofram] Missing function or method docstring starlingx/resource/tests/test_capacity.py:259: [C0116(missing-function-docstring), TestCapacity.test_capacity_check_volume_limits_outofstorage] Missing function or method docstring starlingx/resource/tests/test_capacity.py:16: [C0411(wrong-import-order), ] standard import "import json" should be placed before "import mock" ************* Module starlingx.resource.tests.tests_infra_workload starlingx/resource/tests/tests_infra_workload.py:96: [C0301(line-too-long), ] Line too long (105/100) starlingx/resource/tests/tests_infra_workload.py:148: [C0301(line-too-long), ] Line too long (105/100) starlingx/resource/tests/tests_infra_workload.py:189: [C0301(line-too-long), ] Line too long (102/100) starlingx/resource/tests/tests_infra_workload.py:278: [C0301(line-too-long), ] Line too long (106/100) starlingx/resource/tests/tests_infra_workload.py:1: [C0114(missing-module-docstring), ] Missing module docstring starlingx/resource/tests/tests_infra_workload.py:160: [C0103(invalid-name), InfraWorkloadTest.setUp] Attribute name "_InfraWorkload" doesn't conform to snake_case naming style starlingx/resource/tests/tests_infra_workload.py:158: [C0115(missing-class-docstring), InfraWorkloadTest] Missing class docstring starlingx/resource/tests/tests_infra_workload.py:161: [W0107(unnecessary-pass), InfraWorkloadTest.setUp] Unnecessary pass statement starlingx/resource/tests/tests_infra_workload.py:168: [C0103(invalid-name), InfraWorkloadTest.test_post] Argument name "mock_MultiCloudIdentityHelper" doesn't conform to snake_case naming style starlingx/resource/tests/tests_infra_workload.py:168: [C0103(invalid-name), InfraWorkloadTest.test_post] Argument name "mock_MultiCloudServiceHelper" doesn't conform to snake_case naming style starlingx/resource/tests/tests_infra_workload.py:168: [C0116(missing-function-docstring), InfraWorkloadTest.test_post] Missing function or method docstring starlingx/resource/tests/tests_infra_workload.py:185: [W0107(unnecessary-pass), InfraWorkloadTest.test_post] Unnecessary pass statement starlingx/resource/tests/tests_infra_workload.py:189: [C0103(invalid-name), InfraWorkloadTest.test_post_wo_oof_directive] Argument name "mock_MultiCloudIdentityHelper" doesn't conform to snake_case naming style starlingx/resource/tests/tests_infra_workload.py:189: [C0103(invalid-name), InfraWorkloadTest.test_post_wo_oof_directive] Argument name "mock_MultiCloudServiceHelper" doesn't conform to snake_case naming style starlingx/resource/tests/tests_infra_workload.py:189: [C0116(missing-function-docstring), InfraWorkloadTest.test_post_wo_oof_directive] Missing function or method docstring starlingx/resource/tests/tests_infra_workload.py:206: [W0107(unnecessary-pass), InfraWorkloadTest.test_post_wo_oof_directive] Unnecessary pass statement starlingx/resource/tests/tests_infra_workload.py:210: [C0103(invalid-name), InfraWorkloadTest.test_get] Argument name "mock_MultiCloudIdentityHelper" doesn't conform to snake_case naming style starlingx/resource/tests/tests_infra_workload.py:210: [C0103(invalid-name), InfraWorkloadTest.test_get] Argument name "mock_MultiCloudServiceHelper" doesn't conform to snake_case naming style starlingx/resource/tests/tests_infra_workload.py:210: [C0116(missing-function-docstring), InfraWorkloadTest.test_get] Missing function or method docstring starlingx/resource/tests/tests_infra_workload.py:227: [W0107(unnecessary-pass), InfraWorkloadTest.test_get] Unnecessary pass statement starlingx/resource/tests/tests_infra_workload.py:232: [C0103(invalid-name), APIv1InfraWorkloadTest.setUp] Attribute name "_APIv1InfraWorkload" doesn't conform to snake_case naming style starlingx/resource/tests/tests_infra_workload.py:230: [C0115(missing-class-docstring), APIv1InfraWorkloadTest] Missing class docstring starlingx/resource/tests/tests_infra_workload.py:233: [W0107(unnecessary-pass), APIv1InfraWorkloadTest.setUp] Unnecessary pass statement starlingx/resource/tests/tests_infra_workload.py:240: [C0103(invalid-name), APIv1InfraWorkloadTest.test_post] Argument name "mock_MultiCloudIdentityHelper" doesn't conform to snake_case naming style starlingx/resource/tests/tests_infra_workload.py:240: [C0103(invalid-name), APIv1InfraWorkloadTest.test_post] Argument name "mock_MultiCloudServiceHelper" doesn't conform to snake_case naming style starlingx/resource/tests/tests_infra_workload.py:240: [C0116(missing-function-docstring), APIv1InfraWorkloadTest.test_post] Missing function or method docstring starlingx/resource/tests/tests_infra_workload.py:258: [W0107(unnecessary-pass), APIv1InfraWorkloadTest.test_post] Unnecessary pass statement starlingx/resource/tests/tests_infra_workload.py:262: [C0103(invalid-name), APIv1InfraWorkloadTest.test_get] Argument name "mock_MultiCloudIdentityHelper" doesn't conform to snake_case naming style starlingx/resource/tests/tests_infra_workload.py:262: [C0103(invalid-name), APIv1InfraWorkloadTest.test_get] Argument name "mock_MultiCloudServiceHelper" doesn't conform to snake_case naming style starlingx/resource/tests/tests_infra_workload.py:262: [C0116(missing-function-docstring), APIv1InfraWorkloadTest.test_get] Missing function or method docstring starlingx/resource/tests/tests_infra_workload.py:280: [W0107(unnecessary-pass), APIv1InfraWorkloadTest.test_get] Unnecessary pass statement starlingx/resource/tests/tests_infra_workload.py:17: [C0411(wrong-import-order), ] standard import "import unittest" should be placed before "import mock" ************* Module starlingx.pub.config.config starlingx/pub/config/config.py:1: [R0801(duplicate-code), ] Similar lines in 2 files ==starlingx.proxy.tests.test_identity_proxy:[46:439] ==starlingx.proxy.tests.test_service_proxy:[45:438] "catalog": [ { "id": "99aefcc82a9246f98f8c281e61ffc754", "endpoints": [ { "region": "RegionOne", "url": "http://128.224.180.14:9696", "id": "39583c1508ad4b71b380570a745ee10a", "interface": "public", "region_id": "RegionOne" }, { "url": "http://192.168.204.2:9696", "region": "RegionOne", "id": "37e8d07ba24e4b8f93490c9daaba06e2", "interface": "internal", "region_id": "RegionOne" }, { "interface": "admin", "id": "7eee4ca98d444b1abb00a50d4b89373f", "region_id": "RegionOne", "region": "RegionOne", "url": "http://192.168.204.2:9696" } ], "name": "neutron", "type": "network" }, { "endpoints": [ { "interface": "public", "id": "10496738fa374295a4a88a63b81a1589", "region_id": "RegionOne", "url": "http://128.224.180.14:8777", "region": "RegionOne" }, { "id": "02dcb8c0bd464c4489fa0a0c9f28571f", "region_id": "RegionOne", "interface": "internal", "url": "http://192.168.204.2:8777", "region": "RegionOne" }, { "region_id": "RegionOne", "id": "8a73b0d3743b4e78b87614690f6e97fe", "interface": "admin", "url": "http://192.168.204.2:8777", "region": "RegionOne" } ], "id": "d131054da83f4c93833799747a0f4709", "name": "ceilometer", "type": "metering" }, { "type": "volumev2", "name": "cinderv2", "endpoints": [ { "id": "35a67ad36f0447d19c9662babf7cf609", "interface": "public", "region_id": "RegionOne", "url": "http://128.224.180.14:8776/v2/fcca3cc49d5e42caae15459e27103efc", "region": "RegionOne" }, { "region": "RegionOne", "url": "http://192.168.204.2:8776/v2/fcca3cc49d5e42caae15459e27103efc", "id": "c6ea42052268420fa2c8d351ee68c922", "interface": "internal", "region_id": "RegionOne" }, { "region_id": "RegionOne", "id": "91cb24853dc3450d847b0c286a2e44ea", "interface": "admin", "region": "RegionOne", "url": "http://192.168.204.2:8776/v2/fcca3cc49d5e42caae15459e27103efc" } ], "id": "40440057102440739c30be10a66bc5d1" }, { "name": "heat", "type": "orchestration", "id": "35300cce88db4bd4bb5a72ffe3b88b00", "endpoints": [ { "id": "58999d7b4a94439089ecfb2aca2d7f6c", "region_id": "RegionOne", "interface": "public", "region": "RegionOne", "url": "http://128.224.180.14:8004/v1/fcca3cc49d5e42caae15459e27103efc" }, { "url": "http://192.168.204.2:8004/v1/fcca3cc49d5e42caae15459e27103efc", "region": "RegionOne", "interface": "internal", "id": "1e0ee1a2aef84802b921d422372a567e", "region_id": "RegionOne" }, { "region": "RegionOne", "url": "http://192.168.204.2:8004/v1/fcca3cc49d5e42caae15459e27103efc", "id": "17661bf4859741b8a43a461dedad1871", "region_id": "RegionOne", "interface": "admin" } ] }, { "id": "08dc6912aea64c01925012c8a6df250a", "endpoints": [ { "id": "02792c4eed77486083f9b2e52d7b94b0", "region_id": "RegionOne", "interface": "public", "region": "RegionOne", "url": "http://128.224.180.14:5000/v3" }, { "id": "b6d5cad394b94309ae40d8de88059c5f", "region_id": "RegionOne", "interface": "internal", "url": "http://192.168.204.2:5000/v3", "region": "RegionOne" }, { "region": "RegionOne", "url": "http://192.168.204.2:35357/v3", "region_id": "RegionOne", "id": "1f18e2b7c6a34493b86853b65917888e", "interface": "admin" } ], "type": "identity", "name": "keystone" }, { "name": "vim", "type": "nfv", "endpoints": [ { "url": "http://128.224.180.14:4545", "region": "RegionOne", "id": "b33e317345e4480ab0786e4960995ec9", "interface": "public", "region_id": "RegionOne" }, { "region": "RegionOne", "url": "http://192.168.204.2:4545", "interface": "internal", "id": "03c85828d5bf432ab04831aa65ac9c52", "region_id": "RegionOne" }, { "id": "067983abb061476cb53a9e23a740d98f", "region_id": "RegionOne", "interface": "admin", "url": "http://192.168.204.2:4545", "region": "RegionOne" } ], "id": "01636c856fc84988b38b9117eb4a8021" }, { "name": "aodh", "type": "alarming", "id": "eb269151d0e44744a5b5449657bdc61c", "endpoints": [ { "id": "5bfc6c056e0244c493642eb82f6aaa11", "region_id": "RegionOne", "interface": "public", "url": "http://128.224.180.14:8042", "region": "RegionOne" }, { "region": "RegionOne", "url": "http://192.168.204.2:8042", "region_id": "RegionOne", "id": "ad69c7f76dce4089a195b9221ddbfb44", "interface": "internal" }, { "interface": "admin", "id": "3e8fcdfa7bcb40b0ae33c282adfcc9ff", "region_id": "RegionOne", "region": "RegionOne", "url": "http://192.168.204.2:8042" } ] }, { "name": "sysinv", "type": "platform", "endpoints": [ { "region": "RegionOne", "url": "http://128.224.180.14:6385/v1", "interface": "public", "id": "ba4ba8104590421b84672306c7e0e1f1", "region_id": "RegionOne" }, { "region": "RegionOne", "url": "http://192.168.204.2:6385/v1", "interface": "internal", "id": "a1cba34b163f496ab1acd6e9b51e39a2", "region_id": "RegionOne" }, { "url": "http://192.168.204.2:6385/v1", "region": "RegionOne", "id": "7c171210a2c841a6a52a5713e316d6fc", "interface": "admin", "region_id": "RegionOne" } ], "id": "256bbad671f946fea543e6bd71f98875" }, { "id": "e84665dcce814c05b4c5084964547534", "endpoints": [ { "url": "http://128.224.180.14:8000/v1/fcca3cc49d5e42caae15459e27103efc", "region": "RegionOne", "region_id": "RegionOne", "id": "b2ed1a23dc6944bea129c20861e0286a", "interface": "public" }, { "region": "RegionOne", "url": "http://192.168.204.2:8000/v1/fcca3cc49d5e42caae15459e27103efc", "interface": "internal", "id": "c4df7c6bc15646848eff35caf6ffea8e", "region_id": "RegionOne" }, { "region_id": "RegionOne", "id": "61b3dabb761443a89ab549f437c05ab0", "interface": "admin", "region": "RegionOne", "url": "http://192.168.204.2:8000/v1/fcca3cc49d5e42caae15459e27103efc" } ], "name": "heat-cfn", "type": "cloudformation" }, { "id": "823024424a014981a3721229491c0b1a", "endpoints": [ { "region": "RegionOne", "url": "http://128.224.180.14:8776/v1/fcca3cc49d5e42caae15459e27103efc", "region_id": "RegionOne", "id": "4a52e4e54ff440789f9a797919c4a0f2", "interface": "public" }, { "url": "http://192.168.204.2:8776/v1/fcca3cc49d5e42caae15459e27103efc", "region": "RegionOne", "id": "d4f9a84476524a39844f0fce63f1022e", "region_id": "RegionOne", "interface": "internal" }, { "region": "RegionOne", "url": "http://192.168.204.2:8776/v1/fcca3cc49d5e42caae15459e27103efc", "interface": "admin", "id": "81bf3810a8cc4697b68c6e93b5b8fe1f", "region_id": "RegionOne" } ], "type": "volume", "name": "cinder" }, { "name": "glance", "type": "image", "endpoints": [ { "id": "bd930aba961946cfb1401bada56d55e3", "region_id": "RegionOne", "interface": "public", "region": "RegionOne", "url": "http://128.224.180.14:9292" }, { "region": "RegionOne", "url": "http://192.168.204.2:9292", "id": "c11da585f0b141b99d1e18bb9a607beb", "region_id": "RegionOne", "interface": "internal" }, { "region": "RegionOne", "url": "http://192.168.204.2:9292", "id": "31b26c625a6a4fc7910dc5935155996e", "interface": "admin", "region_id": "RegionOne" } ], "id": "3b78cf039bc54d1bbb99ab3a4be15ef1" }, { "id": "b8701374bf254de1beee8a2c9ecc6b33", "endpoints": [ { "region_id": "RegionOne", "id": "f7407f330c8b4577b1d377d3fab9c2f8", "interface": "public", "region": "RegionOne", "url": "http://128.224.180.14:15491" }, { "url": "http://192.168.204.2:5491", "region": "RegionOne", "interface": "internal", "id": "0b37ce31a32f4b6fa5e1aa0d6c20680f", "region_id": "RegionOne" }, { "region_id": "RegionOne", "id": "7b87ea72adf245e1991e9e0df29b7ea9", "interface": "admin", "region": "RegionOne", "url": "http://192.168.204.2:5491" } ], "type": "patching", "name": "patching" }, { "id": "0ec0923a58f04ffeb6fced3bbc5c0947", "endpoints": [ { "url": "http://128.224.180.14:8774/v2.1/fcca3cc49d5e42caae15459e27103efc", "region": "RegionOne", "id": "13168b12da17451fb39630de67db168f", "region_id": "RegionOne", "interface": "public" }, { "id": "22dd6a44209f42d986b82e3aa6535f82", "interface": "internal", "region_id": "RegionOne", "region": "RegionOne", "url": "http://192.168.204.2:8774/v2.1/fcca3cc49d5e42caae15459e27103efc" }, { "region": "RegionOne", "url": "http://192.168.204.2:8774/v2.1/fcca3cc49d5e42caae15459e27103efc", "id": "552a991ae501492f841c1b6e2ff38fc5", "region_id": "RegionOne", "interface": "admin" } ], "type": "compute", "name": "nova" }, { "id": "50b219650f1049b097b3f14e8c70cdf8", "endpoints": [ { "interface": "public", "id": "5a4276cd6e4d43e883cf8640d4e13f7d", "region_id": "RegionOne", "region": "RegionOne", "url": "http://128.224.180.14:8776/v3/fcca3cc49d5e42caae15459e27103efc" }, { "region": "RegionOne", "url": "http://192.168.204.2:8776/v3/fcca3cc49d5e42caae15459e27103efc", "region_id": "RegionOne", "id": "c796df3ca5a84fc18db5b43a55283953", "interface": "internal" }, { "region_id": "RegionOne", "id": "cf55c2b34d0049ba835a2e48b9ad0e2e", "interface": "admin", "url": "http://192.168.204.2:8776/v3/fcca3cc49d5e42caae15459e27103efc", "region": "RegionOne" } ], "type": "volumev3", "name": "cinderv3" } starlingx/pub/config/config.py:1: [R0801(duplicate-code), ] Similar lines in 2 files ==starlingx.proxy.tests.test_identity_proxy:[443:465] ==starlingx.proxy.tests.test_service_proxy:[442:464] "body": { "token": { "is_domain": "false", "expires_at": "2017-08-27T14:19:15.000000Z", "issued_at": "2017-08-27T13:19:15.000000Z", "roles": [ { "id": "9fe2ff9ee4384b1894a90878d3e92bab", "name": "_member_" }, { "id": "b86a7e02935844b899d3d326f83c1b1f", "name": "admin" }, { "name": "heat_stack_owner", "id": "7de502236e954c8282de32e773fc052e" } ], "methods": [ "password" ], starlingx/pub/config/config.py:1: [R0801(duplicate-code), ] Similar lines in 2 files ==starlingx.proxy.tests.test_identity_proxy:[466:487] ==starlingx.proxy.tests.test_service_proxy:[465:486] "project": { "name": "admin", "id": "fcca3cc49d5e42caae15459e27103efc", "domain": { "id": "default", "name": "Default" } }, "user": { "name": "admin", "id": "9efb043c7629497a8028d7325ca1afb0", "domain": { "id": "default", "name": "Default" } }, "audit_ids": [ "_ZWT10DtSZKRXIvIcxun7w" ] } }, starlingx/pub/config/config.py:1: [R0801(duplicate-code), ] Similar lines in 2 files ==starlingx.registration.tests.test_registration2:[40:59] ==starlingx.registration.tests.test_registration:[28:47] } MOCK_GET_FLAVOR_RESPONSE = { "flavors": [ { "id": "1", "name": "micro", "vcpus": 1, "ram": "1MB", "disk": "1G", "OS-FLV-EXT-DATA:ephemeral": False, "swap": True, "os-flavor-access:is_public": True, "OS-FLV-DISABLED:disabled": True, "link": [{"href": 1}] }, { "id": "2", "name": "mini", "vcpus": 2, "ram": "2MB", "disk": "2G", "OS-FLV-EXT-DATA:ephemeral": True, "swap": False, "os-flavor-access:is_public": True, "OS-FLV-DISABLED:disabled": True }, ] } starlingx/pub/config/config.py:1: [R0801(duplicate-code), ] Similar lines in 2 files ==starlingx.requests.urls:[14:29] ==starlingx.requests.urlsV1:[14:29] from django.conf.urls import url from rest_framework.urlpatterns import format_suffix_patterns from newton_base.openoapi import network from newton_base.openoapi import subnet from newton_base.openoapi import image from newton_base.openoapi import volume from newton_base.openoapi import server from newton_base.openoapi import vport from newton_base.openoapi import limits from newton_base.openoapi import hosts from newton_base.openoapi import flavor URLPATTERNS = [ url(r'^networks(/(?P[0-9a-zA-Z_-]+))?', starlingx/pub/config/config.py:1: [R0801(duplicate-code), ] Similar lines in 2 files ==starlingx.proxy.tests.test_identity_proxy:[26:38] ==starlingx.proxy.tests.test_service_proxy:[25:37] "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": "Starlingx", "version": "starlingx", "vimId": "starlingx_RegionOne", 'cloud_owner': 'starlingx', starlingx/pub/config/config.py:1: [R0801(duplicate-code), ] Similar lines in 2 files ==starlingx.proxy.tests.test_service_proxy:[24:34] ==starlingx.registration.tests.test_registration2:[24:34] 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": "Starlingx", starlingx/pub/config/config.py:1: [R0801(duplicate-code), ] Similar lines in 2 files ==starlingx.samples.tests:[14:27] ==starlingx.swagger.tests:[14:27] import unittest from django.test import Client from rest_framework import status class SampleViewTest(unittest.TestCase): def setUp(self): self.client = Client() def tearDown(self): pass def test_sample(self): starlingx/pub/config/config.py:1: [R0801(duplicate-code), ] Similar lines in 2 files ==starlingx.proxy.tests.test_identity_proxy:[26:35] ==starlingx.registration.tests.test_registration2:[25:34] "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": "Starlingx", starlingx/pub/config/config.py:1: [R0801(duplicate-code), ] Similar lines in 2 files ==starlingx.registration.tests.test_registration:[215:223] ==starlingx.resource.tests.test_capacity:[120:128] def _get_mock_response(self, return_value=None): mock_response = mock.Mock(spec=test_base.MockResponse) mock_response.status_code = status.HTTP_200_OK mock_response.json.return_value = return_value return mock_response @mock.patch.object(VimDriverUtils, 'get_session') @mock.patch.object(VimDriverUtils, 'get_vim_info') starlingx/pub/config/config.py:1: [R0801(duplicate-code), ] Similar lines in 2 files ==starlingx.proxy.urls:[14:25] ==starlingx.proxy.urlsV1:[14:23] from django.conf.urls import url from rest_framework.urlpatterns import format_suffix_patterns from starlingx.proxy.views import identityV3 from starlingx.proxy.views import services from newton_base.proxy import dnsaasdelegate URLPATTERNS = [ # url(r'^identity/v2)$', # identityV2.Tokens.as_view()), url(r'^identity/v3/auth/tokens/?$', starlingx/pub/config/config.py:1: [R0801(duplicate-code), ] Similar lines in 2 files ==starlingx.proxy.tests.test_service_proxy:[35:42] ==starlingx.registration.tests.test_registration2:[35:42] "vimId": "starlingx_RegionOne", 'cloud_owner': 'starlingx', 'cloud_region_id': 'RegionOne', 'cloud_extra_info': '', 'insecure': 'True', } Report ====== 746 statements analysed. Statistics by type ------------------ +---------+-------+-----------+-----------+------------+---------+ |type |number |old number |difference |%documented |%badname | +=========+=======+===========+===========+============+=========+ |module |36 |NC |NC |41.67 |8.33 | +---------+-------+-----------+-----------+------------+---------+ |class |21 |NC |NC |14.29 |0.00 | +---------+-------+-----------+-----------+------------+---------+ |method |81 |NC |NC |61.73 |2.47 | +---------+-------+-----------+-----------+------------+---------+ |function |0 |NC |NC |0 |0 | +---------+-------+-----------+-----------+------------+---------+ External dependencies --------------------- :: common \-msapi | \-extsys (starlingx.proxy.views.identityV3,starlingx.proxy.views.services) | \-helper (starlingx.resource.tests.tests_infra_workload) \-utils \-restcall (starlingx.registration.tests.test_registration,starlingx.registration.tests.test_registration2) django \-conf (starlingx.proxy.views.identityV3) | \-urls (starlingx.proxy.urls,starlingx.proxy.urlsV1,starlingx.requests.urls,starlingx.requests.urlsV1,starlingx.samples.urls,starlingx.swagger.urls,starlingx.urls) \-core | \-wsgi (starlingx.wsgi) \-test (starlingx.proxy.tests.test_identity_proxy,starlingx.proxy.tests.test_service_proxy,starlingx.registration.tests.test_registration2,starlingx.samples.tests,starlingx.swagger.tests) mock (starlingx.proxy.tests.test_identity_proxy,starlingx.proxy.tests.test_service_proxy,starlingx.registration.tests.test_registration,starlingx.resource.tests.test_capacity,starlingx.resource.tests.tests_infra_workload) newton_base \-openoapi | \-flavor (starlingx.requests.urls,starlingx.requests.urlsV1) | \-hosts (starlingx.requests.urls,starlingx.requests.urlsV1) | \-image (starlingx.requests.urls,starlingx.requests.urlsV1) | \-limits (starlingx.requests.urls,starlingx.requests.urlsV1) | \-network (starlingx.requests.urls,starlingx.requests.urlsV1) | \-server (starlingx.requests.urls,starlingx.requests.urlsV1) | \-subnet (starlingx.requests.urls,starlingx.requests.urlsV1) | \-tenants (starlingx.urls) | \-volume (starlingx.requests.urls,starlingx.requests.urlsV1) | \-vport (starlingx.requests.urls,starlingx.requests.urlsV1) \-proxy | \-dnsaasdelegate (starlingx.proxy.urls,starlingx.proxy.urlsV1) | \-identityV3 (starlingx.proxy.views.identityV3) | \-services (starlingx.proxy.views.services) \-resource | \-infra_workload (starlingx.resource.tests.tests_infra_workload) \-swagger | \-views (starlingx.swagger.views) \-tests | \-mock_info (starlingx.proxy.tests.test_identity_proxy,starlingx.registration.tests.test_registration,starlingx.resource.tests.test_capacity) | \-test_base (starlingx.registration.tests.test_registration,starlingx.registration.tests.test_registration2,starlingx.resource.tests.test_capacity) \-util (starlingx.proxy.tests.test_identity_proxy,starlingx.proxy.tests.test_service_proxy,starlingx.registration.tests.test_registration,starlingx.resource.tests.test_capacity) rest_framework \-response (starlingx.samples.views,starlingx.swagger.views) \-status (starlingx.proxy.tests.test_identity_proxy,starlingx.proxy.tests.test_service_proxy,starlingx.registration.tests.test_registration,starlingx.registration.tests.test_registration2,starlingx.resource.tests.test_capacity,starlingx.resource.tests.tests_infra_workload,starlingx.samples.tests,starlingx.swagger.tests) \-urlpatterns (starlingx.proxy.urls,starlingx.proxy.urlsV1,starlingx.requests.urls,starlingx.requests.urlsV1,starlingx.samples.urls,starlingx.swagger.urls) \-views (starlingx.samples.views) starlingx_base \-registration \-registration (starlingx.registration.tests.test_registration2) yaml (starlingx.settings) Raw metrics ----------- +----------+-------+------+---------+-----------+ |type |number |% |previous |difference | +==========+=======+======+=========+===========+ |code |1745 |44.48 |NC |NC | +----------+-------+------+---------+-----------+ |docstring |1216 |31.00 |NC |NC | +----------+-------+------+---------+-----------+ |comment |554 |14.12 |NC |NC | +----------+-------+------+---------+-----------+ |empty |408 |10.40 |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 |161 |NC |NC | +-----------+-------+---------+-----------+ |refactor |63 |NC |NC | +-----------+-------+---------+-----------+ |warning |83 |NC |NC | +-----------+-------+---------+-----------+ |error |0 |NC |NC | +-----------+-------+---------+-----------+ Messages -------- +---------------------------+------------+ |message id |occurrences | +===========================+============+ |arguments-renamed |40 | +---------------------------+------------+ |line-too-long |39 | +---------------------------+------------+ |missing-function-docstring |31 | +---------------------------+------------+ |super-with-arguments |30 | +---------------------------+------------+ |consider-using-f-string |24 | +---------------------------+------------+ |missing-module-docstring |21 | +---------------------------+------------+ |invalid-name |19 | +---------------------------+------------+ |missing-class-docstring |18 | +---------------------------+------------+ |logging-not-lazy |18 | +---------------------------+------------+ |too-many-arguments |13 | +---------------------------+------------+ |duplicate-code |12 | +---------------------------+------------+ |wrong-import-order |7 | +---------------------------+------------+ |unnecessary-pass |7 | +---------------------------+------------+ |useless-super-delegation |5 | +---------------------------+------------+ |deprecated-method |5 | +---------------------------+------------+ |no-self-use |3 | +---------------------------+------------+ |unused-variable |2 | +---------------------------+------------+ |unused-argument |2 | +---------------------------+------------+ |ungrouped-imports |2 | +---------------------------+------------+ |protected-access |2 | +---------------------------+------------+ |no-else-return |2 | +---------------------------+------------+ |useless-object-inheritance |1 | +---------------------------+------------+ |trailing-comma-tuple |1 | +---------------------------+------------+ |too-few-public-methods |1 | +---------------------------+------------+ |reimported |1 | +---------------------------+------------+ |redefined-builtin |1 | +---------------------------+------------+ ----------------------------------- Your code has been rated at 5.88/10 ___________________________________ summary ____________________________________ ERROR: py38: commands failed cov: commands succeeded pylint: commands succeeded /w/workspace/multicloud-openstack-starlingx-sonar/starlingx/venv-tox/lib/python3.6/site-packages/tox/config/__init__.py:692: UserWarning: conflicting basepython version (set 3.6, should be 3.8) for env 'py38';resolve conflict or set ignore_basepython_conflict testenv_config.envname, [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:07 min [INFO] Finished at: 2024-07-13T09:48:52Z [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (test script) on project multicloud-openstack-starlingx: Command execution failed. Process exited with an error: 1 (Exit value: 1) -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:exec (test script) on project multicloud-openstack-starlingx: Command execution failed. at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288) at org.apache.maven.cli.MavenCli.main (MavenCli.java:192) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:566) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356) Caused by: org.apache.maven.plugin.MojoExecutionException: Command execution failed. at org.codehaus.mojo.exec.ExecMojo.execute (ExecMojo.java:362) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288) at org.apache.maven.cli.MavenCli.main (MavenCli.java:192) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:566) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356) Caused by: org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) at org.apache.commons.exec.DefaultExecutor.executeInternal (DefaultExecutor.java:377) at org.apache.commons.exec.DefaultExecutor.execute (DefaultExecutor.java:160) at org.codehaus.mojo.exec.ExecMojo.executeCommandLine (ExecMojo.java:610) at org.codehaus.mojo.exec.ExecMojo.execute (ExecMojo.java:352) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:954) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288) at org.apache.maven.cli.MavenCli.main (MavenCli.java:192) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:566) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356) [ERROR] [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException 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-starlingx-sonar] $ /bin/bash /tmp/jenkins14715998923966363139.sh ---> sysstat.sh [multicloud-openstack-starlingx-sonar] $ /bin/bash /tmp/jenkins9444257585016090369.sh ---> package-listing.sh ++ facter osfamily ++ tr '[:upper:]' '[:lower:]' + OS_FAMILY=debian + workspace=/w/workspace/multicloud-openstack-starlingx-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-starlingx-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-starlingx-sonar ']' + mkdir -p /w/workspace/multicloud-openstack-starlingx-sonar/archives/ + cp -f /tmp/packages_diff.txt /tmp/packages_end.txt /tmp/packages_start.txt /w/workspace/multicloud-openstack-starlingx-sonar/archives/ [multicloud-openstack-starlingx-sonar] $ /bin/bash /tmp/jenkins8007618532628589659.sh ---> capture-instance-metadata.sh Setup pyenv: system 3.8.13 3.9.13 * 3.10.6 (set by /w/workspace/multicloud-openstack-starlingx-sonar/.python-version) lf-activate-venv(): INFO: Reuse venv:/tmp/venv-ibze from file:/tmp/.os_lf_venv lf-activate-venv(): INFO: Installing: lftools lf-activate-venv(): INFO: Adding /tmp/venv-ibze/bin to PATH INFO: Running in OpenStack, capturing instance metadata [multicloud-openstack-starlingx-sonar] $ /bin/bash /tmp/jenkins9071071403511893698.sh provisioning config files... copy managed file [jenkins-log-archives-settings] to file:/w/workspace/multicloud-openstack-starlingx-sonar@tmp/config902441175471109056tmp 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-starlingx-sonar] $ /bin/bash /tmp/jenkins9596123501995247301.sh ---> create-netrc.sh [multicloud-openstack-starlingx-sonar] $ /bin/bash /tmp/jenkins9540535176816382481.sh ---> python-tools-install.sh Setup pyenv: system 3.8.13 3.9.13 * 3.10.6 (set by /w/workspace/multicloud-openstack-starlingx-sonar/.python-version) lf-activate-venv(): INFO: Reuse venv:/tmp/venv-ibze from file:/tmp/.os_lf_venv lf-activate-venv(): INFO: Installing: lftools lf-activate-venv(): INFO: Adding /tmp/venv-ibze/bin to PATH [multicloud-openstack-starlingx-sonar] $ /bin/bash /tmp/jenkins8913102423154066166.sh ---> sudo-logs.sh Archiving 'sudo' log.. [multicloud-openstack-starlingx-sonar] $ /bin/bash /tmp/jenkins2846251351184607269.sh ---> job-cost.sh Setup pyenv: system 3.8.13 3.9.13 * 3.10.6 (set by /w/workspace/multicloud-openstack-starlingx-sonar/.python-version) lf-activate-venv(): INFO: Reuse venv:/tmp/venv-ibze from file:/tmp/.os_lf_venv lf-activate-venv(): INFO: Installing: zipp==1.1.0 python-openstackclient urllib3~=1.26.15 lf-activate-venv(): INFO: Adding /tmp/venv-ibze/bin to PATH INFO: No Stack... INFO: Retrieving Pricing Info for: v3-standard-4 INFO: Archiving Costs [multicloud-openstack-starlingx-sonar] $ /bin/bash -l /tmp/jenkins17630011763517293319.sh ---> logs-deploy.sh Setup pyenv: system 3.8.13 3.9.13 * 3.10.6 (set by /w/workspace/multicloud-openstack-starlingx-sonar/.python-version) lf-activate-venv(): INFO: Reuse venv:/tmp/venv-ibze from file:/tmp/.os_lf_venv lf-activate-venv(): INFO: Installing: lftools lf-activate-venv(): INFO: Adding /tmp/venv-ibze/bin to PATH INFO: Nexus URL https://nexus.onap.org path production/vex-yul-ecomp-jenkins-1/multicloud-openstack-starlingx-sonar/1810 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-23548 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: 2799.998 BogoMIPS: 5599.99 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.5G 69G 11% / tmpfs 7.9G 0 7.9G 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup /dev/vda15 105M 4.4M 100M 5% /boot/efi tmpfs 1.6G 0 1.6G 0% /run/user/1001 ---> free -m: total used free shared buff/cache available Mem: 16040 623 13009 0 2407 15086 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:08:18:8b brd ff:ff:ff:ff:ff:ff inet 10.30.106.179/23 brd 10.30.107.255 scope global dynamic ens3 valid_lft 86206sec preferred_lft 86206sec inet6 fe80::f816:3eff:fe08:188b/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-23548) 07/13/24 _x86_64_ (4 CPU) 09:46:16 LINUX RESTART (4 CPU) 09:47:02 tps rtps wtps bread/s bwrtn/s 09:48:01 143.25 27.40 115.84 1361.26 18258.74 09:49:01 117.91 2.68 115.23 99.03 21747.02 Average: 130.47 14.94 115.53 724.79 20017.68 09:47:02 kbmemfree kbavail kbmemused %memused kbbuffers kbcached kbcommit %commit kbactive kbinact kbdirty 09:48:01 13439420 15188684 2985548 18.18 74212 1865956 1198248 6.86 1077840 1671948 149080 09:49:01 13307756 15427432 3117212 18.98 125072 2144612 866760 4.96 913456 1905660 113252 Average: 13373588 15308058 3051380 18.58 99642 2005284 1032504 5.91 995648 1788804 131166 09:47:02 IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s %ifutil 09:48:01 ens3 163.67 122.28 1647.16 27.59 0.00 0.00 0.00 0.00 09:48:01 lo 1.36 1.36 0.16 0.16 0.00 0.00 0.00 0.00 09:49:01 ens3 55.98 35.79 290.75 17.91 0.00 0.00 0.00 0.00 09:49:01 lo 2.10 2.10 0.19 0.19 0.00 0.00 0.00 0.00 Average: ens3 109.37 78.67 963.20 22.71 0.00 0.00 0.00 0.00 Average: lo 1.73 1.73 0.18 0.18 0.00 0.00 0.00 0.00 ---> sar -P ALL: Linux 4.15.0-194-generic (prd-ubuntu1804-builder-4c-4g-23548) 07/13/24 _x86_64_ (4 CPU) 09:46:16 LINUX RESTART (4 CPU) 09:47:02 CPU %user %nice %system %iowait %steal %idle 09:48:01 all 24.81 0.00 2.10 3.69 0.07 69.33 09:48:01 0 20.35 0.00 1.31 0.85 0.05 77.44 09:48:01 1 23.12 0.00 2.57 10.90 0.09 63.32 09:48:01 2 36.65 0.00 2.93 2.82 0.05 57.55 09:48:01 3 19.08 0.00 1.54 0.20 0.07 79.11 09:49:01 all 24.10 0.00 1.71 1.98 0.05 72.16 09:49:01 0 6.23 0.00 0.69 0.02 0.03 93.03 09:49:01 1 53.69 0.00 3.15 1.72 0.07 41.37 09:49:01 2 22.41 0.00 1.82 3.27 0.05 72.45 09:49:01 3 14.02 0.00 1.22 2.95 0.05 81.77 Average: all 24.45 0.00 1.90 2.83 0.06 70.76 Average: 0 13.24 0.00 0.99 0.43 0.04 85.30 Average: 1 38.56 0.00 2.87 6.26 0.08 52.24 Average: 2 29.46 0.00 2.37 3.05 0.05 65.07 Average: 3 16.52 0.00 1.37 1.59 0.06 80.46