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

标签: openstack 解决方案 私有云 计算节点
430人阅读 评论(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 
查看评论

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

作者:【吴业亮】博客:http://blog.csdn.net/wylfengyujiancheng安装rpm包# yum -y install openstack-dashboard修改配置文件 ...
  • wylfengyujiancheng
  • wylfengyujiancheng
  • 2017-11-28 09:20:23
  • 447

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

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

[译] OpenStack Pike 版本中的 53 个新功能盘点

原文:https://www.mirantis.com/blog/53-things-to-look-for-in-openstack-pike/ 作者:Mirantis Nick Chase 发...
  • buyaoxx
  • buyaoxx
  • 2017-08-31 12:21:33
  • 2159

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

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

Openstack 计算节点配置笔记(一)

手动安装的主要步骤:1.流程,背景:cloud controller nodecompute node; 在多节点运作情况下,需要安装多个compute nodeopenstack工作原理:open...
  • xavierl
  • xavierl
  • 2011-03-24 12:36:00
  • 1836

OpenStack Pike 版本中的 53 个新功能盘点

我们都在期待 OpenStack 第16个社区版本 Pike,它在08/30发布。现在是我们传统节目时间了,那就是从这个版本中概括出53个核心功能。...
  • dylloveyou
  • dylloveyou
  • 2017-09-06 13:49:29
  • 1035

OpenStack Pike版本neutron组件新特性

New Features: 端口现在有一个dns_domain属性。从把它发布到外部DNS服务的角度来看,端口的dns_domain属性要优先于网络的dns_domain。   此版本引入了一种新型...
  • u012619126
  • u012619126
  • 2017-08-30 14:16:27
  • 748

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

作者:【吴业亮】博客:http://blog.csdn.net/wylfengyujiancheng1、安装集群软件[node1&node2&node3]# yum install -y lvm2 c...
  • wylfengyujiancheng
  • wylfengyujiancheng
  • 2017-11-27 22:30:34
  • 467

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

作者:【吴业亮】博客:http://blog.csdn.net/wylfengyujiancheng1、配置本地源mkdir /etc/yum.repos.d/bak_repo_bak mv /et...
  • wylfengyujiancheng
  • wylfengyujiancheng
  • 2017-11-27 22:23:19
  • 596
    个人资料
    持之以恒
    等级:
    访问量: 44万+
    积分: 4725
    排名: 7407
    最新评论