6.1 CentOS Environment Preparation
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 |
Modify/etc/sysconfig/network-scripts/ifcfg-eth0 in Onboot=yes
Modify/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
Configure the Yum source to be a hik internal source:
Then update the Yum Source:
# yum Clean;yumupdate; Yum Makecache
6.2 Installing Packstack
Four nodes are executed:
Yum Install Openstack-packstack-y
6.3 Installing the four-node OpenStack environment with Packstack
On the control node: first generate Answer-file:
[[Email protected]]# packstack--gen-answer-file=hcloud.txt
Packstack Changedgiven value to required value/root/.ssh/id_rsa.pub
Then modify the Hcloud.txt:
The modified points are as follows:
[[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=
Then modify the Cirros image without uploading:
config_provision_demo=y instead N
Check again before installing:
[[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
To start the installation:
# 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]
Here you need to manually enter the four-node password
[Email protected] ' Spassword:
[Email protected] ' Spassword:
[Email protected] ' Spassword:
[Email protected] ' Spassword:
Setting up Sshkeys [done]
Then wait for the installation to complete:
After successful installation, the following print will appear:
Installation Completed successfully******
Additionalinformation:
* Time synchronization installation wasskipped. Please note this 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 has the Network ManagerService enabled.
* File/root/keystonerc_admin has been CreatedOn OpenStack client host 192.168.11.13. The command line tools 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 is available at:/var/tmp/packstack/20160509-032847-sm4dwt/manifests
[Screen isterminating]
Packstack–answer-file deployment of multi-node OpenStack environments: four nodes