Ironic API: Address already in use?
Hi,
I'm just starting to install Ironic on my existing OpenStack (Ocata, Ubuntu 16) environment. I am presently https://docs.openstack.org/project-install-guide/baremetal/ocata/configure-integration.html (trying to integrate my compute and baremetal resources), but the Ironic API service is shutting down as soon as it starts. The compute service is still functional and my virtual machines are still running, so I believe this is relevant to the Ironic setup.
The same error message is repeated many thousands of times in /var/log/ironic/ironic-api.log
:
ERROR oslo.service.wsgi [-] Could not bind to 0.0.0.0:6385
CRITICAL ironic [-] error: [Errno 98] Address already in use
ERROR ironic Traceback (most recent call last):
ERROR ironic File "/usr/bin/ironic-api", line 10, in <module>
ERROR ironic sys.exit(main())
ERROR ironic File "/usr/lib/python2.7/dist-packages/ironic/cmd/api.py", line 42, in main
ERROR ironic server = wsgi_service.WSGIService('ironic_api', CONF.api.enable_ssl_api)
ERROR ironic File "/usr/lib/python2.7/dist-packages/ironic/common/wsgi_service.py", line 48, in __init__
ERROR ironic use_ssl=use_ssl)
ERROR ironic File "/usr/lib/python2.7/dist-packages/oslo_service/wsgi.py", line 115, in __init__
ERROR ironic self.socket = self._get_socket(host, port, backlog)
ERROR ironic File "/usr/lib/python2.7/dist-packages/oslo_service/wsgi.py", line 143, in _get_socket
ERROR ironic sock = eventlet.listen(bind_addr, family, backlog=backlog)
ERROR ironic File "/usr/lib/python2.7/dist-packages/eventlet/convenience.py", line 44, in listen
ERROR ironic sock.listen(backlog)
ERROR ironic File "/usr/lib/python2.7/socket.py", line 228, in meth
ERROR ironic return getattr(self._sock,name)(*args)
ERROR ironic error: [Errno 98] Address already in use
I don't see the port 6385 repeated multiple times in any of my configuration files, so I'm not sure what could be causing this issue. Perhaps it is the IP address? I'm not sure what the convention is. The only other mention of this (with the same port and message) is in a https://bugs.launchpad.net/kolla/+bug/1518336 (2015 issue with Kolla) that is said to have been patched around that time (so I don't think it's related to my issue).
Perhaps it is related to the Apache server, as the openstack baremetal node create
command returns "Forbidden (HTTP 403)." It is also visible multiple times with the lsof
command:
# lsof -i | grep 6385
apache2 6699 root 8u IPv6 65122 0t0 TCP *:6385 (LISTEN)
apache2 18825 www-data 8u IPv6 65122 0t0 TCP *:6385 (LISTEN)
apache2 18835 www-data 8u IPv6 65122 0t0 TCP *:6385 (LISTEN)
Ironic is the only OpenStack service configured to use this port:
cat /etc/apache2/sites-enabled/* | grep 6385
Listen 6385
<VirtualHost *:6385>
Has anyone encountered a similar error? Is there anything that can be checked? I must admit, I'm not familiar with Ironic, so some of my configurations might not be entirely correct.
I'd be happy to provide more information if it's needed. Please let me know if there's anything that ...