KOPS - openstack
type: channel
link: https://www.kops.cc/category/openstack/
items: OpenStack Rocky(R版) 部署手册 - 计算节点
items: OpenStack Rocky(R版) 部署手册 - 控制节点

OpenStack Rocky(R版) 部署手册 - 计算节点
type: item
date: 2019-03-05T10:07:00+00:00
description: 控制节点部署见：OpenStack Rocky(R版) 部署手册 - 控制节点部署环境主机名IP系统部署模块controller192.168.31.11CentOS 7 x86_64MySQL-server RabbitMQ-server memcachedetcd keystone glance nova-api placement neutronnode2192.168.31.12CentOS 7 x86_64nova-compute neutron-linuxbridgenode3192.168.31.13CentOS 7 x86_64nova-compute neutron-linuxbridge环境准备关闭防火墙[root@node2 ~]# systemctl disable firewalld [root@node2 ~]# systemctl stop firewalld关闭 SELinux[root@node2 ~]# sed -i 's/^SELINUX=enforcing/SELINUX=disabled' /etc/selinux/config [root@node2 ~]# setenforce 0时间同步[root@node2 ~]# yum install -y chrony [root@node2 ~]# systemctl enable chronyd [root@node2 ~]# systemctl start chronydHost 解析192.168.31.11 controller 192.168.31.12 node2 192.168.31.13 node3更新系统[root@node2 ~]# yum upgrade -y以 node2 为例，加入其它计算节点操作一样。安装配置 Nova-compute安装 openstack yum 源[root@node2 ~]# yum install -y centos-release-openstack-rocky安装 openstack 客户端[root@node2 ~]# yum install -y python-openstackclient安装 nova computer[root@node2 ~]# yum install -y openstack-nova-compute配置 nova编辑 nova 配置文件 /etc/nova/nova.conf[DEFAULT] # ... enabled_apis = osapi_compute,metadata transport_url = rabbit://openstack:RABBIT_PASS@controller my_ip = 192.168.31.11 use_neutron = true firewall_driver = nova.virt.firewall.NoopFirewallDriver [api] # ... auth_strategy = keystone [keystone_authtoken] # ... auth_url = http://controller:5000/v3 memcached_servers = controller:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = service username = nova password = NOVA_PASS [neutron] # ... url = http://controller:9696 auth_url = http://controller:5000 auth_type = password project_domain_name = default user_domain_name = default region_name = RegionOne project_name = service username = neutron password = NEUTRON_PASS [vnc] # ... enabled = true server_listen = 0.0.0.0 server_proxyclient_address = $my_ip novncproxy_base_url = http://controller:6080/vnc_auto.html [glance] # ... api_servers = http://controller:9292 [oslo_concurrency] # ... …

OpenStack Rocky(R版) 部署手册 - 控制节点
type: item
date: 2019-03-05T08:43:00+00:00
description: 部署环境主机名IP系统部署模块controller192.168.31.11CentOS 7 x86_64MySQL-server RabbitMQ-server memcachedetcd keystone glance nova-api placement neutron horizonnode2192.168.31.12CentOS 7 x86_64nova-compute neutron-linuxbridgenode3192.168.31.13CentOS 7 x86_64nova-compute neutron-linuxbridge环境准备关闭防火墙[root@controller ~]# systemctl disable firewalld [root@controller ~]# systemctl stop firewalld关闭 SELinux[root@controller ~]# sed -i 's/^SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config [root@controller ~]# setenforce 0时间同步[root@controller ~]# yum install -y chrony [root@controller ~]# systemctl enable chronyd [root@controller ~]# systemctl start chronydHost 解析192.168.31.11 controller 192.168.31.12 node2 192.168.31.13 node3更新系统[root@controller ~]# yum upgrade -y安装 OpenStack 基础软件包安装 openstack yum 源[root@controller ~]# yum install -y centos-release-openstack-rocky安装 openstack 客户端[root@controller ~]# yum install -y python-openstackclient安装 openstack-selinux 包实现对 OpenStack 服务的安全策略进行自动管理[root@controller ~]# yum install -y openstack-selinux安装数据库服务安装 MySQL Server[root@controller ~]# yum install -y mariadb mariadb-server python2-PyMySQLMySQL配置文件[root@controller ~]# cat > /etc/my.cnf.d/openstack.cnf << EOF [mysqld] default-storage-engine = innodb innodb_file_per_table = on max_connections = 4096 collation-server = utf8_general_ci character-set-server = utf8 EOF启动MySQL[root@controller ~]# systemctl enable mariadb [root@controller ~]# systemctl start mariadbMySQL安全初始化[root@controller ~]# mysql_secure_installationmysql_secure_installationNOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY! In order to log into MariaDB to secure it, we'll need the currentpassword for the root user. If you've just installed MariaDB, andyou haven't set the root password yet, the password will be blank,so you should just press enter here.Enter current password for root (enter for none): OK, successfully used password, moving on...Settin…