Creating a new topic to highlight this issue.
Goal:
Trying to register and onboard Capif for our NetApp.
Issue:
Registration fails when running the prepare.sh script:
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host=‘capifcore’, port=8080): Max retries exceeded with url: /register (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x7f2a35c3e9b0>: Failed to establish a new connection: [Errno -2] Name or service not known’))
Steps to reproduce:
- Start from scratch: clone Capif repo, run ./run.sh. All services are now running.
- Get last NEF emulator version, build and start it. Nef correctly registered into Capif.
- Set prepare.sh end of line characters to Unix style (otherwise, it will be skipped or produce errors on Windows).
- Add capifcore as extra_hosts in the docker-compose file of the NetApp
- Build and run the NetApp container (docker-compose up --build -d). This triggers the prepare.sh script and the error described above.
Hypothesis:
The capifcore is not correctly set, thus the connection cannot be established.
What I have tried
- Using extra_hosts to setup capifcore with host-gateway (like in the dummy-netapp)
- Same, but with direct ip (172.18.0.1, based on docker inspection to have an idea of potential ip. Also tried with 172.17.0.1 as initially written in prepare.sh script)
- Trying to complete /etc/hosts directly (not possible, read-only file system error).
Setup:
Windows 10, Git-for-Windows bash
Last NEF emulator version
Last Capif version
evolved5g SDK version 0.8.3
NetApp Dockerfile:
NetApp docker-compose file:
.env file:
prepare.sh script:
I have been stuck on this error for quite a while now, thank you in advance for your help.