这里我只使用kxcompute1节点配置为示例,其它节点的配置基本是一样的,只是声明的管理IP不同而已
计算节点
# yum install openstack-nova-compute sysfsutils
修改配置文件
vi /etc/nova/nova.conf
[DEFAULT]
vcpu_pin_set = 4-31
resume_guests_state_on_host_boot=True
rpc_backend = rabbit
auth_strategy = keystone
my_ip = 10.120.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://kxcontroller:5000
auth_url = http://kxcontroller: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://kxcontroller:6080/vnc_auto.html
[glance]
host = kxcontroller
[oslo_concurrency]
lock_path = /var/lib/nova/tmp
[oslo_messaging_rabbit]
rabbit_host=kxcontroller
rabbit_userid = openstack
rabbit_password = openstack
[neutron]
url = http://kxcontroller:9696
auth_url = http://kxcontroller:35357
auth_plugin = password
project_domain_id = default
user_domain_id = default
region_name = RegionTwo
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州示例,在kxcontroller其中1台节点上,需要注意的是,当企业的服务器资源少的,不建议将计算节点分类,因为一旦分类并运行了虚拟机,该虚拟机的迁移,调整大小,只能在原zone区域内进行,无法跨区。
source admin-openrc.sh
查看状态
nova service-list
neutron agent-list
nova aggregate-list
nova availability-zone-list
定义Zone名,这里定义了2个
nova aggregate-create aggregate_prd_dm prd_dm_zone
nova aggregate-create aggregate_prd_um prd_um_zone
nova host-list
nova aggregate-add-host aggregate_prd_um kxcompute1
nova aggregate-add-host aggregate_prd_um kxcompute2
nova aggregate-add-host aggregate_prd_um kxcompute3
nova aggregate-add-host aggregate_prd_um kxcompute4
nova aggregate-add-host aggregate_prd_dm kxcompute5
nova aggregate-add-host aggregate_prd_dm kxcompute6
nova aggregate-add-host aggregate_prd_dm kxcompute7
nova aggregate-add-host aggregate_prd_dm kxcompute8
nova aggregate-add-host aggregate_prd_dm kxcompute9
验证
nova service-list
+----+------------------+---------------+-------------+---------+-------+----------------------------+-----------------+
| Id | Binary | Host | Zone | Status | State | Updated_at | Disabled Reason |
+----+------------------+---------------+-------------+---------+-------+----------------------------+-----------------+
| 2 | nova-cert | kxcontroller2 | internal | enabled | up | 2016-11-08T11:30:37.000000 | - |
| 5 | nova-conductor | kxcontroller2 | internal | enabled | up | 2016-11-08T11:30:34.000000 | - |
| 32 | nova-consoleauth | kxcontroller2 | internal | enabled | up | 2016-11-08T11:30:33.000000 | - |
| 35 | nova-scheduler | kxcontroller2 | internal | enabled | up | 2016-11-08T11:30:33.000000 | - |
| 38 | nova-scheduler | kxcontroller1 | internal | enabled | up | 2016-11-08T11:30:35.000000 | - |
| 41 | nova-cert | kxcontroller1 | internal | enabled | up | 2016-11-08T11:30:38.000000 | - |
| 44 | nova-consoleauth | kxcontroller1 | internal | enabled | up | 2016-11-08T11:30:35.000000 | - |
| 47 | nova-conductor | kxcontroller1 | internal | enabled | up | 2016-11-08T11:30:39.000000 | - |
| 50 | nova-compute | kxcompute4 | prd_um_zone | enabled | up | 2016-11-08T11:30:37.000000 | - |
| 53 | nova-compute | kxcompute3 | prd_um_zone | enabled | up | 2016-11-08T11:30:36.000000 | - |
| 56 | nova-compute | kxcompute1 | prd_um_zone | enabled | up | 2016-11-08T11:30:37.000000 | - |
| 59 | nova-compute | kxcompute2 | prd_um_zone | enabled | up | 2016-11-08T11:30:36.000000 | - |
| 60 | nova-compute | kxcompute6 | prd_dm_zone | enabled | up | 2016-11-08T11:30:37.000000 | - |
| 62 | nova-compute | kxcompute5 | prd_dm_zone | enabled | up | 2016-11-08T11:30:36.000000 | - |
| 64 | nova-compute | kxcompute7 | prd_dm_zone | enabled | up | 2016-11-08T11:30:35.000000 | - |
| 67 | nova-compute | kxcompute8 | prd_dm_zone | enabled | up | 2016-11-08T11:30:35.000000 | - |
| 70 | nova-compute | kxcompute9 | prd_dm_zone | enabled | up | 2016-11-08T11:30:36.000000 | - |
+----+------------------+---------------+-------------+---------+-------+----------------------------+-----------------+
- 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私有云布署实践【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私有云布署实践【14.2 登录页dashboard-controller(办公网环境)】
这一小节基本配置相同,但留意以下紫色部份的配置,当初为了管理方便,我们让办公网openstack的dashboard的登录桥接了科兴的dashboard,由此统一dashboard界面的登录地址 ...
- openstack私有云布署实践【9.2 Glance镜像管理(办公网环境)】
首先登录controller1创建glance数据库,并赋于远程和本地访问的权限. mysql -u root -p CREATE DATABASE glance; GRANT ALL ...
- openstack私有云布署实践【2 安装前的服务器基本环境准备】
服务器物理机都安装centos7.2 1511版本 , 此次采用的分区方式全是自动XFS格式LVM,在装系统时就将所有本地raid5硬盘都加入LVM全用了.默认/home目录有着最大的硬盘空间 并且我 ...
随机推荐
- Sublime和Codeblocks支持C++11
Sublime和Codeblocks支持C++11 闲来没事看了一下C++11,比起C++0x多了很多新功能,像auto变量,智能指针等,g++4.7以上版本也提供了对C++11的支持,但是,如何在你 ...
- windows服务1053错误排查
公司员工离职,接手他的任务,告诉我windows服务已经完成,没来得及测试.好吧,我接着做...... 服务生成后,运行bat文件.启动服务失败,提示错误编码1053.根据以往的经验,一般是三方面引起 ...
- Asp.net 插入或更改查询字符串
string InsertOrUpdateQueryStringItem(string key, string value) { if (Request.QueryString.HasKeys()) ...
- OpenCascade
Hello World of OpenCascade Hello World of OpenCascade eryar@163.com 摘要Abstract:以一个经典的Hello World程序 ...
- Show 一下最新的动态属性扩展功能与键值生成器功能
Show 一下最新的动态属性扩展功能与键值生成器功能 YbSoftwareFactory 各种插件的基础类库中又新增了两个方便易用的功能:动态属性扩展与键值生成器,本章将分别介绍这两个非常方便的组件. ...
- Centos6.3不能使用yum install安装gcc编辑器解决办法
mv /var/lib/rpm/__db* /tmp rpm --rebuilddb yum clean all
- enode框架step by step之saga的思想与实现
enode框架step by step之saga的思想与实现 enode框架系列step by step文章系列索引: 分享一个基于DDD以及事件驱动架构(EDA)的应用开发框架enode enode ...
- LAMP on ubuntu12.04 PHP, Apache2, MySQL, Linux ( with phpmyadmin installed)
there are several procedure which include: 1. Install the packages sudo apt-get install php5 php5-gd ...
- ZOJ 3529 A Game Between Alice and Bob 博弈好题
A Game Between Alice and Bob Time Limit: 5 Seconds Memory Limit: 262144 KB Alice and Bob play t ...
- Source Insight使用小技巧小结
Source Insight是一款强大的代码查看工具,本身支持扩展性很好.下面我们就介绍2个扩展用例. 1.快速打开当前文件所在的目录,这个功能类似于eclipse的easyshell插件,就是能快速 ...