In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-12 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
Editor to share with you how to deploy OpenStack stand-alone in devstack, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Devstack is a script used to quickly deploy OpenStack.
It is very easy to use, just execute. / stack.sh, but some problems encountered in the installation process will be interrupted. Through constant correction attempts, record them here afterwards, hoping to help you see the children's shoes in this article.
Deployment environment:
VMware 12
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
It is recommended that the virtual machine set more than 8 gigabytes of memory (I started to set up 4G installation and checked that there was only 100 megabytes of memory left after success)
Prepare for
Depending on your network, you can first set up the domestic sources of pip and apt-get.
First, clone project to local
Cd / git clone https://github.com/openstack-dev/devstack.git
Execute script to create stack user
/ devstack/tools/create-stack-user.sh
Modify devstack directory permissions so that stack users can run
Chown-R stack:stack / devstackchown-R stack:stack / opt/stack# may not have permission to access the directory chown-R stack:stack / opt/stack/.cache
Switch to stack user
Sudo su stack
Create local.conf
Vim / devstack/local.conf
Reference content:
[[local | localrc]] ADMIN_PASSWORD=passwordDATABASE_PASSWORD=passwordRABBIT_PASSWORD=passwordSERVICE_PASSWORD=password# defaults to https://git.openstack.org, which must be set if it cannot be accessed properly and replaced with GithubGIT_BASE= https://www.github.com#. Rely on checking before installation. By default, libraries with inconsistent versions are found to interrupt the script directly. PIP_UPGRADE=True executes installation script / devstack/stack.sh to handle interruption issues
If an exception causes an interrupt in the middle of script execution, it is usually pip dependency or git clone stuck inexplicably.
I have not encountered an exception that pip depends on after setting PIP_UPGRADE=True. Here, I would like to say that git clone is stuck. The reason is unknown, or it may be that my network is unstable. The way I handle it is as follows:
Interrupt the script. If Ctrl + C cannot interrupt, start another interrupt lookup process to kill it.
Ps-ef | grep stack
Manually execute git clone to the specified directory / opt/stack/. (I guess it would be possible to clone in advance before installation.)
As a reminder, if not explicitly specified in local.conf, at least the following services will be installed:
Https://github.com/openstack/nova.git
Https://github.com/openstack/keystone.git
Https://github.com/openstack/swift.git
Https://github.com/openstack/neutron.git
Https://github.com/openstack/glance.git
Https://github.com/openstack/cinder.git
Https://github.com/openstack/horizon.git
Https://github.com/openstack/tempest.git
Https://github.com/kanaka/noVNC.git-branch stable/v0.6
After dealing with the problem, you should need to execute the unstack.sh script before re-executing stack.sh. (I haven't tried what happens if I don't execute unstack.sh.)
/ devstack/unstack.sh
(if you want to reverse all operations and reinstall, execute clean.sh, and then press the final prompt that you may need to delete some directory files.)
In short, if all goes well, finally, you will see the following figure, indicating that the installation is complete.
These are all the contents of the article "how to deploy OpenStack on a stand-alone in devstack". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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: 256
*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.