Display a tree view of OpenStack loadbalancers, pools, and members
Project description
OpenStack Load Balancer Tree View
A Python script that displays a tree view of all loadbalancers in an OpenStack project, showing pools and members in a hierarchical structure.
Features
- Displays loadbalancers as root nodes
- Shows pools as children of loadbalancers
- Shows members as children of pools
- Highlights members with
provisioning_status != ACTIVE(yellow/bold) - Displays members with
operating_status != ONLINEin red - Filter mode: Show only problematic members (not ACTIVE/ONLINE) and pools with no members
Installation
Install globally via pip
Install directly from the source directory:
pip install /path/to/openstack-lb-treeview
Or if you've published to PyPI:
pip install openstack-lb-treeview
After installation, the openstack-lb-treeview command will be available globally.
Set up OpenStack credentials
Set up your OpenStack credentials. You can either:
- Set environment variables (OS_AUTH_URL, OS_USERNAME, OS_PASSWORD, etc.)
- Use a
clouds.yamlfile in~/.config/openstack/or/etc/openstack/
Usage
After installation, use the openstack-lb-treeview command:
Basic usage (uses environment variables for authentication):
openstack-lb-treeview
Specify a cloud from clouds.yaml:
openstack-lb-treeview --cloud mycloud
Filter by project ID:
openstack-lb-treeview --project-id <project-id>
Filter mode (only show problematic members and empty pools):
openstack-lb-treeview --filter
Development Usage
If running from source without installation:
python -m openstack_lb_treeview.lb_treeview
Or directly:
python openstack_lb_treeview/lb_treeview.py
Example Output
Normal mode:
📦 my-loadbalancer (ID: abc123...)
├─ 🏊 pool-1 (ID: def456...)
│ ├─ 👤 member-1 (provisioning: ACTIVE | operating: ONLINE)
│ └─ 👤 member-2 (provisioning: PENDING_CREATE | operating: OFFLINE)
└─ 🏊 pool-2 (ID: ghi789...)
└─ 👤 member-3 (provisioning: ACTIVE | operating: ONLINE)
Filter mode (--filter):
📦 my-loadbalancer (ID: abc123...)
├─ 🏊 pool-1 (ID: def456...)
│ └─ 👤 member-2 (provisioning: PENDING_CREATE | operating: OFFLINE)
└─ 🏊 pool-3 (ID: xyz789...)
└─ No members
In filter mode, only pools with problematic members (not ACTIVE or not ONLINE) or pools with no members are shown.
Requirements
- Python 3.6+
- openstacksdk
- OpenStack credentials with appropriate permissions
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 openstack_lb_treeview-0.1.1.tar.gz.
File metadata
- Download URL: openstack_lb_treeview-0.1.1.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10cc0f06e72d5c0b9b0efdb928b6626ce3fc0ce679faa3458e84e8e4bc0bfc08
|
|
| MD5 |
01eedd1d574bef907e7a3dc3fb32ad12
|
|
| BLAKE2b-256 |
981e9994c849667d72b3ad5cf6552dbcb50d3deeb8c8fa27c4014159870a695f
|
File details
Details for the file openstack_lb_treeview-0.1.1-py3-none-any.whl.
File metadata
- Download URL: openstack_lb_treeview-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e76963631464e426b8f5c208871dd258f7b4707ba930697cf18600cfe268e915
|
|
| MD5 |
3911739456bd1b8ede172072cbe38c21
|
|
| BLAKE2b-256 |
e7194a1fb918c6a9ab1b5da7ae6fd82ed7cf4e578122bdc5704a5cf9a16fb833
|