码迷,mamicode.com
首页 > 其他好文 > 详细

Opensack(十)部署nova服务(计算节点)

时间:2018-03-29 19:13:23      阅读:368      评论:0      收藏:0      [点我收藏+]

标签:组件   .com   scheduler   start.s   transport   rabbit   ada   libvirt   安装   

 

 

 

在计算节点安装

10.1安装nova计算服务

# 阿里云源详见2.3配置

# yum install openstack-nova-compute

10.2配置nova计算服务

10.2.1配置nova.conf

# vim /etc/nova/nova.conf

1:[DEFAULT]

2306:use_neutron=true

2465:firewall_driver=nova.virt.firewall.NoopFirewallDriver

2629:enabled_apis=osapi_compute,metadata

3021:transport_url = rabbit://openstack:123456@192.168.10.205

3069:[api]

3085:auth_strategy=keystone

4937:[glance]

4955:api_servers=http://192.168.10.100:9292

5596:[keystone_authtoken]

5597:auth_uri = http://192.168.10.100:5000

5598:auth_url = http://192.168.10.100:35357

5599:memcached_servers = 192.168.10.100:11211

5600:auth_type = password

5601:project_domain_name = default

5602:user_domain_name = default

5603:project_name = service

5604:username = nova

5605:password = nova

7233:[oslo_concurrency]

7248:lock_path=/var/lib/nova/tmp

8079:[placement]

8080:os_region_name = RegionOne

8081:project_domain_name = Default

8082:project_name = service

8083:auth_type = password

8084:user_domain_name = Default

8085:auth_url = http://192.168.10.100:35357/v3

8086:username = placement

8087:password = placement

9667:[vnc]

9683:enabled=true

9706:vncserver_listen=0.0.0.0

9718:vncserver_proxyclient_address=192.168.10.202

9738:novncproxy_base_url=http://192.168.10.100:6080/vnc_auto.html

10.2.2确认计算节点是否支持硬件加速

# egrep -c ‘(vmx|svm)‘ /proc/cpuinfo

40

10.3启动nova计算服务并设置为开机启动

# systemctl enable libvirtd.service openstack-nova-compute.service

# systemctl start libvirtd.service openstack-nova-compute.service

10.4添加计算服务到cell数据库

# 在控制端配置

# source  admin-openstack.sh

#定期主动发现:

# su -s /bin/sh -c "nova-manage cell_v2 discover_hosts --verbose" nova

# openstack hypervisor list

+----+-------------------------+-----------------+----------------+-------+

| ID | Hypervisor Hostname     | Hypervisor Type | Host IP        | State |

+----+-------------------------+-----------------+----------------+-------+

|  1 | linux-host2.exmaple.com | QEMU            | 192.168.10.202 | up    |

+----+-------------------------+-----------------+----------------+-------+

# 设置定期主动发现

# vim /etc/nova/nova.conf

8577 [scheduler]

8684 discover_hosts_in_cells_interval=300

#重启nova服务

# bash nova- restart.sh

10.5验证计算节点

# nova host-list

技术分享图片

# nova service-list

技术分享图片

# openstack image list

技术分享图片

#  openstack compute service list

#列出服务组件是否成功注册

技术分享图片

# nova-status upgrade check

技术分享图片

# openstack catalog list

#列出keystone服务中的端点,以验证keystone的连通性

技术分享图片

 

Opensack(十)部署nova服务(计算节点)

标签:组件   .com   scheduler   start.s   transport   rabbit   ada   libvirt   安装   

原文地址:https://www.cnblogs.com/wangshuyang/p/8671054.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!