This is a plugin for the openstack commandline client, to enable support for the Doni hardware inventory project
Project description
ChameleonCloud Python Doniclient CLI
Welcome to the ChameleonCloud Python Doniclient CLI repository! This command-line interface (CLI) provides a convenient way to interact with ChameleonCloud's Doni hardware inventory project, enabling you to manage and automate various hardware-related tasks.
Table of Contents
Installation
You can install the ChameleonCloud Python Doniclient CLI using pip:
pip install python-doniclient
Cython sources issue
if you encounter an error message citing cython sources, please run the following to downgrade cython to a compatible version and use PyYaml 6.0+
pip install "cython<3.0.0"
Authentication
Environment variables are the primary authentication method. Please refer to the documentation on OpenRC scripts to learn more about how to download and source your authentication credentials for the CLI;
Usage
To use the CLI, you can run the openstack hardware command followed by the desired subcommand. openstack hardware --help shows all the subcommands available. Here's a basic usage examples:
List all hardware in the Doni database.
openstack hardware list
Options:
- --all: List hardware from all owners (requires admin rights).
- --long: Include all columns in the output.
- --worker-type <worker_type>: Filter by worker type.
- --worker-state <worker_state>: Filter by worker state (choices: PENDING, IN_PROGRESS, ERROR, STEADY).
For more details on specific commands and their options use --help or -h
Create hardware in the Doni database
openstack hardware create --name <hardware_name> --hardware-type <hardware_type> --property <property_name>=<property_value>
List specific hardware item in Doni using name or uuid.
openstack hardware get <hardware_uuid>
openstack hardware get <hardware_name>
Set properties and name of an existing hardware item.
openstack hardware set <hardware_uuid> --name <new_hardware_name> --property <property_name>=<new_property_value>
Sets new name and property for the item <hardware_uuid>
openstack hardware set <hardware_name> --property <property_name>=<new_property_value>
Sets property for the item <hardware_name
Unset properties of an existing hardware item.
openstack hardware unset <hardware_uuid> --property <property_name>
Unsets property <property_name> for the item <hardware_uuid
openstack hardware update <hardware_name> --property <property_name>=<new_property_value>
Unsets property <property_name> for the item <hardware_name>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python_doniclient-1.0.4.tar.gz.
File metadata
- Download URL: python_doniclient-1.0.4.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dcb4d900055bc6061f025d7285a61252bd19fc88faf0bde932cac040edc548f5
|
|
| MD5 |
3598fbd6da00fc33da31087277eb9a9b
|
|
| BLAKE2b-256 |
f73f3412b2dc63adbfbee235d2f6010616b03ac5b363c716857f26a3b54dd82a
|
Provenance
The following attestation bundles were made for python_doniclient-1.0.4.tar.gz:
Publisher:
publish.yml on ChameleonCloud/python-doniclient
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
python_doniclient-1.0.4.tar.gz -
Subject digest:
dcb4d900055bc6061f025d7285a61252bd19fc88faf0bde932cac040edc548f5 - Sigstore transparency entry: 1437786103
- Sigstore integration time:
-
Permalink:
ChameleonCloud/python-doniclient@506365651b9995ca88be552a9ad5f873279ea2f9 -
Branch / Tag:
refs/tags/v1.0.4 - Owner: https://github.com/ChameleonCloud
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@506365651b9995ca88be552a9ad5f873279ea2f9 -
Trigger Event:
release
-
Statement type:
File details
Details for the file python_doniclient-1.0.4-py3-none-any.whl.
File metadata
- Download URL: python_doniclient-1.0.4-py3-none-any.whl
- Upload date:
- Size: 13.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e32f879d5c77d94570b584a4da94e078366e3aae6c0a3a2831ac4548226986a
|
|
| MD5 |
67017e0d9bb63fc9dec17d06c5c1f2d7
|
|
| BLAKE2b-256 |
3744167d775c179bef4f9a547d4c47546bf01bc55913d0d514eaed8b43e8b9eb
|
Provenance
The following attestation bundles were made for python_doniclient-1.0.4-py3-none-any.whl:
Publisher:
publish.yml on ChameleonCloud/python-doniclient
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
python_doniclient-1.0.4-py3-none-any.whl -
Subject digest:
3e32f879d5c77d94570b584a4da94e078366e3aae6c0a3a2831ac4548226986a - Sigstore transparency entry: 1437786162
- Sigstore integration time:
-
Permalink:
ChameleonCloud/python-doniclient@506365651b9995ca88be552a9ad5f873279ea2f9 -
Branch / Tag:
refs/tags/v1.0.4 - Owner: https://github.com/ChameleonCloud
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@506365651b9995ca88be552a9ad5f873279ea2f9 -
Trigger Event:
release
-
Statement type: