In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 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 openstack in devstack in centos7. I hope you will get something after reading this article. Let's discuss it together.
My environment centos7, first install the most basic git,yum installation will be fine, here I will not talk about how to change the source (only when the previous feed is not easy to use)
1: download devstack to the / home folder, because the current installation does not support root permission installation, so you need to create a new user. If you put it in another directory, the permission problem will be prompted during installation. Here is how to create a new installation user (stack).
Git clone https://github.com/openstack-dev/devstack.git
2: enter devstack/tools for execution after the download is completed
. / create-stack-user.sh
Create a stack user and modify the directory permissions of devstack
Chown-R stack:stack / home/devstack
3: switch user su stack, according to common sense, execute. / stcak.sh to finish our installation, but the problem often arises. First of all, because there are many dependent packages in the installation process, the default download file is saved in / opt/stack when executing. / stack for the first time. Go to this directory and find the requirements folder.
If you see the files in the folder, it is recommended to install the dependency package manually
Pip install-r global-requirements.txt pip install-r requirements.txt pip install-r upper-constraints.txtpip install-r upper-constraints-xfails.txt
If you are not sure what the dependency package is, you can open each txt file to check it. If you encounter installation problems in the process of installing the dependency package, check the tips carefully. If you can install the package manually, you'd better download the source code installation manually. If not, don't install it first, just stay here, and then install the next file.
3: when the installation of these dependent files is complete, execute. / stack.sh, and if you are lucky in the process of execution, the installation will eventually succeed. Of course, we missed the configuration file and created localrc in the devstack directory. This file can go to Google, or you can install the. / stack.sh directly without creating this file, because you don't know what the properties in it do when you create it. You will have a rough idea of the usefulness of the properties when you install it many times.
4: problems encountered in installation:
(1): version mismatch is a common problem, that is, depending on the version number given in the package, which may change from the version used in your current installation of openstack, download it manually and go to the requirements folder to find the dependency file (mainly txt files, such as upper-constrains.txt), find the dependency package and comment out the dependency package, or modify the version.
Eg: python-neutronclient is prompted during installation to install a conflict between version 6.2.0 and the required python-neutronclient-6.3.0, so install the package manually and release the library in the files such as upper-constrains.txt that include the installation package, or modify the version currently required.
(2): during the installation process, you will constantly go to the git clone code on the main branch. If the download is not successful, you can run the. / stack.sh repeatedly, or go to the cd / opt/stack directory to manually git clone yourself.
(3): if the code has finished git and there is no conflict, the error may be
[ERROR] / home/devstack/lib/keystone:558 keystone did not start
[ERROR] / home/devstack/lib/nova:812 nova-api did not start
[ERROR] / home/devstack/lib/keystone:558 keystone did not start
[ERROR] / home/devstack/lib/keystone:558 keystone did not start
[ERROR] / home/devstack/functions-common:2448 Neutron did not start
[ERROR] / home/devstack/lib/keystone:558 keystone did not start
Before reporting such an error, you usually execute curl-g-k-- noproxy'*'- s-o / dev/null-w'% {http_code} 'http://*.*.*.*/identity/v3/ to see the returned status code. Most of them are 503000. If you repeat the error, you will ok. In this case, you need to set vim localrc under devstack.
Set your own ip to ok
After reading this article, I believe you have a certain understanding of "how to install openstack in devstack in 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.