r/openstack • • Jul 09 '18

OpenStack High Availability Guidance...

So the official HA guide for OpenStack kinda sucks. I get that HA gets complicated and that installations are varied, so it's a tough subject. That being said, I'm trying to build a resilient OpenStack environment with redundant compute nodes and I seem to be lacking decent resources. Anyone know of a good guide? My Google-Fu seems to be failing.

What I'm struggling with is that some services are stateless, so active-active are fine. Others have to be active-passive, but there's little information on how to go about this...

For example: Glance-registry is apparently something that needs to be active/passive. If I add a bunch of images, these files get place onto my controller system in the /usr/lib/glance/images directory. But if I want redundancy, these files need to exist on all my controller nodes right? Do I just have to rsync these directories? What happens if I have two controllers both running the glance-registry service at once?

The HA guide walks you through installing and using Corosync and Pacemaker, but some of the commands aren't working and others are for Redhat systems and not Ubuntu systems. I need a decent guide to understanding Pacemaker so that I can troubleshoot these issues... Anyone got something like that?

Cinder: I followed the installation guide to build a single cinder server, but how do I go about building a second to mirror the first? (The HA guide failed me here as well for the reasons listed above...)

I feel like I'm down a rabbit hole here and there really should be SOMETHING out there discussing how to get at least reasonable redundancy out of an OpenStack build...

Thanks for any help you can provide. Also, is there a better place to ask these sort of questions? This doesn't seem to be a wildly popular subreddit...

9 Upvotes

13 comments sorted by

3

u/[deleted] Jul 10 '18

Why would you store images in local files in a resilient configuration? Use swift to back glance. For cinder, use a backend that supports clustered storage.

2

u/[deleted] Jul 10 '18

The install guide just tells you to use LVM for cinder. Was this a bad move? Recommendations?

4

u/JohnAV1989 Jul 10 '18

LVM should really only be used for testing. You should look at Ceph ideally or NFS. There are also cinder plugins for a number of commercial SANs.

1

u/[deleted] Jul 10 '18

Ceph it is... I'll start looking into it.

1

u/[deleted] Jul 10 '18

Because I followed the install guide... Swift to backend glance...I'll check it out.

3

u/kultsinuppeli Jul 10 '18

There's always

https://ask.openstack.org/

I haven't used it much, but at least there's a ton of questions on it.

Basically the rule of thumb is, anything that stores data you have to figure out how to make redundant. So Glance data storage, cinder data storage, the database, swift (built in redundant design).

Modern HA data storage is not trivial. Your best bet is Ceph, it's the de-facto standard storage backend for OpenStack, but it needs some scale. Ceph can also provide SWIFT/S3 interfaces. Another option is e.g. glusterfs. You can always buy a storage appliance that provides what you need (NetAPP NFS?).

Glance: Configure Ceph or Swift as a backend

Cinder: Configure Ceph as a backend or configure another thing that provides redundant storage as a backend.

Database: Use MariaDB Galera, and you have replicated your DB. It's not too hard to set up.

Now your control plane is basically stateless. Your state lies in the DB, and on SWIFT/Ceph/whatever volume driver you use. All openstack services themselves are basically stateless.

Then you just have to decide on how to route traffic only to active nodes. For any control plane nodes pacemaker + shared service IP works ok. However, if you have some control over the network, BGP+round robin DNS would probably be better.

For the galera DB nodes we use a HAProxy on each node that talks to the database. The services talk to localhost. The local HAProxy has health checking on the database and routes the queries to a DB server that is up.

Finally you have the ingress/egress traffic and routers. You have some options here like HA Routes or DVR or using a SDN which supports redundancy out of the box.

1

u/[deleted] Jul 10 '18

Okay, so it seems that Ceph would be my best bet direction since it can be the backend for both Glance and Cinder... I'll start digging there. Thanks also for the link. I suppose I could/should be asking these questions there...

The DB is already Galera. That part of the HA document mostly worked... (Although that section was also incomplete...Grrr.)

I'm probably less worried about the routing external to the environment. While I want redundancies and high availability for the OpenStack components, this is still basically a lab installation and nothing seriously mission critical. Outside the environment is much less of a concern to me.

0

u/[deleted] Jul 09 '18

[deleted]

5

u/[deleted] Jul 10 '18

Bah...I did mean redundant controller nodes, not compute.

1

u/axtran Jul 10 '18

You tell that to VMware! ;)

1

u/Telnet_to_the_Mind Jul 10 '18

But isn't that the point of Openstack Ironic? To install on bare hardware?

4

u/[deleted] Jul 10 '18

[removed] — view removed comment

1

u/[deleted] Jul 10 '18

Well the goal was to learn something. The tripleO guide looked sparse, so I figured I'd use the install guide and just do it manually. Didn't realize the HA guide was so incomplete until I got to this point...

24 computes, 2 cinder storage, 3 controllers. Everything works but the redundancy pieces.

Don't really want to start over and I'm hoping to find help...

1

u/corgtastic Jul 10 '18

You should really just use TripleO / Red Hat. The official docs are garbage and misleading, as far as installing goes. They generally describe everything that can be done, not what should be done.

It’s also going to get you to a working setup so much faster than keeping down this path. And the install docs are much better. You’ll still learn, but you’ll learn the right way to do things.