DEV Community

G.L Solaria
G.L Solaria

Posted on

2

Installing OpenStack on Unbuntu 18.04 LTS and ...

I just kept conjuring up more failed OpenStack installs! Following on from my very frustrating experience documented here I, for some unknown reason, continued but by this stage I was feeling cursed.

$ juju list-machines
Enter fullscreen mode Exit fullscreen mode

I picked one of the juju machines and ran

$ juju ssh 3
$ sudo less /var/log/juju/machine-3.log
Enter fullscreen mode Exit fullscreen mode

Which told me

2019-09-15 04:55:50 WARNING juju.cmd.jujud machine.go:826 determining kvm support: INFO: /dev/kvm does not exist

HINT: sudo modprobe kvm_intel

modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/5.0.0-27-generic/modules.dep.bin'

modprobe: FATAL: Module msr not found in directory /lib/modules/5.0.0-27-generic : exit status 1

no kvm containers possible

And so there is indeed nothing in /lib/modules

$ ls /lib/modules/*/modules.dep.bin
ls: cannot access '/lib/modules/*/modules.dep.bin': No such file or directory
Enter fullscreen mode Exit fullscreen mode

I try and re-install the kernel and everything is fine:

$ sudo apt-get install --reinstall linux-image-5.0.0-27
$ sudo modprobe kvm_intel
$ echo $?
0
Enter fullscreen mode Exit fullscreen mode

Well I soldiered on for a bit longer but various containers were not coming online and I couldn't figure out why. Also there were the obscure error messages like "subordinate application must be installed without constraints" being conjured up. I couldn't even figure out how to set the default number of cores and memory for various virtual machines in a reasonable amount of time.

In a last ditch attempt I removed all the voodoo and followed these instructions: https://www.journaldev.com/30037/install-openstack-ubuntu-devstack.

Mission Impossible: OpenStack Install

Now it wasn't all without issue. It installed more than I wanted. It took over 1 hour to install. There was a directory created with the wrong permissions and a directory with missing files that it choked on. But because it output all of the commands it was executing, it was easy to fix up the errors.

I think I will vomit if I ever have to deal with conjure-up again. It's all sunshine and light when the spells are properly maintained but a nightmare when things start to go wrong.

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

AWS GenAI LIVE!

GenAI LIVE! is a dynamic live-streamed show exploring how AWS and our partners are helping organizations unlock real value with generative AI.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️