这里我只使用compute1节点配置为示例,其它节点的配置基本是一样的,只是声明的管理IP不同而已
 
计算节点
# yum install openstack-nova-compute sysfsutils
 
修改配置文件
vi /etc/nova/nova.conf
 
[DEFAULT]
resume_guests_state_on_host_boot=True
rpc_backend = rabbit
auth_strategy = keystone
my_ip = 10.40.42.11
 
state_path=/home/local/nova
 
 
network_api_class = nova.network.neutronv2.api.API
security_group_api = neutron
linuxnet_interface_driver = nova.network.linux_net.NeutronLinuxBridgeInterfaceDriver
firewall_driver = nova.virt.firewall.NoopFirewallDriver
 
verbose = True
 
[keystone_authtoken]
auth_uri = http://controller:5000
auth_url = http://controller:35357
auth_plugin = password
project_domain_id = default
user_domain_id = 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]
host = controller
 
[oslo_concurrency]
lock_path = /var/lib/nova/tmp
 
[oslo_messaging_rabbit]
rabbit_host=controller
rabbit_userid = openstack
rabbit_password = openstack
rabbit_retry_interval=1
rabbit_retry_backoff=2
rabbit_max_retries=0
rabbit_durable_queues=true
rabbit_ha_queues=true
 
[neutron]
url = http://controller:9696
auth_url = http://controller:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
region_name = RegionOne
project_name = service
username = neutron
password = neutron
 
 
以上的紫色配置原本是要等配neutron时再加的,只是这里我提前贴出来了以便做全局维护,如果你们是新搭环境的话,这个紫色配置要等安装了neutron包再加
 
创建实例存放目录,以及赋权
mkdir -p /home/local/nova
cp -r /var/lib/nova/* /home/local/nova/
chown -R nova:nova /home/local/nova
 
启动服务已及加入开机自启
systemctl enable libvirtd.service openstack-nova-compute.service
systemctl restart libvirtd.service openstack-nova-compute.service
 
在其中一台kxcontroller上验证:
 
source admin-openrc.sh
 
# nova endpoints
有9个endpoints服务
 
# nova image-list
 
创建Zone州示例,在controller其中1台节点上,需要注意的是,当企业的服务器资源少的,不建议将计算节点分类,因为一旦分类并运行了虚拟机,该虚拟机的迁移,调整大小,只能在原zone区域内进行,无法跨区。
 
source admin-openrc.sh
查看状态
nova service-list
neutron agent-list
nova aggregate-list
nova availability-zone-list
定义zone
nova aggregate-create aggregate_dev  dev_zone
nova aggregate-create aggregate_stg   stg_zone
nova host-list
加入zone
nova aggregate-add-host aggregate_stg compute1
nova aggregate-add-host aggregate_stg compute2
nova aggregate-add-host aggregate_stg compute3
nova aggregate-add-host aggregate_stg compute4
nova aggregate-add-host aggregate_stg compute5
nova aggregate-add-host aggregate_stg compute6
nova aggregate-add-host aggregate_stg compute7
 
 
 
 
nova service-list
+----+------------------+-------------+----------+---------+-------+----------------------------+-----------------+
| Id | Binary           | Host        | Zone     | Status  | State | Updated_at                 | Disabled Reason |
+----+------------------+-------------+----------+---------+-------+----------------------------+-----------------+
| 3  | nova-conductor   | controller1 | internal | enabled | up    | 2016-11-08T11:51:49.000000 | -               |
| 12 | nova-scheduler   | controller1 | internal | enabled | up    | 2016-11-08T11:51:53.000000 | -               |
| 18 | nova-consoleauth | controller1 | internal | enabled | up    | 2016-11-08T11:51:46.000000 | -               |
| 21 | nova-cert        | controller1 | internal | enabled | up    | 2016-11-08T11:51:46.000000 | -               |
| 24 | nova-conductor   | controller2 | internal | enabled | up    | 2016-11-08T11:51:52.000000 | -               |
| 45 | nova-consoleauth | controller2 | internal | enabled | up    | 2016-11-08T11:51:46.000000 | -               |
| 48 | nova-cert        | controller2 | internal | enabled | up    | 2016-11-08T11:51:46.000000 | -               |
| 51 | nova-scheduler   | controller2 | internal | enabled | up    | 2016-11-08T11:51:53.000000 | -               |
| 54 | nova-compute     | compute1    | stg_zone | enabled | up    | 2016-11-08T11:51:52.000000 | -               |
| 57 | nova-compute     | compute2    | stg_zone | enabled | up    | 2016-11-08T11:51:53.000000 | -               |
| 58 | nova-compute     | compute3    | stg_zone | enabled | up    | 2016-11-08T11:51:53.000000 | -               |
| 61 | nova-compute     | compute4    | stg_zone | enabled | up    | 2016-11-08T11:51:52.000000 | -               |
| 64 | nova-compute     | compute5    | stg_zone | enabled | up    | 2016-11-08T11:51:53.000000 | -               |
| 67 | nova-compute     | compute6    | stg_zone | enabled | up    | 2016-11-08T11:51:51.000000 | -               |
| 70 | nova-compute     | compute7    | stg_zone | enabled | up    | 2016-11-08T11:51:53.000000 | -               |
+----+------------------+-------------+----------+---------+-------+----------------------------+-----------------+
												
												
						- openstack私有云布署实践【14.2 登录页dashboard-controller(办公网环境)】
		
这一小节基本配置相同,但留意以下紫色部份的配置,当初为了管理方便,我们让办公网openstack的dashboard的登录桥接了科兴的dashboard,由此统一dashboard界面的登录地址    ...
		 
						- openstack私有云布署实践【9.2 Glance镜像管理(办公网环境)】
		
首先登录controller1创建glance数据库,并赋于远程和本地访问的权限.      mysql -u root -p   CREATE DATABASE glance; GRANT ALL  ...
		 
						- openstack私有云布署实践【12.2 网络Neutron-controller节点配置(办公网环境)】
		
网络这一块推荐使用的是 Neutron--LinuxBirdge的Ha高可用,此高可用方案对Public作用不是很大,Public只用到DHCP,而Private则会用到L3 Agent,则此方案是有 ...
		 
						- openstack私有云布署实践【12.1 网络Neutron-controller节点配置(科兴环境)】
		
网络这一块推荐使用的是 Neutron--LinuxBirdge的Ha高可用,此高可用方案对Public作用不是很大,Public只用到DHCP,而Private则会用到L3 Agent,则此方案是有 ...
		 
						- openstack私有云布署实践【13.2 网络Neutron-compute节点配置(办公网环境)】
		
所有compute节点 下载安装组件   # yum install openstack-neutron openstack-neutron-linuxbridge ebtables ipset -y ...
		 
						- openstack私有云布署实践【13.1 网络Neutron-compute节点配置(科兴环境)】
		
所有kxcompute节点 下载安装组件   # yum install openstack-neutron openstack-neutron-linuxbridge ebtables ipset  ...
		 
						- openstack私有云布署实践【4.1 上层代理haproxy配置 (科兴环境)】
		
官方文档上的高可用配置,它推荐的是使用haproxy的上层代理来实现服务组件的主备访问.或者负载均衡访问   一开始我也是使用haproxy来做的,但后来方式改了   测试环境:haproxy + n ...
		 
						- openstack私有云布署实践【9.1 Glance镜像管理(科兴环境)】
		
首先登录kxcontroller1创建kx_glance数据库,并赋于远程和本地访问的权限.      mysql -u root -p   CREATE DATABASE kx_glance; GR ...
		 
						- openstack私有云布署实践【14.1 登录页dashboard-controller(科兴环境)】
		
2台kxcontroller安装组件 # yum install openstack-dashboard -y   修改一样的配置 vi /etc/openstack-dashboard/local_ ...
		 
						- openstack私有云布署实践【2 安装前的服务器基本环境准备】
		
服务器物理机都安装centos7.2 1511版本 , 此次采用的分区方式全是自动XFS格式LVM,在装系统时就将所有本地raid5硬盘都加入LVM全用了.默认/home目录有着最大的硬盘空间 并且我 ...
		 
		
	
随机推荐
	
									- [Usaco2008 Open]Roads Around The Farm分岔路口[水题]
			
Description     约翰的N(1≤N≤1,000,000,000)只奶牛要出发去探索牧场四周的土地.她们将沿着一条路走,一直走到三岔路口(可以认为所有的路口都是这样的).这时候,这一群奶牛 ...
			 
						- Unicode(UTF&UCS)深度历险
			
Unicode(UTF&UCS)深度历险 计算机网络诞生后,大家慢慢地发现一个问题:一个字节放不下一个字符了!因为需要交流,本地化的文字需要能够被支持. 最初的字符集使用7bit来存储字符,因 ...
			 
						- Django 中的 WSGI
			
Django 源码小剖: Django 中的 WSGI 2013-09-06 22:31 by 捣乱小子, 334 阅读, 0 评论, 收藏, 编辑 Django 其内部已经自带了一个方便本地测试的小 ...
			 
						- 《.NET 编程结构》专题汇总
			
<.NET 编程结构>专题汇总 前言     掌握一门技术,首要的是掌握其基础.     笔者从事.NET相关开发多年,也非常喜欢.NET,多年来也积累了很多相关的资料,在此将一些基础性的 ...
			 
						- [置顶] Oracle学习路线与方法
			
还没有整理好.... 1.学习路线 Oracle官方文档:2 Day DBA-->2 Day+Performance Tuning Guide--->Administrator's Gui ...
			 
						- 为通过ClickOnce部署的应用程序进行数字签名
			
为通过ClickOnce部署的应用程序进行数字签名 ClickOnce是.NET用于Windows应用程序的一种便捷部署方式.不过由于便捷,导致缺少自定义操作的空间.比如需要对通过ClickOnce部 ...
			 
						- Software Industry Revolution----POJ3898----DP
			
题目地址:http://poj.org/problem?id=3898 题目意思: 给你一个模式串,再给你一个原串,要你去匹配 模式串里面的?可对应任意一个字符 *号可对应0个或多个字符 其中a=1, ...
			 
						- ios-王云鹤 把UIdatePicker 嵌入到 UIActionSheet中
			
这里简单的解释一下: -(void) setUpDatePicker方法用于调用UIDatePicker -(void) DatePickerDoneClick:(id) sender方法用于实现隐藏 ...
			 
						- 关于EL表达式的生效时间(猜想)
			
通过ajax与服务端异步交互的时候,在服务端将某些变量或对象设置到request等域里,此时页面上的EL表达式是获取不到ajax异步交互时设置在request等域里的变量或对像的. 我猜测可能EL表达 ...
			 
						- Python爬虫小白入门(五)PhatomJS+Selenium第二篇
			
一.前言 前文介绍了PhatomJS 和Selenium 的用法,工具准备完毕,我们来看看如何使用它们来改造我们之前写的小爬虫. 我们的目的是模拟页面下拉到底部,然后页面会刷出新的内容,每次会加载10 ...