r/openstack • • Aug 12 '19

Installing OpenStack on bare metal

So I have 10 identical machines and for testing purposes I want to setup an openstack cluster with them. I tried using ubuntu and maas following the guide. But I don't have a way to remotely power the servers on and off for Maas and Juju to work and it just hangs with Juju trying to bootstrap the controller.

What is the easiest way to get this setup quickly for bare metal? Can I install the os's manually and use an ansible playbook. Most of the solutions I see require being able to power on and off the nodes remotely.

Thanks in advance

12 Upvotes

13 comments sorted by

3

u/virtdevninja Aug 12 '19

I would setup digitalrebar to manage the physical nodes. Once those have an actual OS on them Ive personally found that the OSA project is really easy to use to get a cluster up and running, especially if you have experience with Ansible.

1

u/KingFlizzy Aug 12 '19

We have Foreman setup so I can use that to handle the os install. So I assume I just get all the machines setup and then run ansible. Do you know which services the playbooks install by default

3

u/virtdevninja Aug 12 '19

There is a lot of reading to do to get your inventory file all setup correctly, but once you have that, setting up the services is pretty simple. I dont recall what all it installs by default, thankfully I havent had to touch BrokenStack in like 8 months. FYI there is no painless way to get to an operational cluster. Paying someone hurts your wallet and doing it yourself hurts you.. :D

1

u/KingFlizzy Aug 12 '19

Ok thanks for the heads up, going to give it try.

1

u/sygibson Aug 12 '19 edited Aug 12 '19

Digital Rebar Provision (DRP) mentioned above has integration with Ansible that helps generate inventory form the DRP managed machines that are built, and allow you to call playbooks. There is also an integration for Tower, if you go that route as well.

If you hav ansible playbooks for deploying OpenStack the way you want - the DRP route makes that an extremely easy path to walk.

You can check out a demo video of the ansible integration at: https://youtu.be/Z0-h2ew3Wds

DRP is also a modern provisioning platform designed to be 100% api capable, has integrated DHCP, TFTP, HTTP, and API services with events on websockets. It's meant to be a complete system for provisioning and integration with your existing infrastructure services as a primary design goal; as opposed to a poor afterthought.

Power (and indeed - complete hardware lifecycle management - BIOS settings, Firmware versions, RAID, etc) controls are fully baked in to DRP. You can install the "ipmi" plugin that enables the power controls. BUT - DRP also does NOT require external power control for operational and ongoing workflow use. Obviously - if the machine is powered off, then it does require Baseboard Management Controller access via IPMI, Redfish, or vendor specific tools (all part of the poorly named "ipmi" plugin).

1

u/KingFlizzy Aug 12 '19

I'm going to check out the video, but whats the learning curve on getting DRP setup. Maas is relatively easy and Foreman super complicated but it works well once its setup. Asking because I don't have a lot of time learn a new system, but also these machines don't have any type of bmc on them I have to manually control the power.

1

u/sygibson Aug 13 '19 edited Aug 13 '19

/u/KingFlizzy - I didn't directly answer your question on the power control. Every other solution requires you to have BMC access for out-of-band power controls. Digital Rebar Provision is different; in that it allows you to manage post power-on control in-band with Workflow actions. This means you can cycle a machine through various reboots without use of IPMI/Redfish/Vendor tools for power control.

It can't help you with the initial power on process - that requires "something" to control it ... either a "push the button", a smart PDU with power controls, or a Baseboard Management Control (BMC) to implement out-of-band capabilities.

1

u/KingFlizzy Aug 13 '19

So to move this along I went ahead and installed the Os with Foreman and I'm going to try and deploy with Ansible. I do want to check this out though as Foreman doesn't offer much for support. Can it do Windows as well?

1

u/sygibson Aug 13 '19

Yes. In addition to doing installations via standard kickstart and preseed via package mirrors (a pretty bad pattern, unless you have complete and tight control over your own package mirrors and versions) ... you can also do installs via Images. Images can be built any number of ways, including hashicorp Packer, manually, or other methods...

The image deploy plugin supports deployment of Windows images - along with proper partitions/filesystem resizing, and post-deploy bootstrap configuration changes.

Additionally, the Workflow agent (optionally) runs in Windows as a single statically linked/self contained binary, and allows you to (if desired) perform ongoing composable Workflow actions of Windows. (this path is true for Linux and Mac OS X as well).

1

u/sygibson Aug 12 '19 edited Aug 12 '19

disclaimer: I work for RackN (which maintains a commercial version and support for DRP) - so I am heavily biased ... BUT, I have worked extensively with all of the other open source implementations (so much so; at a previous job I chose to build a complete provisioning system from scratch because the open source ones didn't cut it ... then I saw the light, and joined RackN ... :) )

DRP was designed to be very fast to get started. Point your web browser to our Portal:

https://portal.rackn.io/

There is a set of "quickstart" documentation to get you ... quickly ... started ... embedded in the front page of the portal.

[[EDIT: documentation for the moment: https://provision.readthedocs.io/en/latest/doc/quickstart.html ]]

The usual caveats about provisioning systems, Layer 2 boundaries, multiple DHCP servers, etc... exists with DRP. But it's designed to be super fast to get up and running quickly with basic OS provisioning. If you have DHCP, TFTP, and PXE off of DRP - no other competing DHCP servers, the process is easy. If you need to boot/deploy systems on remote Layer 3 subnets, you still need to address getting DHCP packets from those networks to DRP to service. See "ip helper" or "dhcp relay" options in your switches - or worst case multi-home DRP with NIC/interfaces/L3 networks in to each network leg.

You can go extremely deep if you devote more time to learning the platform and workflow. For example - we have extremely capable hardened production grade Kubernetes deployment capabilities via the "KRIB" content which is Community maintained.

If you get stuck - head over to the Slack #community channel for help.

2

u/KingFlizzy Aug 18 '19

So I still want to check out Digitalrebar but since this is just for a demo in the end I used Foreman to pxe boot the servers. Used ansible to set the host names, ip's, and to disable security. Setup ssh access with no password on the hosts and used packstack to deploy Openshift. I just used a flat network for this first install. One infrastructure, one network, one storage and 7 compute nodes. Doing the internal networks now but all is working so far.

3

u/azephrahel Aug 13 '19

If you're new to pxebooting, maybe just install the Ubuntu server with sshd and nothing else one by one, then setup ssh keys and go though it the simple manual way. I love automation, but for a first pass, when you're not already comfortable with an automation system like chef or salt, just go simple. I would avoid devstack myself, and just do the minimal install of Stein, local storage, neutron, no Swift or s3 or even cinder. This is just to get you going, and you can easily add things later as you get more comfortable. https://docs.openstack.org/install-guide/

All the head stuff can exist on one node without breaking a sweat, leaving you with nine nodes for compute. With a setup like this (no cinder no shared storage) you should be able to do everything but live migration.

Also make sure you have an irc client, because the openstack channel on freenode is super helpful.

2

u/sekh60 Aug 13 '19

Openstack Kolla-ansible is very easy to deploy once you have an OS installed on baremetal. It uses ansible to deploy dockerized openstack components. Very easy to deploy and maintain.