Ask Your Question
0

OpenStack Installation Guide Doesn't Work for CentOS 7 Full?

asked 2020-05-27 16:37:28 -0500

MichaelCropper gravatar image

Guide: https://docs.openstack.org/devstack/latest/ (https://docs.openstack.org/devstack/l...)

I've tried following the above guide with multiple setups using CentOS 7 Minimal and also on CentOS 7 Full and the script for stack.sh just doesn't work.

Firstly, there are several core issues that I've noticed;

  1. Git is not installed by default on a fresh CentOS 7 OS - you need to install this via: sudo yum install git -y
  2. Nano is not installed out of the box (I'm pretending Vi doesn't exist...) so you can't create the local.conf file - you need to install this via: sudo yum install nano -y
  3. The local.conf file doesn't seem to be used when you run the command, ./stack.sh, as the credentials you enter in there you are asked again during the install to re-install them again which suggests to me they aren't used?
  4. The base repositories aren't included in a default CentOS 7 install which means the dependencies for the stack.sh file fail unless you install them as follows: sudo yum install redhat-lsb-core -y

And even after all that, the stack.sh script still fails on line 599.

I've come to the conclusion (and perhaps the guide should be updated) that OpenStack does not support CentOS 7.

I'm off to try Ubuntu Server 18.04 next... Not confident that this will be any different...

Is OpenStack really a piece of software that is ready to be used? I've not managed to get a successful setup with this after days of researching options, testing installations, following endless incomplete/inaccurate guides online (on OpenStack and elsewhere...). It's not a good start for me...

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted
1

answered 2020-05-27 20:04:17 -0500

Is OpenStack ready to be used? It powers Ebay, Paypal, Yahoo, Rakuten, CERN, .... So it can be used, but of course the answer to your question depends on the definition of "ready". A week ago, I set up a Devstack without a hitch (it's still running), using an old local.conf that I adapted to Ussuri, but perhaps "ready" means something else to you.

I think you suffer from a few misconceptions. First, Devstack is not OpenStack, just like Centos is not Linux or even GNU/Linux. Devstack is a large shell script for rapidly setting up a cloud without interaction, based on the code from OpenStack's git repo and countless Python libraries. The purpose of a Devstack cloud is to provide a testing environment for continuous integration of the OpenStack project.

There is no push-button automatic setup of OpenStack. No equivalent of "yum install openstack" and you're done. Devstack comes close, and so does Packstack. There are other OpenStack deployment tools that require a varying degree of preparation and manual intervention: Juju, Tripleo, OpenStack-Ansible, Kolla, ...

Centos doesn't have git and nano? How is that OpenStack's problem? If you pretend vi doesn't exist, simply pretend OpenStack doesn't exist, and your problem is solved. By the way, you need neither nano nor vi nor any text editor. Just echo your configuration into a local.conf file.

I have not used Devstack on Centos for a while but don't remember running into problems. You have to consider that Devstack is not a finished, packaged and shrink-wrapped product. Each Devstack deployment installs Python code from the OpenStack git repos, and from Python repositories via pip install. It therefore depends on code that is outside its control, and inconsistencies among the various pieces can cause a deployment to fail. For example, when some Python library gets broken accidentally. Such inconsistencies are usually fixed fairly quickly, e.g. in 24 hours. Also, cloning a stable branch of Devstack is more likely to lead to working cloud than the master branch.

If your stack.sh stops at line 599, why don't you share your local.conf and a detailed problem description? The community may be able to help. Or try Packstack, which could be described as a finished, packaged product.

edit flag offensive delete link more
0

answered 2020-05-29 02:22:42 -0500

j-harbott gravatar image

Centos 7 is indeed no longer supported, I'll make the docs mention Centos 8 instead. Regarding your local.conf file, make sure to include the header line "[[local|localrc]]" defining the proper config section in front of your password definitions. Omitting that would be the most likely cause for them to be ignored.

edit flag offensive delete link more

Comments

Thanks for confirmation, I'll give CentOS 8 a go and also add the additional line into the local.conf file too.

MichaelCropper gravatar imageMichaelCropper ( 2020-05-29 07:04:33 -0500 )edit
0

answered 2020-05-27 21:58:04 -0500

Stephen C gravatar image

As Bernd said, your problems are with DevStack, not OpenStack. And what he didn't mention is that DevStack is actually developed and managed by OpenDev ... which is not formally part of OpenStack anymore.

I suggest that you report your DevStack problems via the channels mentioned in

Indeed, I am sure they would welcome patches fixing them problems.

edit flag offensive delete link more

Comments

Thanks for pointing this out. Opendev is an umbrella project that grew out of and includes OpenStack.

Apply judgment when submitting bugs. Reporting something like "git and nano are not automatically included in Centos 7" would only waste your own and other people's time.

Bernd Bausch gravatar imageBernd Bausch ( 2020-05-27 22:35:08 -0500 )edit

You can also submit bugs to Devstack's documentation page. Just click on the cute bug symbol.

Even better, you can contribute to fixing those bugs.

Bernd Bausch gravatar imageBernd Bausch ( 2020-05-27 22:37:35 -0500 )edit
0

answered 2020-05-28 11:14:23 -0500

MichaelCropper gravatar image

updated 2020-05-29 17:12:15 -0500

Hi all, thanks for the comments/thoughts. Few follow on questions to clarify things so I understand.

"A week ago, I set up a Devstack without a hitch" - What operating system were you using? I'd like to see if I can replicate that.

"The purpose of a Devstack cloud is to provide a testing environment for continuous integration of the OpenStack project" - So DevStack isn't designed to act as an installer for OpenStack? It's more designed for managing updates to OpenStack itself?

"Also, cloning a stable branch of Devstack is more likely to lead to working cloud than the master branch." - I would have expected that the Master branch would have been stable, but ok. Looking here, https://opendev.org/openstack/devstack/src/branch/stable/ussuri (https://opendev.org/openstack/devstac...), it looks like the way the DevStack repo is split up is to have the different versions split out into separate branches. Seems a bit of an unusual way to work but I can give that a go with selecting the Stable/Ussuri branch and see if that works.

"If your stack.sh stops at line 599, why don't you share your local.conf and a detailed problem description?" - The local.conf file I created has 4 lines of code in;

ADMIN_PASSWORD=password DATABASE_PASSWORD=password RABBIT_PASSWORD=password SERVICE_PASSWORD=password

"Or try Packstack, which could be described as a finished, packaged product." - Thanks, I'll give that a go to see if I can make more progress using that.

"As Bernd said, your problems are with DevStack, not OpenStack. And what he didn't mention is that DevStack is actually developed and managed by OpenDev ... which is not formally part of OpenStack anymore." - So given that, let's say I theoretically wanted to do a full OpenStack install without using either DevStack or PackStack - How would I go about doing that? Can you point me in the direction of a guide/tutorial that explain this process. I've read through so many of the guides on the OpenStack website and they don't seem to go into enough hands on level of detail about what you need to do to get it set up. Lots of conceptual points discussed, but very few "run command X" then "run command Y" type information. Unless I've missed something blindingly obvious?

"Reporting something like "git and nano are not automatically included in Centos 7" would only waste your own and other people's time." - I'd disagree on that. If someone has spent the time to put a tutorial together which has dependencies, those dependencies should be mentioned in the tutorial. Likewise, the tutorial that exists on the OpenStack website mentioned in the original post - that document should be updated to be accurate as it currently doesn't work when you follow those instructions to the letter. It doesn't help newbies like myself.

"I suggest that you report your DevStack problems via the channels mentioned" - Thanks, I'll ... (more)

edit flag offensive delete link more

Comments

I used Ubuntu 18 without any configuration except for networking.

Devstack is an installer for OpenStack, but it was made for automatically installing test clouds on the OpenStack CI servers. There are other installers, some aiming to create a production-ready cloud, others for learning or PoC.

Bernd Bausch gravatar imageBernd Bausch ( 2020-05-28 19:25:43 -0500 )edit

A full OpenStack installation without Packstack or Devstack? You have the choice. If it's for learning, the installation guides on docs.openstack.org are recommended. A lot of manual work. Otherwise, look at the deployers on the same documentation page.

Bernd Bausch gravatar imageBernd Bausch ( 2020-05-28 19:28:33 -0500 )edit

Unfortunately, OpenStack documentation is often fairly unpolished. These days, it's mostly written by the developers, not technical writers. Don't expect perfect tutorials.

Packstack comes close to what you want, I guess.

Bernd Bausch gravatar imageBernd Bausch ( 2020-05-28 19:32:08 -0500 )edit

When you install Linux, you insert a DVD and answer a few questions. Ten minutes churning, tada, complete.

There is no such procedure for OpenStack. Nobody has packaged it to this point. To set up an OpenStack cloud, you need manual work, Linux and networking skills, and troubleshooting skills.

Bernd Bausch gravatar imageBernd Bausch ( 2020-05-28 19:34:48 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2020-05-27 16:37:28 -0500

Seen: 128 times

Last updated: May 29