Bug #66437
closedsmb/tests/test_smb.py:609: AssertionError
0%
Description
43/296 Test #4: run-tox-mgr ...............................***Failed 410.16 sec
Requirement already satisfied: tox in /home/jenkins-build/build/workspace/ceph-pull-requests/build/mgr-virtualenv/lib/python3.10/site-packages (4.15.1)
Requirement already satisfied: cachetools>=5.3.2 in /home/jenkins-build/build/workspace/ceph-pull-requests/build/mgr-virtualenv/lib/python3.10/site-packages (from tox) (5.3.3)
Requirement already satisfied: chardet>=5.2 in /home/jenkins-build/build/workspace/ceph-pull-requests/build/mgr-virtualenv/lib/python3.10/site-packages (from tox) (5.2.0)
Requirement already satisfied: colorama>=0.4.6 in /home/jenkins-build/build/workspace/ceph-pull-requests/build/mgr-virtualenv/lib/python3.10/site-packages (from tox) (0.4.6)
Requirement already satisfied: filelock>=3.13.1 in /home/jenkins-build/build/workspace/ceph-pull-requests/build/mgr-virtualenv/lib/python3.10/site-packages (from tox) (3.14.0)
Requirement already satisfied: packaging>=23.2 in /home/jenkins-build/build/workspace/ceph-pull-requests/build/mgr-virtualenv/lib/python3.10/site-packages (from tox) (24.1)
Requirement already satisfied: platformdirs>=4.1 in /home/jenkins-build/build/workspace/ceph-pull-requests/build/mgr-virtualenv/lib/python3.10/site-packages (from tox) (4.2.2)
Requirement already satisfied: pluggy>=1.3 in /home/jenkins-build/build/workspace/ceph-pull-requests/build/mgr-virtualenv/lib/python3.10/site-packages (from tox) (1.5.0)
Requirement already satisfied: pyproject-api>=1.6.1 in /home/jenkins-build/build/workspace/ceph-pull-requests/build/mgr-virtualenv/lib/python3.10/site-packages (from tox) (1.6.1)
Requirement already satisfied: tomli>=2.0.1 in /home/jenkins-build/build/workspace/ceph-pull-requests/build/mgr-virtualenv/lib/python3.10/site-packages (from tox) (2.0.1)
Requirement already satisfied: virtualenv>=20.25 in /home/jenkins-build/build/workspace/ceph-pull-requests/build/mgr-virtualenv/lib/python3.10/site-packages (from tox) (20.26.2)
Requirement already satisfied: distlib<1,>=0.3.7 in /home/jenkins-build/build/workspace/ceph-pull-requests/build/mgr-virtualenv/lib/python3.10/site-packages (from virtualenv>=20.25->tox) (0.3.8)
py3: install_deps /home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr> python -I -m pip install behave -r requirements.txt -r rook/requirements.txt
py3: freeze /home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr> python -m pip freeze --all
py3: asyncmock==0.4.2,asyncssh==2.9.0,autocommand==2.2.2,backports.tarfile==1.2.0,bcrypt==4.1.3,behave==1.2.6,cachetools==5.3.3,-e git+https://github.com/ceph/ceph.git@9e3ac98bfa83f55dd4ac96538703591a8142c0ee#egg=ceph&subdirectory=src/python-common,certifi==2024.6.2,cffi==1.16.0,charset-normalizer==3.3.2,cheroot==10.0.1,CherryPy==18.9.0,coverage==7.5.3,cryptography==42.0.8,exceptiongroup==1.2.1,google-auth==2.30.0,idna==3.7,inflect==7.2.1,iniconfig==2.0.0,jaraco.collections==5.0.1,jaraco.context==5.3.0,jaraco.functools==4.0.1,jaraco.text==3.12.0,Jinja2==3.1.4,jsonpatch==1.33,jsonpointer==3.0.0,kubernetes==30.1.0,logutils==0.3.5,Mako==1.3.5,MarkupSafe==2.1.5,mock==5.1.0,more-itertools==10.3.0,natsort==8.4.0,numpy==1.26.4,oauthlib==3.2.2,packaging==24.1,parse==1.20.2,parse-type==0.6.2,pecan==1.5.1,pip==24.0,pluggy==1.5.0,portend==3.2.0,prettytable==3.3.0,pyasn1==0.6.0,pyasn1_modules==0.4.0,pycparser==2.22,pyfakefs==5.5.0,pyOpenSSL==24.1.0,pytest==7.4.4,pytest-cov==2.7.1,python-dateutil==2.9.0.post0,pytz==2024.1,PyYAML==6.0.1,requests==2.32.3,requests-mock==1.12.1,requests-oauthlib==2.0.0,rsa==4.9,scipy==1.13.1,setuptools==69.5.1,six==1.16.0,tempora==5.5.1,tomli==2.0.1,typeguard==4.3.0,typing_extensions==4.12.2,urllib3==1.26.15,wcwidth==0.2.13,WebOb==1.8.7,websocket-client==1.8.0,Werkzeug==3.0.3,wheel==0.43.0,zc.lockfile==3.0.post1
py3: commands0 /home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr> pytest --doctest-modules
============================= test session starts ==============================
platform linux -- Python 3.10.6, pytest-7.4.4, pluggy-1.5.0
cachedir: .tox/py3/.pytest_cache
rootdir: /home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr
configfile: tox.ini
plugins: typeguard-4.3.0, pyfakefs-5.5.0, requests-mock-1.12.1, cov-2.7.1
collected 1575 items
mgr_module.py . [ 0%]
mgr_util.py ...... [ 0%]
cephadm/upgrade.py . [ 0%]
cephadm/tests/test_autotune.py ...... [ 0%]
cephadm/tests/test_cephadm.py .......................................... [ 3%]
........................................................................ [ 8%]
.............. [ 9%]
cephadm/tests/test_completion.py ............ [ 9%]
cephadm/tests/test_configchecks.py ....................... [ 11%]
cephadm/tests/test_facts.py .. [ 11%]
cephadm/tests/test_migration.py .......... [ 12%]
cephadm/tests/test_node_proxy.py ....................................... [ 14%]
............. [ 15%]
cephadm/tests/test_osd_removal.py ...................................... [ 17%]
............ [ 18%]
cephadm/tests/test_remote_executables.py . [ 18%]
cephadm/tests/test_scheduling.py ....................................... [ 21%]
........................................................................ [ 25%]
........................................................................ [ 30%]
........................................................................ [ 34%]
........................................................................ [ 39%]
........................................................................ [ 43%]
........................................................................ [ 48%]
........................................................................ [ 53%]
........................................................................ [ 57%]
........................................................................ [ 62%]
........................................................................ [ 66%]
.............. [ 67%]
cephadm/tests/test_service_discovery.py ....... [ 68%]
cephadm/tests/test_services.py ......................................... [ 70%]
........ [ 71%]
cephadm/tests/test_spec.py ......................................... [ 73%]
cephadm/tests/test_ssh.py ..s. [ 74%]
cephadm/tests/test_template.py . [ 74%]
cephadm/tests/test_tuned_profiles.py ..... [ 74%]
cephadm/tests/test_upgrade.py .............................. [ 76%]
cli_api/tests/test_cli_api.py ..... [ 76%]
diskprediction_local/predictor.py . [ 76%]
insights/tests/test_health.py ......... [ 77%]
mds_autoscaler/tests/test_autoscaler.py . [ 77%]
nfs/tests/test_nfs.py .................................... [ 79%]
orchestrator/_interface.py ss.ss. [ 80%]
orchestrator/module.py . [ 80%]
orchestrator/tests/test_orchestrator.py ........... [ 80%]
pg_autoscaler/tests/test_cal_final_pg_target.py ....... [ 81%]
pg_autoscaler/tests/test_cal_ratio.py .. [ 81%]
pg_autoscaler/tests/test_overlapping_roots.py .. [ 81%]
progress/test_progress.py .. [ 81%]
prometheus/module.py . [ 81%]
prometheus/test_module.py ...... [ 82%]
rook/tests/test_placement.py .... [ 82%]
rook/tests/test_rook.py . [ 82%]
smb/cli.py . [ 82%]
smb/resourcelib.py . [ 82%]
smb/tests/test_enums.py ............ [ 83%]
smb/tests/test_handler.py ....................................... [ 85%]
smb/tests/test_rados_store.py ..... [ 86%]
smb/tests/test_resourcelib.py ..................... [ 87%]
smb/tests/test_resources.py ...................... [ 88%]
smb/tests/test_smb.py .....................FF [ 90%]
smb/tests/test_validation.py ................................ [ 92%]
snap_schedule/tests/fs/test_schedule.py ................................ [ 94%]
.............. [ 95%]
snap_schedule/tests/fs/test_schedule_client.py .. [ 95%]
telemetry/tests/test_telemetry.py ... [ 95%]
tests/test_mgr_util.py ...... [ 95%]
tests/test_object_format.py ............................................ [ 98%]
............... [ 99%]
tests/test_tls.py ...... [100%]
=================================== FAILURES ===================================
_________________ test_cmd_show_resource_json __________________
tmodule = <smb.module.Module object at 0x7fad64668520>
def test_cmd_show_resource_json(tmodule):
_example_cfg_1(tmodule)
res, body, status = tmodule.show.command(['ceph.smb.cluster.foo'])
assert res 0
body.strip()assert (
""" {
"resource_type": "ceph.smb.cluster",
"cluster_id": "foo",
"auth_mode": "active-directory",
"intent": "present",
"domain_settings": {
"realm": "dom1.example.com",
"join_sources": [ {
"source_type": "password",
"auth": {
"username": "testadmin",
"password": "Passw0rd"
}
}
]
}
}
""".strip()
)
E assert '{\n "resour... ]\n }\n}' == '{\n "resour... ]\n }\n}'
E Skipping 222 identical leading characters in diff, use
E - e_type": "password",
E ? ^ -
E + e_type": "resource",
E ? ^ + ^^
E + "ref": "foo"
E - "auth": {...
E
E ...Full output truncated (7 lines hidden), use '-vv' to show
smb/tests/test_smb.py:609: AssertionError
------------------------------ Captured log setup ------------------------------
DEBUG tests:mgr_module.py:1707 mon_command: 'config get' > 0 in 0.000s Captured log call -------------------------------
DEBUG tests:mgr_module.py:1707 mon_command: 'config get' -> 0 in 0.000s
DEBUG tests:mgr_module.py:1707 mon_command: 'config get' -> 0 in 0.000s
DEBUG tests:mgr_module.py:1707 mon_command: 'config get' -> 0 in 0.000s
INFO smb.handler:handler.py:328 Initialized new ClusterConfigHandler with internal store <smb.config_store.MemConfigStore object at 0x7fad64d052d0>, public store <smb.config_store.MemConfigStore object at 0x7fad64d04ee0>, priv store <smb.config_store.MemConfigStore object at 0x7fad64d05660>, path resolver <smb.handler._FakePathResolver object at 0x7fad64d05480>, authorizer <smb.handler._FakeAuthorizer object at 0x7fad646684c0>, orch None
-----------------------------
DEBUG smb.handler:handler.py:392 performing search with matcher: match-resources:ceph.smb.cluster.foo
DEBUG smb.handler:handler.py:395 searching for clusters and/or shares
DEBUG smb.handler:handler.py:421 search found 1 resources
_________________ test_cmd_show_resource_yaml __________________
tmodule = <smb.module.Module object at 0x7fad1c7a3fa0>
def test_cmd_show_resource_yaml(tmodule):
_example_cfg_1(tmodule)
res, body, status = tmodule.show.command(
['ceph.smb.cluster.foo'], format='yaml'
)
assert res 0
body.strip()assert (
"""
resource_type: ceph.smb.cluster
cluster_id: foo
auth_mode: active-directory
intent: present
domain_settings:
realm: dom1.example.com
join_sources:
- source_type: password
auth:
username: testadmin
password: Passw0rd
""".strip()
)
E AssertionError: assert 'resource_typ...n ref: foo' 'resource_typ...ord: Passw0rd'
E Skipping 158 identical leading characters in diff, use -v to show
E + rce_type: resource
E + ref: foo
E - rce_type: password
E - auth:
E - username: testadmin
E - password: Passw0rd
smb/tests/test_smb.py:641: AssertionError
------------------------------ Captured log setup ------------------------------
DEBUG tests:mgr_module.py:1707 mon_command: 'config get' > 0 in 0.000s Captured log call -------------------------------
DEBUG tests:mgr_module.py:1707 mon_command: 'config get' -> 0 in 0.000s
DEBUG tests:mgr_module.py:1707 mon_command: 'config get' -> 0 in 0.000s
DEBUG tests:mgr_module.py:1707 mon_command: 'config get' -> 0 in 0.000s
INFO smb.handler:handler.py:328 Initialized new ClusterConfigHandler with internal store <smb.config_store.MemConfigStore object at 0x7fad1c7a3d30>, public store <smb.config_store.MemConfigStore object at 0x7fad1c7a3970>, priv store <smb.config_store.MemConfigStore object at 0x7fad1c7a3df0>, path resolver <smb.handler._FakePathResolver object at 0x7fad1c7a3e50>, authorizer <smb.handler._FakeAuthorizer object at 0x7fad1c7a3ee0>, orch None
-----------------------------
DEBUG smb.handler:handler.py:392 performing search with matcher: match-resources:ceph.smb.cluster.foo
DEBUG smb.handler:handler.py:395 searching for clusters and/or shares
DEBUG smb.handler:handler.py:421 search found 1 resources
============================= warnings summary ===============================
.tox/py3/lib/python3.10/site-packages/cherrypy/__init__.py:60
/home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr/.tox/py3/lib/python3.10/site-packages/cherrypy/__init__.py:60: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
.tox/py3/lib/python3.10/site-packages/pkg_resources/__init__.py:2832
/home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr/.tox/py3/lib/python3.10/site-packages/pkg_resources/__init__.py:2832: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('zc')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(pkg)
.tox/py3/lib/python3.10/site-packages/asyncssh/crypto/cipher.py:29
/home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr/.tox/py3/lib/python3.10/site-packages/asyncssh/crypto/cipher.py:29: CryptographyDeprecationWarning: Blowfish has been deprecated and will be removed in a future release
from cryptography.hazmat.primitives.ciphers.algorithms import Blowfish, CAST5
.tox/py3/lib/python3.10/site-packages/asyncssh/crypto/cipher.py:29
/home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr/.tox/py3/lib/python3.10/site-packages/asyncssh/crypto/cipher.py:29: CryptographyDeprecationWarning: CAST5 has been deprecated and will be removed in a future release
from cryptography.hazmat.primitives.ciphers.algorithms import Blowfish, CAST5
.tox/py3/lib/python3.10/site-packages/asyncssh/crypto/cipher.py:30
/home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr/.tox/py3/lib/python3.10/site-packages/asyncssh/crypto/cipher.py:30: CryptographyDeprecationWarning: SEED has been deprecated and will be removed in a future release
from cryptography.hazmat.primitives.ciphers.algorithms import SEED, TripleDES
osd_perf_query/module.py:61
/home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr/osd_perf_query/module.py:61: DeprecationWarning: invalid escape sequence '\.'
'regex': '^(?:rbd|journal)_data\.(?:([0-9]+)\.)?([^.]+)\.'},
rook/rook_cluster.py:123
/home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr/rook/rook_cluster.py:123: DeprecationWarning: invalid escape sequence '\d'
coeff_and_unit = re.search('(\d+)(\D+)', size_str)
zabbix/module.py:134
/home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr/zabbix/module.py:134: DeprecationWarning: invalid escape sequence '\['
uri = re.match("(?:(?:\[?)([a-z0-9-\.]+|[a-f0-9:\.]+)(?:\]?))(?:((?::))([0-9]{1,5}))?$", server)
cephadm/tests/test_cephadm.py::TestCephadm::test_custom_config
/home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr/cephadm/tests/test_cephadm.py:794: RuntimeWarning: coroutine 'AsyncMockMixin._execute_mock_call' was never awaited
_run_cephadm(
Enable tracemalloc to get traceback where the object was allocated.
See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
cephadm/tests/test_ssh.py::TestWithSSH::test_ssh_remote_cmds_execution
/home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr/cephadm/ssh.py:387: RuntimeWarning: coroutine 'TestWithSSH.test_ssh_remote_cmds_execution.<locals>.FakeConn.close' was never awaited
conn.close()
Enable tracemalloc to get traceback where the object was allocated.
See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED smb/tests/test_smb.py::test_cmd_show_resource_json - assert '{\n "res...
FAILED smb/tests/test_smb.py::test_cmd_show_resource_yaml - AssertionError: a...
=========== 2 failed, 1568 passed, 5 skipped, 10 warnings in 40.83s ============
py3: exit 1 (42.11 seconds) /home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr> pytest --doctest-modules pid=1941164
py3: FAIL ✖ in 3 minutes 28.4 seconds
py37: skipped because could not find python interpreter with spec(s): py37
py37: SKIP ⚠ in 0.2 seconds
mypy: install_deps /home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr> python -I -m pip install mypy types-backports types-jwt types-pkg_resources types-python-dateutil types-PyYAML types-requests -r requirements.txt -c /home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr/../../mypy-constrains.txt
mypy: freeze /home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr> python -m pip freeze --all
mypy: asyncmock==0.4.2,asyncssh==2.9.0,autocommand==2.2.2,backports.tarfile==1.2.0,bcrypt==4.1.3,cachetools==5.3.3,-e git+https://github.com/ceph/ceph.git@9e3ac98bfa83f55dd4ac96538703591a8142c0ee#egg=ceph&subdirectory=src/python-common,certifi==2024.6.2,cffi==1.16.0,charset-normalizer==3.3.2,cheroot==10.0.1,CherryPy==18.9.0,coverage==7.5.3,cryptography==42.0.8,exceptiongroup==1.2.1,google-auth==2.30.0,idna==3.7,inflect==7.2.1,iniconfig==2.0.0,jaraco.collections==5.0.1,jaraco.context==5.3.0,jaraco.functools==4.0.1,jaraco.text==3.12.0,Jinja2==3.1.4,jsonpatch==1.33,jsonpointer==3.0.0,kubernetes==30.1.0,logutils==0.3.5,Mako==1.3.5,MarkupSafe==2.1.5,mock==5.1.0,more-itertools==10.3.0,mypy==1.1.1,mypy-extensions==1.0.0,natsort==8.4.0,numpy==1.26.4,oauthlib==3.2.2,packaging==24.1,pecan==1.5.1,pip==24.0,pluggy==1.5.0,portend==3.2.0,prettytable==3.3.0,pyasn1==0.6.0,pyasn1_modules==0.4.0,pycparser==2.22,pyfakefs==5.5.0,pyOpenSSL==24.1.0,pytest==7.4.4,pytest-cov==2.7.1,python-dateutil==2.9.0.post0,pytz==2024.1,PyYAML==6.0.1,requests==2.32.3,requests-mock==1.12.1,requests-oauthlib==2.0.0,rsa==4.9,scipy==1.13.1,setuptools==69.5.1,six==1.16.0,tempora==5.5.1,tomli==2.0.1,typeguard==4.3.0,types-backports==0.1.2,types-cryptography==0.1.1,types-enum34==1.1.8,types-ipaddress==1.0.8,types-jwt==0.1.3,types-pkg-resources==0.1.3,types-python-dateutil==0.1.3,types-PyYAML==5.4.0,types-requests==0.1.11,typing_extensions==4.12.2,urllib3==1.26.15,wcwidth==0.2.13,WebOb==1.8.7,websocket-client==1.8.0,Werkzeug==3.0.3,wheel==0.43.0,zc.lockfile==3.0.post1
mypy: commands0 /home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr> mypy --config-file=../../mypy.ini -m alerts -m balancer -m cephadm -m crash -m dashboard -m devicehealth -m diskprediction_local -m hello -m influx -m iostat -m localpool -m mds_autoscaler -m mgr_module -m mgr_util -m mirroring -m nfs -m orchestrator -m pg_autoscaler -m progress -m prometheus -m rbd_support -m rgw -m rook -m selftest -m smb -m snap_schedule -m stats -m status -m telegraf -m telemetry -m test_orchestrator -m volumes -m zabbix
Success: no issues found in 33 source files
mypy: OK ✔ in 2 minutes 5.34 seconds
flake8: install_deps /home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr> python -I -m pip install flake8
flake8: freeze /home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr> python -m pip freeze --all
flake8: flake8==7.0.0,mccabe==0.7.0,pip==24.0,pycodestyle==2.11.1,pyflakes==3.2.0,setuptools==69.5.1,wheel==0.43.0
flake8: commands0 /home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr> flake8 --config=tox.ini alerts balancer cephadm cli_api crash devicehealth diskprediction_local hello iostat localpool nfs orchestrator prometheus rbd_support rgw selftest smb
flake8: commands1 /home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr> bash -c 'test $(git ls-files cephadm | grep ".py$" | grep -v tests | xargs grep "docker.io" | wc -l) 13'
flake8: OK ✔ in 7.04 seconds
jinjalint: install_deps /home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr> python -I -m pip install jinjaninja
jinjalint: freeze /home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr> python -m pip freeze --all
jinjalint: jinjaninja0.1.2,pip==24.0,setuptools==69.5.1,wheel==0.43.0
jinjalint: commands0 /home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr> jinja-ninja cephadm/templates
jinjalint: OK ✔ in 4.26 seconds
nooptional: install_deps /home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr> python -I -m pip install -r requirements.txt
nooptional: freeze /home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr> python -m pip freeze --all
nooptional: asyncmock==0.4.2,asyncssh==2.9.0,autocommand==2.2.2,backports.tarfile==1.2.0,bcrypt==4.1.3,cachetools==5.3.3,-e git+https://github.com/ceph/ceph.git@9e3ac98bfa83f55dd4ac96538703591a8142c0ee#egg=ceph&subdirectory=src/python-common,certifi==2024.6.2,cffi==1.16.0,charset-normalizer==3.3.2,cheroot==10.0.1,CherryPy==18.9.0,coverage==7.5.3,cryptography==42.0.8,exceptiongroup==1.2.1,google-auth==2.30.0,idna==3.7,inflect==7.2.1,iniconfig==2.0.0,jaraco.collections==5.0.1,jaraco.context==5.3.0,jaraco.functools==4.0.1,jaraco.text==3.12.0,Jinja2==3.1.4,jsonpatch==1.33,jsonpointer==3.0.0,kubernetes==30.1.0,logutils==0.3.5,Mako==1.3.5,MarkupSafe==2.1.5,mock==5.1.0,more-itertools==10.3.0,natsort==8.4.0,numpy==1.26.4,oauthlib==3.2.2,packaging==24.1,pecan==1.5.1,pip==24.0,pluggy==1.5.0,portend==3.2.0,prettytable==3.3.0,pyasn1==0.6.0,pyasn1_modules==0.4.0,pycparser==2.22,pyfakefs==5.5.0,pyOpenSSL==24.1.0,pytest==7.4.4,pytest-cov==2.7.1,python-dateutil==2.9.0.post0,pytz==2024.1,PyYAML==6.0.1,requests==2.32.3,requests-mock==1.12.1,requests-oauthlib==2.0.0,rsa==4.9,scipy==1.13.1,setuptools==69.5.1,six==1.16.0,tempora==5.5.1,tomli==2.0.1,typeguard==4.3.0,typing_extensions==4.12.2,urllib3==1.26.15,wcwidth==0.2.13,WebOb==1.8.7,websocket-client==1.8.0,Werkzeug==3.0.3,wheel==0.43.0,zc.lockfile==3.0.post1
nooptional: commands0 /home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr> pytest cephadm/tests/test_ssh.py
============================= test session starts ==============================
platform linux -- Python 3.10.6, pytest-7.4.4, pluggy-1.5.0
cachedir: .tox/nooptional/.pytest_cache
rootdir: /home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr
configfile: tox.ini
plugins: typeguard-4.3.0, pyfakefs-5.5.0, requests-mock-1.12.1, cov-2.7.1
collected 4 items
cephadm/tests/test_ssh.py ..s. [100%]
=============================== warnings summary ===============================
.tox/nooptional/lib/python3.10/site-packages/cherrypy/__init__.py:60
/home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr/.tox/nooptional/lib/python3.10/site-packages/cherrypy/__init__.py:60: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
.tox/nooptional/lib/python3.10/site-packages/pkg_resources/__init__.py:2832
/home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr/.tox/nooptional/lib/python3.10/site-packages/pkg_resources/__init__.py:2832: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('zc')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(pkg)
.tox/nooptional/lib/python3.10/site-packages/asyncssh/crypto/cipher.py:29
/home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr/.tox/nooptional/lib/python3.10/site-packages/asyncssh/crypto/cipher.py:29: CryptographyDeprecationWarning: Blowfish has been deprecated and will be removed in a future release
from cryptography.hazmat.primitives.ciphers.algorithms import Blowfish, CAST5
.tox/nooptional/lib/python3.10/site-packages/asyncssh/crypto/cipher.py:29
/home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr/.tox/nooptional/lib/python3.10/site-packages/asyncssh/crypto/cipher.py:29: CryptographyDeprecationWarning: CAST5 has been deprecated and will be removed in a future release
from cryptography.hazmat.primitives.ciphers.algorithms import Blowfish, CAST5
.tox/nooptional/lib/python3.10/site-packages/asyncssh/crypto/cipher.py:30
/home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr/.tox/nooptional/lib/python3.10/site-packages/asyncssh/crypto/cipher.py:30: CryptographyDeprecationWarning: SEED has been deprecated and will be removed in a future release
from cryptography.hazmat.primitives.ciphers.algorithms import SEED, TripleDES
cephadm/tests/test_ssh.py::TestWithSSH::test_ssh_remote_cmds_execution
/home/jenkins-build/build/workspace/ceph-pull-requests/src/pybind/mgr/cephadm/ssh.py:387: RuntimeWarning: coroutine 'TestWithSSH.test_ssh_remote_cmds_execution.<locals>.FakeConn.close' was never awaited
conn.close()
Enable tracemalloc to get traceback where the object was allocated.
See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=================== 3 passed, 1 skipped, 6 warnings in 0.49s ===================
py3: FAIL code 1 (208.40=setup[166.29]+cmd[42.11] seconds)
py37: SKIP (0.20 seconds)
mypy: OK (125.34=setup[92.91]+cmd[32.43] seconds)
flake8: OK (7.04=setup[3.77]+cmd[3.24,0.03] seconds)
jinjalint: OK (4.26=setup[4.21]+cmd[0.05] seconds)
nooptional: OK (63.11=setup[60.75]+cmd[2.36] seconds)
evaluation failed :( (408.44 seconds)
RS Updated by Rongqi Sun over 2 years ago
- Status changed from Fix Under Review to Resolved
UB Updated by Upkeep Bot over 1 year ago
- Merge Commit set to 1b262159abe8583d72e386cfc4078b3a9c37dcfc
- Fixed In set to v19.3.0-2704-g1b262159abe
- Upkeep Timestamp set to 2025-07-11T01:37:51+00:00
UB Updated by Upkeep Bot over 1 year ago
- Fixed In changed from v19.3.0-2704-g1b262159abe to v19.3.0-2704-g1b262159ab
- Upkeep Timestamp changed from 2025-07-11T01:37:51+00:00 to 2025-07-14T22:43:04+00:00
UB Updated by Upkeep Bot about 1 year ago
- Released In set to v20.2.0~2720
- Upkeep Timestamp changed from 2025-07-14T22:43:04+00:00 to 2025-11-01T01:17:40+00:00