r/openstack • u/KingFlizzy • 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
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.
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.