r/openstack • u/Urge4vert • Nov 05 '16
MAAS + Juju = Openstack
Haven't seen very many posts on here talking about MAAS and Juju. Given that I work with them every day deploying Openstack I have quite a bit of experience that I'd happily share.
First and nearly the easiest is https://www.ubuntu.com/download/cloud Autopilot uses MAAS and Juju to get you a cloud up and running fast
Another way is to install MAAS first, then Juju There's a very easy starter for MAAS at http://maas.io/get-started
Then there's a juju quickstart https://maas.ubuntu.com/docs/juju-quick-start.html
And lastly, the actual OpenStack docs for deploying it. Yes, maybe a little daunting https://help.ubuntu.com/lts/clouddocs/en/Installing-OpenStack.html
None of these are for Linux beginners honestly. I'd recommend them only if your looking to learn more about OpenStack. Or possibly if your looking to replace what-ever your current bare metal management is.
Feel free to ask questions, etc. I'm not here to compare this to other solutions so if you think ansible, puppet, razor or what-ever is better that's fine. This is what I use and I'm just offering to share knowledge and help others out.
6
u/mojo_ridin Nov 05 '16
I have two trains of thought on automated openstack installs. Fuel is the easiest to get a free standing openstack setup. We tried Maas and juju as well but fuel blew it out of the water. Specifically the plugin system is extremely powerful and the official plugins are very good and some are vendor maintained. A single fuel master node does everything.
Openstack ansible is the most powerful, but isn't as automatic as fuel or juju and requires alot of knowledge in terms of openstack and networking to setup the user configs and inventory. It does none of the host deployment parts. The role inclusion system is by far the most extensible and allows you to setup your cloud however you want and containerizes all your control plane making troubleshooting and upgrades easy. Rackspace maintains most of their deployments through openstack ansible.
1
u/malice8691 Nov 06 '16
Can this work on a single node? I would like to build an openstack server at home and turn my physical windows box into a vm on openstack with gpu passthrough for gaming. then i can run my gaming rig with a couple of linux boxes to play around with. Is this even possible? Every time I look at an openstack distribution it is either extremely complicated or requires 5 nodes like cannonical's version. I am a systems engineer and I work on AWS but I would like to learn openstack.
1
u/mojo_ridin Nov 06 '16
Easiest way to get started would be to use vagrant to launch a trusty64 vm on ur windows box with 100 gigs HD, at least 8 gigs ram and 2 vcpus.
Then deploy openstack using the openstack ansible all in one method http://docs.openstack.org/developer/openstack-ansible/developer-docs/quickstart-aio.html
You are not going to get any kind of gaming out of this. You would either need to use the vnc console or rdp to access your instance and gaming over networking just isn't there yet. Openstack/aws is meant for distributed workloads, and games only run only single computers.
If you want a more advanced example, the Fuel VirtualBox script gets a cloud running with 3 or 5 vms with one command, but is alot heavier but is a more complete openstack installation with high availability on the control place with haproxy and 1 compute host. If your computer can handle it, you can clone one of the slaves and scan in more than 4 hosts. https://github.com/openstack/fuel-virtualbox
If you're lucky and have access to a dedicated server with kvm, fuel dev ops is the best testing environment since you can add/destroy nodes at will without slowing down your local computer. I've ran a 20 node dev environment like this and kvm running snapshots have saved me a shit load of time when testing. I've rolled back the 20 node environment to its original state and it takes about 2 minutes.
1
u/Occi- Nov 06 '16
I run a kvm + qemu win10 guest with passthrough on a debian host. Also have work experience with openstack.
Short answer; you're not going to be able to use openstack for this. There's so many small details that will be much more difficult in openstack than a regular kvm/qemu/libvirt install.
It's just not the right tool for the job.
1
u/malice8691 Nov 07 '16
I used to run esxi. vsphere at home. its a full type 1 hypervisor. This was fine. the only problem is there is no api. everything was manual. I want to be able to spin up compute instances from templates. Openstack was the only thing I found that would do something like that.
1
u/Occi- Nov 07 '16
Did you use GPU passthrough in your previous setup aswell? I've read about a few people who've done it, but seems finicky.
You can do some basic templating with kvm/qemu/libvirt by cloning and using the cli tool
virsh. Not as automated as openstack, but if it's enough for your needs it's a simpler solution anyway.Either way. playing around with and installing openstack to learn more about it is a good idea, but if GPU passthrough is your goal, I'd look elsewhere. You could probably spawn an instance using the default API and maybe even alter the VM directly with libvirt, but at that point you're quickly diverging from the openstack way of doing things.
1
u/malice8691 Nov 07 '16
no I have never used a gpu passthough. I only used it for testing and non gpu intensive stuff. It was in a separate box from my main gaming rig. Now I would like to combine my gaming rig and dev rig in one.
1
u/Occi- Nov 07 '16
All right. In that case I'd go for something like this:
Normal desktop OS, e.g. Linux distro of choice, with KVM/QEMU (libvirt)
Gaming guest VM, with GPU passthrough
DevStack guest VM
You don't really want to mix OpenStack (or DevStack) with other installations, so running it in a seperate VM or whatever else you want to run on top of it as VMs.
0
Nov 06 '16
[deleted]
1
u/corgtastic Nov 06 '16
The Fuel Mitaka release has hot-plugable plugins that allow you to apply configs post install. I was able to deploy my test stack with Mitaka and then install the LDAP plugin later and configure that. It works pretty well.
1
u/JohnAV1989 Nov 06 '16
Yup Fuel 9 is the first version that I'd recommend. Network templates and post deployment changes/additions make it a very powerful tool.
0
u/desseb Nov 06 '16
MaaS and Juju are horrible, just say no. After deploying two prod clusters and several labs with it, we ripped it out and wrote our own ansible playbooks.
2
u/vmcolonel Nov 06 '16
We're in the same boat, how did you go about ripping out Juju? We're hoping we can move to Ansible.
2
u/desseb Nov 06 '16
By starting fresh without it. Ripping it out of existing is difficult, we need to figure out how to handle it because the two clusters are not stable at all.
1
u/Ic3mat Nov 06 '16
Any specific issues that you're hitting that you could share?
2
u/desseb Nov 06 '16
Keep in mind I'm more on the operations side of this rather than design/deployment.
MaaS can't seem to pick a physical server to do something, it's random
The Canonical model of an openstack deployment doesn't work (no separate management nodes, all mixed in with compute on 2 nodes only).
Neutron gateway in an lxc container doesn't work, we had to go back to a kvm vm
There's some kind of weird instability in our cluster that we haven't nailed down yet
because of the above arrangement any ceph problem takes down the entire cluster
canonical support sucks
juju charms have many short comings (kilo version), we can only tweak so much before losing the ability to upgrade
we've already had to upgrade maas 4 times in the last year to fix various issues
I'm sure there are many more, but you'd have to speak to my "engineering" team.
1
1
u/spoui Nov 07 '16
Kilo?
Jesus, get out of the stone age. That might help.
1
u/desseb Nov 07 '16
It very well might, but my "engineers" spent two years "perfecting" this version. At least the next two are on liberty but that's still way behind the curve as far as I'm concerned.
1
u/spoui Nov 07 '16
Got about 40 engineers working on OpenStack where I am. We needed a branded distro for some customers. MAAS/Juju works, it's hard to get it working but it does. Dump AutoPilot, use conjure and if you paid for support from Canonical, ask them to get their asses in a plane and go to your office for a MAAS/Juju ramp up. Best 48 hours we've had and since then we're autonomous and haven't looked back. Mirantis was the close second but when it comes to support fees they are just way too expensive (like Red Hat, IMO which is the worst OpenStack distro on the market today, a complete fucking mess).
0
Nov 06 '16
[deleted]
1
u/Urge4vert Nov 06 '16
There isn't a plug in system per say, instead it uses 'charms', and yes. You can easily add block storage after you've deployed.
MAAS supports most of the major 'lights out', BMC, iLo, Drac, IPMI. Also some APC power strips. The drivers are all documented so its possible to write your own as well
3
u/ahandle Nov 06 '16 edited Nov 06 '16
The ability to deploy multiple baremetal instances with canonical support available is pretty cool.
Honestly, it's better to know the underpinnings. Wrapping a few images for automated deployment in a pre-defined configuration is not that difficult.
The MAAS documentation is laughable.