johnar@fbfce6f2d5ec:~/sonic-mgmt-t0-80/sonic-mgmt/tests$ sudo ./run_tests.sh -d sonic-10429 -t any,'t1' -n vms-t1-lag -u -c platform_tests/api/test_sfp.py::TestSfpApi::test_get_rx_los -s -r -m individual -e --skip_sanity === Running tests individually === /usr/local/lib/python2.7/dist-packages/ansible/parsing/vault/__init__.py:44: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release. from cryptography.exceptions import InvalidSignature ==================================================================================== test session starts ==================================================================================== platform linux2 -- Python 2.7.17, pytest-4.6.5, py-1.9.0, pluggy-0.13.1 ansible: 2.8.12 rootdir: /var/johnar/sonic-mgmt-t0-80/sonic-mgmt/tests, inifile: pytest.ini plugins: repeat-0.8.0, xdist-1.28.0, html-1.22.1, forked-1.3.0, metadata-1.10.0, allure-pytest-2.8.22, ansible-2.2.2 collected 1 item platform_tests/api/test_sfp.py::TestSfpApi::test_get_rx_los[sonic-10429] PASSED [100%] -------------------------- generated xml file: /var/johnar/sonic-mgmt-t0-80/sonic-mgmt/tests/logs/platform_tests/api/test_sfp.py::TestSfpApi::test_get_rx_los.xml --------------------------- ================================================================================= 1 passed in 54.74 seconds ================================================================================= johnar@fbfce6f2d5ec:~/sonic-mgmt-t0-80/sonic-mgmt/tests$ sudo ./run_tests.sh -d sonic-10429 -t any,'t1' -n vms-t1-lag -u -c platform_tests/api/test_sfp.py::TestSfpApi::test_get_tx_bias -s -r -m individual -e --skip_sanity === Running tests individually === /usr/local/lib/python2.7/dist-packages/ansible/parsing/vault/__init__.py:44: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release. from cryptography.exceptions import InvalidSignature ==================================================================================== test session starts ==================================================================================== platform linux2 -- Python 2.7.17, pytest-4.6.5, py-1.9.0, pluggy-0.13.1 ansible: 2.8.12 rootdir: /var/johnar/sonic-mgmt-t0-80/sonic-mgmt/tests, inifile: pytest.ini plugins: repeat-0.8.0, xdist-1.28.0, html-1.22.1, forked-1.3.0, metadata-1.10.0, allure-pytest-2.8.22, ansible-2.2.2 collected 1 item platform_tests/api/test_sfp.py::TestSfpApi::test_get_tx_bias[sonic-10429] --------------------------------------------------------------------------------------- live log call --------------------------------------------------------------------------------------- 11:29:45 WARNING test_sfp.py:test_get_tx_bias:336: test_get_tx_bias: Skipping transceiver 1 (not applicable for this transceiver type) 11:29:45 WARNING test_sfp.py:test_get_tx_bias:336: test_get_tx_bias: Skipping transceiver 2 (not applicable for this transceiver type) 11:29:45 WARNING test_sfp.py:test_get_tx_bias:336: test_get_tx_bias: Skipping transceiver 3 (not applicable for this transceiver type) 11:29:45 WARNING test_sfp.py:test_get_tx_bias:336: test_get_tx_bias: Skipping transceiver 4 (not applicable for this transceiver type) 11:29:45 WARNING test_sfp.py:test_get_tx_bias:336: test_get_tx_bias: Skipping transceiver 6 (not applicable for this transceiver type) 11:29:45 WARNING test_sfp.py:test_get_tx_bias:336: test_get_tx_bias: Skipping transceiver 7 (not applicable for this transceiver type) 11:29:45 WARNING test_sfp.py:test_get_tx_bias:336: test_get_tx_bias: Skipping transceiver 8 (not applicable for this transceiver type) 11:29:45 WARNING test_sfp.py:test_get_tx_bias:336: test_get_tx_bias: Skipping transceiver 9 (not applicable for this transceiver type) 11:29:45 WARNING test_sfp.py:test_get_tx_bias:336: test_get_tx_bias: Skipping transceiver 10 (not applicable for this transceiver type) 11:29:45 WARNING test_sfp.py:test_get_tx_bias:336: test_get_tx_bias: Skipping transceiver 11 (not applicable for this transceiver type) 11:29:45 WARNING test_sfp.py:test_get_tx_bias:336: test_get_tx_bias: Skipping transceiver 12 (not applicable for this transceiver type) 11:29:45 WARNING test_sfp.py:test_get_tx_bias:336: test_get_tx_bias: Skipping transceiver 13 (not applicable for this transceiver type) 11:29:46 WARNING test_sfp.py:test_get_tx_bias:336: test_get_tx_bias: Skipping transceiver 14 (not applicable for this transceiver type) 11:29:46 WARNING test_sfp.py:test_get_tx_bias:336: test_get_tx_bias: Skipping transceiver 15 (not applicable for this transceiver type) 11:29:46 WARNING test_sfp.py:test_get_tx_bias:336: test_get_tx_bias: Skipping transceiver 16 (not applicable for this transceiver type) 11:29:46 WARNING test_sfp.py:test_get_tx_bias:336: test_get_tx_bias: Skipping transceiver 17 (not applicable for this transceiver type) 11:29:46 WARNING test_sfp.py:test_get_tx_bias:336: test_get_tx_bias: Skipping transceiver 18 (not applicable for this transceiver type) 11:29:46 WARNING test_sfp.py:test_get_tx_bias:336: test_get_tx_bias: Skipping transceiver 19 (not applicable for this transceiver type) 11:29:46 WARNING test_sfp.py:test_get_tx_bias:336: test_get_tx_bias: Skipping transceiver 20 (not applicable for this transceiver type) 11:29:46 WARNING test_sfp.py:test_get_tx_bias:336: test_get_tx_bias: Skipping transceiver 21 (not applicable for this transceiver type) 11:29:46 WARNING test_sfp.py:test_get_tx_bias:336: test_get_tx_bias: Skipping transceiver 22 (not applicable for this transceiver type) 11:29:46 WARNING test_sfp.py:test_get_tx_bias:336: test_get_tx_bias: Skipping transceiver 23 (not applicable for this transceiver type) 11:29:46 WARNING test_sfp.py:test_get_tx_bias:336: test_get_tx_bias: Skipping transceiver 24 (not applicable for this transceiver type) 11:29:46 WARNING test_sfp.py:test_get_tx_bias:336: test_get_tx_bias: Skipping transceiver 25 (not applicable for this transceiver type) 11:29:46 WARNING test_sfp.py:test_get_tx_bias:336: test_get_tx_bias: Skipping transceiver 26 (not applicable for this transceiver type) 11:29:46 WARNING test_sfp.py:test_get_tx_bias:336: test_get_tx_bias: Skipping transceiver 27 (not applicable for this transceiver type) 11:29:46 WARNING test_sfp.py:test_get_tx_bias:336: test_get_tx_bias: Skipping transceiver 28 (not applicable for this transceiver type) 11:29:46 WARNING test_sfp.py:test_get_tx_bias:336: test_get_tx_bias: Skipping transceiver 29 (not applicable for this transceiver type) 11:29:46 WARNING test_sfp.py:test_get_tx_bias:336: test_get_tx_bias: Skipping transceiver 30 (not applicable for this transceiver type) 11:29:46 WARNING test_sfp.py:test_get_tx_bias:336: test_get_tx_bias: Skipping transceiver 31 (not applicable for this transceiver type) 11:29:46 WARNING test_sfp.py:test_get_tx_bias:336: test_get_tx_bias: Skipping transceiver 32 (not applicable for this transceiver type) PASSED [100%] -------------------------- generated xml file: /var/johnar/sonic-mgmt-t0-80/sonic-mgmt/tests/logs/platform_tests/api/test_sfp.py::TestSfpApi::test_get_tx_bias.xml -------------------------- ================================================================================= 1 passed in 51.43 seconds ================================================================================= johnar@fbfce6f2d5ec:~/sonic-mgmt-t0-80/sonic-mgmt/tests$ sudo ./run_tests.sh -d sonic-10429 -t any,'t1' -n vms-t1-lag -u -c platform_tests/api/test_sfp.py::TestSfpApi::test_get_rx_power -s -r -m individual -e --skip_sanity === Running tests individually === /usr/local/lib/python2.7/dist-packages/ansible/parsing/vault/__init__.py:44: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release. from cryptography.exceptions import InvalidSignature ==================================================================================== test session starts ==================================================================================== platform linux2 -- Python 2.7.17, pytest-4.6.5, py-1.9.0, pluggy-0.13.1 ansible: 2.8.12 rootdir: /var/johnar/sonic-mgmt-t0-80/sonic-mgmt/tests, inifile: pytest.ini plugins: repeat-0.8.0, xdist-1.28.0, html-1.22.1, forked-1.3.0, metadata-1.10.0, allure-pytest-2.8.22, ansible-2.2.2 collected 1 item platform_tests/api/test_sfp.py::TestSfpApi::test_get_rx_power[sonic-10429] --------------------------------------------------------------------------------------- live log call --------------------------------------------------------------------------------------- 11:30:47 WARNING test_sfp.py:test_get_rx_power:355: test_get_rx_power: Skipping transceiver 1 (not applicable for this transceiver type) 11:30:47 WARNING test_sfp.py:test_get_rx_power:355: test_get_rx_power: Skipping transceiver 2 (not applicable for this transceiver type) 11:30:47 WARNING test_sfp.py:test_get_rx_power:355: test_get_rx_power: Skipping transceiver 3 (not applicable for this transceiver type) 11:30:47 WARNING test_sfp.py:test_get_rx_power:355: test_get_rx_power: Skipping transceiver 4 (not applicable for this transceiver type) 11:30:47 WARNING test_sfp.py:test_get_rx_power:355: test_get_rx_power: Skipping transceiver 6 (not applicable for this transceiver type) 11:30:47 WARNING test_sfp.py:test_get_rx_power:355: test_get_rx_power: Skipping transceiver 7 (not applicable for this transceiver type) 11:30:47 WARNING test_sfp.py:test_get_rx_power:355: test_get_rx_power: Skipping transceiver 8 (not applicable for this transceiver type) 11:30:47 WARNING test_sfp.py:test_get_rx_power:355: test_get_rx_power: Skipping transceiver 9 (not applicable for this transceiver type) 11:30:47 WARNING test_sfp.py:test_get_rx_power:355: test_get_rx_power: Skipping transceiver 10 (not applicable for this transceiver type) 11:30:47 WARNING test_sfp.py:test_get_rx_power:355: test_get_rx_power: Skipping transceiver 11 (not applicable for this transceiver type) 11:30:47 WARNING test_sfp.py:test_get_rx_power:355: test_get_rx_power: Skipping transceiver 12 (not applicable for this transceiver type) 11:30:48 WARNING test_sfp.py:test_get_rx_power:355: test_get_rx_power: Skipping transceiver 13 (not applicable for this transceiver type) 11:30:48 WARNING test_sfp.py:test_get_rx_power:355: test_get_rx_power: Skipping transceiver 14 (not applicable for this transceiver type) 11:30:48 WARNING test_sfp.py:test_get_rx_power:355: test_get_rx_power: Skipping transceiver 15 (not applicable for this transceiver type) 11:30:48 WARNING test_sfp.py:test_get_rx_power:355: test_get_rx_power: Skipping transceiver 16 (not applicable for this transceiver type) 11:30:48 WARNING test_sfp.py:test_get_rx_power:355: test_get_rx_power: Skipping transceiver 17 (not applicable for this transceiver type) 11:30:48 WARNING test_sfp.py:test_get_rx_power:355: test_get_rx_power: Skipping transceiver 18 (not applicable for this transceiver type) 11:30:48 WARNING test_sfp.py:test_get_rx_power:355: test_get_rx_power: Skipping transceiver 19 (not applicable for this transceiver type) 11:30:48 WARNING test_sfp.py:test_get_rx_power:355: test_get_rx_power: Skipping transceiver 20 (not applicable for this transceiver type) 11:30:48 WARNING test_sfp.py:test_get_rx_power:355: test_get_rx_power: Skipping transceiver 21 (not applicable for this transceiver type) 11:30:48 WARNING test_sfp.py:test_get_rx_power:355: test_get_rx_power: Skipping transceiver 22 (not applicable for this transceiver type) 11:30:48 WARNING test_sfp.py:test_get_rx_power:355: test_get_rx_power: Skipping transceiver 23 (not applicable for this transceiver type) 11:30:48 WARNING test_sfp.py:test_get_rx_power:355: test_get_rx_power: Skipping transceiver 24 (not applicable for this transceiver type) 11:30:48 WARNING test_sfp.py:test_get_rx_power:355: test_get_rx_power: Skipping transceiver 25 (not applicable for this transceiver type) 11:30:48 WARNING test_sfp.py:test_get_rx_power:355: test_get_rx_power: Skipping transceiver 26 (not applicable for this transceiver type) 11:30:48 WARNING test_sfp.py:test_get_rx_power:355: test_get_rx_power: Skipping transceiver 27 (not applicable for this transceiver type) 11:30:48 WARNING test_sfp.py:test_get_rx_power:355: test_get_rx_power: Skipping transceiver 28 (not applicable for this transceiver type) 11:30:48 WARNING test_sfp.py:test_get_rx_power:355: test_get_rx_power: Skipping transceiver 29 (not applicable for this transceiver type) 11:30:48 WARNING test_sfp.py:test_get_rx_power:355: test_get_rx_power: Skipping transceiver 30 (not applicable for this transceiver type) 11:30:48 WARNING test_sfp.py:test_get_rx_power:355: test_get_rx_power: Skipping transceiver 31 (not applicable for this transceiver type) 11:30:48 WARNING test_sfp.py:test_get_rx_power:355: test_get_rx_power: Skipping transceiver 32 (not applicable for this transceiver type) PASSED [100%] ------------------------- generated xml file: /var/johnar/sonic-mgmt-t0-80/sonic-mgmt/tests/logs/platform_tests/api/test_sfp.py::TestSfpApi::test_get_rx_power.xml -------------------------- ================================================================================= 1 passed in 52.31 seconds ================================================================================= johnar@fbfce6f2d5ec:~/sonic-mgmt-t0-80/sonic-mgmt/tests$ sudo ./run_tests.sh -d sonic-10429 -t any,'t1' -n vms-t1-lag -u -c platform_tests/api/test_sfp.py::TestSfpApi::test_tx_disable -s -r -m individual -e --skip_sanity === Running tests individually === /usr/local/lib/python2.7/dist-packages/ansible/parsing/vault/__init__.py:44: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release. from cryptography.exceptions import InvalidSignature ==================================================================================== test session starts ==================================================================================== platform linux2 -- Python 2.7.17, pytest-4.6.5, py-1.9.0, pluggy-0.13.1 ansible: 2.8.12 rootdir: /var/johnar/sonic-mgmt-t0-80/sonic-mgmt/tests, inifile: pytest.ini plugins: repeat-0.8.0, xdist-1.28.0, html-1.22.1, forked-1.3.0, metadata-1.10.0, allure-pytest-2.8.22, ansible-2.2.2 collected 1 item platform_tests/api/test_sfp.py::TestSfpApi::test_tx_disable[sonic-10429] --------------------------------------------------------------------------------------- live log call --------------------------------------------------------------------------------------- 11:32:03 WARNING test_sfp.py:test_tx_disable:408: test_tx_disable: Skipping transceiver 1 (not applicable for this transceiver type) 11:32:03 WARNING test_sfp.py:test_tx_disable:408: test_tx_disable: Skipping transceiver 2 (not applicable for this transceiver type) 11:32:03 WARNING test_sfp.py:test_tx_disable:408: test_tx_disable: Skipping transceiver 3 (not applicable for this transceiver type) 11:32:03 WARNING test_sfp.py:test_tx_disable:408: test_tx_disable: Skipping transceiver 4 (not applicable for this transceiver type) 11:32:03 WARNING test_sfp.py:test_tx_disable:408: test_tx_disable: Skipping transceiver 6 (not applicable for this transceiver type) 11:32:03 WARNING test_sfp.py:test_tx_disable:408: test_tx_disable: Skipping transceiver 7 (not applicable for this transceiver type) 11:32:03 WARNING test_sfp.py:test_tx_disable:408: test_tx_disable: Skipping transceiver 8 (not applicable for this transceiver type) 11:32:03 WARNING test_sfp.py:test_tx_disable:408: test_tx_disable: Skipping transceiver 9 (not applicable for this transceiver type) 11:32:03 WARNING test_sfp.py:test_tx_disable:408: test_tx_disable: Skipping transceiver 10 (not applicable for this transceiver type) 11:32:03 WARNING test_sfp.py:test_tx_disable:408: test_tx_disable: Skipping transceiver 11 (not applicable for this transceiver type) 11:32:03 WARNING test_sfp.py:test_tx_disable:408: test_tx_disable: Skipping transceiver 12 (not applicable for this transceiver type) 11:32:03 WARNING test_sfp.py:test_tx_disable:408: test_tx_disable: Skipping transceiver 13 (not applicable for this transceiver type) 11:32:03 WARNING test_sfp.py:test_tx_disable:408: test_tx_disable: Skipping transceiver 14 (not applicable for this transceiver type) 11:32:03 WARNING test_sfp.py:test_tx_disable:408: test_tx_disable: Skipping transceiver 15 (not applicable for this transceiver type) 11:32:03 WARNING test_sfp.py:test_tx_disable:408: test_tx_disable: Skipping transceiver 16 (not applicable for this transceiver type) 11:32:03 WARNING test_sfp.py:test_tx_disable:408: test_tx_disable: Skipping transceiver 17 (not applicable for this transceiver type) 11:32:03 WARNING test_sfp.py:test_tx_disable:408: test_tx_disable: Skipping transceiver 18 (not applicable for this transceiver type) 11:32:03 WARNING test_sfp.py:test_tx_disable:408: test_tx_disable: Skipping transceiver 19 (not applicable for this transceiver type) 11:32:03 WARNING test_sfp.py:test_tx_disable:408: test_tx_disable: Skipping transceiver 20 (not applicable for this transceiver type) 11:32:03 WARNING test_sfp.py:test_tx_disable:408: test_tx_disable: Skipping transceiver 21 (not applicable for this transceiver type) 11:32:03 WARNING test_sfp.py:test_tx_disable:408: test_tx_disable: Skipping transceiver 22 (not applicable for this transceiver type) 11:32:03 WARNING test_sfp.py:test_tx_disable:408: test_tx_disable: Skipping transceiver 23 (not applicable for this transceiver type) 11:32:03 WARNING test_sfp.py:test_tx_disable:408: test_tx_disable: Skipping transceiver 24 (not applicable for this transceiver type) 11:32:03 WARNING test_sfp.py:test_tx_disable:408: test_tx_disable: Skipping transceiver 25 (not applicable for this transceiver type) 11:32:03 WARNING test_sfp.py:test_tx_disable:408: test_tx_disable: Skipping transceiver 26 (not applicable for this transceiver type) 11:32:03 WARNING test_sfp.py:test_tx_disable:408: test_tx_disable: Skipping transceiver 27 (not applicable for this transceiver type) 11:32:03 WARNING test_sfp.py:test_tx_disable:408: test_tx_disable: Skipping transceiver 28 (not applicable for this transceiver type) 11:32:03 WARNING test_sfp.py:test_tx_disable:408: test_tx_disable: Skipping transceiver 29 (not applicable for this transceiver type) 11:32:04 WARNING test_sfp.py:test_tx_disable:408: test_tx_disable: Skipping transceiver 30 (not applicable for this transceiver type) 11:32:04 WARNING test_sfp.py:test_tx_disable:408: test_tx_disable: Skipping transceiver 31 (not applicable for this transceiver type) 11:32:04 WARNING test_sfp.py:test_tx_disable:408: test_tx_disable: Skipping transceiver 32 (not applicable for this transceiver type) PASSED [100%] -------------------------- generated xml file: /var/johnar/sonic-mgmt-t0-80/sonic-mgmt/tests/logs/platform_tests/api/test_sfp.py::TestSfpApi::test_tx_disable.xml --------------------------- ================================================================================= 1 passed in 51.78 seconds ================================================================================= johnar@fbfce6f2d5ec:~/sonic-mgmt-t0-80/sonic-mgmt/tests$ johnar@fbfce6f2d5ec:~/sonic-mgmt-t0-80/sonic-mgmt/tests$ sudo ./run_tests.sh -d sonic-10429 -t any,'t1' -n vms-t1-lag -u -c platform_tests/api/test_sfp.py::TestSfpApi::test_tx_disable_channel -s -r -m individual -e --skip_sanity === Running tests individually === /usr/local/lib/python2.7/dist-packages/ansible/parsing/vault/__init__.py:44: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release. from cryptography.exceptions import InvalidSignature ==================================================================================== test session starts ==================================================================================== platform linux2 -- Python 2.7.17, pytest-4.6.5, py-1.9.0, pluggy-0.13.1 ansible: 2.8.12 rootdir: /var/johnar/sonic-mgmt-t0-80/sonic-mgmt/tests, inifile: pytest.ini plugins: repeat-0.8.0, xdist-1.28.0, html-1.22.1, forked-1.3.0, metadata-1.10.0, allure-pytest-2.8.22, ansible-2.2.2 collected 1 item platform_tests/api/test_sfp.py::TestSfpApi::test_tx_disable_channel[sonic-10429] FAILED [100%] ========================================================================================= FAILURES ========================================================================================== ______________________________________________________________________ TestSfpApi.test_tx_disable_channel[sonic-10429] ______________________________________________________________________ self = , duthosts = , enum_rand_one_per_hwsku_hostname = 'sonic-10429' localhost = , platform_api_conn = def test_tx_disable_channel(self, duthosts, enum_rand_one_per_hwsku_hostname, localhost, platform_api_conn): """This function tests both the get_tx_disable_channel() and tx_disable_channel() APIs""" for i in self.candidate_sfp: # First ensure that the transceiver type supports setting TX disable on individual channels info_dict = sfp.get_transceiver_info(platform_api_conn, i) if not self.expect(info_dict is not None, "Unable to retrieve transceiver {} info".format(i)): continue if not self.is_xcvr_optical(info_dict): logger.warning("test_tx_disable_channel: Skipping transceiver {} (not applicable for this transceiver type)".format(i)) continue # Test all TX disable combinations for a four-channel transceiver (i.e., 0x0 through 0xF) # We iterate in reverse here so that we end with 0x0 (no channels disabled) for expected_mask in range(0xF, 0x0, -1): # Enable TX on all channels > ret = sfp.tx_disable_channel(platform_api_conn, i, 0xF, False) duthosts = enum_rand_one_per_hwsku_hostname = 'sonic-10429' expected_mask = 15 i = 0 info_dict = {'application_advertisement': 'N/A', 'cable_length': '100.0', 'cable_type': 'LengthCable(UnitsOfm)', 'connector': 'Unknown', ...} localhost = platform_api_conn = self = platform_tests/api/test_sfp.py:436: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ common/helpers/platform_api/sfp.py:129: in tx_disable_channel return sfp_api(conn, index, 'tx_disable_channel', [channel_mask, disable]) common/helpers/platform_api/sfp.py:16: in sfp_api resp = conn.getresponse() /usr/lib/python2.7/httplib.py:1161: in getresponse response.begin() /usr/lib/python2.7/httplib.py:448: in begin version, status, reason = self._read_status() _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = def _read_status(self): # Initialize with Simple-Response defaults line = self.fp.readline(_MAXLINE + 1) if len(line) > _MAXLINE: raise LineTooLong("header line") if self.debuglevel > 0: print "reply:", repr(line) if not line: # Presumably, the server closed the connection before # sending a valid response. > raise BadStatusLine("No status line received - the server has closed the connection") E BadStatusLine: No status line received - the server has closed the connection line = '' self = /usr/lib/python2.7/httplib.py:412: BadStatusLine ---------------------- generated xml file: /var/johnar/sonic-mgmt-t0-80/sonic-mgmt/tests/logs/platform_tests/api/test_sfp.py::TestSfpApi::test_tx_disable_channel.xml ----------------------- ================================================================================== short test summary info ================================================================================== FAILED platform_tests/api/test_sfp.py::TestSfpApi::test_tx_disable_channel[sonic-10429] - BadStatusLine: No status line received - the server has closed the connection ================================================================================= 1 failed in 50.91 seconds ================================================================================= johnar@fbfce6f2d5ec:~/sonic-mgmt-t0-80/sonic-mgmt/tests$ johnar@fbfce6f2d5ec:~/sonic-mgmt-t0-80/sonic-mgmt/tests$ sudo ./run_tests.sh -d sonic-10429 -t any,'t1' -n vms-t1-lag -u -c platform_tests/api/test_sfp.py::TestSfpApi::test_get_tx_power -s -r -m individual -e --skip_sanity === Running tests individually === /usr/local/lib/python2.7/dist-packages/ansible/parsing/vault/__init__.py:44: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release. from cryptography.exceptions import InvalidSignature ==================================================================================== test session starts ==================================================================================== platform linux2 -- Python 2.7.17, pytest-4.6.5, py-1.9.0, pluggy-0.13.1 ansible: 2.8.12 rootdir: /var/johnar/sonic-mgmt-t0-80/sonic-mgmt/tests, inifile: pytest.ini plugins: repeat-0.8.0, xdist-1.28.0, html-1.22.1, forked-1.3.0, metadata-1.10.0, allure-pytest-2.8.22, ansible-2.2.2 collected 1 item platform_tests/api/test_sfp.py::TestSfpApi::test_get_tx_power[sonic-10429] PASSED [100%] ------------------------- generated xml file: /var/johnar/sonic-mgmt-t0-80/sonic-mgmt/tests/logs/platform_tests/api/test_sfp.py::TestSfpApi::test_get_tx_power.xml -------------------------- ================================================================================= 1 passed in 50.35 seconds ================================================================================= johnar@fbfce6f2d5ec:~/sonic-mgmt-t0-80/sonic-mgmt/tests$