Install & Compatibility
Where this runs
tested against v4.10.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.910 runs
installs and imports cleanly · install 0.0s · import 1.882s · 108.5MB
glibcpy 3.10–3.910 runs
installs and imports cleanly · install 10.1s · import 1.831s · 110MB
117MB installed
● package 117MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
client
✓ from magnumclient import client
✗ from magnum import client
Module is 'magnumclient', not 'magnum'
MagnumClient
✓ from magnumclient.client import Client
✗ from magnumclient import MagnumClient
The class is 'Client', not 'MagnumClient'. Instantiate with Client() or Client(version='1', ...)
Authenticate with OpenStack Keystone and list clusters.
from magnumclient import client
from keystoneauth1 import session as ks_session
from keystoneauth1.identity import v3
auth = v3.Password(auth_url='http://your-openstack:5000/v3',
username='admin', password='secret',
project_name='admin', user_domain_name='Default',
project_domain_name='Default')
sess = ks_session.Session(auth=auth)
magnum = client.Client(session=sess, interface='public', region_name='RegionOne')
print(magnum.clusters.list())
magnum --version
Errors
Common errors & fixes
No module named 'magnum'
Importing the wrong module name; correct module is 'magnumclient'.
fixUse 'from magnumclient import client'
magnumclient.exceptions.EndpointNotFound: Could not find a suitable endpoint
Keystone does not have the required service type in the catalog. Typically the service type is 'container' (not 'container-infra').
fixCheck Keystone service list for 'container' or set endpoint_override in the Client constructor.
Upgrade
Version history
4.10.0latest on PyPI · released Feb 27, 2026
Audit
Dependencies
keystoneauth1requiredAuthentication and session handling for OpenStack APIs
osc-librequiredOpenStackClient plugin support
python-openstackclientoptionalOptional: for use as an OSC plugin