[integration-tests] filedescriptor out of range in select() exception in some test cases

Bug #1584726 reported by Georgy Dyuldin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mirantis OpenStack
Fix Released
Undecided
Georgy Dyuldin

Bug Description

Test result:

https://mirantis.testrail.com/index.php?/tests/view/6049045

Trace:

controller_remote = <mos_tests.environment.ssh.SSHClient object at 0x7f0052202c90> [10.109.2.3:22]
os_conn = <mos_tests.environment.os_actions.OpenStackActions object at 0x7f0052202d90>

    @pytest.mark.testrail_id('842537')
    def test_retrieve_nonroot_certificate(controller_remote, os_conn):
        """Try to retrieve non-root certificate

        Scenario:
            1. Create a default certificate:
                nova x509-create-cert
            2. Make curl query to retrieve root certificate:
                curl -s -H "X-Auth-Token: {token}" \
                {endpoint}/os-certificates/root
            3. Check that certificate data is present in output
            4. Make curl query to retrieve nonroot certificate:
                curl -s -H "X-Auth-Token: {token}" \
                {endpoint}/os-certificates/nonroot
            5. Check that 'Only root certificate can be retrieved' is present
                in output
        """
        os_conn.nova.certs.create()
        token = os_conn.session.get_token()
        endpoint = os_conn.session.get_endpoint(service_type='compute')
        command = (
            'curl -s -H "X-Auth-Token: {token}" '
            '{endpoint}/os-certificates/{{cert_type}}'.format(token=token,
                                                              endpoint=endpoint))
> result = controller_remote.check_call(command.format(cert_type='root'))

mos_tests/nova/negative_test.py:44:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
mos_tests/environment/ssh.py:203: in check_call
    ret = self.execute(command, verbose)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <mos_tests.environment.ssh.SSHClient object at 0x7f0052202c90> [10.109.2.3:22]
command = 'curl -s -H "X-Auth-Token: gAAAAABXPSOGRqdDGAXYjvDcgNzy4p6O71WsgZJ_pCDzSIXGzIBxhiM7KO4XEhZanVcryBNKWI4UgD8sYeWhLq4FgvD...KlOw_Z8NiC3P9GoA_fjqbZy8HCoDa_vpkI_DM" http://10.109.4.4:8774/v2/0ada95a02225483f95e73ae21d8fbdd6/os-certificates/root'
verbose = True, merge_stderr = False

    def execute(self, command, verbose=True, merge_stderr=False):
        chan, stdin, stdout, stderr = self.execute_async(
            command, merge_stderr=merge_stderr)

        stdout_buf = ''
        stderr_buf = ''

        while not chan.closed or chan.recv_ready() or chan.recv_stderr_ready():
> select.select([chan], [], [chan], 60)
E ValueError: filedescriptor out of range in select()

Possible reason:

SSH open connections leak

Tags: area-qa
Revision history for this message
Georgy Dyuldin (g-dyuldin) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.