Skip to content

rpcbind_test.py fails for standard gitlab-ci configuration #3599

@xdustinface

Description

@xdustinface

From #3598

It fails with

AssertionError: not({('7f000001', 19180), ('00000000000000000000000000000001', 19180)} == {('00000000000000000000000000000000', 19180)})

here

assert_equal(set(get_bind_addrs(pid)), set(expected))

due to this test

self.run_bind_test(['127.0.0.1'], '127.0.0.1', [],
[('::0', defaultport)])

It looks like

def get_bind_addrs(pid):
'''
Get bind addresses as (host,port) tuples for process pid.
'''
inodes = get_socket_inodes(pid)
bind_addrs = []
for conn in netstat('tcp') + netstat('tcp6'):
if conn[3] == STATE_LISTEN and conn[4] in inodes:
bind_addrs.append(conn[1])
return bind_addrs

is just not working properly for some setups. Which causes this wrong "host,port" tuple -> ('7f000001', 19180)

and on top it looks like this

self.run_bind_test(['127.0.0.1'], '127.0.0.1', [],
[('::0', defaultport)])

should rather be

self.run_bind_test(['127.0.0.1'], '127.0.0.1', [], 
    [('::1', defaultport)]) 

Im not sure at all so this would require some investigation from my side.. maybe someone else has a clue already?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions