环境:C7.1+L版
启动计算节点nova:
[root@linux-node2 ~]# systemctl enable libvirtd openstack-nova-compute
[root@linux-node2 nova]# systemctl start libvirtd openstack-nova-compute
查看启动状态:
[root@linux-node2 ~]# systemctl status libvirtd
● libvirtd.service - Virtualization daemon
Loaded: loaded (/usr/lib/systemd/system/libvirtd.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2016-04-09 21:35:33 CST; 1min 25s ago
Docs: man:libvirtd(8)
http://libvirt.org
Main PID: 4517 (libvirtd)
CGroup: /system.slice/libvirtd.service
└─4517 /usr/sbin/libvirtd
Apr 09 21:35:33 linux-node2.oldboyedu.com systemd[1]: Starting Virtualization daemon...
Apr 09 21:35:33 linux-node2.oldboyedu.com libvirtd[4517]: libvirt version: 1.2.17, pa...
Apr 09 21:35:33 linux-node2.oldboyedu.com libvirtd[4517]: Module /usr/lib64/libvirt/c...
Apr 09 21:35:33 linux-node2.oldboyedu.com systemd[1]: Started Virtualization daemon.
Hint: Some lines were ellipsized, use -l to show in full.
[root@linux-node2 ~]# systemctl status openstack-nova-compute
● openstack-nova-compute.service - OpenStack Nova Compute Server
Loaded: loaded (/usr/lib/systemd/system/openstack-nova-compute.service; enabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Sat 2016-04-09 21:35:42 CST; 4min 31s ago
Process: 4589 ExecStart=/usr/bin/nova-compute (code=exited, status=0/SUCCESS)
Main PID: 4589 (code=exited, status=0/SUCCESS)
Apr 09 21:35:42 linux-node2.oldboyedu.com systemd[1]: Started OpenStack Nova Comp....
Apr 09 21:35:42 linux-node2.oldboyedu.com systemd[1]: openstack-nova-compute.serv....
Apr 09 21:35:42 linux-node2.oldboyedu.com systemd[1]: start request repeated too ...e
Apr 09 21:35:42 linux-node2.oldboyedu.com systemd[1]: Failed to start OpenStack N....
Apr 09 21:35:42 linux-node2.oldboyedu.com systemd[1]: Unit openstack-nova-compute....
Apr 09 21:35:42 linux-node2.oldboyedu.com systemd[1]: openstack-nova-compute.serv....
Hint: Some lines were ellipsized, use -l to show in full.
验证nova是否注册成功:
#没注册过来
[root@linux-node1 ~]# source admin-openrc.sh
[root@linux-node1 ~]# openstack host list
+---------------------------+-------------+----------+
| Host Name | Service | Zone |
+---------------------------+-------------+----------+
| linux-node1.oldboyedu.com | conductor | internal |
| linux-node1.oldboyedu.com | consoleauth | internal |
| linux-node1.oldboyedu.com | scheduler | internal |
| linux-node1.oldboyedu.com | cert | internal |
查看日志:
[root@linux-node2 ~]# tail -f /var/log/nova/nova-compute.log
2016-04-08 22:25:22.418 24884 ERROR nova.virt.driver [-] Unable to load the virtualization driver
2016-04-08 22:25:22.418 24884 ERROR nova.virt.driver Traceback (most recent call last):
2016-04-08 22:25:22.418 24884 ERROR nova.virt.driver File "/usr/lib/python2.7/site-packages/nova/virt/driver.py", line 1454, in load_compute_driver
2016-04-08 22:25:22.418 24884 ERROR nova.virt.driver virtapi)
2016-04-08 22:25:22.418 24884 ERROR nova.virt.driver File "/usr/lib/python2.7/site-packages/oslo_utils/importutils.py", line 52, in import_object_ns
2016-04-08 22:25:22.418 24884 ERROR nova.virt.driver return import_class(import_str)(*args, **kwargs)
2016-04-08 22:25:22.418 24884 ERROR nova.virt.driver File "/usr/lib/python2.7/site-packages/oslo_utils/importutils.py", line 33, in import_class
2016-04-08 22:25:22.418 24884 ERROR nova.virt.driver traceback.format_exception(*sys.exc_info())))
2016-04-08 22:25:22.418 24884 ERROR nova.virt.driver ImportError: Class LibvirtDriver cannot be found (['Traceback (most recent call last):\n', ' File "/usr/lib/python2.7/site-packages/oslo_utils/importutils.py", line 29, in import_class\n return getattr(sys.modules[mod_str], class_str)\n', "AttributeError: 'module' object has no attribute 'LibvirtDriver'\n"])
|
|