Registry / devops / osc-placement

osc-placement

JSON →
library4.8.0pypypi✓ verified 83d ago

OpenStackClient plugin for the Placement service, used to manage resource providers, inventories, allocations, and traits in OpenStack. Current version 4.8.0 requires Python >=3.9. Released on a rolling cycle aligned with OpenStack releases.

pip install osc-placement
INSTALL
IMPORT
SIG · OSC-PLACEMENT
O
osc-placement
devopspythonv4.8.0
Install
8.8s avg
Import
117ms
Disk
110MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v4.8.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
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.126s · 102.2MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 8.8s · import 0.108s · 103MB
110MB installed
● package 110MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

osc_placement
import osc_placement
from osc_placement import plugin
There is no direct API; the module is auto-discovered by openstackclient as a plugin.

After installing osc-placement and configuring OpenStack credentials (OS_AUTH_URL, OS_USERNAME, OS_PASSWORD, OS_PROJECT_NAME), run the openstack client with placement commands.

openstack resource provider list
openstack --version
Debug
Known issues
gotchaosc-placement is a plugin and does not provide a Python API; it only extends the openstack CLI. Do not attempt to import its internals.
fix
Use openstack CLI commands or the openstacksdk Python library for programmatic access.
affects: all
breakingThe placement API microversion may need to be specified for certain commands; default behavior might change between OpenStack releases.
fix
Check the OpenStack Placement documentation for the required microversion for your installation and use the --os-placement-api-version flag if needed.
affects: >=4.0.0
deprecatedSome older placement CLI subcommands were removed in favor of unified resource provider commands.
fix
Migrate from commands like 'openstack allocation candidate list' to 'openstack resource provider inventory list' or similar.
affects: >=4.0.0
Errors
Common errors & fixes
openstack: 'placement' is not an openstack command. See 'openstack --help'.
osc-placement is not installed or not registered properly.
fix
Run 'pip install osc-placement' and ensure it's in the same Python environment as python-openstackclient.
placement command not found
Missing or outdated openstackclient installation.
fix
Install or upgrade python-openstackclient: 'pip install --upgrade python-openstackclient'.
Not found: Resource provider with name or uuid ...
The resource provider does not exist or the user lacks permissions.
fix
Verify the resource provider exists with 'openstack resource provider list' and check your role assignments.
Upgrade
Version history
4.8.0latest on PyPI · released Feb 24, 2026
Audit
Dependencies
python-openstackclientrequiredosc-placement is a plugin for openstackclient; requires openstack command to be installed and configured.
keystoneauth1optionalUsed for authentication against OpenStack services.
Agent activity
2 hits · last 30 days
node
2
Resources
osc-placement — pip install osc-placement · libregistry