安装HPE Helion Openstack
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了安装HPE Helion Openstack相关的知识,希望对你有一定的参考价值。
先简单记录一下步骤。备忘...
install 步骤
0.准备信息,包括
Server names
IP addresses
Server Roles
PXE MAC addresses
PXE IP addresses
PXE interfaces
IPMI/iLO IP address, username, password
1.安装iso系统,部署lifecycle
2.拷贝tar文件解压
3.运行hos-init.bash(export HOS_INIT_AUTO=y #添加后不提示ssh保护密码)
3.1 安装完成,显示:
To continue installation copy your cloud layout to:
/home/stack/helion/my_cloud/definition
Then execute the installation playbooks:
cd /home/stack/helion/hos/ansible
git add -A
git commit -m ‘My config‘
ansible-playbook -i hosts/localhost cobbler-deploy.yml
ansible-playbook -i hosts/localhost bm-reimage.yml
ansible-playbook -i hosts/localhost config-processor-run.yml
ansible-playbook -i hosts/localhost ready-deployment.yml
cd /home/stack/scratch/ansible/next/hos/ansible
ansible-playbook -i hosts/verb_hosts site.yml
目录结构:
helion/ Top level directory
helion/examples/ Directory contains the config input files of the example clouds
helion/my_cloud/definition/ Directory contains the config input files
helion/my_cloud/config/ Directory contains .j2 files which are symlinks to the /hos/ansible directory
helion/hos/ Directory contains files used by the installer
4.图形安装,访问 http://<lifecycle manager_IP>:79/dayzero 。图形安装后会禁用服务,启用方法:
sudo a2ensite dayzero-apache.conf
sudo systemctl start dayzero.service
4.拷贝模版文件
cp -r ~/helion/examples/entry-scale-kvm-vsa/* ~/helion/my_cloud/definition/
[可选项]加密iLo密码
cd ~/helion/hos/ansible
export HOS_USER_PASSWORD_ENCRYPT_KEY=<encryption key>
./hosencrypt.py
把相应的加密密码修改到 ~/helion/my_cloud/definition/data/servers.yml
5.提交配置到本地git仓库
cd ~/helion/hos/ansible
git add -A
git commit -m "My config or other commit message"
6.使用自动化系统安装
第一部分:部署Cobbler
1.确认iLo可以连接并控制服务器电源。
cd ~/helion/hos/ansible
ansible-playbook -i hosts/localhost bm-power-status.yml
2.部署Cobbler
cd ~/helion/hos/ansible
ansible-playbook -i hosts/localhost cobbler-deploy.yml
第二部分:Image the Nodes
1.安装后关闭节点电源
2.设定节点网络启动为硬件启动顺序的第一位。
3.打开电源,节点通过迁移步骤从网络启动安装系统。
4.等待节点关机(表示安装完成),需要一定的时间。
5.在所有节点设定从硬盘启动
6.等待节点的ssh可用并验证。
The reimage command is:
cd ~/helion/hos/ansible
ansible-playbook -i hosts/localhost bm-reimage.yml [-e nodelist=node1,node2,node3]
查看是否所有节点网络启动是打开的
sudo cobbler system find --netboot-enabled=1
7.运行配置处理程序
cd ~/helion/hos/ansible
ansible-playbook -i hosts/localhost config-processor-run.yml
上面的命令会提示两个密码,也可以把它们放在命令行里
ansible-playbook -i hosts/localhost config-processor-run.yml -e encrypt="" -e rekey=""
8.配置 TLS(传输层安全,SA证书等) 略
9.部署云
1.创建部署目录
cd ~/helion/hos/ansible
ansible-playbook -i hosts/localhost ready-deployment.yml
2.擦除磁盘数据[可选项]
cd ~/scratch/ansible/next/hos/ansible
ansible-playbook -i hosts/verb_hosts wipe_disks.yml
3.运行部署脚本(时间在45分钟以上)
cd ~/scratch/ansible/next/hos/ansible
ansible-playbook -i hosts/verb_hosts site.yml
如果之前运行配置处理程序config-processor-run.yml使用了密码,使用密码提示
ansible-playbook -i hosts/verb_hosts site.yml --ask-vault-pass
4.验证网络正确工作,从控制节点 ping /etc/hosts 中的所有IP。
本文出自 “梦想成真” 博客,请务必保留此出处http://zhile.blog.51cto.com/9599674/1908776
以上是关于安装HPE Helion Openstack的主要内容,如果未能解决你的问题,请参考以下文章
Deploy Helion Openstack 2.0 KVM for Ceph
如何使用 Apache jclouds 访问 HP Helion