Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install Packstack with multiple nodes in openstackM centos7

2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you how to install Packstack on multiple nodes in openstackM centos7. I hope you will get something after reading this article. Let's discuss it together.

Environmental preparation

Hostname Ip func hcy-node1 192.168.7.80 controller hcy-node2 192.168.7.81 compute hcy-node3 192.168.7.82 compute

/ etc/hostname will be changed / etc/hosts will be added:

192.168.7.80 hcy-node1192.168.7.81 hcy-node2192.168.7.82 hcy-node3

Configure the network card to boot:

/ etc/sysconfig/network-scripts/ifcfg-eth0, change ONBOOT=no to yes

Install packstack on three nodes: it is best to set NetEase's source here for fast download speed.

Cd / etc/yum.repos.dmv CentOS-Base.repo CentOS-Base.repo.backupwget http://mirrors.163.com/.help/CentOS7-Base-163.repomv CentOS7-Base-163.repo CentOS-Base.repoyum clean all

Openstack-packstack may not be found here. It is recommended to go directly.

Yum install https://repos.fedorapeople.org/repos/openstack/openstack-mitaka/rdo-release-mitaka-6.noarch.rpm

After downloading, there may be any key errors during the installation. Go to / etc/yum.repos.d/CentOS-Base.repo and change centos6 to centos7, because I installed it in the centos7 version.

Yum install openstack-packstack-y

Generate answer-file:

Packstack-gen-answer-file=hcloud.txt

Modify the following configuration in hcloud.txt:

Here the hcloud.txt on node2,node3 is the same as that on node1, specifying node1 as the control node and node2,node3 as the compute node

(1) modify compute node and network node IP

[root@hcy-node1 ~] # grep HOST. / hcloud.txt CONFIG_CONTROLLER_HOST=192.168.7.80CONFIG_COMPUTE_HOSTS=192.168.7.80 changed to: CONFIG_COMPUTE_HOSTS=192.168.7.81192.168.7.82CONFIG_NETWORK_HOSTS=192.168.7.80CONFIG_VCENTER_HOST=CONFIG_STORAGE_HOST=192.168.7.80 to: CONFIG_STORAGE_HOST=192.168.7.81192.168.7.82CONFIG_SAHARA_HOST=192.168.7.80CONFIG_AMQP_HOST=192.168.7.80CONFIG_MARIADB_HOST=192.168.7.80

(2) do not install cirros image and change CONFIG_PROVISION_DEMO=y to n. Check / etc/hostname and / etc/hosts before deployment:

Node 1:

[root@hcy-node1 ~] # cat / etc/hosts127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4::1 localhost localhost.localdomain localhost6 localhost6.localdomain6192.168.7.80 hcy-node1192.168.7.81 hcy-node2192.168.7.82 hcy-node3

Node 2:

[root@hcy-node2 ~] # cat / etc/hosts127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4::1 localhost localhost.localdomain localhost6 localhost6.localdomain6192.168.7.80 hcy-node1192.168.7.81 hcy-node2192.168.7.82 hcy-node3

Node 3:

[root@hcy-node3 ~] # cat / etc/hosts127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4::1 localhost localhost.localdomain localhost6 localhost6.localdomain6192.168.7.80 hcy-node1192.168.7.81 hcy-node2192.168.7.82 hcy-node3

Check the hcloud.txt again:

[root@hcy-node1 ~] # grep HOST. / hcloud.txt CONFIG_CONTROLLER_HOST=192.168.7.80CONFIG_COMPUTE_HOSTS=192.168.7.81192.168.7.82CONFIG_NETWORK_HOSTS=192.168.7.80CONFIG_VCENTER_HOST=CONFIG_STORAGE_HOST=192.168.7.81192.168.7.82CONFIG_SAHARA_HOST=192.168.7.80

There are also the following options:

[root@hcy-node1 ~] # grep CONFIG_PROVISION_DEMO. / hcloud.txtCONFIG_PROVISION_DEMO=n

Start the deployment and only execute it on the control node:

# yum install screen# screen packstack-- answer-file=hcloud.txtWelcome to the Packstack setup utility The installation log file is available at:/var/tmp/packstack/20160509-021808-zfHLVi/openstack-setup.log Installing:Clean Up [DONE] Discovering ip protocol version [DONE] here you need to manually enter the passwords of three nodes Then wait until the deployment is complete: root@192.168.7.80'spassword: root@192.168.7.81'spassword: root@192.168.7.82'spassword:Setting up ssh keys [DONE] after the successful deployment, the following message appears: * Installation completed successfully* Additional information: * File / root/keystonerc_admin has been created on OpenStack client host192.168.7.80. To use the command line tools you need to source the file. * Toaccess the OpenStack Dashboard browse to http://192.168.7.80/dashboard. Lease, find your login credentials storedin the keystonerc_admin in your home directory.

The deployment is successful at this point, and the horizon login password is in the export OS_PASSWORD parameter of / root/keystonerc_admin. Source keystonerc_admin

When horizon changes the admin password (it is best to write down the initial password first, because you need to change it first to horizon user), you should also change the export OS_PASSWORD parameter in this file to the modified admin password.

The installed openstack has no mirrors and networks. The network creates a random subnet of its own. Upload the image to the / mnt/image directory and execute: openstack image create "cirros"-- file cirros-0.3.4-x86_64-disk.img-- disk-format qcow2-- container-format bare-- public. You can successfully create a CVM.

Basic Services check:

After reading this article, I believe you have a certain understanding of "how to install Packstack in openstackM centos7". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report