启动openstack-nova-api.service 报错:ERROR nova error: [Errno 98] Address already in use
2018-01-30 22:42
1026 查看
启动openstack-nova-api.service 失败,报错如下:
2018-01-30 22:31:29.564 23647 INFO nova.wsgi [-] osapi_compute listening on 0.0.0.0:8774
2018-01-30 22:31:29.564 23647 INFO oslo_service.service [-] Starting 2 workers
2018-01-30 22:31:29.567 23647 INFO oslo_service.service [-] Started child 23660
2018-01-30 22:31:29.572 23647 INFO oslo_service.service [-] Started child 23661
2018-01-30 22:31:29.573 23660 INFO nova.osapi_compute.wsgi.server [-] (23660) wsgi starting up on http://0.0.0.0:8774/
2018-01-30 22:31:29.576 23647 INFO nova.network.driver [-] Loading network driver 'nova.network.linux_net'
2018-01-30 22:31:29.578 23647 WARNING oslo_config.cfg [-] Option "lock_path" from group "DEFAULT" is deprecated. Use option "lock_path" from group "oslo_concurrency".
2018-01-30 22:31:29.582 23661 INFO nova.osapi_compute.wsgi.server [-] (23661) wsgi starting up on http://0.0.0.0:8774/
2018-01-30 22:31:29.753 23647 ERROR nova.wsgi [-] Could not bind to 0.0.0.0:8775
2018-01-30 22:31:29.755 23647 CRITICAL nova [-] error: [Errno 98] Address already in use
2018-01-30 22:31:29.755 23647 ERROR nova Traceback (most recent call last):
2018-01-30 22:31:29.755 23647 ERROR nova File "/usr/bin/nova-api", line 10, in <module>
2018-01-30 22:31:29.755 23647 ERROR nova sys.exit(main())
2018-01-30 22:31:29.755 23647 ERROR nova File "/usr/lib/python2.7/site-packages/nova/cmd/api.py", line 55, in main
2018-01-30 22:31:29.755 23647 ERROR nova server = service.WSGIService(api, use_ssl=should_use_ssl)
2018-01-30 22:31:29.755 23647 ERROR nova File "/usr/lib/python2.7/site-packages/nova/service.py", line 351, in __init__
2018-01-30 22:31:29.755 23647 ERROR nova max_url_len=max_url_len)
2018-01-30 22:31:29.755 23647 ERROR nova File "/usr/lib/python2.7/site-packages/nova/wsgi.py", line 147, in __init__
2018-01-30 22:31:29.755 23647 ERROR nova self._socket = eventlet.listen(bind_addr, family, backlog=backlog)
2018-01-30 22:31:29.755 23647 ERROR nova File "/usr/lib/python2.7/site-packages/eventlet/convenience.py", line 43, in listen
2018-01-30 22:31:29.755 23647 ERROR nova sock.bind(addr)
2018-01-30 22:31:29.755 23647 ERROR nova File "/usr/lib64/python2.7/socket.py", line 224, in meth
2018-01-30 22:31:29.755 23647 ERROR nova return getattr(self._sock,name)(*args)
2018-01-30 22:31:29.755 23647 ERROR nova error: [Errno 98] Address already in use
2018-01-30 22:31:29.755 23647 ERROR nova
显示ERROR nova.wsgi [-] Could not bind to 0.0.0.0:8775,说明这个端口已经被用了。查看发现是openstack-nova-metadata-api.service 用的:
[root@osp3 nova(keystone_adminv2)]# systemctl status openstack-nova-metadata-api.service
● openstack-nova-metadata-api.service - OpenStack Nova Metadata API Server
Loaded: loaded (/usr/lib/systemd/system/openstack-nova-metadata-api.service; disabled; vendor preset: disabled)
Active: active (running) since Tue 2018-01-30 22:28:41 CST; 7min ago
Main PID: 21661 (nova-api-metada)
CGroup: /system.slice/openstack-nova-metadata-api.service
├─21661 /usr/bin/python2 /usr/bin/nova-api-metadata
├─21780 /usr/bin/python2 /usr/bin/nova-api-metadata
└─21781 /usr/bin/python2 /usr/bin/nova-api-metadata
Jan 30 22:28:41 osp3.coa.com nova-api-metadata[21661]: 2018-01-30 22:28:41.032 21780 INFO nova.metadata.wsgi.server [-] (21780) wsgi starting up on http://0.0.0.0:8775/
Jan 30 22:28:41 osp3.coa.com systemd[1]: Started OpenStack Nova Metadata API Server.
Jan 30 22:28:41 osp3.coa.com nova-api-metadata[21661]: 2018-01-30 22:28:41.010 21661 INFO oslo_service.service [-] Started child 21781
Jan 30 22:28:41 osp3.coa.com nova-api-metadata[21661]: 2018-01-30 22:28:41.064 21781 INFO nova.metadata.wsgi.server [-] (21781) wsgi starting up on
http://0.0.0.0:8775/
Jan 30 22:28:41 osp3.coa.com nova-api-metadata[21661]: 2018-01-30 22:28:41.070 21661 WARNING oslo_config.cfg [-] Option "sql_connection" from group "DEFAULT" is deprecated. Use ..."database".
Jan 30 22:28:41 osp3.coa.com nova-api-metadata[21661]: 2018-01-30 22:28:41.075 21661 WARNING oslo_config.cfg [-] Option "admin_auth_url" from group "neutron" is deprecated for r...the future.
Jan 30 22:28:41 osp3.coa.com nova-api-metadata[21661]: 2018-01-30 22:28:41.076 21661 WARNING oslo_config.cfg [-] Option "admin_password" from group "neutron" is deprecated for r...the future.
Jan 30 22:28:41 osp3.coa.com nova-api-metadata[21661]: 2018-01-30 22:28:41.076 21661 WARNING oslo_config.cfg [-] Option "admin_tenant_name" from group "neutron" is deprecated fo...the future.
Jan 30 22:28:41 osp3.coa.com nova-api-metadata[21661]: 2018-01-30 22:28:41.076 21661 WARNING oslo_config.cfg [-] Option "admin_username" from group "neutron" is deprecated for r...the future.
Jan 30 22:28:41 osp3.coa.com nova-api-metadata[21661]: 2018-01-30 22:28:41.077 21661 WARNING oslo_config.cfg [-] Option "auth_strategy" from group "neutron" is deprecated for re...the future.
Hint: Some lines were ellipsized, use -l to show in full.
stop openstack-nova-metadata-api.service,重新启动openstack-nova-api.service 即可
[root@osp3 nova(keystone_adminv2)]# systemctl stop openstack-nova-metadata-api.service
[root@osp3 nova(keystone_adminv2)]# systemctl start openstack-nova-api.service
[root@osp3 nova(keystone_adminv2)]# systemctl status openstack-nova-api.service
● openstack-nova-api.service - OpenStack Nova API Server
Loaded: loaded (/usr/lib/systemd/system/openstack-nova-api.service; disabled; vendor preset: disabled)
Active: active (running) since Tue 2018-01-30 22:36:28 CST; 10s ago
Main PID: 26502 (nova-api)
CGroup: /system.slice/openstack-nova-api.service
├─26502 /usr/bin/python2 /usr/bin/nova-api
├─26587 /usr/bin/python2 /usr/bin/nova-api
├─26588 /usr/bin/python2 /usr/bin/nova-api
├─26589 /usr/bin/python2 /usr/bin/nova-api
├─26590 /usr/bin/python2 /usr/bin/nova-api
├─26597 /usr/bin/python2 /usr/bin/nova-api
└─26598 /usr/bin/python2 /usr/bin/nova-api
Jan 30 22:36:28 osp3.coa.com nova-api[26502]: 2018-01-30 22:36:28.969 26598 INFO nova.metadata.wsgi.server [-] (26598) wsgi starting up on http://0.0.0.0:8775/
Jan 30 22:36:28 osp3.coa.com systemd[1]: Started OpenStack Nova API Server.
bug:https://bugs.launchpad.net/nova/+bug/1237334
2018-01-30 22:31:29.564 23647 INFO nova.wsgi [-] osapi_compute listening on 0.0.0.0:8774
2018-01-30 22:31:29.564 23647 INFO oslo_service.service [-] Starting 2 workers
2018-01-30 22:31:29.567 23647 INFO oslo_service.service [-] Started child 23660
2018-01-30 22:31:29.572 23647 INFO oslo_service.service [-] Started child 23661
2018-01-30 22:31:29.573 23660 INFO nova.osapi_compute.wsgi.server [-] (23660) wsgi starting up on http://0.0.0.0:8774/
2018-01-30 22:31:29.576 23647 INFO nova.network.driver [-] Loading network driver 'nova.network.linux_net'
2018-01-30 22:31:29.578 23647 WARNING oslo_config.cfg [-] Option "lock_path" from group "DEFAULT" is deprecated. Use option "lock_path" from group "oslo_concurrency".
2018-01-30 22:31:29.582 23661 INFO nova.osapi_compute.wsgi.server [-] (23661) wsgi starting up on http://0.0.0.0:8774/
2018-01-30 22:31:29.753 23647 ERROR nova.wsgi [-] Could not bind to 0.0.0.0:8775
2018-01-30 22:31:29.755 23647 CRITICAL nova [-] error: [Errno 98] Address already in use
2018-01-30 22:31:29.755 23647 ERROR nova Traceback (most recent call last):
2018-01-30 22:31:29.755 23647 ERROR nova File "/usr/bin/nova-api", line 10, in <module>
2018-01-30 22:31:29.755 23647 ERROR nova sys.exit(main())
2018-01-30 22:31:29.755 23647 ERROR nova File "/usr/lib/python2.7/site-packages/nova/cmd/api.py", line 55, in main
2018-01-30 22:31:29.755 23647 ERROR nova server = service.WSGIService(api, use_ssl=should_use_ssl)
2018-01-30 22:31:29.755 23647 ERROR nova File "/usr/lib/python2.7/site-packages/nova/service.py", line 351, in __init__
2018-01-30 22:31:29.755 23647 ERROR nova max_url_len=max_url_len)
2018-01-30 22:31:29.755 23647 ERROR nova File "/usr/lib/python2.7/site-packages/nova/wsgi.py", line 147, in __init__
2018-01-30 22:31:29.755 23647 ERROR nova self._socket = eventlet.listen(bind_addr, family, backlog=backlog)
2018-01-30 22:31:29.755 23647 ERROR nova File "/usr/lib/python2.7/site-packages/eventlet/convenience.py", line 43, in listen
2018-01-30 22:31:29.755 23647 ERROR nova sock.bind(addr)
2018-01-30 22:31:29.755 23647 ERROR nova File "/usr/lib64/python2.7/socket.py", line 224, in meth
2018-01-30 22:31:29.755 23647 ERROR nova return getattr(self._sock,name)(*args)
2018-01-30 22:31:29.755 23647 ERROR nova error: [Errno 98] Address already in use
2018-01-30 22:31:29.755 23647 ERROR nova
显示ERROR nova.wsgi [-] Could not bind to 0.0.0.0:8775,说明这个端口已经被用了。查看发现是openstack-nova-metadata-api.service 用的:
[root@osp3 nova(keystone_adminv2)]# systemctl status openstack-nova-metadata-api.service
● openstack-nova-metadata-api.service - OpenStack Nova Metadata API Server
Loaded: loaded (/usr/lib/systemd/system/openstack-nova-metadata-api.service; disabled; vendor preset: disabled)
Active: active (running) since Tue 2018-01-30 22:28:41 CST; 7min ago
Main PID: 21661 (nova-api-metada)
CGroup: /system.slice/openstack-nova-metadata-api.service
├─21661 /usr/bin/python2 /usr/bin/nova-api-metadata
├─21780 /usr/bin/python2 /usr/bin/nova-api-metadata
└─21781 /usr/bin/python2 /usr/bin/nova-api-metadata
Jan 30 22:28:41 osp3.coa.com nova-api-metadata[21661]: 2018-01-30 22:28:41.032 21780 INFO nova.metadata.wsgi.server [-] (21780) wsgi starting up on http://0.0.0.0:8775/
Jan 30 22:28:41 osp3.coa.com systemd[1]: Started OpenStack Nova Metadata API Server.
Jan 30 22:28:41 osp3.coa.com nova-api-metadata[21661]: 2018-01-30 22:28:41.010 21661 INFO oslo_service.service [-] Started child 21781
Jan 30 22:28:41 osp3.coa.com nova-api-metadata[21661]: 2018-01-30 22:28:41.064 21781 INFO nova.metadata.wsgi.server [-] (21781) wsgi starting up on
http://0.0.0.0:8775/
Jan 30 22:28:41 osp3.coa.com nova-api-metadata[21661]: 2018-01-30 22:28:41.070 21661 WARNING oslo_config.cfg [-] Option "sql_connection" from group "DEFAULT" is deprecated. Use ..."database".
Jan 30 22:28:41 osp3.coa.com nova-api-metadata[21661]: 2018-01-30 22:28:41.075 21661 WARNING oslo_config.cfg [-] Option "admin_auth_url" from group "neutron" is deprecated for r...the future.
Jan 30 22:28:41 osp3.coa.com nova-api-metadata[21661]: 2018-01-30 22:28:41.076 21661 WARNING oslo_config.cfg [-] Option "admin_password" from group "neutron" is deprecated for r...the future.
Jan 30 22:28:41 osp3.coa.com nova-api-metadata[21661]: 2018-01-30 22:28:41.076 21661 WARNING oslo_config.cfg [-] Option "admin_tenant_name" from group "neutron" is deprecated fo...the future.
Jan 30 22:28:41 osp3.coa.com nova-api-metadata[21661]: 2018-01-30 22:28:41.076 21661 WARNING oslo_config.cfg [-] Option "admin_username" from group "neutron" is deprecated for r...the future.
Jan 30 22:28:41 osp3.coa.com nova-api-metadata[21661]: 2018-01-30 22:28:41.077 21661 WARNING oslo_config.cfg [-] Option "auth_strategy" from group "neutron" is deprecated for re...the future.
Hint: Some lines were ellipsized, use -l to show in full.
stop openstack-nova-metadata-api.service,重新启动openstack-nova-api.service 即可
[root@osp3 nova(keystone_adminv2)]# systemctl stop openstack-nova-metadata-api.service
[root@osp3 nova(keystone_adminv2)]# systemctl start openstack-nova-api.service
[root@osp3 nova(keystone_adminv2)]# systemctl status openstack-nova-api.service
● openstack-nova-api.service - OpenStack Nova API Server
Loaded: loaded (/usr/lib/systemd/system/openstack-nova-api.service; disabled; vendor preset: disabled)
Active: active (running) since Tue 2018-01-30 22:36:28 CST; 10s ago
Main PID: 26502 (nova-api)
CGroup: /system.slice/openstack-nova-api.service
├─26502 /usr/bin/python2 /usr/bin/nova-api
├─26587 /usr/bin/python2 /usr/bin/nova-api
├─26588 /usr/bin/python2 /usr/bin/nova-api
├─26589 /usr/bin/python2 /usr/bin/nova-api
├─26590 /usr/bin/python2 /usr/bin/nova-api
├─26597 /usr/bin/python2 /usr/bin/nova-api
└─26598 /usr/bin/python2 /usr/bin/nova-api
Jan 30 22:36:28 osp3.coa.com nova-api[26502]: 2018-01-30 22:36:28.969 26598 INFO nova.metadata.wsgi.server [-] (26598) wsgi starting up on http://0.0.0.0:8775/
Jan 30 22:36:28 osp3.coa.com systemd[1]: Started OpenStack Nova API Server.
bug:https://bugs.launchpad.net/nova/+bug/1237334
相关文章推荐
- python启动失败 error: [Errno 98] Address already in use
- 这里有最完美的解决socket.error: [Errno 98] Address already in use问题
- Python socket.error: [Errno 98] Address already in use的原因和解决方法
- socket.error: [Errno 98] Address already in use
- zookeeper 启动失败 BindException: Address already in use 或者Error contacting service. It is probably not running
- 解决socket.error: [Errno 98] Address already in use问题
- linux下如何解决socket的error: [Errno 98] Address already in use
- Python socket.error: [Errno 98] Address already in use
- Python Socket 编程,OSError: [Errno 98] Address already in use
- 【ubuntu】error: [Errno 98] Address already in use
- Python socket.error: [Errno 98] Address already in use的原因和解决方法
- socket.error: [Errno 98] Address already in use
- 解决socket.error: [Errno 98] Address already in use问题
- 关于nginx启动失败 [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
- MAC OS X中解决SOCKET.ERROR: [ERRNO 48] ADDRESS ALREADY IN USE 端口占用问题
- python socket.error: [Errno 48] Address already in use
- error: bind() for address '127.0.0.1:9000' failed:address already in use (98)
- apache启动报错(98)Address already in use: make_sock: could not bind to address [::]:80
- python socket.error: [Errno 48] Address already in use