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

View all comments

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

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).