r/openstack • • Feb 20 '23

Building a self-service web app with OpenStack APIs

Hi!

I‘m currently evaluating possible solutions for a user friendly self-service panel as an addition to horizon.

Which option do you think would be the best in regards of time-to-market/customizability ratio?

  1. Develop a web app from scratch (using OpenStack APIs)

  2. Using Virtuozzo

  3. Develop a web app using no-code options like bubble.io, illa etc. (using OpenStack APIs)

  4. Customize/Develop Horizon to fit the needs

Or maybe it would be easier to build something based on the APIs of ManageIQ?

7 Upvotes

10 comments sorted by

5

u/qev Feb 20 '23

At my workplace we opted to customize Horizon, while there are quirks I don’t have to babysit it much. I worry if you deployed something super custom you’d be constantly finding something that doesn’t work quite right for your customers. Just my 2c

But! If I had unlimited time as a side project I’d love to get a web app working using https://github.com/gophercloud/gophercloud under the hood to interact with APIs.

2

u/[deleted] Feb 20 '23

If you're doing this and want it done quickly, I'd probably look into having a small webapp that that generated TF code - otherwise the chances of getting into a pickle managing state is high

1

u/racroles Feb 21 '23

Why?

What OpenStack resources do you need to handle with this thing? Is it just Nova Neutron Cinder Glance, or many more?

How much resources do you have? Time, money, manpower

We have a custom horizon. Horizon is an old project with many quirks, but works well and is the first class citizen. Instead of forking yet another dashboard, you can also contribute to horizon, it benefits everyone.

1

u/todd_openmetal Feb 21 '23

Are you looking to give access to OpenStack resources to people inside of a company or are you planning on selling to the market and then would need billing functionality as well?

OpenStack is awesome, but has a lot inside so any self-service panel can really grow into a monster if you are not careful.

1

u/DragomirAlin Feb 21 '23

1

u/russianguy Feb 21 '23

Looks cool, but also proprietary.

1

u/russianguy Feb 21 '23 edited Feb 21 '23

I helped develop something like that for one of our customers.

Small front-end + python API to generate and commit Terraform definitions into user git repos, then execute terraform using Gitlab CI. TF state can be held in Object storage (Ceph RGW in our case).

It..works I guess, but as with everything there are upsides and downsides.

The upside is that users ended up actually liking it because it's extremely simple to use, and on the flip side operators get nice, parseable, auditable git repos/tfstates.

The downside is complexity.

You end up having two "sources of truth" (TF and Openstack), not to mention that you add a lot of moving parts:

  • Your custom front-end and backend

  • Terraform and its' state

  • Gitlab CI (or any execution environment)

  • Git itself, that can be finicky to work with though automation

All that for what? Not giving people direct access to Horizon and Openstack APIs because you consider them stupid (that was, more or less, customer's original motivation for building out such system).

Unless you're building a public cloud or a VPS provider, it makes more sense to teach people how to use APIs or Terraform by themselves (or, you know, point them to ChatGPT).

1

u/todd_openmetal Feb 21 '23

Unless you're building a public cloud or a VPS provider, it makes more sense to teach people how to use APIs or Terraform by themselves (or, you know, point them to ChatGPT).

Second that!