问题描述
查看了下/var/log/nova/nova.network.conf,日志内容为:2015-01-1810:41:04.86622976INFOnova.openstack.common.periodic_task[-]Skippingperiodictask_periodic_update_dnsbecauseitsintervalisnegative2015-01-1810:41:04.86722976INFOnova.network.driver[-]Loadingnetworkdriver'nova.network.linux_net'2015-01-1810:41:04.87022976INFOoslo.messaging._drivers.impl_rabbit[req-3c7bdb4c-d9ea-4d67-b42f-74ad6a39cfad]ConnectingtoAMQPserveroncontroller:56722015-01-1810:41:04.88322976INFOoslo.messaging._drivers.impl_rabbit[req-3c7bdb4c-d9ea-4d67-b42f-74ad6a39cfad]ConnectedtoAMQPserveroncontroller:56722015-01-1810:41:04.88722976INFOoslo.messaging._drivers.impl_rabbit[req-3c7bdb4c-d9ea-4d67-b42f-74ad6a39cfad]ConnectingtoAMQPserveroncontroller:56722015-01-1810:41:04.89922976INFOoslo.messaging._drivers.impl_rabbit[req-3c7bdb4c-d9ea-4d67-b42f-74ad6a39cfad]ConnectedtoAMQPserveroncontroller:56722015-01-1810:41:04.92822976AUDITnova.service[-]Startingnetworknode(version2014.2.1)2015-01-1810:41:05.91822976ERRORnova.openstack.common.threadgroup[-][Errno13]Permissiondenied:u'/var/lib/nova/networks/nova-br100.conf'2015-01-1810:41:05.91822976TRACEnova.openstack.common.threadgroupTraceback(mostrecentcalllast):2015-01-1810:41:05.91822976TRACEnova.openstack.common.threadgroupFile"/usr/lib/python2.7/dist-packages/nova/openstack/common/threadgroup.py",line125,inwait2015-01-1810:41:05.91822976TRACEnova.openstack.common.threadgroupx.wait()2015-01-1810:41:05.91822976TRACEnova.openstack.common.threadgroupFile"/usr/lib/python2.7/dist-packages/nova/openstack/common/threadgroup.py",line47,inwait2015-01-1810:41:05.91822976TRACEnova.openstack.common.threadgroupreturnself.thread.wait()2015-01-1810:41:05.91822976TRACEnova.openstack.common.threadgroupFile"/usr/lib/python2.7/dist-packages/eventlet/greenthread.py",line168,inwait2015-01-1810:41:05.91822976TRACEnova.openstack.common.threadgroupreturnself._exit_event.wait()2015-01-1810:41:05.91822976TRACEnova.openstack.common.threadgroupFile"/usr/lib/python2.7/dist-packages/eventlet/event.py",line116,inwait2015-01-1810:41:05.91822976TRACEnova.openstack.common.threadgroupreturnhubs.get_hub().switch()2015-01-1810:41:05.91822976TRACEnova.openstack.common.threadgroupFile"/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py",line187,inswitch2015-01-1810:41:05.91822976TRACEnova.openstack.common.threadgroupreturnself.greenlet.switch()2015-01-1810:41:05.91822976TRACEnova.openstack.common.threadgroupFile"/usr/lib/python2.7/dist-packages/eventlet/greenthread.py",line194,inmain2015-01-1810:41:05.91822976TRACEnova.openstack.common.threadgroupresult=function(*args,**kwargs)2015-01-1810:41:05.91822976TRACEnova.openstack.common.threadgroupFile"/usr/lib/python2.7/dist-packages/nova/openstack/common/service.py",line490,inrun_service2015-01-1810:41:05.91822976TRACEnova.openstack.common.threadgroupservice.start()2015-01-1810:41:05.91822976TRACEnova.openstack.common.threadgroupFile"/usr/lib/python2.7/dist-packages/nova/service.py",line164,instart2015-01-1810:41:05.91822976TRACEnova.openstack.common.threadgroupself.manager.init_host()2015-01-1810:41:05.91822976TRACEnova.openstack.common.threadgroupFile"/usr/lib/python2.7/dist-packages/nova/network/manager.py",line1800,ininit_host2015-01-1810:41:05.91822976TRACEnova.openstack.common.threadgroupsuper(FlatDHCPManager,self).init_host()2015-01-1810:41:05.91822976TRACEnova.openstack.common.threadgroupFile"/usr/lib/python2.7/dist-packages/nova/network/manager.py",line336,ininit_host2015-01-1810:41:05.91822976TRACEnova.openstack.common.threadgroupself._setup_network_on_host(ctxt,network)2015-01-1810:41:05.91822976TRACEnova.openstack.common.threadgroupFile"/usr/lib/python2.7/dist-packages/nova/network/manager.py",line1816,in_setup_network_on_host2015-01-1810:41:05.91822976TRACEnova.openstack.common.threadgroupself.driver.update_dhcp(elevated,dev,network)2015-01-1810:41:05.91822976TRACEnova.openstack.common.threadgroupFile"/usr/lib/python2.7/dist-packages/nova/network/linux_net.py",line1011,inupdate_dhcp2015-01-1810:41:05.91822976TRACEnova.openstack.common.threadgroupwrite_to_file(conffile,get_dhcp_hosts(context,network_ref,fixedips))2015-01-1810:41:05.91822976TRACEnova.openstack.common.threadgroupFile"/usr/lib/python2.7/dist-packages/nova/network/linux_net.py",line636,inwrite_to_file2015-01-1810:41:05.91822976TRACEnova.openstack.common.threadgroupwithopen(file,mode)asf:2015-01-1810:41:05.91822976TRACEnova.openstack.common.threadgroupIOError:[Errno13]Permissiondenied:u'/var/lib/nova/networks/nova-br100.conf'2015-01-1810:41:05.91822976TRACEnova.openstack.common.threadgroup请各位大侠指教!!!
解决方案
解决方案二:
error显示Permissiondenied你应该看看你的权限相关的
解决方案三:
##nova-network异常,计算节点服务启动不了2015-10-20解决方式:rabbitmq重启,控制节点nova相关所有服务重启,再在计算节点重启nova-network服务注意所有服务要成功重启了,未成功重启的手动kill掉再启动。