##1 Nova计算节点
Posted yypr
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了##1 Nova计算节点相关的知识,希望对你有一定的参考价值。
###openstack-ocata 单节点安装 部署 目录汇总
一 安装nova服务
yum install openstack-nova-compute -y
--------------------------------------------------------------------------------
二 配置nova文件
cp /etc/nova/nova.conf /etc/nova/nova.conf.bak
> /etc/nova/nova.conf
##注意修改my_ip
echo ‘
[DEFAULT]
# ...
enabled_apis = osapi_compute,metadata
transport_url = rabbit://openstack:[email protected]
my_ip = MANAGEMENT_INTERFACE_IP_ADDRESS
use_neutron = True
firewall_driver = nova.virt.firewall.NoopFirewallDriver
[api]
# ...
auth_strategy = keystone
[keystone_authtoken]
# ...
auth_uri = http://controller:5000
auth_url = http://controller:35357
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = nova
password = nova
[vnc]
# ...
enabled = True
vncserver_listen = 0.0.0.0
vncserver_proxyclient_address = $my_ip
novncproxy_base_url = http://controller:6080/vnc_auto.html
[glance]
# ...
api_servers = http://controller:9292
[oslo_concurrency]
# ...
lock_path = /var/lib/nova/tmp
[placement]
# ...
os_region_name = RegionOne
project_domain_name = Default
project_name = service
auth_type = password
user_domain_name = Default
auth_url = http://controller:35357/v3
username = placement
password = placement
[libvirt]
# ...
virt_type = qemu
‘>/etc/nova/nova.conf
--------------------------------------------------------------------------------
三 验证计算节点是否支持虚拟化
egrep -c ‘(vmx|svm)‘ /proc/cpuinfo
返回为0则不支持,返回>0则支持
--------------------------------------------------------------------------------
四 启动nova服务
systemctl enable libvirtd.service openstack-nova-compute.service
systemctl start libvirtd.service openstack-nova-compute.service
systemctl status libvirtd.service openstack-nova-compute.service
--------------------------------------------------------------------------------
五 控制节点执行验证操作
. adminrc
openstack hypervisor list
+----+---------------------+-----------------+-----------+-------+
| ID | Hypervisor Hostname | Hypervisor Type | Host IP | State |
+----+---------------------+-----------------+-----------+-------+
| 1 | compute1 | QEMU | 10.0.0.31 | up |
+----+---------------------+-----------------+-----------+-------+
su -s /bin/sh -c "nova-manage cell_v2 discover_hosts --verbose" nova
openstack compute service list
nova-status upgrade check
以上是关于##1 Nova计算节点的主要内容,如果未能解决你的问题,请参考以下文章