关闭

私有云落地解决方案之openstack高可用(pike版本)-添加计算节点

标签: openstack解决方案私有云计算节点
232人阅读 评论(0) 收藏 举报
分类:

作者:【吴业亮】

博客:http://blog.csdn.net/wylfengyujiancheng

Nova
安装软件包

#  yum install openstack-nova-compute  -y

修改配置文件/etc/nova/nova.conf

[DEFAULT]
enabled_apis = osapi_compute,metadata
firewall_driver = nova.virt.firewall.NoopFirewallDriver
my_ip = 172.16.8.63
use_neutron = True
firewall_driver = nova.virt.firewall.NoopFirewallDriver
vif_plugging_is_fatal = True
vif_plugging_timeout = 300
linuxnet_interface_driver = nova.network.linux_net.LinuxOVSInterfaceDriver
[api]
auth_strategy = keystone
[api_database]
[barbican]
[cache]
[cells]
[cinder]
os_region_name = RegionOne
[compute]
[conductor]
[console]
[consoleauth]
[cors]
[crypto]
[database]
[ephemeral_storage_encryption]
[filter_scheduler]
[glance]
api_servers = http://172.16.8.50:9292
[guestfs]
[healthcheck]
[hyperv]
[ironic]
[key_manager]
[keystone_authtoken]
auth_uri = http://172.16.8.50:5000
auth_url = http://172.16.8.50:36357
memcached_servers = node1:11211,node2:11211,node3:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = nova
password = Changeme_123
[libvirt]
virt_type = qemu
cpu_mode=none
[matchmaker_redis]
[metrics]
[mks]
[neutron]
url = http://172.16.8.50:9696
auth_url = http://172.16.8.50:36357
auth_type = password
project_domain_name = default
user_domain_name = default
region_name = RegionOne
project_name = service
username = neutron
password = Changeme_123
service_metadata_proxy = True
metadata_proxy_shared_secret = Changeme_123
[notifications]
[osapi_v21]
[oslo_concurrency]
lock_path = /var/lib/nova/tmp
[oslo_messaging_amqp]
[oslo_messaging_kafka]
[oslo_messaging_notifications]
[oslo_messaging_rabbit]
rabbit_hosts = node1:5672,node2:5672,node3:5672
rabbit_userid  = openstack
rabbit_password  = Changeme_123
rabbit_ha_queues =  True
rabbit_retry_interval =  1
rabbit_retry_backoff =  2
rabbit_max_retries  = 0
[oslo_messaging_zmq]
[oslo_middleware]
[oslo_policy]
[pci]
[placement]
os_region_name = RegionOne
project_domain_name = Default
project_name = service
auth_type = password
user_domain_name = Default
auth_url = http://172.16.8.50:36357/v3
username = placement
password = Changeme_123
[quota]
[rdp]
[remote_debug]
[scheduler]
[serial_console]
[service_user]
[spice]
[trusted_computing]
[upgrade_levels]
[vendordata_dynamic_auth]
[vmware]
[vnc]
enabled = True
vncserver_listen = 0.0.0.0
vncserver_proxyclient_address = $my_ip
novncproxy_base_url = http://172.16.8.50:6080/vnc_auto.html
[workarounds]
[wsgi]
[xenserver]
[xvp]

检测是否支持虚拟化

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

无回显用qemu,有回显用kvm

[libvirt]
# ...
virt_type = qemu
cpu_mode=none

启动服务并设置开机启动

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

验证

# openstack compute service list --service nova-compute

任一控制节点上
发现计算节点

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

如果配置自动发现

[scheduler]
discover_hosts_in_cells_interval = 300

验证

查看服务

#  openstack compute service list

在Identity Service中列出API的endpoint,以验证与Identity服务的连接正常

#  openstack catalog list

查看镜像服务

#  openstack image list

验证cells and placement API 是否正常

# nova-status upgrade check

Neutron

安装软件包

# yum  -y install openstack-neutron openstack-neutron-ml2 openstack-neutron-openvswitch

修改配置文件

# mv /etc/neutron/neutron.conf /etc/neutron/neutron.conf.org 
# vi /etc/neutron/neutron.conf
[DEFAULT]
core_plugin = ml2
service_plugins = router
auth_strategy = keystone
state_path = /var/lib/neutron
allow_overlapping_ips = True
# RabbitMQ connection info
transport_url = rabbit://openstack:Changeme_123@172.16.8.50

# Keystone auth info
[keystone_authtoken]
auth_uri = http://172.16.8.50:5000
auth_url = http://172.16.8.50:35357
memcached_servers = node1:11211,node2:11211,node3:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = neutron
password = Changeme_123

[oslo_concurrency]
lock_path = $state_path/lock

修改权限

# chmod 640 /etc/neutron/neutron.conf 
# chgrp neutron /etc/neutron/neutron.conf 

修改配置文件/etc/neutron/plugins/ml2/ml2_conf.ini

# cp -a  /etc/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugins/ml2/ml2_conf.ini_bak
openstack-config --set   /etc/neutron/plugins/ml2/ml2_conf.ini ml2 type_drivers  flat,vlan,gre,vxlan 
openstack-config --set   /etc/neutron/plugins/ml2/ml2_conf.ini ml2 tenant_network_types
openstack-config --set   /etc/neutron/plugins/ml2/ml2_conf.ini ml2 mechanism_drivers  openvswitch,l2population 
openstack-config --set   /etc/neutron/plugins/ml2/ml2_conf.ini ml2 extension_drivers  port_security
openstack-config --set   /etc/neutron/plugins/ml2/ml2_conf.ini securitygroup firewall_driver  neutron.agent.linux.iptables_firewall.OVSHybridIptablesFirewallDriver
openstack-config --set   /etc/neutron/plugins/ml2/ml2_conf.ini securitygroup enable_security_group  True 
openstack-config --set   /etc/neutron/plugins/ml2/ml2_conf.ini securitygroup enable_ipset  True

修改配置文件/etc/nova/nova.conf

openstack-config --set   /etc/nova/nova.conf  DEFAULT  vif_plugging_is_fatal  True
openstack-config --set   /etc/nova/nova.conf  DEFAULT  vif_plugging_timeout  300
openstack-config --set   /etc/nova/nova.conf  DEFAULT  use_neutron  True
openstack-config --set   /etc/nova/nova.conf  DEFAULT  linuxnet_interface_driver  nova.network.linux_net.LinuxOVSInterfaceDriver
openstack-config --set   /etc/nova/nova.conf  DEFAULT  firewall_driver  nova.virt.firewall.NoopFirewallDriver
openstack-config --set   /etc/nova/nova.conf  neutron url  http://172.16.8.50:9696
openstack-config --set   /etc/nova/nova.conf  neutron auth_url  http://172.16.8.50:35357
openstack-config --set   /etc/nova/nova.conf  neutron auth_type  password
openstack-config --set   /etc/nova/nova.conf  neutron project_domain_name  default 
openstack-config --set   /etc/nova/nova.conf  neutron user_domain_name  default
openstack-config --set   /etc/nova/nova.conf  neutron region_name  RegionOne
openstack-config --set   /etc/nova/nova.conf  neutron project_name  service
openstack-config --set   /etc/nova/nova.conf  neutron username  neutron
openstack-config --set   /etc/nova/nova.conf  neutron password  Changeme_123
openstack-config --set   /etc/nova/nova.conf  neutron service_metadata_proxy  True
openstack-config --set   /etc/nova/nova.conf  neutron metadata_proxy_shared_secret  Changeme_123

创建软连接

# ln -s /etc/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugin.ini 

启动服务

# systemctl start openvswitch 
# systemctl enable openvswitch 

创建网桥

# ovs-vsctl add-br br-int 

启动服务

# systemctl restart openstack-nova-compute 
# systemctl start neutron-openvswitch-agent 
# systemctl enable neutron-openvswitch-agent 
0
0
查看评论
发表评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场

利用rdo,创建openstack多节点环境(controller+compute)

通过rdo 配置计算节点 由于只需要一个简单的环境(一个控制节点,一个计算节点),所以不想用fuel安装,感觉太麻烦了 于是我想用rdo安装两个独立的环境,然后将其中一个改装成计算节点 1. 创...
  • qq_21398167
  • qq_21398167
  • 2016-06-01 17:01
  • 1921

基于openstack构建私有云实践

主要分享的是云计算、openstack的使用、私有云平台建设、云服务器云硬盘的构建和使用。从基本概念入手到私有云建设,信息量非常大。对于openstack的安装部署都是从官方文档中一步步的介绍,内容非...
  • sdksdk0
  • sdksdk0
  • 2017-02-02 13:35
  • 2743

Devstack多节点部署实验

本文为博主翻译文章,转载请注明出处Bob Hou: http://blog.csdn.net/minxihou 这是个在多物理服务器上部署openstack例子:1 先决条件Linux&网络1.1 ...
  • minxihou
  • minxihou
  • 2016-07-17 02:50
  • 3894

私有云落地解决方案之openstack高可用(pike版本)-添加存储节点

作者:【吴业亮】博客:http://blog.csdn.net/wylfengyujiancheng一、前提条件 各个节点的时间同步二、基础配置 1、安装软件包# yum -y install ...
  • wylfengyujiancheng
  • wylfengyujiancheng
  • 2017-11-28 09:40
  • 270

私有云落地解决方案之openstack高可用(pike版本)-架构

作者:【吴业亮】博客:http://blog.csdn.net/wylfengyujiancheng本架构借鉴redhat架构1、API 服务:包括 *-api, neutron-server,gla...
  • wylfengyujiancheng
  • wylfengyujiancheng
  • 2017-11-27 22:15
  • 358

私有云落地解决方案之openstack高可用(pike版本)-neutron【ovs】

作者:【吴业亮】博客:http://blog.csdn.net/wylfengyujiancheng创建用户# openstack user create --domain default --pro...
  • wylfengyujiancheng
  • wylfengyujiancheng
  • 2017-11-27 22:46
  • 286

私有云落地解决方案之openstack高可用(pike版本)-数据库

作者:【吴业亮】博客:http://blog.csdn.net/wylfengyujiancheng1、安装rpm包# yum install -y MariaDB-server MariaDB-c...
  • wylfengyujiancheng
  • wylfengyujiancheng
  • 2017-11-27 22:26
  • 261

私有云落地解决方案之openstack高可用(pike版本)-nova

作者:【吴业亮】博客:http://blog.csdn.net/wylfengyujiancheng控制节点安装 创建数据库ova_api, nova, and nova_cell0 databas...
  • wylfengyujiancheng
  • wylfengyujiancheng
  • 2017-11-27 22:44
  • 296

私有云落地解决方案之openstack高可用(pike版本)-haproxy

1、三个节点安装haproxy,并设置开机自动启动# yum install -y haproxy # systemctl enable haproxy2、跟rsyslog结合配置haproxy日...
  • wylfengyujiancheng
  • wylfengyujiancheng
  • 2017-11-27 22:34
  • 256

私有云落地解决方案之openstack高可用(pike版本)-cinder

作者:【吴业亮】博客:http://blog.csdn.net/wylfengyujiancheng创建用户# openstack user create --domain default --pro...
  • wylfengyujiancheng
  • wylfengyujiancheng
  • 2017-11-28 09:23
  • 206
    个人资料
    • 访问:378020次
    • 积分:4200
    • 等级:
    • 排名:第8416名
    • 原创:141篇
    • 转载:0篇
    • 译文:0篇
    • 评论:65条
    文章分类
    最新评论