packstack –answer-file方式部署多节点openstack环境:四节点

6.1 CentOS环境准备


Vm name


Hostname


IP


Function


Lxp-centos-1


hcloud.controller


192.168.11.13/10.33.41.132


Controller


Lxp-centos-2


hcloud.network


192.168.11.14/10.33.41.135


Network


Lxp-centos-3


hcloud.compute1


192.168.11.15/10.33.41.139


Compute1


Lxp-centos-4


hcloud.compute2


192.168.11.16/10.33.41.148


Compute2

修改/etc/sysconfig/network-scripts/ifcfg-eth0中ONBOOT=yes

修改/etc/hostname、/etc/hosts:

192.168.11.13hcloud.controller

192.168.11.14hcloud.network

192.168.11.15hcloud.compute1

192.168.11.16hcloud.compute2

10.1.14.235  mirrors.hikvision.com.cn

配置yum源为hik内部源:

然后更新yum源:

# yum clean;yumupdate; yum makecache

6.2 安装packstack

四个节点都执行一下:

yum install openstack-packstack -y

6.3 使用packstack安装四节点openstack环境

在控制节点:首先生成answer-file:

[[email protected]]#   packstack--gen-answer-file=hcloud.txt

Packstack changedgiven value  to required value/root/.ssh/id_rsa.pub

然后修改hcloud.txt:

修改点如下:

[[email protected] etc]#grep HOST ./hcloud.txt

CONFIG_CONTROLLER_HOST=192.168.11.13

CONFIG_COMPUTE_HOSTS=192.168.11.13 -> CONFIG_COMPUTE_HOSTS=192.168.11.15,192.168.11.16

CONFIG_NETWORK_HOSTS=192.168.11.13-> CONFIG_NETWORK_HOSTS=192.168.11.14

CONFIG_VCENTER_HOST=

CONFIG_STORAGE_HOST=192.168.11.13-> CONFIG_STORAGE_HOST=192.168.11.15,192.168.11.16

CONFIG_SAHARA_HOST=192.168.11.13

CONFIG_AMQP_HOST=192.168.11.13

CONFIG_MARIADB_HOST=192.168.11.13

CONFIG_CINDER_NETAPP_HOSTNAME=

然后修改不上传cirros镜像:

CONFIG_PROVISION_DEMO=y改为n

安装前再检查一下:

[[email protected] etc]#grep HOST ./hcloud.txt

CONFIG_CONTROLLER_HOST=192.168.11.13

CONFIG_COMPUTE_HOSTS=192.168.11.15,192.168.11.16

CONFIG_NETWORK_HOSTS=192.168.11.14

CONFIG_VCENTER_HOST=

CONFIG_STORAGE_HOST=192.168.11.15,192.168.11.16

[[email protected] etc]#grep PROV ./hcloud.txt

CONFIG_PROVISION_DEMO=n

CONFIG_PROVISION_TEMPEST=n

开始安装:

# yum install screen -y

# screen packstack--answer-file=hcloud.txt

Welcome to thePackstack setup utility

The installationlog file is available at:/var/tmp/packstack/20160509-032847-SM4DwT/openstack-setup.log

Installing:

Clean Up                                             [DONE ]

Discovering ipprotocol version                      [DONE ]

这里需要手动输入四台节点的密码

[email protected]‘spassword:

[email protected]‘spassword:

[email protected]‘spassword:

[email protected]‘spassword:

Setting up sshkeys                                  [DONE ]

然后等待安装完毕即可:

安装成功之后会出现如下打印:

**** Installation completed successfully******

Additionalinformation:

* Time synchronization installation wasskipped. Please note that unsynchronized time on server instances might beproblem for some OpenStack components.

* Warning: NetworkManager is active on192.168.11.13, 192.168.11.15, 192.168.11.14, 192.168.11.16. OpenStacknetworking currently does not work on systems that have the Network Managerservice enabled.

* File /root/keystonerc_admin has been createdon OpenStack client host 192.168.11.13. To use the command line tools you needto source the file.

* To access the OpenStack Dashboard browse tohttp://192.168.11.13/dashboard .

Please, find yourlogin credentials stored in the keystonerc_admin in your home directory.

* To use Nagios, browse tohttp://192.168.11.13/nagios username: nagiosadmin, password: afc447090a6448e0

* The installation log file is available at:/var/tmp/packstack/20160509-032847-SM4DwT/openstack-setup.log

* The generated manifests are available at:/var/tmp/packstack/20160509-032847-SM4DwT/manifests

[screen isterminating]

时间: 2024-10-08 20:41:34

packstack –answer-file方式部署多节点openstack环境:四节点的相关文章

Packstack –answer-file方式部署多节点openstack环境--三节点

5.1 Centos环境准备 Hostname IP flating ip func Lxp-node1 192.168.11.10 10.33.41.135 Controller+network Lxp-node2 192.168.11.11 10.33.41.136 Compute+storage Lxp-node3 192.168.11.12 10.33.41.139 Compute+storage /etc/hostname都要改 /etc/hosts增加: 192.168.11.10

Packstack –answer-file方式部署多节点openstack环境--双节点

4.1 centos环境准备 目标:修改answer-file,将controller+network放在一个节点,compute-storage放在另一个节点,使用packstack部署双节点环境 hostname IP Floating ip Function lxp-node1 192.168.11.8 10.33.41.135 Controller+network lxp-node2 192.168.11.9 10.33.41.136 Compute+storage 在/etc/host

使用packstack以answer-file的方式部署单节点openstack环境

原来是使用packstack --init-host=myip的方式部署,这样只能是单节点 http://blog.csdn.net/xiangpingli/article/details/51239832 为了使用packstack进行多节点的方式部署openstack,就需要先研究answer-file的方式来部署openstack环境 如下是使用packstack --answer-file的方式部署单节点openstack环境的过程: Packstack –answer-file方式部署

Openstack 单控制节点部署实例

一.前期准备 1.openstack集群设备列表 10.240.216.101 os-node1    控制节点(ceph mon mds节点) 10.240.216.102 os-node2    计算节点(ceph mon mds节点) 10.240.216.103 os-node3    计算节点(ceph mon mds节点) 10.240.216.104 os-node4    存储节点(ceph osd节点) 10.240.216.105 os-node5    存储节点(ceph

在CentOS上以RDO方式部署openstack

CentOS7下以RDO方式安装all-in-one的openstack 因为对团队的环境部署和持续集成还不了解,先使用最简单的方式安装个开发环境.过程总结如下. 1.   Openstack部署的方式 通常如果只是搭一套环境自己用的话,使用CentOS的RDO方式搭建all-in-one的openstack开发环境是最快的.(RDO是什么?https://www.rdoproject.org/) 但是如果考虑持续集成.部署和升级的话,肯定需要专门的工具来打包.安装二次开发的代码,通常使用fue

openstack icehouse 3节点部署遇到的问题和解决方法

刚接触openstack不久,参考官方文档实施3节点部署时遇到了一些问题,主要集中在compute node,还好有十几年的运维经验协助我把问题一一解决了.以下会用红字部分标识解决方法. 系统环境:CentOS 6.5 64位 各节点IP:完全按照官方文档中的IP进行了配置 官方文档:http://docs.openstack.org/icehouse/install-guide/install/zypper/content/ 日志记录日期:2014-7-6 问题部分: Controller N

OpenStack 控制节点基本环境和身份验证服务的安装部署

OpenStack Networking(neutron) 需要一个控制节点(controller node).一个网络节点(networknode)以及至少一个计算节点(compute node). 一.物理环境部署 1.物理环境规划 表1.1. OpenStack环境部署 二.安装前的部署 1.1配置主机名 [email protected]:~# vim  /etc/hostname controller 1.2 配置IP地址 [email protected]:~# vim  /etc/

openstack三个节点icehouse-gre模式部署

一.环境准备 1.架构 创建3台虚拟机,分别作为controll节点.network节点和compute1节点. Controller节点:1processor,2G memory,5G storage. Network节点:1processor,2G memory,5G storage. Comute1节点:1processor,2G memory,5G storage. 架构图: 外部网络:提供上网业务,外界登录openstack(在上图为蓝色模块) 管理网络:三节点通信比如keystone

学习OpenStack之(5):在Mac上部署Juno版本OpenStack 四节点环境

0. 前沿 经过一段时间的折腾,终于在自己的Mac上装好了Juno版本的四节点环境.这过程中,花了大量的时间,碰到了许多问题,学到不少知识,折腾过不少其实不需要折腾的东西,本文试着来对这过程做个总结. 1. 初始环境 说明: 1. VirtualBox Ubuntu 安装:(VirtualBox网卡配置可见 http://www.cnblogs.com/sammyliu/p/4137772.html) 安装的是14.04 server 版本,装好后: (1)修改sources.list来使用厦大