==> Building on litleo ==> Checking for remote environment... ==> Syncing package to remote host... sending incremental file list ./ .SRCINFO 1,389 100% 0.00kB/s 0:00:00 1,389 100% 0.00kB/s 0:00:00 (xfr#1, to-chk=3/5) PKGBUILD 2,174 100% 2.07MB/s 0:00:00 2,174 100% 2.07MB/s 0:00:00 (xfr#2, to-chk=2/5) mock.diff 433 100% 422.85kB/s 0:00:00 433 100% 422.85kB/s 0:00:00 (xfr#3, to-chk=1/5) python-hvac-2.0.0-1.log 557 100% 543.95kB/s 0:00:00 557 100% 543.95kB/s 0:00:00 (xfr#4, to-chk=0/5) sent 2,579 bytes received 113 bytes 5,384.00 bytes/sec total size is 4,189 speedup is 1.56 ==> Running extra-riscv64-build -- -d /home/felix/packages/riscv64-pkg-cache:/var/cache/pacman/pkg -l root8 on remote host... [?25l:: Synchronizing package databases... core downloading... extra downloading... :: Starting full system upgrade... resolving dependencies... looking for conflicting packages... Package (7) Old Version New Version Net Change Download Size core/gnutls 3.8.1-2.1 3.8.2-1 0.01 MiB 2.76 MiB core/iana-etc 20231018-1 20231117-1 0.00 MiB 0.39 MiB core/libgcrypt 1.10.2-1 1.10.3-1 0.02 MiB 0.61 MiB core/libp11-kit 0.25.2-1 0.25.3-1 0.00 MiB 0.52 MiB core/libxml2 2.11.5-1 2.12.0-1 0.02 MiB 0.85 MiB core/p11-kit 0.25.2-1 0.25.3-1 0.00 MiB 0.22 MiB core/texinfo 7.1-1 7.1-2 0.00 MiB 1.68 MiB Total Download Size: 7.03 MiB Total Installed Size: 27.20 MiB Net Upgrade Size: 0.06 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... gnutls-3.8.2-1-riscv64 downloading... texinfo-7.1-2-riscv64 downloading... libxml2-2.12.0-1-riscv64 downloading... libgcrypt-1.10.3-1-riscv64 downloading... libp11-kit-0.25.3-1-riscv64 downloading... iana-etc-20231117-1-any downloading... p11-kit-0.25.3-1-riscv64 downloading... checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... upgrading iana-etc... upgrading libp11-kit... upgrading gnutls... upgrading libgcrypt... upgrading libxml2... upgrading p11-kit... upgrading texinfo... :: Running post-transaction hooks... (1/1) Updating the info directory file... [?25h==> Building in chroot for [extra] (riscv64)... ==> Synchronizing chroot copy [/var/lib/archbuild/extra-riscv64/root] -> [root8]...done ==> Making package: python-hvac 2.0.0-1 (Mon Nov 20 15:05:20 2023) ==> Retrieving sources...  -> Downloading hvac-2.0.0.tar.gz... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 100 91715 0 91715 0 0 34776 0 --:--:-- 0:00:02 --:--:-- 34776 100 362k 0 362k 0 0 129k 0 --:--:-- 0:00:02 --:--:-- 1704k  -> Downloading python-hvac-vault-1.15.patch... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 3170 100 3170 0 0 4876 0 --:--:-- --:--:-- --:--:-- 4884  -> Found mock.diff ==> Validating source files with sha512sums... hvac-2.0.0.tar.gz ... Passed python-hvac-vault-1.15.patch ... Passed mock.diff ... Passed ==> Making package: python-hvac 2.0.0-1 (Mon Nov 20 15:05:45 2023) ==> Checking runtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (6) New Version Net Change core/libnsl 2.0.1-1 0.07 MiB extra/python-charset-normalizer 3.3.2-1 0.47 MiB extra/python-idna 3.4-3 0.71 MiB extra/python-urllib3 1.26.15-1 1.30 MiB core/python 3.11.5-2.1 107.29 MiB extra/python-requests 2.31.0-1 0.61 MiB Total Installed Size: 110.44 MiB :: Proceed with installation? [Y/n] checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing libnsl... installing python... Optional dependencies for python python-setuptools: for building Python packages using tooling that is usually bundled with Python python-pip: for installing Python packages using tooling that is usually bundled with Python python-pipx: for installing Python software not packaged on Arch Linux sqlite: for a default database integration [installed] mpdecimal: for decimal xz: for lzma [installed] tk: for tkinter installing python-charset-normalizer... installing python-idna... installing python-urllib3... Optional dependencies for python-urllib3 python-brotli: Brotli support python-certifi: security support python-cryptography: security support python-idna: security support [installed] python-pyopenssl: security support python-pysocks: SOCKS support installing python-requests... Optional dependencies for python-requests python-chardet: alternative character encoding library python-pysocks: SOCKS proxy support [?25h==> Checking buildtime dependencies... ==> Installing missing dependencies... [?25lresolving dependencies... looking for conflicting packages... Package (36) New Version Net Change Download Size extra/python-blinker 1.6.3-1 0.12 MiB extra/python-cffi 1.16.0-1 1.41 MiB extra/python-click 8.1.7-1 1.24 MiB extra/python-cryptography 41.0.5-1 55.32 MiB extra/python-deprecated 1.2.14-1 0.07 MiB 0.02 MiB extra/python-fastjsonschema 2.18.1-1 0.29 MiB extra/python-greenlet 3.0.1-1 0.40 MiB extra/python-iniconfig 2.0.0-4 0.04 MiB extra/python-itsdangerous 2.1.2-3 0.14 MiB extra/python-jinja 1:3.1.2-4 1.82 MiB extra/python-lark-parser 1.1.7-2 1.31 MiB extra/python-markupsafe 2.1.3-1 0.08 MiB extra/python-packaging 23.1-1 0.47 MiB extra/python-pluggy 1.3.0-1 0.20 MiB extra/python-ply 3.11-12 0.40 MiB extra/python-pycparser 2.21-5 1.77 MiB extra/python-pyproject-hooks 1.0.0-5 0.09 MiB extra/python-six 1.16.0-8 0.12 MiB extra/python-sqlalchemy 1.4.44-2 20.63 MiB extra/python-typing_extensions 4.8.0-1 0.35 MiB extra/python-wrapt 1.14.1-2 0.24 MiB extra/consul 1.15.2-1 90.88 MiB extra/python-authlib 1.2.1-1 2.32 MiB 0.33 MiB extra/python-build 1.0.3-1 0.68 MiB extra/python-flask 2.3.3-1 1.04 MiB extra/python-flask-sqlalchemy 2.5.1-5 0.27 MiB 0.07 MiB extra/python-installer 0.7.0-3 0.82 MiB extra/python-jwcrypto 1.5.0-1 1.14 MiB 0.17 MiB extra/python-parameterized 0.8.1-5 0.19 MiB extra/python-poetry-core 1.8.1-2 3.59 MiB 0.62 MiB extra/python-pyhcl 0.4.5-1 0.52 MiB 0.10 MiB extra/python-pytest 7.4.3-1 4.02 MiB extra/python-pytest-mock 3.12.0-1 0.09 MiB 0.02 MiB extra/python-requests-mock 1.11.0-1 0.18 MiB extra/python-werkzeug 2.3.7-1 2.77 MiB extra/vault 1.15.1-1 294.65 MiB 50.64 MiB Total Download Size: 51.96 MiB Total Installed Size: 489.68 MiB :: Proceed with installation? [Y/n] :: Retrieving packages... vault-1.15.1-1-riscv64 downloading... python-poetry-core-1.8.1-2-any downloading... python-authlib-1.2.1-1-any downloading... python-jwcrypto-1.5.0-1-any downloading... python-pyhcl-0.4.5-1-any downloading... python-flask-sqlalchemy-2.5.1-5-any downloading... python-pytest-mock-3.12.0-1-any downloading... python-deprecated-1.2.14-1-any downloading... checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing python-packaging... installing python-pyproject-hooks... installing python-build... Optional dependencies for python-build python-virtualenv: Use virtualenv for build isolation installing python-installer... installing python-fastjsonschema... installing python-typing_extensions... installing python-lark-parser... Optional dependencies for python-lark-parser python-atomicwrites: for atomic_cache python-regex: for regex support python-js2py: for nearley support installing python-poetry-core... installing vault... installing python-pyhcl... installing python-iniconfig... installing python-pluggy... installing python-pytest... installing python-ply... installing python-pycparser... installing python-cffi... Optional dependencies for python-cffi python-setuptools: "limited api" version checking in cffi.setuptools_ext installing python-cryptography... installing python-authlib... installing python-markupsafe... installing python-werkzeug... installing python-jinja... Optional dependencies for python-jinja python-babel: for i18n support installing python-itsdangerous... installing python-click... installing python-blinker... installing python-flask... Optional dependencies for python-flask python-asgiref: async functions and views python-dotenv: loading env vars from files installing python-greenlet... installing python-sqlalchemy... Optional dependencies for python-sqlalchemy python-psycopg2: connect to PostgreSQL database installing python-flask-sqlalchemy... installing python-parameterized... installing python-six... installing python-requests-mock... installing python-wrapt... installing python-deprecated... installing python-jwcrypto... installing python-pytest-mock... installing consul... [?25h==> Retrieving sources...  -> Found hvac-2.0.0.tar.gz  -> Found python-hvac-vault-1.15.patch  -> Found mock.diff ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources...  -> Extracting hvac-2.0.0.tar.gz with bsdtar ==> Starting prepare()... '/usr/bin/vault' -> 'vault-unprivileged/vault' patching file .github/workflows/lint-and-test.yml patching file tests/integration_tests/api/auth_methods/test_kubernetes.py patching file tests/unit_tests/v1/test_system_backend_methods.py ==> Starting build()... * Getting build dependencies for wheel... * Building wheel... Successfully built hvac-2.0.0-py3-none-any.whl ==> Starting check()... ============================= test session starts ============================== platform linux -- Python 3.11.5, pytest-7.4.3, pluggy-1.3.0 rootdir: /build/python-hvac/src/hvac-2.0.0 plugins: requests-mock-1.11.0, mock-3.12.0 collected 1464 items tests/integration_tests/api/auth_methods/test_approle.py ............... [ 1%] ..... [ 1%] tests/integration_tests/api/auth_methods/test_azure.py ................. [ 2%] .. [ 2%] tests/integration_tests/api/auth_methods/test_cert.py .................. [ 3%] .......... [ 4%] tests/integration_tests/api/auth_methods/test_gcp.py ................... [ 5%] .. [ 6%] tests/integration_tests/api/auth_methods/test_github.py ................ [ 7%] .... [ 7%] tests/integration_tests/api/auth_methods/test_jwt.py ....... [ 7%] tests/integration_tests/api/auth_methods/test_kubernetes.py ............ [ 8%] ....... [ 9%] tests/integration_tests/api/auth_methods/test_legacy_mfa.py ssssssssss [ 9%] tests/integration_tests/api/auth_methods/test_oidc.py ....... [ 10%] tests/integration_tests/api/auth_methods/test_okta.py .................. [ 11%] . [ 11%] tests/integration_tests/api/auth_methods/test_token.py ............. [ 12%] tests/integration_tests/api/secrets_engines/test_aws.py .......... [ 13%] tests/integration_tests/api/secrets_engines/test_azure.py .... [ 13%] tests/integration_tests/api/secrets_engines/test_gcp.py . [ 13%] tests/integration_tests/api/secrets_engines/test_identity.py ........... [ 14%] ........................................................................ [ 19%] ............ [ 20%] tests/integration_tests/api/secrets_engines/test_kv_v1.py ............ [ 20%] tests/integration_tests/api/secrets_engines/test_kv_v2.py .............. [ 21%] ...................................................................... [ 26%] tests/integration_tests/api/secrets_engines/test_pki.py ................ [ 27%] .......... [ 28%] tests/integration_tests/api/secrets_engines/test_ssh.py .s..s.......F.. [ 29%] tests/integration_tests/api/secrets_engines/test_transform.py ssssssssss [ 30%] sssssssssss [ 30%] tests/integration_tests/api/secrets_engines/test_transit.py ............ [ 31%] ................................... [ 34%] tests/integration_tests/api/system_backend/test_audit.py ... [ 34%] tests/integration_tests/api/system_backend/test_auth.py .. [ 34%] tests/integration_tests/api/system_backend/test_health.py ...... [ 34%] tests/integration_tests/api/system_backend/test_init.py .. [ 34%] tests/integration_tests/api/system_backend/test_key.py ...... [ 35%] tests/integration_tests/api/system_backend/test_leader.py . [ 35%] tests/integration_tests/api/system_backend/test_lease.py ..... [ 35%] tests/integration_tests/api/system_backend/test_mount.py .. [ 35%] tests/integration_tests/api/system_backend/test_namespace.py s [ 35%] tests/integration_tests/api/system_backend/test_policy.py .... [ 36%] tests/integration_tests/api/system_backend/test_seal.py .. [ 36%] tests/integration_tests/api/system_backend/test_wrapping.py . [ 36%] tests/integration_tests/v1/test_approle.py ........ [ 36%] tests/integration_tests/v1/test_integration.py ......................... [ 38%] . [ 38%] tests/integration_tests/v1/test_system_backend.py ...................... [ 40%] ...... [ 40%] tests/unit_tests/test_adapters.py ...................................... [ 43%] ........................................................................ [ 48%] ......................... [ 49%] tests/unit_tests/api/test_vault_api_category.py ... [ 50%] tests/unit_tests/api/auth_methods/test_approle.py ...................... [ 51%] ........... [ 52%] tests/unit_tests/api/auth_methods/test_azure.py ...... [ 52%] tests/unit_tests/api/auth_methods/test_gcp.py . [ 52%] tests/unit_tests/api/auth_methods/test_github.py .............. [ 53%] tests/unit_tests/api/auth_methods/test_jwt.py ... [ 53%] tests/unit_tests/api/auth_methods/test_kubernetes.py ............. [ 54%] tests/unit_tests/api/auth_methods/test_ldap.py ...................... [ 56%] tests/unit_tests/api/auth_methods/test_legacy_mfa.py .......... [ 57%] tests/unit_tests/api/auth_methods/test_okta.py . [ 57%] tests/unit_tests/api/auth_methods/test_token.py ........................ [ 58%] ........................................................................ [ 63%] ........................................................................ [ 68%] ........................................................................ [ 73%] ................ [ 74%] tests/unit_tests/api/secrets_engines/test_aws.py ... [ 74%] tests/unit_tests/api/secrets_engines/test_azure.py ... [ 75%] tests/unit_tests/api/secrets_engines/test_database.py ... [ 75%] tests/unit_tests/api/secrets_engines/test_gcp.py ....................... [ 76%] ......................................... [ 79%] tests/unit_tests/api/secrets_engines/test_kv.py .................. [ 80%] tests/unit_tests/api/system_backend/test_init.py ............... [ 81%] tests/unit_tests/utils/test_utils.py ................................... [ 84%] ........................................................................ [ 89%] ........................................................................ [ 94%] ............ [ 94%] tests/unit_tests/v1/test_approle_routes.py .......................... [ 96%] tests/unit_tests/v1/test_auth_methods.py .. [ 96%] tests/unit_tests/v1/test_aws_ec2_methods.py ........................ [ 98%] tests/unit_tests/v1/test_aws_iam_methods.py . [ 98%] tests/unit_tests/v1/test_client.py . [ 98%] tests/unit_tests/v1/test_gcp_methods.py .. [ 98%] tests/unit_tests/v1/test_system_backend_methods.py ................... [100%] =================================== FAILURES =================================== _____________________ TestPki.test_sign_ssh_key_0_success ______________________ self = conn = method = 'POST', url = '/v1/ssh-integration-test/config/ca' timeout = Timeout(connect=30, read=30, total=None), chunked = False httplib_request_kw = {'body': b'{"private_key": "", "public_key": "", "generate_signing_key": true, "key_type": "ssh-rsa", "key_bits": 0}',... 'true', 'X-Vault-Token': 'hvs.nCSBDKMlhIqrSNtYbAPa8wXM', 'Content-Length': '105', 'Content-Type': 'application/json'}} timeout_obj = Timeout(connect=30, read=30, total=None), read_timeout = 30 def _make_request( self, conn, method, url, timeout=_Default, chunked=False, **httplib_request_kw ): """ Perform a request on a given urllib connection object taken from our pool. :param conn: a connection from one of our connection pools :param timeout: Socket timeout in seconds for the request. This can be a float or integer, which will set the same timeout value for the socket connect and the socket read, or an instance of :class:`urllib3.util.Timeout`, which gives you more fine-grained control over your timeouts. """ self.num_requests += 1 timeout_obj = self._get_timeout(timeout) timeout_obj.start_connect() conn.timeout = Timeout.resolve_default_timeout(timeout_obj.connect_timeout) # Trigger any extra validation we need to do. try: self._validate_conn(conn) except (SocketTimeout, BaseSSLError) as e: # Py2 raises this as a BaseSSLError, Py3 raises it as socket timeout. self._raise_timeout(err=e, url=url, timeout_value=conn.timeout) raise # conn.request() calls http.client.*.request, not the method in # urllib3.request. It also calls makefile (recv) on the socket. try: if chunked: conn.request_chunked(method, url, **httplib_request_kw) else: conn.request(method, url, **httplib_request_kw) # We are swallowing BrokenPipeError (errno.EPIPE) since the server is # legitimately able to close the connection after sending a valid response. # With this behaviour, the received response is still readable. except BrokenPipeError: # Python 3 pass except IOError as e: # Python 2 and macOS/Linux # EPIPE and ESHUTDOWN are BrokenPipeError on Python 2, and EPROTOTYPE is needed on macOS # https://erickt.github.io/blog/2014/11/19/adventures-in-debugging-a-potential-osx-kernel-bug/ if e.errno not in { errno.EPIPE, errno.ESHUTDOWN, errno.EPROTOTYPE, }: raise # Reset the timeout for the recv() on the socket read_timeout = timeout_obj.read_timeout # App Engine doesn't have a sock attr if getattr(conn, "sock", None): # In Python 3 socket.py will catch EAGAIN and return None when you # try and read into the file pointer created by http.client, which # instead raises a BadStatusLine exception. Instead of catching # the exception and assuming all BadStatusLine exceptions are read # timeouts, check for a zero timeout before making the request. if read_timeout == 0: raise ReadTimeoutError( self, url, "Read timed out. (read timeout=%s)" % read_timeout ) if read_timeout is Timeout.DEFAULT_TIMEOUT: conn.sock.settimeout(socket.getdefaulttimeout()) else: # None or a value conn.sock.settimeout(read_timeout) # Receive the response from the server try: try: # Python 2.7, use buffering of HTTP responses httplib_response = conn.getresponse(buffering=True) except TypeError: # Python 3 try: httplib_response = conn.getresponse() except BaseException as e: # Remove the TypeError from the exception chain in # Python 3 (including for exceptions like SystemExit). # Otherwise it looks like a bug in the code. > six.raise_from(e, None) /usr/lib/python3.11/site-packages/urllib3/connectionpool.py:449: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/urllib3/connectionpool.py:444: in _make_request httplib_response = conn.getresponse() /usr/lib/python3.11/http/client.py:1378: in getresponse response.begin() /usr/lib/python3.11/http/client.py:318: in begin version, status, reason = self._read_status() /usr/lib/python3.11/http/client.py:279: in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") /usr/lib/python3.11/socket.py:706: in readinto return self._sock.recv_into(b) /usr/lib/python3.11/ssl.py:1311: in recv_into return self.read(nbytes, buffer) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = , len = 8192 buffer = def read(self, len=1024, buffer=None): """Read up to LEN bytes and return them. Return zero-length string on EOF.""" self._checkClosed() if self._sslobj is None: raise ValueError("Read on closed or unwrapped SSL socket.") try: if buffer is not None: > return self._sslobj.read(len, buffer) E TimeoutError: The read operation timed out /usr/lib/python3.11/ssl.py:1167: TimeoutError During handling of the above exception, another exception occurred: self = request = , stream = False timeout = Timeout(connect=30, read=30, total=None) verify = '/build/python-hvac/src/hvac-2.0.0/tests/config_files/server-cert.pem' cert = ('/build/python-hvac/src/hvac-2.0.0/tests/config_files/client-cert.pem', '/build/python-hvac/src/hvac-2.0.0/tests/config_files/client-key.pem') proxies = {} def send( self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None ): """Sends PreparedRequest object. Returns Response object. :param request: The :class:`PreparedRequest ` being sent. :param stream: (optional) Whether to stream the request content. :param timeout: (optional) How long to wait for the server to send data before giving up, as a float, or a :ref:`(connect timeout, read timeout) ` tuple. :type timeout: float or tuple or urllib3 Timeout object :param verify: (optional) Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA bundle to use :param cert: (optional) Any user-provided SSL certificate to be trusted. :param proxies: (optional) The proxies dictionary to apply to the request. :rtype: requests.Response """ try: conn = self.get_connection(request.url, proxies) except LocationValueError as e: raise InvalidURL(e, request=request) self.cert_verify(conn, request.url, verify, cert) url = self.request_url(request, proxies) self.add_headers( request, stream=stream, timeout=timeout, verify=verify, cert=cert, proxies=proxies, ) chunked = not (request.body is None or "Content-Length" in request.headers) if isinstance(timeout, tuple): try: connect, read = timeout timeout = TimeoutSauce(connect=connect, read=read) except ValueError: raise ValueError( f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " f"or a single float to set both timeouts to the same value." ) elif isinstance(timeout, TimeoutSauce): pass else: timeout = TimeoutSauce(connect=timeout, read=timeout) try: > resp = conn.urlopen( method=request.method, url=url, body=request.body, headers=request.headers, redirect=False, assert_same_host=False, preload_content=False, decode_content=False, retries=self.max_retries, timeout=timeout, chunked=chunked, ) /usr/lib/python3.11/site-packages/requests/adapters.py:486: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.11/site-packages/urllib3/connectionpool.py:787: in urlopen retries = retries.increment( /usr/lib/python3.11/site-packages/urllib3/util/retry.py:550: in increment raise six.reraise(type(error), error, _stacktrace) /usr/lib/python3.11/site-packages/urllib3/packages/six.py:770: in reraise raise value /usr/lib/python3.11/site-packages/urllib3/connectionpool.py:703: in urlopen httplib_response = self._make_request( /usr/lib/python3.11/site-packages/urllib3/connectionpool.py:451: in _make_request self._raise_timeout(err=e, url=url, timeout_value=read_timeout) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = err = TimeoutError('The read operation timed out') url = '/v1/ssh-integration-test/config/ca', timeout_value = 30 def _raise_timeout(self, err, url, timeout_value): """Is the error actually a timeout? Will raise a ReadTimeout or pass""" if isinstance(err, SocketTimeout): > raise ReadTimeoutError( self, url, "Read timed out. (read timeout=%s)" % timeout_value ) E urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='localhost', port=8200): Read timed out. (read timeout=30) /usr/lib/python3.11/site-packages/urllib3/connectionpool.py:340: ReadTimeoutError During handling of the above exception, another exception occurred: a = (,) @wraps(func) def standalone_func(*a): > return func(*(a + p.args), **p.kwargs) /usr/lib/python3.11/site-packages/parameterized/parameterized.py:533: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/integration_tests/api/secrets_engines/test_ssh.py:491: in test_sign_ssh_key self.client.secrets.ssh.submit_ca_information( hvac/api/secrets_engines/ssh.py:462: in submit_ca_information return self._adapter.post( hvac/adapters.py:159: in post return self.request("post", url, **kwargs) hvac/adapters.py:408: in request response = super().request(*args, **kwargs) hvac/adapters.py:367: in request response = self.session.request( /usr/lib/python3.11/site-packages/requests/sessions.py:589: in request resp = self.send(prep, **send_kwargs) /usr/lib/python3.11/site-packages/requests/sessions.py:703: in send r = adapter.send(request, **kwargs) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = request = , stream = False timeout = Timeout(connect=30, read=30, total=None) verify = '/build/python-hvac/src/hvac-2.0.0/tests/config_files/server-cert.pem' cert = ('/build/python-hvac/src/hvac-2.0.0/tests/config_files/client-cert.pem', '/build/python-hvac/src/hvac-2.0.0/tests/config_files/client-key.pem') proxies = {} def send( self, request, stream=False, timeout=None, verify=True, cert=None, proxies=None ): """Sends PreparedRequest object. Returns Response object. :param request: The :class:`PreparedRequest ` being sent. :param stream: (optional) Whether to stream the request content. :param timeout: (optional) How long to wait for the server to send data before giving up, as a float, or a :ref:`(connect timeout, read timeout) ` tuple. :type timeout: float or tuple or urllib3 Timeout object :param verify: (optional) Either a boolean, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA bundle to use :param cert: (optional) Any user-provided SSL certificate to be trusted. :param proxies: (optional) The proxies dictionary to apply to the request. :rtype: requests.Response """ try: conn = self.get_connection(request.url, proxies) except LocationValueError as e: raise InvalidURL(e, request=request) self.cert_verify(conn, request.url, verify, cert) url = self.request_url(request, proxies) self.add_headers( request, stream=stream, timeout=timeout, verify=verify, cert=cert, proxies=proxies, ) chunked = not (request.body is None or "Content-Length" in request.headers) if isinstance(timeout, tuple): try: connect, read = timeout timeout = TimeoutSauce(connect=connect, read=read) except ValueError: raise ValueError( f"Invalid timeout {timeout}. Pass a (connect, read) timeout tuple, " f"or a single float to set both timeouts to the same value." ) elif isinstance(timeout, TimeoutSauce): pass else: timeout = TimeoutSauce(connect=timeout, read=timeout) try: resp = conn.urlopen( method=request.method, url=url, body=request.body, headers=request.headers, redirect=False, assert_same_host=False, preload_content=False, decode_content=False, retries=self.max_retries, timeout=timeout, chunked=chunked, ) except (ProtocolError, OSError) as err: raise ConnectionError(err, request=request) except MaxRetryError as e: if isinstance(e.reason, ConnectTimeoutError): # TODO: Remove this in 3.0.0: see #2811 if not isinstance(e.reason, NewConnectionError): raise ConnectTimeout(e, request=request) if isinstance(e.reason, ResponseError): raise RetryError(e, request=request) if isinstance(e.reason, _ProxyError): raise ProxyError(e, request=request) if isinstance(e.reason, _SSLError): # This branch is for urllib3 v1.22 and later. raise SSLError(e, request=request) raise ConnectionError(e, request=request) except ClosedPoolError as e: raise ConnectionError(e, request=request) except _ProxyError as e: raise ProxyError(e) except (_SSLError, _HTTPError) as e: if isinstance(e, _SSLError): # This branch is for urllib3 versions earlier than v1.22 raise SSLError(e, request=request) elif isinstance(e, ReadTimeoutError): > raise ReadTimeout(e, request=request) E requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='localhost', port=8200): Read timed out. (read timeout=30) /usr/lib/python3.11/site-packages/requests/adapters.py:532: ReadTimeout =============================== warnings summary =============================== tests/utils/__init__.py:10 /build/python-hvac/src/hvac-2.0.0/tests/utils/__init__.py:10: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives from distutils.spawn import find_executable ../../../../usr/lib/python3.11/site-packages/flask_sqlalchemy/__init__.py:14 ../../../../usr/lib/python3.11/site-packages/flask_sqlalchemy/__init__.py:14 /usr/lib/python3.11/site-packages/flask_sqlalchemy/__init__.py:14: DeprecationWarning: '_app_ctx_stack' is deprecated and will be removed in Flask 2.4. from flask import _app_ctx_stack, abort, current_app, request tests/integration_tests/api/auth_methods/test_approle.py: 1 warning tests/integration_tests/api/auth_methods/test_azure.py: 1 warning tests/integration_tests/api/auth_methods/test_cert.py: 2 warnings tests/integration_tests/api/auth_methods/test_gcp.py: 1 warning tests/integration_tests/api/auth_methods/test_github.py: 1 warning tests/integration_tests/api/auth_methods/test_jwt.py: 1 warning tests/integration_tests/api/auth_methods/test_kubernetes.py: 1 warning tests/integration_tests/api/auth_methods/test_oidc.py: 1 warning tests/integration_tests/api/auth_methods/test_okta.py: 1 warning tests/integration_tests/api/auth_methods/test_token.py: 1 warning tests/integration_tests/api/secrets_engines/test_aws.py: 1 warning tests/integration_tests/api/secrets_engines/test_azure.py: 1 warning tests/integration_tests/api/secrets_engines/test_gcp.py: 1 warning tests/integration_tests/api/secrets_engines/test_identity.py: 1 warning tests/integration_tests/api/secrets_engines/test_kv_v1.py: 1 warning tests/integration_tests/api/secrets_engines/test_kv_v2.py: 1 warning tests/integration_tests/api/secrets_engines/test_pki.py: 1 warning tests/integration_tests/api/secrets_engines/test_ssh.py: 1 warning tests/integration_tests/api/secrets_engines/test_transit.py: 1 warning tests/integration_tests/api/system_backend/test_audit.py: 1 warning tests/integration_tests/api/system_backend/test_auth.py: 1 warning tests/integration_tests/api/system_backend/test_health.py: 3 warnings tests/integration_tests/api/system_backend/test_init.py: 1 warning tests/integration_tests/api/system_backend/test_key.py: 1 warning tests/integration_tests/api/system_backend/test_leader.py: 1 warning tests/integration_tests/api/system_backend/test_lease.py: 1 warning tests/integration_tests/api/system_backend/test_mount.py: 1 warning tests/integration_tests/api/system_backend/test_policy.py: 1 warning tests/integration_tests/api/system_backend/test_seal.py: 1 warning tests/integration_tests/api/system_backend/test_wrapping.py: 1 warning tests/integration_tests/v1/test_approle.py: 1 warning tests/integration_tests/v1/test_integration.py: 1 warning tests/integration_tests/v1/test_system_backend.py: 1 warning /build/python-hvac/src/hvac-2.0.0/tests/utils/server_manager.py:166: DeprecationWarning: The secret_shares parameter will default to None in hvac v3.0.0. To use the old default with no warning, explicitly set this value to 5. See https://github.com/hvac/hvac/issues/1030 result = self.client.sys.initialize() tests/integration_tests/api/auth_methods/test_approle.py: 1 warning tests/integration_tests/api/auth_methods/test_azure.py: 1 warning tests/integration_tests/api/auth_methods/test_cert.py: 2 warnings tests/integration_tests/api/auth_methods/test_gcp.py: 1 warning tests/integration_tests/api/auth_methods/test_github.py: 1 warning tests/integration_tests/api/auth_methods/test_jwt.py: 1 warning tests/integration_tests/api/auth_methods/test_kubernetes.py: 1 warning tests/integration_tests/api/auth_methods/test_oidc.py: 1 warning tests/integration_tests/api/auth_methods/test_okta.py: 1 warning tests/integration_tests/api/auth_methods/test_token.py: 1 warning tests/integration_tests/api/secrets_engines/test_aws.py: 1 warning tests/integration_tests/api/secrets_engines/test_azure.py: 1 warning tests/integration_tests/api/secrets_engines/test_gcp.py: 1 warning tests/integration_tests/api/secrets_engines/test_identity.py: 1 warning tests/integration_tests/api/secrets_engines/test_kv_v1.py: 1 warning tests/integration_tests/api/secrets_engines/test_kv_v2.py: 1 warning tests/integration_tests/api/secrets_engines/test_pki.py: 1 warning tests/integration_tests/api/secrets_engines/test_ssh.py: 1 warning tests/integration_tests/api/secrets_engines/test_transit.py: 1 warning tests/integration_tests/api/system_backend/test_audit.py: 1 warning tests/integration_tests/api/system_backend/test_auth.py: 1 warning tests/integration_tests/api/system_backend/test_health.py: 3 warnings tests/integration_tests/api/system_backend/test_init.py: 1 warning tests/integration_tests/api/system_backend/test_key.py: 1 warning tests/integration_tests/api/system_backend/test_leader.py: 1 warning tests/integration_tests/api/system_backend/test_lease.py: 1 warning tests/integration_tests/api/system_backend/test_mount.py: 1 warning tests/integration_tests/api/system_backend/test_policy.py: 1 warning tests/integration_tests/api/system_backend/test_seal.py: 1 warning tests/integration_tests/api/system_backend/test_wrapping.py: 1 warning tests/integration_tests/v1/test_approle.py: 1 warning tests/integration_tests/v1/test_integration.py: 1 warning tests/integration_tests/v1/test_system_backend.py: 1 warning /build/python-hvac/src/hvac-2.0.0/tests/utils/server_manager.py:166: DeprecationWarning: The secret_threshold parameter will default to None in hvac v3.0.0. To use the old default with no warning, explicitly set this value to 3. See https://github.com/hvac/hvac/issues/1030 result = self.client.sys.initialize() tests/integration_tests/api/auth_methods/test_cert.py::TestCert::test_create_ca_certificate_with_filename_deprecated tests/integration_tests/api/auth_methods/test_cert.py::TestCertEnv::test_create_ca_certificate_with_filename_deprecated /build/python-hvac/src/hvac-2.0.0/hvac/api/auth_methods/cert.py:120: UserWarning: Passing a certificate file path to `certificate` is deprecated and will be removed in v3.0.0;use `certificate_file` instead. (See https://github.com/hvac/hvac/issues/914) warnings.warn( tests/integration_tests/api/auth_methods/test_token.py::TestToken::test_policy /usr/lib/python3.11/unittest/case.py:678: DeprecationWarning: It is deprecated to return a value that is not None from a test case (>) return self.run(*args, **kwds) tests/integration_tests/api/auth_methods/test_token.py::TestToken::test_role /usr/lib/python3.11/unittest/case.py:678: DeprecationWarning: It is deprecated to return a value that is not None from a test case (>) return self.run(*args, **kwds) tests/integration_tests/api/secrets_engines/test_kv_v2.py::TestKvV2::test_patch_0_add_new_key_to_existing_secret tests/integration_tests/api/secrets_engines/test_kv_v2.py::TestKvV2::test_patch_1_add_new_key_to_nonexistent_secret tests/integration_tests/api/secrets_engines/test_kv_v2.py::TestKvV2::test_patch_2_update_existing_key_on_existing_secret /build/python-hvac/src/hvac-2.0.0/hvac/api/secrets_engines/kv_v2.py:224: DeprecationWarning: The raise_on_deleted_version parameter will change its default value to False in hvac v3.0.0. The current default of True will presere previous behavior. To use the old behavior with no warning, explicitly set this value to True. See https://github.com/hvac/hvac/pull/907 current_secret_version = self.read_secret_version( tests/integration_tests/api/secrets_engines/test_kv_v2.py::TestKvV2::test_patch_0_add_new_key_to_existing_secret tests/integration_tests/api/secrets_engines/test_kv_v2.py::TestKvV2::test_patch_2_update_existing_key_on_existing_secret /build/python-hvac/src/hvac-2.0.0/tests/integration_tests/api/secrets_engines/test_kv_v2.py:269: DeprecationWarning: The raise_on_deleted_version parameter will change its default value to False in hvac v3.0.0. The current default of True will presere previous behavior. To use the old behavior with no warning, explicitly set this value to True. See https://github.com/hvac/hvac/pull/907 read_secret_result = self.client.secrets.kv.v2.read_secret_version( tests/integration_tests/api/secrets_engines/test_kv_v2.py::TestKvV2::test_read_secret_version_0_nonexistent_secret /build/python-hvac/src/hvac-2.0.0/tests/integration_tests/api/secrets_engines/test_kv_v2.py:115: DeprecationWarning: The raise_on_deleted_version parameter will change its default value to False in hvac v3.0.0. The current default of True will presere previous behavior. To use the old behavior with no warning, explicitly set this value to True. See https://github.com/hvac/hvac/pull/907 self.client.secrets.kv.v2.read_secret_version( tests/integration_tests/api/secrets_engines/test_kv_v2.py::TestKvV2::test_read_secret_version_1_read_secret_version_2_back tests/integration_tests/api/secrets_engines/test_kv_v2.py::TestKvV2::test_read_secret_version_2_read_secret_version_1_back tests/integration_tests/api/secrets_engines/test_kv_v2.py::TestKvV2::test_read_secret_version_3_read_current_secret_version tests/integration_tests/api/secrets_engines/test_kv_v2.py::TestKvV2::test_read_secret_version_4_read_current_secret_version /build/python-hvac/src/hvac-2.0.0/tests/integration_tests/api/secrets_engines/test_kv_v2.py:121: DeprecationWarning: The raise_on_deleted_version parameter will change its default value to False in hvac v3.0.0. The current default of True will presere previous behavior. To use the old behavior with no warning, explicitly set this value to True. See https://github.com/hvac/hvac/pull/907 read_secret_result = self.client.secrets.kv.v2.read_secret_version( tests/integration_tests/api/system_backend/test_lease.py::TestLease::test_list_leases /build/python-hvac/src/hvac-2.0.0/tests/integration_tests/api/system_backend/test_lease.py:39: DeprecationWarning: write() argument 'path' was supplied as a keyword argument and will not be written as data. To write this data with a 'path' key, use the write_data() method. To continue using write() and suppress this warning, supply this argument positionally. For more information see: https://github.com/hvac/hvac/issues/1034 self.client.write( tests/integration_tests/api/system_backend/test_lease.py::TestLease::test_read_lease /build/python-hvac/src/hvac-2.0.0/tests/integration_tests/api/system_backend/test_lease.py:21: DeprecationWarning: write() argument 'path' was supplied as a keyword argument and will not be written as data. To write this data with a 'path' key, use the write_data() method. To continue using write() and suppress this warning, supply this argument positionally. For more information see: https://github.com/hvac/hvac/issues/1034 pki_issue_response = self.client.write( tests/integration_tests/api/system_backend/test_lease.py::TestLease::test_revoke_force /build/python-hvac/src/hvac-2.0.0/tests/integration_tests/api/system_backend/test_lease.py:93: DeprecationWarning: write() argument 'path' was supplied as a keyword argument and will not be written as data. To write this data with a 'path' key, use the write_data() method. To continue using write() and suppress this warning, supply this argument positionally. For more information see: https://github.com/hvac/hvac/issues/1034 pki_issue_response = self.client.write( tests/integration_tests/api/system_backend/test_lease.py::TestLease::test_revoke_lease /build/python-hvac/src/hvac-2.0.0/tests/integration_tests/api/system_backend/test_lease.py:55: DeprecationWarning: write() argument 'path' was supplied as a keyword argument and will not be written as data. To write this data with a 'path' key, use the write_data() method. To continue using write() and suppress this warning, supply this argument positionally. For more information see: https://github.com/hvac/hvac/issues/1034 pki_issue_response = self.client.write( tests/integration_tests/api/system_backend/test_lease.py::TestLease::test_revoke_prefix /build/python-hvac/src/hvac-2.0.0/tests/integration_tests/api/system_backend/test_lease.py:76: DeprecationWarning: write() argument 'path' was supplied as a keyword argument and will not be written as data. To write this data with a 'path' key, use the write_data() method. To continue using write() and suppress this warning, supply this argument positionally. For more information see: https://github.com/hvac/hvac/issues/1034 pki_issue_response = self.client.write( tests/integration_tests/api/system_backend/test_wrapping.py::TestWrapping::test_unwrap /build/python-hvac/src/hvac-2.0.0/tests/integration_tests/api/system_backend/test_wrapping.py:19: DeprecationWarning: write() argument 'path' was supplied as a keyword argument and will not be written as data. To write this data with a 'path' key, use the write_data() method. To continue using write() and suppress this warning, supply this argument positionally. For more information see: https://github.com/hvac/hvac/issues/1034 self.client.write( tests/integration_tests/api/system_backend/test_wrapping.py::TestWrapping::test_unwrap /build/python-hvac/src/hvac-2.0.0/tests/integration_tests/api/system_backend/test_wrapping.py:22: DeprecationWarning: write() argument 'path' was supplied as a keyword argument and will not be written as data. To write this data with a 'path' key, use the write_data() method. To continue using write() and suppress this warning, supply this argument positionally. For more information see: https://github.com/hvac/hvac/issues/1034 result = self.client.write( tests/integration_tests/api/system_backend/test_wrapping.py::TestWrapping::test_unwrap /build/python-hvac/src/hvac-2.0.0/tests/integration_tests/api/system_backend/test_wrapping.py:22: DeprecationWarning: write() argument 'wrap_ttl' was supplied as a keyword argument and will not be written as data. To write this data with a 'wrap_ttl' key, use the write_data() method. To continue using write() and suppress this warning, supply this argument positionally. For more information see: https://github.com/hvac/hvac/issues/1034 result = self.client.write( -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/integration_tests/api/secrets_engines/test_ssh.py::TestPki::test_sign_ssh_key_0_success ===== 1 failed, 1429 passed, 34 skipped, 97 warnings in 653.56s (0:10:53) ====== ==> ERROR: A failure occurred in check().  Aborting... ==> ERROR: Build failed, check /var/lib/archbuild/extra-riscv64/root8/build receiving incremental file list python-hvac-2.0.0-1-riscv64-build.log python-hvac-2.0.0-1-riscv64-check.log python-hvac-2.0.0-1-riscv64-prepare.log sent 81 bytes received 7,095 bytes 14,352.00 bytes/sec total size is 39,021 speedup is 5.44