r/openstack • • Apr 24 '21

A Guide to Making Microstack Work More Better

I've been playing with Microstack to quickly spin up Openstack and get it ready for a small production environment. I've created a guide to fixing the issues i've been running as I go through the install process available here: https://mtbales.com/2021/04/23/getting-multi-node-microstack-instance-migration-to-work/

17 Upvotes

17 comments sorted by

3

u/Bateman421 Apr 25 '21

Oh man... I had been struggling with making cinder work with it, you are a life savior!!!, so much so I was struggling that even went for a full Openstack install that somehow still didn't work because it refused to make new networks... thanks!!!!

2

u/[deleted] Apr 25 '21

Glad it was useful for you. Let me know if you run into any other issues and I'll see if I can work them out and update the guide.

1

u/aspiringgreybeard Apr 26 '21

Thanks for sharing this. I had figured out the "enable cinder" piece, but the (AFAIK still in play) limitation on choices for network subnets forced me to dig into kolla to set up our little five node cluster.

I definitely plan to keep an eye on Microstack. It would be much easier for me than 15 minutes of scripted docker container installs.

1

u/[deleted] Apr 26 '21

I haven't run into that yet, what are the limitations on network subnets?

1

u/aspiringgreybeard Apr 26 '21

AFAIK you don't get to pick the external subnet nor the IP address that Horizon runs on. And, unfortunately, that address space overlaps our physical network. We don't have the latitude to make the changes we'd need to make for their values to work. We're "specify these values at init time" away from being able to make a serious run at using microstack for hosting our VMs. The number of containers kolla starts by default is staggering. I don't necessarily need a Galera cluster. I'd be happy snapshotting SQLite at regular intervals.

1

u/[deleted] Apr 26 '21 edited Apr 26 '21

I'm still new to openstack so let me know if i'm wrong here, but isnt horizon the web UI? not sure how that impacts the VMs / networking.

After a bit of poking around I'm able to create new networks / subnets and assign them to instances on launch. Not sure if that's what you're trying to accomplish

1

u/aspiringgreybeard Apr 27 '21

No worries. I'm new to openstack myself and I didn't do a very good job of outlining the problem. As I understand it, the microstack initialization sets up two networks-- a private one (192.168.122.0/24) and a public one (10.20.20.0/24). The IP ranges are hard coded, and since their choice for the external bridge is a subset of our LAN address space, machines on that network aren't reachable without some tunneling and routing. When I did a quick search to see if things have changed, I ran across this really nice blog post which outlines a workaround:

https://connection.rnascimento.com/2021/03/08/openstack-single-node-microstack/

I'm not well versed enough in neutron and ovs (yet-- i'm learning!) to have been able to come up with this on my own, and I'm not sure what issues might pop up down the road. Fine for testing/playing, but I'm looking for a solution to run the VMs for a small business where I'm the sysadmin. I know a few bug reports have been filed, and I'm sure a few months from now I'll either be able to set the addresses during microstack initialization or I'll know enough to build out the access I need after the fact. But for right now I feel safer running something like kolla where support for this is documented.

I don't love that, because there is SO much about microstack that looks attractive. Even kolla has a lot of moving parts in comparison-- they're just a bit further along and more well documented at present.

1

u/[deleted] Apr 27 '21

Interesting, I'll give this a go tomorrow, thanks for the info / link

1

u/Bateman421 May 26 '21

ah, been a while and couldn't work on my microstack, but finally can come back to this, so when I initialized cinder as per the commands you putted on your blog, I still couldn't create volumes, when I try to do so, the scheduler throws me this error.

"Failed to run task cinder.scheduler.flows.create_volume.ScheduleCreateVolumeTask;volume:create: No valid backend was found. No weighed backends available: cinder.exception.NoValidBackend: No valid backend was found. No weighed backends available"

1

u/[deleted] May 26 '21

I'll take a look at this. Do you know what snap version you're running?

1

u/Bateman421 May 27 '21

That would be snap 2.50 on ubuntu 20.04

1

u/[deleted] May 28 '21

ah, so i left out the rest of the owl in my instructions. I pulled from this page: https://docs.openstack.org/cinder/stein/install/cinder-storage-install-obs.html I've since lost my previous config but i'll spin it up again and update the page

1

u/[deleted] Jun 11 '21

ok updated my instructions to include the stuff i left out

1

u/alschappell389 Dec 15 '21

Has anyone got microstack to work with changing the internal IP to your own? I have set ip successfuly in the past but with vxlan. Cant get it to work at all :(

1

u/[deleted] Dec 15 '21

I gave up on microstack and moved to opennebula. Similar ease of setup but without having to fight with it to make it do exactly what you want.

2

u/[deleted] Mar 27 '22

Hey everyone!
I am trying to setup multinode microstack cluster with 1 controller, 2 computes. All 3 nodes are KVMs and nested virtualization is enabled.

Need to set things up to test live-migration but have failed to make volumes work. Cinder is up but it is not able to create volumes.
I am using snap verison 245 of microstack.

Currently, I am stuck at this. Any pointers will be helpful.

Mar 27 21:29:40 controller microstack.cinder-volume[11294]: 2022-03-27 21:29:40.194 11294 ERROR oslo_messaging.rpc.server Command: qemu-img convert -O raw -t none -f qcow2 /var/snap/microstack/common/lib/conversion/tmpmkx5ltc0controller@lvm-loop-based-backend /dev/mapper/cinder--volumes-volume--ab066631--8b9f--4787--831d--d65d61101d58

Mar 27 21:29:40 controller microstack.cinder-volume[11294]: 2022-03-27 21:29:40.194 11294 ERROR oslo_messaging.rpc.server Exit code: 1

Mar 27 21:29:40 controller microstack.cinder-volume[11294]: 2022-03-27 21:29:40.194 11294 ERROR oslo_messaging.rpc.server Stdout: ''

Mar 27 21:29:40 controller microstack.cinder-volume[11294]: 2022-03-27 21:29:40.194 11294 ERROR oslo_messaging.rpc.server Stderr: "qemu-img: Could not open '/dev/mapper/cinder--volumes-volume--ab066631--8b9f--4787--831d--d65d61101d58': Failed to lock byte 100\n"

1

u/Corbe30 Jul 09 '22

Hello, sorry I do not have a solution to your problem. I was unable to setup multi-node microstack on two VMs (KVMs) on VMware my laptop. The compute and control nodes just won't connect. Did you take any extra steps besides the microstack documentation to get it work? Was I supposed to somehow configure a connection between the VMs? I'm sorry I'm new to all this, and all my attempts have failed so far :(