打赏
Fork me on GitHub

[原]openstack-kilo--issue(三) openstack-nova-issue-systemctl start openstack-nova-compute.service

本博客已经添加"打赏"功能,"打赏"位置位于右边栏红色框中,感谢您赞助的咖啡.

execute systemctl start openstack-nova-compute.service when openstack-nova was done.

check use  journalctl -xe

issue 1:  

 Loaded: loaded (/usr/lib/systemd/system/openstack-nova-compute.service; enabled; vendor preset: disabled)
   Active: failed (Result: start-limit) since Wed  14min ago

 compute1 systemd[1]: openstack-nova-compute.service: main process exited, code=exited, status=1/FAILURE
 compute1 systemd[1]: Failed to start OpenStack Nova Compute Server.
 compute1 systemd[1]: Unit openstack-nova-compute.service entered failed state.
 compute1 systemd[1]: openstack-nova-compute.service failed.

 compute1 systemd[1]: Failed to start OpenStack Nova Compute Server.

check /etc/nova/nova.conf

-----configue-content---resolved-issue-----

[DEFAULT]
vnc_enabled = True
vncserver_listen = 0.0.0.0
vncserver_proxyclient_address = 192.168.70.73
novncproxy_base_url = http://controller0:6080/vnc_auto.html
verbose = True
rpc_backend=rabbit
my_ip=192.168.70.73
auth_strategy=keystone
[api_database]
[barbican]
[cells]
[cinder]
[conductor]
[database]
[ephemeral_storage_encryption]
[glance]
host = controller0
[guestfs]
[hyperv]
[image_file_url]
[ironic]
[keymgr]
[keystone_authtoken]
auth_uri = http://controller0:5000
auth_url = http://controller0:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
project_name = service
username = nova
password = nova
[libvirt]
[metrics]
[neutron]
[osapi_v3]
[rdp]
[serial_console]
[spice]
[ssl]
[trusted_computing]
[upgrade_levels]
[vmware]
[workarounds]
[xenserver]
[zookeeper]
[matchmaker_redis]
[matchmaker_ring]
[oslo_concurrency]
lock_path = /var/lib/nova/tmp
[oslo_messaging_amqp]
[oslo_messaging_qpid]
[oslo_messaging_rabbit]
rabbit_host = controller0
rabbit_userid = openstack
rabbit_password = 123456

 

 

------------------

but  another issue is appear when resolved previous issue

issue 2:   check /var/log/nova/compute-nove.log

 

4029 ERROR oslo_messaging._drivers.impl_rabbit [req-74c2a9e1-37fe-4286-98af-6ea48339cb8b - - - - -] AMQP server on controller0:5672 is unreachable: [Errno 113] EHOSTUNREACH. Trying again in 2 seconds.

 

lead  systemctl start openstack-nova-compute.service  pause all the time

solution:

telnet 22 form compute node to controller node    show successful

[root@compute1 ~]# telnet controller0 22
Trying 192.168.70.71...
Connected to controller0.
Escape character is '^]'.
SSH-2.0-OpenSSH_6.6.1

telnet 5672 form compute node to controller node    show failed

[root@compute1 ~]# telnet controller0 5672
Trying 192.168.70.71...
telnet: connect to address 192.168.70.71: No route to host

so ,the problem can doubt is firewall.

checke the firewall was  changed in redhat7 or CentOS7 :reference : http://www.zhongweicheng.com/?p=1419

stop and disabled firewall  both compute node and controller node

check firewall status
[root@controller0 ~]# systemctl list-unit-files |grep enabled |grep firewal firewalld.service enabled

stop firewall
[root@compute1 ~]# systemctl stop firewalld.service

disabled on system boot
[root@compute1 ~]# systemctl disable firewalld.service
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service.


check status of firewall
[root@compute1 ~]# systemctl status firewalld.service
鈼?firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
   Active: inactive (dead)

audit the issue soluation:

[root@compute1 ~]# telnet controller0 5672
Trying 192.168.70.71...
Connected to controller0.
Escape character is '^]'.
Connection closed by foreign host.

run  openstack-nova-compute

systemctl start openstack-nova-compute.service                    //successful

check  /var/log/nova/nova-compute.log

 1  INFO nova.compute.resource_tracker [req-68ca2404-3673-46c2-be97-f7623a4c3d7e - - - - -] Auditing locally available compute resources for node compute1
 2  INFO nova.compute.resource_tracker [req-68ca2404-3673-46c2-be97-f7623a4c3d7e - - - - -] Total usable vcpus: 2, total allocated vcpus: 0
 3  INFO nova.compute.resource_tracker [req-68ca2404-3673-46c2-be97-f7623a4c3d7e - - - - -] Final resource view: name=compute1 phys_ram=985MB used_ram=512MB phys_disk=37GB used_disk=0GB total_vcpus=2 used_vcpus=0 pci_stats=<nova.pci.stats.PciDeviceStats object at 0x5bc9750>
 4  INFO nova.scheduler.client.report [req-68ca2404-3673-46c2-be97-f7623a4c3d7e - - - - -] Compute_service record updated for ('compute1', 'compute1')
 5  INFO nova.compute.resource_tracker [req-68ca2404-3673-46c2-be97-f7623a4c3d7e - - - - -] Compute_service record updated for compute1:compute1
 6  INFO oslo_messaging._drivers.impl_rabbit [req-68ca2404-3673-46c2-be97-f7623a4c3d7e - - - - -] Connecting to AMQP server on controller0:5672
 7  INFO oslo_messaging._drivers.impl_rabbit [req-68ca2404-3673-46c2-be97-f7623a4c3d7e - - - - -] Connected to AMQP server on controller0:5672
 8  INFO oslo_messaging._drivers.impl_rabbit [req-d41e81fd-68cc-4e5a-aa4a-82d3b44e364a - - - - -] Connecting to AMQP server on controller0:5672
 9 INFO oslo_messaging._drivers.impl_rabbit [req-d41e81fd-68cc-4e5a-aa4a-82d3b44e364a - - - - -] Connected to AMQP server on controller0:5672
10 INFO nova.compute.resource_tracker [req-d41e81fd-68cc-4e5a-aa4a-82d3b44e364a - - - - -] Auditing locally available compute resources for node compute1
11  INFO nova.compute.resource_tracker [req-d41e81fd-68cc-4e5a-aa4a-82d3b44e364a - - - - -] Total usable vcpus: 2, total allocated vcpus: 0
12 INFO nova.compute.resource_tracker [req-d41e81fd-68cc-4e5a-aa4a-82d3b44e364a - - - - -] Final resource view: name=compute1 phys_ram=985MB used_ram=512MB phys_disk=37GB used_disk=0GB total_vcpus=2 used_vcpus=0 pci_stats=<nova.pci.stats.PciDeviceStats object at 0x5bc9750>

 

posted @ 2016-06-02 15:31  my_cool2007  阅读(2319)  评论(0编辑  收藏  举报