OpenStackManager

OpenStackManager

A native desktop client for OpenStack clouds, written in C with Allegro 5 and nilorea-library. It talks to the OpenStack REST APIs directly: no Python and no openstack command is needed.

Features

Build

You need gcc, the Allegro 5 development packages (with the font, ttf, primitives, image and color addons), OpenSSL, zlib, pcre2 and libX11. The file chooser is nilorea’s own (n_gui_filechooser): OSM needs no GTK, and the AppImage takes nothing from the host but glibc, libGL and libX11. nilorea-library must be checked out at ../../nilorea-library.

make            # builds ./osm
make test       # unit tests (local mock server, no network)
make SAN=asan test
make windows        # cross build osm.exe (needs the sysroot in external/mingw)
make windows-stage  # dist/windows/OpenStackManager: exe, DLLs, resources, CA bundle

Sanitizer builds (SAN=asan, SAN=tsan, after a make clean) carry built-in suppressions for the GPU driver (Mesa) and the desktop libraries (GLib, GIO, pango, fontconfig, D-Bus), whose own threads and exit-time allocations would flood every GUI run; see src/osm_sanitizer.c. A report with a frame in one of them is hidden, even when our code is in the other stack.

The Windows sysroot has the same layout as Hook’s (external/mingw/{sysroot, allegro,allegro_deps}); a symlink to Hook’s copy works. On Windows, TLS verification uses ca-bundle.pem next to osm.exe (staged automatically), SSL_CERT_FILE, or the CA file of the profile.

Write operations are tested against tests/fakecloud.py, a local fake cloud (Keystone, Nova, Neutron, Cinder, Glance in memory). make test starts it automatically for test_06_fakecloud. To try the GUI against it:

python3 tests/fakecloud.py --port 8899 &
env -i DISPLAY=$DISPLAY OS_AUTH_URL=http://127.0.0.1:8899/identity/v3 \
    OS_USERNAME=demo OS_PASSWORD=secret OS_PROJECT_NAME=demo ./osm --env

Optional read-only smoke test against a real cloud, using the OS_* variables of a sourced openrc:

OSM_LIVE=1 ./tests/test_90_live

Documentation

The user guide is in docs/user: getting started, connecting, resources, dedicated windows, charts, consoles, layout and settings, files and troubleshooting. make docs turns it into HTML in pandoc/ (needs pandoc); the packages carry that copy.

presentation/ holds a bilingual slide deck (open presentation/index.html; presentation/README.md says how its captures and PDFs are made).

Packages

make deb                # dist/openstackmanager_<version>_amd64.deb (/opt/openstackmanager)
make appimage           # dist/OpenStackManager-<version>-x86_64.AppImage
make installer-windows  # dist/openstackmanager-<version>-setup.exe (NSIS, signed)
make docker-build       # the release .deb and AppImage, built in Debian 13

make docker-build (packaging/docker-build.sh, needs docker) is the release path: it builds in a Debian 13 “trixie” container, so the packages run on Debian 13+, Ubuntu 25.04+ and other systems with glibc 2.41 or newer, and names them openstackmanager_<version>-trixie_amd64.deb and OpenStackManager-<version>-trixie-x86_64.AppImage. The local make deb / make appimage builds are for testing. The version is version.txt; only make bump-version changes it, no build does. The AppImage tool is downloaded once into packaging/ (or set APPIMAGETOOL).

Windows: the signature

The Windows executables, DLLs, the uninstaller and the setup are signed with the self-signed certificate every Nilorea Studio project shares (publisher “NiloreaStudio”). Its SHA-256 fingerprint is

b9976986aebbfa925b019ee453d9834549b03581fd6ffa28c68f88e6df4a6acd

and NiloreaStudio.cer, installed beside osm.exe, is that certificate: installing it in the trusted publishers of a machine makes Windows trust the signature. The key stays outside the tree (~/.config/nilorea/signing); a build never creates one. WIN_SIGN=1 fails without it (release builds), auto (default) signs when it is there, 0 signs nothing.

Publishing on www.nilorea.net

publish.toml says what the site gets: the three packages, the user guide (pandoc/), the slides with their PDFs, the screenshots and the release notes (packaging/whats-new-<version>.md). The NiloreaVPS repository’s tools/build-apps openstackmanager runs the release builds and tools/publish openstackmanager collects them.

Run

./osm                         # opens the connection dialog
./osm --env                   # connect with the sourced openrc
OS_CLOUD=mycloud ./osm --env  # connect with a cloud of clouds.yaml
./osm --env --open compute.server
./osm -v 3                    # debug logging

Profiles and settings are stored in ~/.config/openstackmanager, history in ~/.local/share/openstackmanager (on Windows, %APPDATA%\OpenStackManager). Set OSM_HOME to keep everything in one directory.

A proxy is taken from https_proxy / HTTPS_PROXY (for https endpoints) and http_proxy / HTTP_PROXY (for http ones), as http://[user:pass@]host:port. HTTPS goes through a CONNECT tunnel and the certificate of the cloud is still verified end to end. no_proxy / NO_PROXY lists the hosts reached directly (names, .domain suffixes, IP addresses, or *). Connections are kept alive and reused for a few seconds between requests.

Adding API coverage

Each resources/api/NN_service.json file describes one service. Adding a resource or an action to a descriptor makes it appear in the GUI, with no C code. src/osm_api.h documents the format. make test checks that every descriptor loads and that every reference resolves.

Files 00_ to 50_ without _extra are written by hand. The others are produced by the scripts of tools/descriptors: edit the script, then run make descriptors. make coverage lists the installed openstack CLI commands that no operation names.