正常机器上
netstat -lpn | grep 6385
Error contacting Ironic server: Unable to establish connection to http://10.10.16.81:6385/v1/nodes: HTTPConnectionPool(host='10.10.16.81', port=6385): Max retries exceeded with url: /v1/nodes (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0xffffaf2fef50>: Failed to establish a new connection: [Errno 111] Connection refused',)). Attempt 6 of 6 Unable to establish connection to http://10.10.16.81:6385/v1/nodes: HTTPConnectionPool(host='10.10.16.81', port=6385): Max retries exceeded with url: /v1/nodes (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0xffffaf2fef50>: Failed to establish a new connection: [Errno 111] Connection refused',))
ironic对应的业务网卡没有配ip
[root@bogon ironic]# ip a add 172.16.100.99/24 dev enahisic2i2
ironic-conductor.log
[root@bogon ironic]# openstack-service status | grep ironic MainPID=22864 Id=openstack-ironic-api.service ActiveState=active MainPID=22849 Id=openstack-ironic-conductor.service ActiveState=active [root@bogon ironic]# systemctl status openstack-ironic-conductor -l ● openstack-ironic-conductor.service - OpenStack Ironic Conductor service Loaded: loaded (/usr/lib/systemd/system/openstack-ironic-conductor.service; enabled; vendor preset: disabled) Active: active (running) since Wed 2020-06-03 11:19:33 CST; 2s ago Main PID: 23003 (ironic-conducto) Tasks: 1 CGroup: /system.slice/openstack-ironic-conductor.service └─23003 /usr/bin/python2 /usr/bin/ironic-conductor Jun 03 11:19:33 bogon systemd[1]: Started OpenStack Ironic Conductor service. [root@bogon ironic]#
防火墙关闭
__metaclass__=abc.ABCMeta
[root@bogon etc]# systemctl show openstack-ironic-api | grep ExecStart ExecStart={ path=/usr/bin/ironic-api ; argv[]=/usr/bin/ironic-api ; ignore_errors=no ; start_time=[Wed 2020-06-03 11:38:27 CST] ; stop_time=[Wed 2020-06-03 11:38:30 CST] ; pid=32491 ; code=killed ; status=15/TERM } [root@bogon etc]#
[root@bogon etc]# /usr/bin/ironic-api Traceback (most recent call last): File "/usr/bin/ironic-api", line 6, in <module> from ironic.cmd.api import main File "/usr/lib/python2.7/site-packages/ironic/cmd/api.py", line 27, in <module> from ironic.common import wsgi_service File "/usr/lib/python2.7/site-packages/ironic/common/wsgi_service.py", line 17, in <module> from ironic.api import app File "/usr/lib/python2.7/site-packages/ironic/api/app.py", line 26, in <module> from ironic.api import hooks File "/usr/lib/python2.7/site-packages/ironic/api/hooks.py", line 27, in <module> from ironic.conductor import rpcapi File "/usr/lib/python2.7/site-packages/ironic/conductor/rpcapi.py", line 30, in <module> from ironic.conductor import manager File "/usr/lib/python2.7/site-packages/ironic/conductor/manager.py", line 52, in <module> from ironic_lib import metrics_utils File "/usr/lib/python2.7/site-packages/ironic_lib/metrics_utils.py", line 20, in <module> from ironic_lib import metrics File "/usr/lib/python2.7/site-packages/ironic_lib/metrics.py", line 180 class MetricLogger(object, metaclass=abc.ABCMeta): ^ SyntaxError: invalid syntax [root@bogon etc]#
[root@bogon etc]# rpm -qa | grep ironic openstack-ironic-common-10.1.10-1.el7.noarch openstack-ironic-ui-3.1.2-1.el7.noarch openstack-ironic-api-10.1.10-1.el7.noarch python2-ironicclient-2.2.2-1.el7.noarch python2-ironic-neutron-agent-1.0.0-1.el7.noarch openstack-ironic-conductor-10.1.10-1.el7.noarch python-ironic-inspector-client-3.1.2-1.el7.noarch python-ironic-lib-2.12.3-1.el7.noarch
[root@bogon etc]# rpm -e openstack-ironic-api-1:10.1.10-1.el7.noarch openstack-ironic-conductor-1:10.1.10-1.el7.noarch [root@bogon etc]# rpm -qa | grep ironic openstack-ironic-common-10.1.10-1.el7.noarch openstack-ironic-ui-3.1.2-1.el7.noarch python2-ironicclient-2.2.2-1.el7.noarch python2-ironic-neutron-agent-1.0.0-1.el7.noarch python-ironic-inspector-client-3.1.2-1.el7.noarch python-ironic-lib-2.12.3-1.el7.noarch [root@bogon etc]#
21 import copy 22 import errno 23 import ipaddress 24 import logging 25 import os 26 import re 27 from urlparse import urlparse 28 #from urllib import urlparse 29 #from urllib import parse as urlparse 30 /usr/lib/python2.7/site-packages/ironic_lib/utils.py
[root@bogon ironic]# netstat -lpn -t | grep 6385 tcp 0 0 0.0.0.0:6385 0.0.0.0:* LISTEN 23520/python2 [root@bogon ironic]#