I'm trying to add a github action workflow for ovirt-imageio.

The yml file is simple:
https://github.com/nirs/ovirt-imageio/commit/21da91274b7b4722167c2415d1c1b5db08c5e88b

And all the jobs run, but tons of tests are failing:
https://github.com/nirs/ovirt-imageio/actions/runs/1527728851

The typical failure is:

2021-12-01T20:50:07.6424921Z address = ('::', 43001), timeout =
<object object at 0x7f2cb7d16270>
2021-12-01T20:50:07.6425749Z source_address = None
2021-12-01T20:50:07.6425985Z
2021-12-01T20:50:07.6426421Z     def create_connection(address,
timeout=_GLOBAL_DEFAULT_TIMEOUT,
2021-12-01T20:50:07.6426954Z                           source_address=None):
...
2021-12-01T20:50:07.6435579Z         host, port = address
2021-12-01T20:50:07.6435942Z         err = None
2021-12-01T20:50:07.6436563Z         for res in getaddrinfo(host,
port, 0, SOCK_STREAM):
2021-12-01T20:50:07.6437402Z             af, socktype, proto,
canonname, sa = res
2021-12-01T20:50:07.6437834Z             sock = None
2021-12-01T20:50:07.6438146Z             try:
2021-12-01T20:50:07.6438522Z                 sock = socket(af, socktype, proto)
2021-12-01T20:50:07.6439032Z                 if timeout is not
_GLOBAL_DEFAULT_TIMEOUT:
2021-12-01T20:50:07.6439538Z                     sock.settimeout(timeout)
2021-12-01T20:50:07.6440109Z                 if source_address:
2021-12-01T20:50:07.6440522Z                     sock.bind(source_address)
2021-12-01T20:50:07.6440916Z >               sock.connect(sa)
2021-12-01T20:50:07.6441573Z E               OSError: [Errno 99]
Cannot assign requested address

I guess that ipv6 is disabled, and google confirms that github actions
and ipv6 is
an issue.

In travis we enabled ipv6 in docker using this script:
https://github.com/oVirt/ovirt-imageio/blob/master/travis/configure-docker.py

Run before starting the job:
https://github.com/oVirt/ovirt-imageio/blob/61f023bf1e45da4e98593278451030f433080ab0/.travis.yml#L15

I did not try to run this script yet, since I'm not sure we have a way
to run stuff *before*
the container runs in github actions.

I hope someone has some insight on a way to solve this.

Nir
_______________________________________________
Devel mailing list -- devel@ovirt.org
To unsubscribe send an email to devel-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/devel@ovirt.org/message/467GFY5UP67PTCRNTHZWWIHA3H5YRIZ7/

Reply via email to