好吧,手动启动起来了,但是我用pcs启动没启动起来 补充内容 (2017-6-22 11:53): 查了一下nova的高可用api不用pcs来启动,用haproxy负载就行了 |
nextuser 发表于 2017-6-21 07:10 这个报错解决了, osapi_compute和metadata 我手动设置了ip就没那个绑定的报错了,现在日志里面没有error还是起不来 [root@controller2 ~]# cat /var/log/nova/nova-api.log 2017-06-16 23:45:04.009 93434 WARNING oslo_reports.guru_meditation_report [-] Guru mediation now registers SIGUSR1 and SIGUSR2 by default for backward compatibility. SIGUSR1 will no longer be registered in a future release, so please use SIGUSR2 to generate reports. 2017-06-16 23:45:11.554 93434 INFO oslo_service.periodic_task [-] Skipping periodic task _periodic_update_dns because its interval is negative 2017-06-16 23:45:12.023 93434 WARNING oslo_config.cfg [-] Option "network_api_class" from group "DEFAULT" is deprecated for removal. Its value may be silently ignored in the future. 2017-06-16 23:45:14.142 93434 INFO nova.api.openstack [-] Loaded extensions: ['extensions', 'flavors', 'image-metadata', 'image-size', 'images', 'ips', 'limits', 'os-access-ips', 'os-admin-actions', 'os-admin-password', 'os-agents', 'os-aggregates', 'os-assisted-volume-snapshots', 'os-attach-interfaces', 'os-availability-zone', 'os-baremetal-nodes', 'os-block-device-mapping', 'os-cells', 'os-certificates', 'os-cloudpipe', 'os-config-drive', 'os-console-auth-tokens', 'os-console-output', 'os-consoles', 'os-create-backup', 'os-deferred-delete', 'os-disk-config', 'os-evacuate', 'os-extended-availability-zone', 'os-extended-server-attributes', 'os-extended-status', 'os-extended-volumes', 'os-fixed-ips', 'os-flavor-access', 'os-flavor-extra-specs', 'os-flavor-manage', 'os-flavor-rxtx', 'os-floating-ip-dns', 'os-floating-ip-pools', 'os-floating-ips', 'os-floating-ips-bulk', 'os-fping', 'os-hide-server-addresses', 'os-hosts', 'os-hypervisors', 'os-instance-actions', 'os-instance-usage-audit-log', 'os-keypairs', 'os-lock-server', 'os-migrate-server', 'os-migrations', 'os-multinic', 'os-multiple-create', 'os-networks', 'os-networks-associate', 'os-pause-server', 'os-personality', 'os-preserve-ephemeral-rebuild', 'os-quota-class-sets', 'os-quota-sets', 'os-remote-consoles', 'os-rescue', 'os-scheduler-hints', 'os-security-group-default-rules', 'os-security-groups', 'os-server-diagnostics', 'os-server-external-events', 'os-server-groups', 'os-server-password', 'os-server-usage', 'os-services', 'os-shelve', 'os-simple-tenant-usage', 'os-suspend-server', 'os-tenant-networks', 'os-used-limits', 'os-user-data', 'os-virtual-interfaces', 'os-volumes', 'server-metadata', 'server-migrations', 'servers', 'versions'] 2017-06-16 23:45:14.444 93434 INFO nova.api.openstack [-] Loaded extensions: ['extensions', 'flavors', 'image-metadata', 'image-size', 'images', 'ips', 'limits', 'os-access-ips', 'os-admin-actions', 'os-admin-password', 'os-agents', 'os-aggregates', 'os-assisted-volume-snapshots', 'os-attach-interfaces', 'os-availability-zone', 'os-baremetal-nodes', 'os-block-device-mapping', 'os-cells', 'os-certificates', 'os-cloudpipe', 'os-config-drive', 'os-console-auth-tokens', 'os-console-output', 'os-consoles', 'os-create-backup', 'os-deferred-delete', 'os-disk-config', 'os-evacuate', 'os-extended-availability-zone', 'os-extended-server-attributes', 'os-extended-status', 'os-extended-volumes', 'os-fixed-ips', 'os-flavor-access', 'os-flavor-extra-specs', 'os-flavor-manage', 'os-flavor-rxtx', 'os-floating-ip-dns', 'os-floating-ip-pools', 'os-floating-ips', 'os-floating-ips-bulk', 'os-fping', 'os-hide-server-addresses', 'os-hosts', 'os-hypervisors', 'os-instance-actions', 'os-instance-usage-audit-log', 'os-keypairs', 'os-lock-server', 'os-migrate-server', 'os-migrations', 'os-multinic', 'os-multiple-create', 'os-networks', 'os-networks-associate', 'os-pause-server', 'os-personality', 'os-preserve-ephemeral-rebuild', 'os-quota-class-sets', 'os-quota-sets', 'os-remote-consoles', 'os-rescue', 'os-scheduler-hints', 'os-security-group-default-rules', 'os-security-groups', 'os-server-diagnostics', 'os-server-external-events', 'os-server-groups', 'os-server-password', 'os-server-usage', 'os-services', 'os-shelve', 'os-simple-tenant-usage', 'os-suspend-server', 'os-tenant-networks', 'os-used-limits', 'os-user-data', 'os-virtual-interfaces', 'os-volumes', 'server-metadata', 'server-migrations', 'servers', 'versions'] 2017-06-16 23:45:14.458 93434 INFO nova.wsgi [-] osapi_compute listening on 192.168.0.145:8774 2017-06-16 23:45:14.458 93434 INFO oslo_service.service [-] Starting 1 workers 2017-06-16 23:45:14.502 93434 INFO nova.network.driver [-] Loading network driver 'nova.network.linux_net' 2017-06-16 23:45:18.809 93586 INFO nova.osapi_compute.wsgi.server [req-c4bec9a3-528d-466f-917b-83b455de4add - - - - -] (93586) wsgi starting up on http://192.168.0.145:8774/ 2017-06-16 23:45:18.983 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.145 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.1670201 2017-06-16 23:45:18.988 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.144 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0017309 2017-06-16 23:45:18.991 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.146 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0017030 2017-06-16 23:45:21.003 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.145 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0023940 2017-06-16 23:45:21.007 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.146 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0018380 2017-06-16 23:45:21.170 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.144 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0019419 2017-06-16 23:45:23.013 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.146 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0019009 2017-06-16 23:45:23.018 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.145 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0016060 2017-06-16 23:45:23.566 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.144 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0011470 2017-06-16 23:45:25.106 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.146 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0019801 2017-06-16 23:45:25.739 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.144 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0009050 2017-06-16 23:45:26.066 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.145 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0005291 2017-06-16 23:45:27.110 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.146 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0007489 2017-06-16 23:45:27.909 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.144 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0005660 2017-06-16 23:45:28.072 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.145 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0018530 2017-06-16 23:45:29.114 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.146 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0012650 2017-06-16 23:45:30.076 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.145 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0005081 2017-06-16 23:45:30.090 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.144 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0006728 2017-06-16 23:45:31.120 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.146 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0023611 2017-06-16 23:45:32.081 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.145 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0018001 2017-06-16 23:45:32.271 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.144 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0005639 2017-06-16 23:45:33.123 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.146 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0005178 2017-06-16 23:45:34.086 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.145 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0006571 2017-06-16 23:45:34.450 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.144 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0018098 2017-06-16 23:45:35.045 93434 WARNING oslo_config.cfg [-] Option "memcached_servers" from group "DEFAULT" is deprecated for removal. Its value may be silently ignored in the future. 2017-06-16 23:45:35.132 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.146 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0013518 2017-06-16 23:45:35.170 93434 INFO nova.wsgi [-] metadata listening on 192.168.0.145:8775 2017-06-16 23:45:35.170 93434 INFO oslo_service.service [-] Starting 1 workers 2017-06-16 23:45:36.090 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.145 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0011609 2017-06-16 23:45:36.619 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.144 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0005999 2017-06-16 23:45:36.959 93693 INFO nova.metadata.wsgi.server [req-a3dbb51a-783a-4672-b057-0180c7c47a08 - - - - -] (93693) wsgi starting up on http://192.168.0.145:8775/ 2017-06-16 23:45:37.137 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.146 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0006762 2017-06-16 23:45:38.703 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.145 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0006180 2017-06-16 23:45:38.789 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.144 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0011430 2017-06-16 23:45:39.148 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.146 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0023580 2017-06-16 23:45:40.713 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.145 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0008168 2017-06-16 23:45:40.957 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.144 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0005510 2017-06-16 23:45:41.151 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.146 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0005820 2017-06-16 23:45:44.111 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.144 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0360529 2017-06-16 23:45:44.127 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.146 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0005991 2017-06-16 23:45:44.129 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.145 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0004630 2017-06-16 23:45:46.200 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.146 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0023360 2017-06-16 23:45:46.203 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.145 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0006850 2017-06-16 23:45:46.276 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.144 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0026300 2017-06-16 23:45:48.213 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.146 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0024302 2017-06-16 23:45:48.218 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.145 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0019948 2017-06-16 23:45:48.449 93586 INFO nova.osapi_compute.wsgi.server [-] 192.168.0.144 "OPTIONS / HTTP/1.0" status: 200 len: 503 time: 0.0016289 2017-06-16 23:45:48.680 93434 INFO oslo_service.service [-] Caught SIGTERM, stopping children 2017-06-16 23:45:48.656 93586 INFO nova.wsgi [-] Stopping WSGI server. 2017-06-16 23:45:48.683 93586 INFO nova.osapi_compute.wsgi.server [req-c4bec9a3-528d-466f-917b-83b455de4add - - - - -] (93586) wsgi exited, is_accepting=True 2017-06-16 23:45:48.685 93586 INFO nova.wsgi [-] WSGI server has stopped. 2017-06-16 23:45:48.655 93693 INFO nova.wsgi [-] Stopping WSGI server. 2017-06-16 23:45:48.688 93693 INFO nova.metadata.wsgi.server [req-a3dbb51a-783a-4672-b057-0180c7c47a08 - - - - -] (93693) wsgi exited, is_accepting=True 2017-06-16 23:45:48.691 93693 INFO nova.wsgi [-] WSGI server has stopped. 2017-06-16 23:45:48.711 93434 INFO nova.wsgi [-] Stopping WSGI server. 2017-06-16 23:45:48.712 93434 INFO nova.wsgi [-] Stopping WSGI server. 2017-06-16 23:45:48.713 93434 INFO oslo_service.service [-] Waiting on 2 children to exit 2017-06-16 23:45:48.744 93434 INFO oslo_service.service [-] Child 93693 killed by signal 15 2017-06-16 23:45:48.756 93434 INFO oslo_service.service [-] Child 93586 killed by signal 15 |
nextuser 发表于 2017-6-21 07:10 haproxy这个用的是vip,本机的ip是192.168.0.145 不影响吧. |
分生i 发表于 2017-6-20 17:58 tcp 0 0 192.168.0.188:8774 0.0.0.0:* LISTEN 1109/haproxy haproxy已经在使用这个端口了 |
nextuser 发表于 2017-6-20 17:50 [root@controller2 ~]# systemctl start openstack-nova-api Job for openstack-nova-api.service failed because the control process exited with error code. See "systemctl status openstack-nova-api.service" and "journalctl -xe" for details. [root@controller2 ~]# netstat -anptu Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 192.168.0.145:11211 0.0.0.0:* LISTEN 859/memcached tcp 0 0 192.168.0.145:9292 0.0.0.0:* LISTEN 2251/python2 tcp 0 0 192.168.0.188:9292 0.0.0.0:* LISTEN 1109/haproxy tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1/systemd tcp 0 0 192.168.0.188:8080 0.0.0.0:* LISTEN 1109/haproxy tcp 0 0 0.0.0.0:4369 0.0.0.0:* LISTEN 1/systemd tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 861/sshd tcp 0 0 0.0.0.0:4567 0.0.0.0:* LISTEN 7792/mysqld tcp 0 0 0.0.0.0:15672 0.0.0.0:* LISTEN 852/beam tcp 0 0 0.0.0.0:8888 0.0.0.0:* LISTEN 1109/haproxy tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 2059/master tcp 0 0 192.168.0.188:443 0.0.0.0:* LISTEN 1109/haproxy tcp 0 0 192.168.0.145:35357 0.0.0.0:* LISTEN 2237/python2 tcp 0 0 192.168.0.188:35357 0.0.0.0:* LISTEN 1109/haproxy tcp 0 0 192.168.0.188:9696 0.0.0.0:* LISTEN 1109/haproxy tcp 0 0 192.168.0.188:6080 0.0.0.0:* LISTEN 1109/haproxy tcp 0 0 192.168.0.188:8773 0.0.0.0:* LISTEN 1109/haproxy tcp 0 0 192.168.0.188:8774 0.0.0.0:* LISTEN 1109/haproxy tcp 0 0 192.168.0.145:9191 0.0.0.0:* LISTEN 2285/python2 tcp 0 0 192.168.0.145:9191 192.168.0.146:49900 SYN_RECV - tcp 0 0 192.168.0.188:8775 0.0.0.0:* LISTEN 1109/haproxy tcp 0 0 192.168.0.188:9191 0.0.0.0:* LISTEN 1109/haproxy tcp 0 0 192.168.0.145:5000 0.0.0.0:* LISTEN 2237/python2 tcp 0 0 0.0.0.0:25672 0.0.0.0:* LISTEN 852/beam tcp 0 0 192.168.0.188:8776 0.0.0.0:* LISTEN 1109/haproxy tcp 0 0 192.168.0.188:5000 0.0.0.0:* LISTEN 1109/haproxy tcp 0 0 192.168.0.188:8777 0.0.0.0:* LISTEN 1109/haproxy tcp 0 0 192.168.0.145:3306 0.0.0.0:* LISTEN 7792/mysqld tcp 0 0 192.168.0.188:3306 0.0.0.0:* LISTEN 1109/haproxy tcp 0 0 127.0.0.1:4369 127.0.0.1:49106 ESTABLISHED 864/epmd tcp 0 0 192.168.0.145:55899 192.168.0.146:25672 ESTABLISHED 852/beam tcp 0 0 192.168.0.188:8888 192.168.0.115:61581 ESTABLISHED 1109/haproxy tcp 0 0 192.168.0.145:5000 192.168.0.145:46972 TIME_WAIT - tcp 0 0 192.168.0.145:22 192.168.0.115:57836 ESTABLISHED 7337/sshd: root@pts tcp 0 0 127.0.0.1:49106 127.0.0.1:4369 ESTABLISHED 852/beam tcp 0 0 192.168.0.145:4567 192.168.0.146:50964 ESTABLISHED 7792/mysqld tcp 0 0 192.168.0.145:54968 192.168.0.144:4567 ESTABLISHED 7792/mysqld tcp 0 0 192.168.0.145:9292 192.168.0.145:39196 TIME_WAIT - tcp 0 0 192.168.0.145:35357 192.168.0.145:43326 TIME_WAIT - tcp 0 0 192.168.0.145:50047 192.168.0.144:25672 ESTABLISHED 852/beam tcp 0 0 192.168.0.145:22 192.168.0.115:53418 ESTABLISHED 2616/sshd: root@pts tcp6 0 0 ::1:11211 :::* LISTEN 859/memcached tcp6 0 0 :::111 :::* LISTEN 1/systemd tcp6 0 0 :::2224 :::* LISTEN 618/ruby tcp6 0 0 :::9200 :::* LISTEN 863/xinetd tcp6 0 0 :::22 :::* LISTEN 861/sshd tcp6 0 0 ::1:25 :::* LISTEN 2059/master tcp6 0 0 :::5672 :::* LISTEN 852/beam udp 0 0 192.168.0.145:5405 0.0.0.0:* 1938/corosync udp 0 0 127.0.0.1:323 0.0.0.0:* 642/chronyd udp 0 0 192.168.0.145:11211 0.0.0.0:* 859/memcached udp 0 0 192.168.0.145:37388 0.0.0.0:* 1938/corosync udp 0 0 192.168.0.145:39487 0.0.0.0:* 1938/corosync udp 0 0 192.168.0.145:51388 0.0.0.0:* 1938/corosync udp6 0 0 ::1:323 :::* 642/chronyd udp6 0 0 ::1:11211 :::* 859/memcached |
分生i 发表于 2017-6-20 10:43 那就奇怪了,他明说是绑定不上的。楼主贴出来看下,查看的是本地的,还是哪的。 |
nextuser 发表于 2017-6-19 20:54 8774端口没有被占用的 |
看下本地的8774端口 |