Console Output
[LCM-stage_2_master] Running shell script
+ runuser jenkins -c devops-stages/stage-test.sh
Launching tox
✔ OK black in 8.617 seconds
black create: /tmp/.tox/black
black installdeps: black==23.12.1
black installed: black==23.12.1,click==8.1.7,mypy-extensions==1.0.0,packaging==24.0,pathspec==0.12.1,platformdirs==4.2.0,tomli==2.0.1,typing_extensions==4.10.0
black run-test-pre: PYTHONHASHSEED='52520633'
black run-test: commands[0] | black --check --diff osm_lcm/
All done! ✨ 🍰 ✨
40 files would be left unchanged.
black run-test: commands[1] | black --check --diff setup.py
All done! ✨ 🍰 ✨
1 file would be left unchanged.
✔ OK flake8 in 12.48 seconds
flake8 create: /tmp/.tox/flake8
flake8 installdeps: flake8
flake8 develop-inst: /home/jenkins/workspace/LCM-stage_2_master
flake8 installed: flake8==7.0.0,mccabe==0.7.0,-e git+https://osm.etsi.org/gerrit/osm/LCM.git@9cd5345320bde874db53c9e5dabd9c6c871ccfdf#egg=osm_lcm,pycodestyle==2.11.1,pyflakes==3.2.0
flake8 run-test-pre: PYTHONHASHSEED='3893886173'
flake8 run-test: commands[0] | flake8 osm_lcm/ setup.py
✔ OK safety in 47.147 seconds
safety create: /tmp/.tox/safety
safety installdeps: -r/home/jenkins/workspace/LCM-stage_2_master/requirements.txt, safety
safety develop-inst: /home/jenkins/workspace/LCM-stage_2_master
safety installed: aiohttp==3.8.5,aiosignal==1.3.1,annotated-types==0.5.0,async-timeout==4.0.3,attrs==23.1.0,boltons==23.0.0,certifi==2024.2.2,charset-normalizer==3.2.0,checksumdir==1.2.0,click==8.1.7,config-man==0.0.4,dparse==0.6.3,face==20.1.1,frozenlist==1.4.0,glom==23.3.0,grpcio==1.58.0,grpcio-tools==1.48.1,grpclib==0.4.5,h2==4.1.0,hpack==4.0.0,hyperframe==6.0.1,idna==3.4,Jinja2==3.1.2,MarkupSafe==2.1.3,multidict==6.0.4,-e git+https://osm.etsi.org/gerrit/osm/LCM.git@9cd5345320bde874db53c9e5dabd9c6c871ccfdf#egg=osm_lcm,packaging==21.3,protobuf==3.20.3,pydantic==2.4.2,pydantic_core==2.10.1,pyparsing==3.1.2,PyYAML==6.0.1,requests==2.31.0,ruamel.yaml==0.18.6,ruamel.yaml.clib==0.2.8,safety==2.3.5,tomli==2.0.1,typing_extensions==4.8.0,urllib3==2.2.1,yarl==1.9.2
safety run-test-pre: PYTHONHASHSEED='3264819561'
safety run-test: commands[0] | - safety check --full-report
+==============================================================================+
/$$$$$$ /$$
/$$__ $$ | $$
/$$$$$$$ /$$$$$$ | $$ \__//$$$$$$ /$$$$$$ /$$ /$$
/$$_____/ |____ $$| $$$$ /$$__ $$|_ $$_/ | $$ | $$
| $$$$$$ /$$$$$$$| $$_/ | $$$$$$$$ | $$ | $$ | $$
\____ $$ /$$__ $$| $$ | $$_____/ | $$ /$$| $$ | $$
/$$$$$$$/| $$$$$$$| $$ | $$$$$$$ | $$$$/| $$$$$$$
|_______/ \_______/|__/ \_______/ \___/ \____ $$
/$$ | $$
| $$$$$$/
by pyup.io \______/
+==============================================================================+
[1mREPORT[0m
[31m[22m Safety is using PyUp's free open-source vulnerability database. This
data is 30 days old and limited. [0m
[31m For real-time enhanced vulnerability data, fix recommendations, severity
reporting, cybersecurity support, team and project policy management and more
sign up at https://pyup.io or email sales@pyup.io[0m
Safety [1mv2.3.5[0m is scanning for [1mVulnerabilities[0m[1m...[0m
[1m Scanning dependencies[0m in your [1menvironment:[0m
-> /home/jenkins/workspace/LCM-stage_2_master
-> /tmp/.tox/safety/lib/python3.10/site-packages
Using [1mnon-commercial database[0m
[1m Found and scanned 43 packages[0m
Timestamp [1m2024-03-21 22:15:35[0m
[1m 9[0m[1m vulnerabilities found[0m
[1m 0[0m[1m vulnerabilities ignored[0m
+==============================================================================+
[31m[1mVULNERABILITIES FOUND[0m
+==============================================================================+
[31m-> Vulnerability found in setuptools version 59.6.0
[0m[1m Vulnerability ID: [0m52495
[1m Affected spec: [0m<65.5.1
[1m ADVISORY: [0mSetuptools 65.5.1 includes a fix for CVE-2022-40897: Python
Packaging Authority (PyPA) setuptools before 65.5.1 allows remote attackers
to cause a denial of service via HTML in a crafted package or custom
PackageIndex page. There is a Regular Expression Denial of Service (ReDoS) in
package_index.py.https://pyup.io/posts/pyup-discovers-redos-vulnerabilities-
in-top-python-packages
[1m CVE-2022-40897[0m
[1m For more information, please visit
[0mhttps://data.safetycli.com/v/52495/f17[0m
[31m-> Vulnerability found in pip version 22.0.2
[0m[1m Vulnerability ID: [0m62044
[1m Affected spec: [0m<23.3
[1m ADVISORY: [0mPip 23.3 includes a fix for CVE-2023-5752: When installing
a package from a Mercurial VCS URL (ie "pip install hg+...") with pip prior
to v23.3, the specified Mercurial revision could be used to inject arbitrary
configuration options to the "hg clone" call (ie "--config"). Controlling the
Mercurial configuration can modify how and which repository is installed.
This vulnerability does not affect users who aren't installing from
Mercurial.https://github.com/pypa/pip/pull/12306
[1m CVE-2023-5752[0m
[1m For more information, please visit
[0mhttps://data.safetycli.com/v/62044/f17[0m
[31m-> Vulnerability found in aiohttp version 3.8.5
[0m[1m Vulnerability ID: [0m62582
[1m Affected spec: [0m<3.9.0
[1m ADVISORY: [0mAiohttp 3.9.0 includes a fix for CVE-2023-49081: Improper
validation made it possible for an attacker to modify the HTTP request (e.g.
to insert a new header) or create a new HTTP request if the attacker controls
the HTTP version. The vulnerability only occurs if the attacker can control
the HTTP version of the request.https://github.com/aio-
libs/aiohttp/security/advisories/GHSA-q3qx-c6g2-7pw2
[1m CVE-2023-49081[0m
[1m For more information, please visit
[0mhttps://data.safetycli.com/v/62582/f17[0m
[31m-> Vulnerability found in aiohttp version 3.8.5
[0m[1m Vulnerability ID: [0m62583
[1m Affected spec: [0m<3.9.0
[1m ADVISORY: [0mAffected versions of aiohttp are vulnerable to an Improper
Validation vulnerability. It is possible for an attacker to modify the HTTP
request (e.g. insert a new header) or even create a new HTTP request if the
attacker controls the HTTP method. The vulnerability occurs only if the
attacker can control the HTTP method (GET, POST etc.) of the request. If the
attacker can control the HTTP version of the request it will be able to
modify the request (request smuggling).
[1m CVE-2023-49082[0m
[1m For more information, please visit
[0mhttps://data.safetycli.com/v/62583/f17[0m
[31m-> Vulnerability found in aiohttp version 3.8.5
[0m[1m Vulnerability ID: [0m64644
[1m Affected spec: [0m<3.9.1
[1m ADVISORY: [0mThe aiohttp versions minor than 3.9. has a vulnerability
that affects the Python HTTP parser used in the aiohttp library. It allows
for minor differences in allowable character sets, which could lead to robust
frame boundary matching of proxies to protect against the injection of
additional requests. The vulnerability also allows exceptions during
validation that aren't handled consistently with other malformed inputs.
[1m CVE-2024-23829[0m
[1m For more information, please visit
[0mhttps://data.safetycli.com/v/64644/f17[0m
[31m-> Vulnerability found in aiohttp version 3.8.5
[0m[1m Vulnerability ID: [0m64642
[1m Affected spec: [0m>1.0.5,<3.9.2
[1m ADVISORY: [0mThe vulnerability lies in the improper configuration of
static resource resolution when aiohttp is used as a web server. It occurs
when the follow_symlinks option is enabled without proper validation, leading
to directory traversal vulnerabilities. Unauthorized access to arbitrary
files on the system could potentially occur. The affected versions are
>1.0.5, and the issue was patched in version 3.9.2. As a workaround, it is
advised to disable the follow_symlinks option outside of a restricted local
development environment, especially in a server accepting requests from
remote users. Using a reverse proxy server to handle static resources is also
recommended.https://github.com/aio-
libs/aiohttp/commit/1c335944d6a8b1298baf179b7c0b3069f10c514b
[1m CVE-2024-23334[0m
[1m For more information, please visit
[0mhttps://data.safetycli.com/v/64642/f17[0m
[31m-> Vulnerability found in aiohttp version 3.8.5
[0m[1m Vulnerability ID: [0m62326
[1m Affected spec: [0m<3.8.6
[1m ADVISORY: [0mAiohttp 3.8.6 includes a fix for CVE-2023-47627: The HTTP
parser in AIOHTTP has numerous problems with header parsing, which could lead
to request smuggling. This parser is only used when AIOHTTP_NO_EXTENSIONS is
enabled (or not using a prebuilt wheel).https://github.com/aio-
libs/aiohttp/security/advisories/GHSA-gfw2-4jvh-wgfg
[1m CVE-2023-47627[0m
[1m For more information, please visit
[0mhttps://data.safetycli.com/v/62326/f17[0m
[31m-> Vulnerability found in jinja2 version 3.1.2
[0m[1m Vulnerability ID: [0m64227
[1m Affected spec: [0m<3.1.3
[1m ADVISORY: [0mJinja2 before 3.1.3 is affected by a Cross-Site Scripting
vulnerability. Special placeholders in the template allow writing code
similar to Python syntax. It is possible to inject arbitrary HTML attributes
into the rendered HTML template. The Jinja 'xmlattr' filter can be abused to
inject arbitrary HTML attribute keys and values, bypassing the auto escaping
mechanism and potentially leading to XSS. It may also be possible to bypass
attribute validation checks if they are blacklist-based.
[1m CVE-2024-22195[0m
[1m For more information, please visit
[0mhttps://data.safetycli.com/v/64227/f17[0m
[31m-> Vulnerability found in wheel version 0.37.1
[0m[1m Vulnerability ID: [0m51499
[1m Affected spec: [0m<0.38.1
[1m ADVISORY: [0mWheel 0.38.1 includes a fix for CVE-2022-40898: An issue
discovered in Python Packaging Authority (PyPA) Wheel 0.37.1 and earlier
allows remote attackers to cause a denial of service via attacker controlled
input to wheel cli.https://pyup.io/posts/pyup-discovers-redos-
vulnerabilities-in-top-python-packages
[1m CVE-2022-40898[0m
[1m For more information, please visit
[0mhttps://data.safetycli.com/v/51499/f17[0m
Scan was completed. 9 vulnerabilities were found.
+==============================================================================+
[32m[1m REMEDIATIONS[0m
9 vulnerabilities were found in 5 packages. For detailed remediation & fix
recommendations, upgrade to a commercial license.
+==============================================================================+
[31m[22m Safety is using PyUp's free open-source vulnerability database. This
data is 30 days old and limited. [0m
[31m For real-time enhanced vulnerability data, fix recommendations, severity
reporting, cybersecurity support, team and project policy management and more
sign up at https://pyup.io or email sales@pyup.io[0m
+==============================================================================+[0m
✔ OK pylint in 2 minutes, 15.889 seconds
pylint create: /tmp/.tox/pylint
pylint installdeps: -r/home/jenkins/workspace/LCM-stage_2_master/requirements.txt, -r/home/jenkins/workspace/LCM-stage_2_master/requirements-dev.txt, -r/home/jenkins/workspace/LCM-stage_2_master/requirements-test.txt, pylint
pylint develop-inst: /home/jenkins/workspace/LCM-stage_2_master
pylint installed: aiohttp==3.8.5,aiokafka==0.8.1,aiosignal==1.3.1,annotated-types==0.5.0,astroid==3.1.0,async-timeout==4.0.3,asynctest==0.13.0,attrs==23.1.0,bcrypt==4.0.1,boltons==23.0.0,cachetools==5.3.1,certifi==2023.7.22,cffi==1.16.0,charset-normalizer==3.2.0,checksumdir==1.2.0,config-man==0.0.4,coverage==7.3.1,cryptography==41.0.4,dataclasses==0.6,dill==0.3.8,dnspython==2.4.2,face==20.1.1,frozenlist==1.4.0,glom==23.3.0,google-auth==2.17.3,grpcio==1.58.0,grpcio-tools==1.48.1,grpclib==0.4.5,h2==4.1.0,hpack==4.0.0,hyperframe==6.0.1,idna==3.4,isort==5.13.2,Jinja2==3.1.2,juju==2.9.44.0,jujubundlelib==0.5.7,kafka-python==2.0.2,kubernetes==26.1.0,macaroonbakery==1.3.1,MarkupSafe==2.1.3,mccabe==0.7.0,mock==5.1.0,motor==3.3.1,multidict==6.0.4,mypy-extensions==1.0.0,N2VC @ git+https://osm.etsi.org/gerrit/osm/N2VC.git@f5b7f4147a9d0ebff0a35de08ae9a9c22ee87de8,nose2==0.13.0,oauthlib==3.2.2,osm-common @ git+https://osm.etsi.org/gerrit/osm/common.git@a690b2ca4a6eeb821d3a3ba5c5e8dccf578018ff,-e git+https://osm.etsi.org/gerrit/osm/LCM.git@9cd5345320bde874db53c9e5dabd9c6c871ccfdf#egg=osm_lcm,packaging==23.1,paramiko==2.12.0,platformdirs==4.2.0,protobuf==3.20.3,pyasn1==0.5.0,pyasn1-modules==0.3.0,pycparser==2.21,pycryptodome==3.19.0,pydantic==2.4.2,pydantic_core==2.10.1,pylint==3.1.0,pymacaroons==0.13.0,pymongo==4.5.0,PyNaCl==1.5.0,pyRFC3339==1.1,python-dateutil==2.8.2,pytz==2023.3.post1,PyYAML==6.0.1,requests==2.31.0,requests-oauthlib==1.3.1,retrying-async==2.0.0,rsa==4.9,six==1.16.0,theblues==0.5.2,tomli==2.0.1,tomlkit==0.12.4,toposort==1.10,typing-inspect==0.9.0,typing_extensions==4.8.0,urllib3==2.0.5,websocket-client==1.6.3,websockets==11.0.3,yarl==1.9.2
pylint run-test-pre: PYTHONHASHSEED='94052637'
pylint run-test: commands[0] | pylint -E osm_lcm --extension-pkg-allow-list=pydantic
✔ OK cover in 3 minutes, 12.662 seconds
cover create: /tmp/.tox/cover
cover installdeps: -r/home/jenkins/workspace/LCM-stage_2_master/requirements.txt, -r/home/jenkins/workspace/LCM-stage_2_master/requirements-dev.txt, -r/home/jenkins/workspace/LCM-stage_2_master/requirements-test.txt
cover develop-inst: /home/jenkins/workspace/LCM-stage_2_master
cover installed: aiohttp==3.8.5,aiokafka==0.8.1,aiosignal==1.3.1,annotated-types==0.5.0,async-timeout==4.0.3,asynctest==0.13.0,attrs==23.1.0,bcrypt==4.0.1,boltons==23.0.0,cachetools==5.3.1,certifi==2023.7.22,cffi==1.16.0,charset-normalizer==3.2.0,checksumdir==1.2.0,config-man==0.0.4,coverage==7.3.1,cryptography==41.0.4,dataclasses==0.6,dnspython==2.4.2,face==20.1.1,frozenlist==1.4.0,glom==23.3.0,google-auth==2.17.3,grpcio==1.58.0,grpcio-tools==1.48.1,grpclib==0.4.5,h2==4.1.0,hpack==4.0.0,hyperframe==6.0.1,idna==3.4,Jinja2==3.1.2,juju==2.9.44.0,jujubundlelib==0.5.7,kafka-python==2.0.2,kubernetes==26.1.0,macaroonbakery==1.3.1,MarkupSafe==2.1.3,mock==5.1.0,motor==3.3.1,multidict==6.0.4,mypy-extensions==1.0.0,N2VC @ git+https://osm.etsi.org/gerrit/osm/N2VC.git@f5b7f4147a9d0ebff0a35de08ae9a9c22ee87de8,nose2==0.13.0,oauthlib==3.2.2,osm-common @ git+https://osm.etsi.org/gerrit/osm/common.git@a690b2ca4a6eeb821d3a3ba5c5e8dccf578018ff,-e git+https://osm.etsi.org/gerrit/osm/LCM.git@9cd5345320bde874db53c9e5dabd9c6c871ccfdf#egg=osm_lcm,packaging==23.1,paramiko==2.12.0,protobuf==3.20.3,pyasn1==0.5.0,pyasn1-modules==0.3.0,pycparser==2.21,pycryptodome==3.19.0,pydantic==2.4.2,pydantic_core==2.10.1,pymacaroons==0.13.0,pymongo==4.5.0,PyNaCl==1.5.0,pyRFC3339==1.1,python-dateutil==2.8.2,pytz==2023.3.post1,PyYAML==6.0.1,requests==2.31.0,requests-oauthlib==1.3.1,retrying-async==2.0.0,rsa==4.9,six==1.16.0,theblues==0.5.2,toposort==1.10,typing-inspect==0.9.0,typing_extensions==4.8.0,urllib3==2.0.5,websocket-client==1.6.3,websockets==11.0.3,yarl==1.9.2
cover run-test-pre: PYTHONHASHSEED='1615578836'
cover run-test: commands[0] | sh -c 'rm -f nosetests.xml'
cover run-test: commands[1] | coverage erase
cover run-test: commands[2] | nose2 -C --coverage osm_lcm
.....ERROR:lcm.vca:Task vca_create=id Failed with exception: failed
ERROR:lcm.vca:Task vca_create=id Cannot update database: database exception failed
..ERROR:lcm.vca:Task vca_delete=id Failed with exception: failed deleting
ERROR:lcm.vca:Task vca_delete=id Cannot update database: database exception failed
.ERROR:lcm.vca:Task vca_edit=id Cannot update database: database exception failed
.ERROR:lcm.vca:Task vca_edit=id Failed with exception: failed
..../tmp/.tox/cover/lib/python3.10/site-packages/pydantic/main.py:308: UserWarning: Pydantic serializer warnings:
Expected `list[dict[any, any]]` but got `dict` - serialized value may not be as expected
return self.__pydantic_serializer__.to_python(
.DEBUG:test_lcm_helm_conn:Initialize helm N2VC connector
DEBUG:test_lcm_helm_conn:initial vca_config: {'host': None, 'port': None, 'user': None, 'secret': None, 'cloud': None, 'k8s_cloud': None, 'helmpath': '/usr/local/bin/helm', 'helm3path': '/usr/local/bin/helm3', 'kubectlpath': '/usr/bin/kubectl', 'jujupath': None, 'public_key': None, 'ca_cert': None, 'api_proxy': None, 'apt_mirror': None, 'eegrpcinittimeout': None, 'eegrpctimeout': None, 'eegrpc_tls_enforce': False, 'eegrpc_pod_admission_policy': 'baseline', 'loglevel': 'DEBUG', 'logfile': None, 'ca_store': '/etc/ssl/certs/osm-ca.crt', 'client_cert_path': '/etc/ssl/lcm-client/tls.crt', 'client_key_path': '/etc/ssl/lcm-client/tls.key', 'kubectl_osm_namespace': 'osm', 'kubectl_osm_cluster_name': '_system-osm-k8s', 'helm_ee_service_port': 50050, 'helm_max_initial_retry_time': 600, 'helm_max_retry_time': 30, 'helm_ee_retry_delay': 10}
DEBUG:test_lcm_helm_conn:Initial retry time: 600
DEBUG:test_lcm_helm_conn:Retry time: 30
INFO:test_lcm_helm_conn:Helm N2VC connector initialized
INFO:test_lcm_helm_conn:create_execution_environment: namespace: testnamespace, artifact_path: helm_sample_charm, chart_model: {}, db_dict: helm_sample_charm, reuse_ee_id: None
DEBUG:test_lcm_helm_conn:install helm chart: /helm_sample_charm
.DEBUG:test_lcm_helm_conn:Initialize helm N2VC connector
DEBUG:test_lcm_helm_conn:initial vca_config: {'host': None, 'port': None, 'user': None, 'secret': None, 'cloud': None, 'k8s_cloud': None, 'helmpath': '/usr/local/bin/helm', 'helm3path': '/usr/local/bin/helm3', 'kubectlpath': '/usr/bin/kubectl', 'jujupath': None, 'public_key': None, 'ca_cert': None, 'api_proxy': None, 'apt_mirror': None, 'eegrpcinittimeout': None, 'eegrpctimeout': None, 'eegrpc_tls_enforce': False, 'eegrpc_pod_admission_policy': 'baseline', 'loglevel': 'DEBUG', 'logfile': None, 'ca_store': '/etc/ssl/certs/osm-ca.crt', 'client_cert_path': '/etc/ssl/lcm-client/tls.crt', 'client_key_path': '/etc/ssl/lcm-client/tls.key', 'kubectl_osm_namespace': 'osm', 'kubectl_osm_cluster_name': '_system-osm-k8s', 'helm_ee_service_port': 50050, 'helm_max_initial_retry_time': 600, 'helm_max_retry_time': 30, 'helm_ee_retry_delay': 10}
DEBUG:test_lcm_helm_conn:Initial retry time: 600
DEBUG:test_lcm_helm_conn:Retry time: 30
INFO:test_lcm_helm_conn:Helm N2VC connector initialized
INFO:test_lcm_helm_conn:ee_id: helm-v3:osm.helm_sample_charm_0001
INFO:test_lcm_helm_conn:ee_id: helm-v3:osm.helm_sample_charm_0001 deleted
.DEBUG:test_lcm_helm_conn:Initialize helm N2VC connector
DEBUG:test_lcm_helm_conn:initial vca_config: {'host': None, 'port': None, 'user': None, 'secret': None, 'cloud': None, 'k8s_cloud': None, 'helmpath': '/usr/local/bin/helm', 'helm3path': '/usr/local/bin/helm3', 'kubectlpath': '/usr/bin/kubectl', 'jujupath': None, 'public_key': None, 'ca_cert': None, 'api_proxy': None, 'apt_mirror': None, 'eegrpcinittimeout': None, 'eegrpctimeout': None, 'eegrpc_tls_enforce': False, 'eegrpc_pod_admission_policy': 'baseline', 'loglevel': 'DEBUG', 'logfile': None, 'ca_store': '/etc/ssl/certs/osm-ca.crt', 'client_cert_path': '/etc/ssl/lcm-client/tls.crt', 'client_key_path': '/etc/ssl/lcm-client/tls.key', 'kubectl_osm_namespace': 'osm', 'kubectl_osm_cluster_name': '_system-osm-k8s', 'helm_ee_service_port': 50050, 'helm_max_initial_retry_time': 600, 'helm_max_retry_time': 30, 'helm_ee_retry_delay': 10}
DEBUG:test_lcm_helm_conn:Initial retry time: 600
DEBUG:test_lcm_helm_conn:Retry time: 30
INFO:test_lcm_helm_conn:Helm N2VC connector initialized
DEBUG:test_lcm_helm_conn:Execute config primitive
INFO:test_lcm_helm_conn:exec primitive for ee_id : osm.helm_sample_charm_0001, primitive_name: config, params_dict: {'ssh-host-name': 'host1'}, db_dict: None
DEBUG:test_lcm_helm_conn:Executed config primitive ee_id_ osm.helm_sample_charm_0001, status: OK, message: CONFIG OK
.DEBUG:test_lcm_helm_conn:Initialize helm N2VC connector
DEBUG:test_lcm_helm_conn:initial vca_config: {'host': None, 'port': None, 'user': None, 'secret': None, 'cloud': None, 'k8s_cloud': None, 'helmpath': '/usr/local/bin/helm', 'helm3path': '/usr/local/bin/helm3', 'kubectlpath': '/usr/bin/kubectl', 'jujupath': None, 'public_key': None, 'ca_cert': None, 'api_proxy': None, 'apt_mirror': None, 'eegrpcinittimeout': None, 'eegrpctimeout': None, 'eegrpc_tls_enforce': False, 'eegrpc_pod_admission_policy': 'baseline', 'loglevel': 'DEBUG', 'logfile': None, 'ca_store': '/etc/ssl/certs/osm-ca.crt', 'client_cert_path': '/etc/ssl/lcm-client/tls.crt', 'client_key_path': '/etc/ssl/lcm-client/tls.key', 'kubectl_osm_namespace': 'osm', 'kubectl_osm_cluster_name': '_system-osm-k8s', 'helm_ee_service_port': 50050, 'helm_max_initial_retry_time': 600, 'helm_max_retry_time': 30, 'helm_ee_retry_delay': 10}
DEBUG:test_lcm_helm_conn:Initial retry time: 600
DEBUG:test_lcm_helm_conn:Retry time: 30
INFO:test_lcm_helm_conn:Helm N2VC connector initialized
INFO:test_lcm_helm_conn:exec primitive for ee_id : osm.helm_sample_charm_0001, primitive_name: sleep, params_dict: {}, db_dict: None
DEBUG:test_lcm_helm_conn:Executed primitive sleep ee_id_ osm.helm_sample_charm_0001, status: OK, message: test-ok
.DEBUG:test_lcm_helm_conn:Initialize helm N2VC connector
DEBUG:test_lcm_helm_conn:initial vca_config: {'host': None, 'port': None, 'user': None, 'secret': None, 'cloud': None, 'k8s_cloud': None, 'helmpath': '/usr/local/bin/helm', 'helm3path': '/usr/local/bin/helm3', 'kubectlpath': '/usr/bin/kubectl', 'jujupath': None, 'public_key': None, 'ca_cert': None, 'api_proxy': None, 'apt_mirror': None, 'eegrpcinittimeout': None, 'eegrpctimeout': None, 'eegrpc_tls_enforce': False, 'eegrpc_pod_admission_policy': 'baseline', 'loglevel': 'DEBUG', 'logfile': None, 'ca_store': '/etc/ssl/certs/osm-ca.crt', 'client_cert_path': '/etc/ssl/lcm-client/tls.crt', 'client_key_path': '/etc/ssl/lcm-client/tls.key', 'kubectl_osm_namespace': 'osm', 'kubectl_osm_cluster_name': '_system-osm-k8s', 'helm_ee_service_port': 50050, 'helm_max_initial_retry_time': 600, 'helm_max_retry_time': 30, 'helm_ee_retry_delay': 10}
DEBUG:test_lcm_helm_conn:Initial retry time: 600
DEBUG:test_lcm_helm_conn:Retry time: 30
INFO:test_lcm_helm_conn:Helm N2VC connector initialized
INFO:test_lcm_helm_conn:get_ee_ssh_public_key: ee_id: osm.helm_sample_charm_0001, db_dict: {}
...........................................CRITICAL:lcm:Loaded configuration:{'globalConfig': {'loglevel': 'DEBUG', 'logfile': None, 'nologging': False}, 'timeout': {'nsi_deploy': 7200, 'vca_on_error': 300, 'ns_deploy': 7200, 'ns_terminate': 1800, 'ns_heal': 1800, 'charm_delete': 600, 'primitive': 1800, 'ns_update': 1800, 'progress_primitive': 600, 'migrate': 1800, 'operate': 1800, 'verticalscale': 1800}, 'RO': {'host': 'ro', 'ng': True, 'port': 9090, 'uri': 'h', 'tenant': 'osm', 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.roclient'}, 'VCA': {'host': 'vca', 'port': 17070, 'user': 'admin', 'secret': 'secret', 'cloud': 'localhost', 'k8s_cloud': 'k8scloud', 'helmpath': '/usr/local/bin/helm', 'helm3path': '/usr/local/bin/helm3', 'kubectlpath': '/usr/bin/kubectl', 'jujupath': '/usr/local/bin/juju', 'public_key': None, 'ca_cert': None, 'api_proxy': None, 'apt_mirror': None, 'eegrpcinittimeout': None, 'eegrpctimeout': None, 'eegrpc_tls_enforce': False, 'eegrpc_pod_admission_policy': 'baseline', 'loglevel': 'DEBUG', 'logfile': None, 'ca_store': '/etc/ssl/certs/osm-ca.crt', 'client_cert_path': '/etc/ssl/lcm-client/tls.crt', 'client_key_path': '/etc/ssl/lcm-client/tls.key', 'kubectl_osm_namespace': 'osm', 'kubectl_osm_cluster_name': '_system-osm-k8s', 'helm_ee_service_port': 50050, 'helm_max_initial_retry_time': 600, 'helm_max_retry_time': 30, 'helm_ee_retry_delay': 10}, 'database': {'driver': 'memory', 'host': None, 'port': 27017, 'uri': None, 'name': 'osm', 'replicaset': None, 'user': None, 'password': None, 'commonkey': None, 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.db'}, 'storage': {'driver': 'local', 'path': '/tmp/storage', 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.fs', 'collection': None, 'uri': None}, 'message': {'driver': 'local', 'path': '/tmp/kafka', 'host': 'kafka', 'port': 9092, 'loglevel': 'DEBUG', 'logfile': None, 'group_id': 'lcm-server', 'logger_name': 'lcm.msg'}, 'tsdb': {'driver': 'prometheus', 'path': '/tmp/prometheus', 'uri': 'http://prometheus:9090/', 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.prometheus'}}
2024-03-21T22:17:46 CRITICAL lcm lcm.py:140 starting osm/lcm version 9.0.0.post162+g9cd5345 2020-04-08
CRITICAL:lcm:starting osm/lcm version 9.0.0.post162+g9cd5345 2020-04-08
.2024-03-21T22:17:46 CRITICAL lcm lcm.py:95 Loaded configuration:{'globalConfig': {'loglevel': 'DEBUG', 'logfile': None, 'nologging': False}, 'timeout': {'nsi_deploy': 7200, 'vca_on_error': 300, 'ns_deploy': 7200, 'ns_terminate': 1800, 'ns_heal': 1800, 'charm_delete': 600, 'primitive': 1800, 'ns_update': 1800, 'progress_primitive': 600, 'migrate': 1800, 'operate': 1800, 'verticalscale': 1800}, 'RO': {'host': 'ro', 'ng': True, 'port': 9090, 'uri': 'h', 'tenant': 'osm', 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.roclient'}, 'VCA': {'host': 'vca', 'port': 17070, 'user': 'admin', 'secret': 'secret', 'cloud': 'localhost', 'k8s_cloud': 'k8scloud', 'helmpath': '/usr/local/bin/helm', 'helm3path': '/usr/local/bin/helm3', 'kubectlpath': '/usr/bin/kubectl', 'jujupath': '/usr/local/bin/juju', 'public_key': None, 'ca_cert': None, 'api_proxy': None, 'apt_mirror': None, 'eegrpcinittimeout': None, 'eegrpctimeout': None, 'eegrpc_tls_enforce': False, 'eegrpc_pod_admission_policy': 'baseline', 'loglevel': 'DEBUG', 'logfile': None, 'ca_store': '/etc/ssl/certs/osm-ca.crt', 'client_cert_path': '/etc/ssl/lcm-client/tls.crt', 'client_key_path': '/etc/ssl/lcm-client/tls.key', 'kubectl_osm_namespace': 'osm', 'kubectl_osm_cluster_name': '_system-osm-k8s', 'helm_ee_service_port': 50050, 'helm_max_initial_retry_time': 600, 'helm_max_retry_time': 30, 'helm_ee_retry_delay': 10}, 'database': {'driver': 'memory', 'host': None, 'port': 27017, 'uri': None, 'name': 'osm', 'replicaset': None, 'user': None, 'password': None, 'commonkey': None, 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.db'}, 'storage': {'driver': 'local', 'path': '/tmp/storage', 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.fs', 'collection': None, 'uri': None}, 'message': {'driver': 'local', 'path': '/tmp/kafka', 'host': 'kafka', 'port': 9092, 'loglevel': 'DEBUG', 'logfile': None, 'group_id': 'lcm-server', 'logger_name': 'lcm.msg'}, 'tsdb': {'driver': 'prometheus', 'path': '/tmp/prometheus', 'uri': 'http://prometheus:9090/', 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.prometheus'}}
CRITICAL:lcm:Loaded configuration:{'globalConfig': {'loglevel': 'DEBUG', 'logfile': None, 'nologging': False}, 'timeout': {'nsi_deploy': 7200, 'vca_on_error': 300, 'ns_deploy': 7200, 'ns_terminate': 1800, 'ns_heal': 1800, 'charm_delete': 600, 'primitive': 1800, 'ns_update': 1800, 'progress_primitive': 600, 'migrate': 1800, 'operate': 1800, 'verticalscale': 1800}, 'RO': {'host': 'ro', 'ng': True, 'port': 9090, 'uri': 'h', 'tenant': 'osm', 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.roclient'}, 'VCA': {'host': 'vca', 'port': 17070, 'user': 'admin', 'secret': 'secret', 'cloud': 'localhost', 'k8s_cloud': 'k8scloud', 'helmpath': '/usr/local/bin/helm', 'helm3path': '/usr/local/bin/helm3', 'kubectlpath': '/usr/bin/kubectl', 'jujupath': '/usr/local/bin/juju', 'public_key': None, 'ca_cert': None, 'api_proxy': None, 'apt_mirror': None, 'eegrpcinittimeout': None, 'eegrpctimeout': None, 'eegrpc_tls_enforce': False, 'eegrpc_pod_admission_policy': 'baseline', 'loglevel': 'DEBUG', 'logfile': None, 'ca_store': '/etc/ssl/certs/osm-ca.crt', 'client_cert_path': '/etc/ssl/lcm-client/tls.crt', 'client_key_path': '/etc/ssl/lcm-client/tls.key', 'kubectl_osm_namespace': 'osm', 'kubectl_osm_cluster_name': '_system-osm-k8s', 'helm_ee_service_port': 50050, 'helm_max_initial_retry_time': 600, 'helm_max_retry_time': 30, 'helm_ee_retry_delay': 10}, 'database': {'driver': 'memory', 'host': None, 'port': 27017, 'uri': None, 'name': 'osm', 'replicaset': None, 'user': None, 'password': None, 'commonkey': None, 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.db'}, 'storage': {'driver': 'local', 'path': '/tmp/storage', 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.fs', 'collection': None, 'uri': None}, 'message': {'driver': 'local', 'path': '/tmp/kafka', 'host': 'kafka', 'port': 9092, 'loglevel': 'DEBUG', 'logfile': None, 'group_id': 'lcm-server', 'logger_name': 'lcm.msg'}, 'tsdb': {'driver': 'prometheus', 'path': '/tmp/prometheus', 'uri': 'http://prometheus:9090/', 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.prometheus'}}
2024-03-21T22:17:46 CRITICAL lcm lcm.py:140 starting osm/lcm version 9.0.0.post162+g9cd5345 2020-04-08
2024-03-21T22:17:46 CRITICAL lcm lcm.py:140 starting osm/lcm version 9.0.0.post162+g9cd5345 2020-04-08
CRITICAL:lcm:starting osm/lcm version 9.0.0.post162+g9cd5345 2020-04-08
/usr/lib/python3.10/unittest/case.py:549: RuntimeWarning: coroutine 'TestLcm.test_kafka_admin_topic_ping_command' was never awaited
method()
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
.2024-03-21T22:17:46 CRITICAL lcm lcm.py:95 Loaded configuration:{'globalConfig': {'loglevel': 'DEBUG', 'logfile': None, 'nologging': False}, 'timeout': {'nsi_deploy': 7200, 'vca_on_error': 300, 'ns_deploy': 7200, 'ns_terminate': 1800, 'ns_heal': 1800, 'charm_delete': 600, 'primitive': 1800, 'ns_update': 1800, 'progress_primitive': 600, 'migrate': 1800, 'operate': 1800, 'verticalscale': 1800}, 'RO': {'host': 'ro', 'ng': True, 'port': 9090, 'uri': 'h', 'tenant': 'osm', 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.roclient'}, 'VCA': {'host': 'vca', 'port': 17070, 'user': 'admin', 'secret': 'secret', 'cloud': 'localhost', 'k8s_cloud': 'k8scloud', 'helmpath': '/usr/local/bin/helm', 'helm3path': '/usr/local/bin/helm3', 'kubectlpath': '/usr/bin/kubectl', 'jujupath': '/usr/local/bin/juju', 'public_key': None, 'ca_cert': None, 'api_proxy': None, 'apt_mirror': None, 'eegrpcinittimeout': None, 'eegrpctimeout': None, 'eegrpc_tls_enforce': False, 'eegrpc_pod_admission_policy': 'baseline', 'loglevel': 'DEBUG', 'logfile': None, 'ca_store': '/etc/ssl/certs/osm-ca.crt', 'client_cert_path': '/etc/ssl/lcm-client/tls.crt', 'client_key_path': '/etc/ssl/lcm-client/tls.key', 'kubectl_osm_namespace': 'osm', 'kubectl_osm_cluster_name': '_system-osm-k8s', 'helm_ee_service_port': 50050, 'helm_max_initial_retry_time': 600, 'helm_max_retry_time': 30, 'helm_ee_retry_delay': 10}, 'database': {'driver': 'memory', 'host': None, 'port': 27017, 'uri': None, 'name': 'osm', 'replicaset': None, 'user': None, 'password': None, 'commonkey': None, 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.db'}, 'storage': {'driver': 'local', 'path': '/tmp/storage', 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.fs', 'collection': None, 'uri': None}, 'message': {'driver': 'local', 'path': '/tmp/kafka', 'host': 'kafka', 'port': 9092, 'loglevel': 'DEBUG', 'logfile': None, 'group_id': 'lcm-server', 'logger_name': 'lcm.msg'}, 'tsdb': {'driver': 'prometheus', 'path': '/tmp/prometheus', 'uri': 'http://prometheus:9090/', 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.prometheus'}}
2024-03-21T22:17:46 CRITICAL lcm lcm.py:95 Loaded configuration:{'globalConfig': {'loglevel': 'DEBUG', 'logfile': None, 'nologging': False}, 'timeout': {'nsi_deploy': 7200, 'vca_on_error': 300, 'ns_deploy': 7200, 'ns_terminate': 1800, 'ns_heal': 1800, 'charm_delete': 600, 'primitive': 1800, 'ns_update': 1800, 'progress_primitive': 600, 'migrate': 1800, 'operate': 1800, 'verticalscale': 1800}, 'RO': {'host': 'ro', 'ng': True, 'port': 9090, 'uri': 'h', 'tenant': 'osm', 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.roclient'}, 'VCA': {'host': 'vca', 'port': 17070, 'user': 'admin', 'secret': 'secret', 'cloud': 'localhost', 'k8s_cloud': 'k8scloud', 'helmpath': '/usr/local/bin/helm', 'helm3path': '/usr/local/bin/helm3', 'kubectlpath': '/usr/bin/kubectl', 'jujupath': '/usr/local/bin/juju', 'public_key': None, 'ca_cert': None, 'api_proxy': None, 'apt_mirror': None, 'eegrpcinittimeout': None, 'eegrpctimeout': None, 'eegrpc_tls_enforce': False, 'eegrpc_pod_admission_policy': 'baseline', 'loglevel': 'DEBUG', 'logfile': None, 'ca_store': '/etc/ssl/certs/osm-ca.crt', 'client_cert_path': '/etc/ssl/lcm-client/tls.crt', 'client_key_path': '/etc/ssl/lcm-client/tls.key', 'kubectl_osm_namespace': 'osm', 'kubectl_osm_cluster_name': '_system-osm-k8s', 'helm_ee_service_port': 50050, 'helm_max_initial_retry_time': 600, 'helm_max_retry_time': 30, 'helm_ee_retry_delay': 10}, 'database': {'driver': 'memory', 'host': None, 'port': 27017, 'uri': None, 'name': 'osm', 'replicaset': None, 'user': None, 'password': None, 'commonkey': None, 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.db'}, 'storage': {'driver': 'local', 'path': '/tmp/storage', 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.fs', 'collection': None, 'uri': None}, 'message': {'driver': 'local', 'path': '/tmp/kafka', 'host': 'kafka', 'port': 9092, 'loglevel': 'DEBUG', 'logfile': None, 'group_id': 'lcm-server', 'logger_name': 'lcm.msg'}, 'tsdb': {'driver': 'prometheus', 'path': '/tmp/prometheus', 'uri': 'http://prometheus:9090/', 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.prometheus'}}
CRITICAL:lcm:Loaded configuration:{'globalConfig': {'loglevel': 'DEBUG', 'logfile': None, 'nologging': False}, 'timeout': {'nsi_deploy': 7200, 'vca_on_error': 300, 'ns_deploy': 7200, 'ns_terminate': 1800, 'ns_heal': 1800, 'charm_delete': 600, 'primitive': 1800, 'ns_update': 1800, 'progress_primitive': 600, 'migrate': 1800, 'operate': 1800, 'verticalscale': 1800}, 'RO': {'host': 'ro', 'ng': True, 'port': 9090, 'uri': 'h', 'tenant': 'osm', 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.roclient'}, 'VCA': {'host': 'vca', 'port': 17070, 'user': 'admin', 'secret': 'secret', 'cloud': 'localhost', 'k8s_cloud': 'k8scloud', 'helmpath': '/usr/local/bin/helm', 'helm3path': '/usr/local/bin/helm3', 'kubectlpath': '/usr/bin/kubectl', 'jujupath': '/usr/local/bin/juju', 'public_key': None, 'ca_cert': None, 'api_proxy': None, 'apt_mirror': None, 'eegrpcinittimeout': None, 'eegrpctimeout': None, 'eegrpc_tls_enforce': False, 'eegrpc_pod_admission_policy': 'baseline', 'loglevel': 'DEBUG', 'logfile': None, 'ca_store': '/etc/ssl/certs/osm-ca.crt', 'client_cert_path': '/etc/ssl/lcm-client/tls.crt', 'client_key_path': '/etc/ssl/lcm-client/tls.key', 'kubectl_osm_namespace': 'osm', 'kubectl_osm_cluster_name': '_system-osm-k8s', 'helm_ee_service_port': 50050, 'helm_max_initial_retry_time': 600, 'helm_max_retry_time': 30, 'helm_ee_retry_delay': 10}, 'database': {'driver': 'memory', 'host': None, 'port': 27017, 'uri': None, 'name': 'osm', 'replicaset': None, 'user': None, 'password': None, 'commonkey': None, 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.db'}, 'storage': {'driver': 'local', 'path': '/tmp/storage', 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.fs', 'collection': None, 'uri': None}, 'message': {'driver': 'local', 'path': '/tmp/kafka', 'host': 'kafka', 'port': 9092, 'loglevel': 'DEBUG', 'logfile': None, 'group_id': 'lcm-server', 'logger_name': 'lcm.msg'}, 'tsdb': {'driver': 'prometheus', 'path': '/tmp/prometheus', 'uri': 'http://prometheus:9090/', 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.prometheus'}}
2024-03-21T22:17:47 CRITICAL lcm lcm.py:140 starting osm/lcm version 9.0.0.post162+g9cd5345 2020-04-08
2024-03-21T22:17:47 CRITICAL lcm lcm.py:140 starting osm/lcm version 9.0.0.post162+g9cd5345 2020-04-08
2024-03-21T22:17:47 CRITICAL lcm lcm.py:140 starting osm/lcm version 9.0.0.post162+g9cd5345 2020-04-08
CRITICAL:lcm:starting osm/lcm version 9.0.0.post162+g9cd5345 2020-04-08
/usr/lib/python3.10/unittest/case.py:549: RuntimeWarning: coroutine 'TestLcm.test_kafka_admin_topic_ping_command_wrong_worker_id' was never awaited
method()
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
.2024-03-21T22:17:47 CRITICAL lcm lcm.py:95 Loaded configuration:{'globalConfig': {'loglevel': 'DEBUG', 'logfile': None, 'nologging': False}, 'timeout': {'nsi_deploy': 7200, 'vca_on_error': 300, 'ns_deploy': 7200, 'ns_terminate': 1800, 'ns_heal': 1800, 'charm_delete': 600, 'primitive': 1800, 'ns_update': 1800, 'progress_primitive': 600, 'migrate': 1800, 'operate': 1800, 'verticalscale': 1800}, 'RO': {'host': 'ro', 'ng': True, 'port': 9090, 'uri': 'h', 'tenant': 'osm', 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.roclient'}, 'VCA': {'host': 'vca', 'port': 17070, 'user': 'admin', 'secret': 'secret', 'cloud': 'localhost', 'k8s_cloud': 'k8scloud', 'helmpath': '/usr/local/bin/helm', 'helm3path': '/usr/local/bin/helm3', 'kubectlpath': '/usr/bin/kubectl', 'jujupath': '/usr/local/bin/juju', 'public_key': None, 'ca_cert': None, 'api_proxy': None, 'apt_mirror': None, 'eegrpcinittimeout': None, 'eegrpctimeout': None, 'eegrpc_tls_enforce': False, 'eegrpc_pod_admission_policy': 'baseline', 'loglevel': 'DEBUG', 'logfile': None, 'ca_store': '/etc/ssl/certs/osm-ca.crt', 'client_cert_path': '/etc/ssl/lcm-client/tls.crt', 'client_key_path': '/etc/ssl/lcm-client/tls.key', 'kubectl_osm_namespace': 'osm', 'kubectl_osm_cluster_name': '_system-osm-k8s', 'helm_ee_service_port': 50050, 'helm_max_initial_retry_time': 600, 'helm_max_retry_time': 30, 'helm_ee_retry_delay': 10}, 'database': {'driver': 'memory', 'host': None, 'port': 27017, 'uri': None, 'name': 'osm', 'replicaset': None, 'user': None, 'password': None, 'commonkey': None, 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.db'}, 'storage': {'driver': 'local', 'path': '/tmp/storage', 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.fs', 'collection': None, 'uri': None}, 'message': {'driver': 'local', 'path': '/tmp/kafka', 'host': 'kafka', 'port': 9092, 'loglevel': 'DEBUG', 'logfile': None, 'group_id': 'lcm-server', 'logger_name': 'lcm.msg'}, 'tsdb': {'driver': 'prometheus', 'path': '/tmp/prometheus', 'uri': 'http://prometheus:9090/', 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.prometheus'}}
2024-03-21T22:17:47 CRITICAL lcm lcm.py:95 Loaded configuration:{'globalConfig': {'loglevel': 'DEBUG', 'logfile': None, 'nologging': False}, 'timeout': {'nsi_deploy': 7200, 'vca_on_error': 300, 'ns_deploy': 7200, 'ns_terminate': 1800, 'ns_heal': 1800, 'charm_delete': 600, 'primitive': 1800, 'ns_update': 1800, 'progress_primitive': 600, 'migrate': 1800, 'operate': 1800, 'verticalscale': 1800}, 'RO': {'host': 'ro', 'ng': True, 'port': 9090, 'uri': 'h', 'tenant': 'osm', 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.roclient'}, 'VCA': {'host': 'vca', 'port': 17070, 'user': 'admin', 'secret': 'secret', 'cloud': 'localhost', 'k8s_cloud': 'k8scloud', 'helmpath': '/usr/local/bin/helm', 'helm3path': '/usr/local/bin/helm3', 'kubectlpath': '/usr/bin/kubectl', 'jujupath': '/usr/local/bin/juju', 'public_key': None, 'ca_cert': None, 'api_proxy': None, 'apt_mirror': None, 'eegrpcinittimeout': None, 'eegrpctimeout': None, 'eegrpc_tls_enforce': False, 'eegrpc_pod_admission_policy': 'baseline', 'loglevel': 'DEBUG', 'logfile': None, 'ca_store': '/etc/ssl/certs/osm-ca.crt', 'client_cert_path': '/etc/ssl/lcm-client/tls.crt', 'client_key_path': '/etc/ssl/lcm-client/tls.key', 'kubectl_osm_namespace': 'osm', 'kubectl_osm_cluster_name': '_system-osm-k8s', 'helm_ee_service_port': 50050, 'helm_max_initial_retry_time': 600, 'helm_max_retry_time': 30, 'helm_ee_retry_delay': 10}, 'database': {'driver': 'memory', 'host': None, 'port': 27017, 'uri': None, 'name': 'osm', 'replicaset': None, 'user': None, 'password': None, 'commonkey': None, 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.db'}, 'storage': {'driver': 'local', 'path': '/tmp/storage', 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.fs', 'collection': None, 'uri': None}, 'message': {'driver': 'local', 'path': '/tmp/kafka', 'host': 'kafka', 'port': 9092, 'loglevel': 'DEBUG', 'logfile': None, 'group_id': 'lcm-server', 'logger_name': 'lcm.msg'}, 'tsdb': {'driver': 'prometheus', 'path': '/tmp/prometheus', 'uri': 'http://prometheus:9090/', 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.prometheus'}}
2024-03-21T22:17:47 CRITICAL lcm lcm.py:95 Loaded configuration:{'globalConfig': {'loglevel': 'DEBUG', 'logfile': None, 'nologging': False}, 'timeout': {'nsi_deploy': 7200, 'vca_on_error': 300, 'ns_deploy': 7200, 'ns_terminate': 1800, 'ns_heal': 1800, 'charm_delete': 600, 'primitive': 1800, 'ns_update': 1800, 'progress_primitive': 600, 'migrate': 1800, 'operate': 1800, 'verticalscale': 1800}, 'RO': {'host': 'ro', 'ng': True, 'port': 9090, 'uri': 'h', 'tenant': 'osm', 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.roclient'}, 'VCA': {'host': 'vca', 'port': 17070, 'user': 'admin', 'secret': 'secret', 'cloud': 'localhost', 'k8s_cloud': 'k8scloud', 'helmpath': '/usr/local/bin/helm', 'helm3path': '/usr/local/bin/helm3', 'kubectlpath': '/usr/bin/kubectl', 'jujupath': '/usr/local/bin/juju', 'public_key': None, 'ca_cert': None, 'api_proxy': None, 'apt_mirror': None, 'eegrpcinittimeout': None, 'eegrpctimeout': None, 'eegrpc_tls_enforce': False, 'eegrpc_pod_admission_policy': 'baseline', 'loglevel': 'DEBUG', 'logfile': None, 'ca_store': '/etc/ssl/certs/osm-ca.crt', 'client_cert_path': '/etc/ssl/lcm-client/tls.crt', 'client_key_path': '/etc/ssl/lcm-client/tls.key', 'kubectl_osm_namespace': 'osm', 'kubectl_osm_cluster_name': '_system-osm-k8s', 'helm_ee_service_port': 50050, 'helm_max_initial_retry_time': 600, 'helm_max_retry_time': 30, 'helm_ee_retry_delay': 10}, 'database': {'driver': 'memory', 'host': None, 'port': 27017, 'uri': None, 'name': 'osm', 'replicaset': None, 'user': None, 'password': None, 'commonkey': None, 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.db'}, 'storage': {'driver': 'local', 'path': '/tmp/storage', 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.fs', 'collection': None, 'uri': None}, 'message': {'driver': 'local', 'path': '/tmp/kafka', 'host': 'kafka', 'port': 9092, 'loglevel': 'DEBUG', 'logfile': None, 'group_id': 'lcm-server', 'logger_name': 'lcm.msg'}, 'tsdb': {'driver': 'prometheus', 'path': '/tmp/prometheus', 'uri': 'http://prometheus:9090/', 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.prometheus'}}
CRITICAL:lcm:Loaded configuration:{'globalConfig': {'loglevel': 'DEBUG', 'logfile': None, 'nologging': False}, 'timeout': {'nsi_deploy': 7200, 'vca_on_error': 300, 'ns_deploy': 7200, 'ns_terminate': 1800, 'ns_heal': 1800, 'charm_delete': 600, 'primitive': 1800, 'ns_update': 1800, 'progress_primitive': 600, 'migrate': 1800, 'operate': 1800, 'verticalscale': 1800}, 'RO': {'host': 'ro', 'ng': True, 'port': 9090, 'uri': 'h', 'tenant': 'osm', 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.roclient'}, 'VCA': {'host': 'vca', 'port': 17070, 'user': 'admin', 'secret': 'secret', 'cloud': 'localhost', 'k8s_cloud': 'k8scloud', 'helmpath': '/usr/local/bin/helm', 'helm3path': '/usr/local/bin/helm3', 'kubectlpath': '/usr/bin/kubectl', 'jujupath': '/usr/local/bin/juju', 'public_key': None, 'ca_cert': None, 'api_proxy': None, 'apt_mirror': None, 'eegrpcinittimeout': None, 'eegrpctimeout': None, 'eegrpc_tls_enforce': False, 'eegrpc_pod_admission_policy': 'baseline', 'loglevel': 'DEBUG', 'logfile': None, 'ca_store': '/etc/ssl/certs/osm-ca.crt', 'client_cert_path': '/etc/ssl/lcm-client/tls.crt', 'client_key_path': '/etc/ssl/lcm-client/tls.key', 'kubectl_osm_namespace': 'osm', 'kubectl_osm_cluster_name': '_system-osm-k8s', 'helm_ee_service_port': 50050, 'helm_max_initial_retry_time': 600, 'helm_max_retry_time': 30, 'helm_ee_retry_delay': 10}, 'database': {'driver': 'memory', 'host': None, 'port': 27017, 'uri': None, 'name': 'osm', 'replicaset': None, 'user': None, 'password': None, 'commonkey': None, 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.db'}, 'storage': {'driver': 'local', 'path': '/tmp/storage', 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.fs', 'collection': None, 'uri': None}, 'message': {'driver': 'local', 'path': '/tmp/kafka', 'host': 'kafka', 'port': 9092, 'loglevel': 'DEBUG', 'logfile': None, 'group_id': 'lcm-server', 'logger_name': 'lcm.msg'}, 'tsdb': {'driver': 'prometheus', 'path': '/tmp/prometheus', 'uri': 'http://prometheus:9090/', 'loglevel': 'DEBUG', 'logfile': None, 'logger_name': 'lcm.prometheus'}}
2024-03-21T22:17:47 CRITICAL lcm lcm.py:140 starting osm/lcm version 9.0.0.post162+g9cd5345 2020-04-08
2024-03-21T22:17:47 CRITICAL lcm lcm.py:140 starting osm/lcm version 9.0.0.post162+g9cd5345 2020-04-08
2024-03-21T22:17:47 CRITICAL lcm lcm.py:140 starting osm/lcm version 9.0.0.post162+g9cd5345 2020-04-08
2024-03-21T22:17:47 CRITICAL lcm lcm.py:140 starting osm/lcm version 9.0.0.post162+g9cd5345 2020-04-08
CRITICAL:lcm:starting osm/lcm version 9.0.0.post162+g9cd5345 2020-04-08
/usr/lib/python3.10/unittest/case.py:549: RuntimeWarning: coroutine 'TestLcm.test_kafka_wrong_topic_ping_command' was never awaited
method()
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
...............................
----------------------------------------------------------------------
Ran 95 tests in 69.924s
OK
Name Stmts Miss Cover
-----------------------------------------------------------------
osm_lcm/ROclient.py 509 457 10%
osm_lcm/__init__.py 7 2 71%
osm_lcm/data_utils/__init__.py 0 0 100%
osm_lcm/data_utils/database/__init__.py 0 0 100%
osm_lcm/data_utils/database/database.py 26 8 69%
osm_lcm/data_utils/database/vim_account.py 11 0 100%
osm_lcm/data_utils/database/wim_account.py 15 6 60%
osm_lcm/data_utils/dict_utils.py 7 2 71%
osm_lcm/data_utils/filesystem/__init__.py 0 0 100%
osm_lcm/data_utils/filesystem/filesystem.py 26 9 65%
osm_lcm/data_utils/lcm_config.py 159 4 97%
osm_lcm/data_utils/list_utils.py 5 0 100%
osm_lcm/data_utils/nsd.py 11 1 91%
osm_lcm/data_utils/nsr.py 15 0 100%
osm_lcm/data_utils/vca.py 100 13 87%
osm_lcm/data_utils/vim.py 28 13 54%
osm_lcm/data_utils/vnfd.py 76 31 59%
osm_lcm/data_utils/vnfr.py 38 12 68%
osm_lcm/data_utils/wim.py 75 58 23%
osm_lcm/frontend_grpc.py 20 6 70%
osm_lcm/frontend_pb2.py 27 0 100%
osm_lcm/lcm.py 527 419 20%
osm_lcm/lcm_hc.py 37 15 59%
osm_lcm/lcm_helm_conn.py 296 155 48%
osm_lcm/lcm_utils.py 320 172 46%
osm_lcm/netslice.py 439 424 3%
osm_lcm/ng_ro.py 204 160 22%
osm_lcm/ns.py 3700 2549 31%
osm_lcm/osm_config.py 22 0 100%
osm_lcm/prometheus.py 11 2 82%
osm_lcm/tests/test_db_descriptors.py 13 0 100%
osm_lcm/tests/test_lcm.py 58 22 62%
osm_lcm/tests/test_lcm_hc.py 43 0 100%
osm_lcm/tests/test_lcm_helm_conn.py 76 1 99%
osm_lcm/tests/test_lcm_utils.py 319 13 96%
osm_lcm/tests/test_ns.py 756 54 93%
osm_lcm/tests/test_osm_config.py 7 0 100%
osm_lcm/tests/test_prometheus.py 12 1 92%
osm_lcm/tests/test_vim_sdn.py 184 0 100%
osm_lcm/vim_sdn.py 969 804 17%
-----------------------------------------------------------------
TOTAL 9148 5413 41%
cover run-test: commands[3] | coverage report '--omit=*tests*'
Name Stmts Miss Cover
-----------------------------------------------------------------
osm_lcm/ROclient.py 509 457 10%
osm_lcm/__init__.py 7 2 71%
osm_lcm/data_utils/__init__.py 0 0 100%
osm_lcm/data_utils/database/__init__.py 0 0 100%
osm_lcm/data_utils/database/database.py 26 8 69%
osm_lcm/data_utils/database/vim_account.py 11 0 100%
osm_lcm/data_utils/database/wim_account.py 15 6 60%
osm_lcm/data_utils/dict_utils.py 7 2 71%
osm_lcm/data_utils/filesystem/__init__.py 0 0 100%
osm_lcm/data_utils/filesystem/filesystem.py 26 9 65%
osm_lcm/data_utils/lcm_config.py 159 4 97%
osm_lcm/data_utils/list_utils.py 5 0 100%
osm_lcm/data_utils/nsd.py 11 1 91%
osm_lcm/data_utils/nsr.py 15 0 100%
osm_lcm/data_utils/vca.py 100 13 87%
osm_lcm/data_utils/vim.py 28 13 54%
osm_lcm/data_utils/vnfd.py 76 31 59%
osm_lcm/data_utils/vnfr.py 38 12 68%
osm_lcm/data_utils/wim.py 75 58 23%
osm_lcm/frontend_grpc.py 20 6 70%
osm_lcm/frontend_pb2.py 27 0 100%
osm_lcm/lcm.py 527 419 20%
osm_lcm/lcm_hc.py 37 15 59%
osm_lcm/lcm_helm_conn.py 296 155 48%
osm_lcm/lcm_utils.py 320 172 46%
osm_lcm/netslice.py 439 424 3%
osm_lcm/ng_ro.py 204 160 22%
osm_lcm/ns.py 3700 2549 31%
osm_lcm/osm_config.py 22 0 100%
osm_lcm/prometheus.py 11 2 82%
osm_lcm/tests/test_db_descriptors.py 13 0 100%
osm_lcm/tests/test_lcm.py 58 22 62%
osm_lcm/tests/test_lcm_hc.py 43 0 100%
osm_lcm/tests/test_lcm_helm_conn.py 76 1 99%
osm_lcm/tests/test_lcm_utils.py 319 13 96%
osm_lcm/tests/test_ns.py 756 54 93%
osm_lcm/tests/test_osm_config.py 7 0 100%
osm_lcm/tests/test_prometheus.py 12 1 92%
osm_lcm/tests/test_vim_sdn.py 184 0 100%
osm_lcm/vim_sdn.py 969 804 17%
-----------------------------------------------------------------
TOTAL 9148 5413 41%
cover run-test: commands[4] | coverage html -d ./cover '--omit=*tests*'
Wrote HTML report to ./cover/index.html
cover run-test: commands[5] | coverage xml -o coverage.xml '--omit=*tests*'
Wrote XML report to coverage.xml
___________________________________ summary ____________________________________
black: commands succeeded
cover: commands succeeded
flake8: commands succeeded
pylint: commands succeeded
safety: commands succeeded
congratulations :)