Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ovirt and openstack #389

Open
wants to merge 25 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
0b3ba6b
Update requirements.txt
ekrichbaum May 13, 2024
8256a8c
Update settings-example.ini for Ovirt and Openstack
ekrichbaum May 13, 2024
8214704
Update __init__.py for Ovirt and Openstack
ekrichbaum May 13, 2024
bd50b97
Create connection.py
ekrichbaum May 13, 2024
1ac75e8
Create config.py
ekrichbaum May 13, 2024
513e30a
Create config.py
ekrichbaum May 13, 2024
96ab3b2
Create connection.py
ekrichbaum May 13, 2024
7baad9f
Trap for provisioned_size being None
ekrichbaum May 14, 2024
1276345
remove hard pin to vmomi for many updates and python 3.12 soapadapter
ekrichbaum May 14, 2024
bb231fd
Merge branch 'bb-Ricardo:main' into Ovirt-and-Openstack
ekrichbaum May 14, 2024
e445faf
mask error by setting vcpu value.
ekrichbaum May 14, 2024
7b147ef
Update requirements.txt
ekrichbaum May 14, 2024
2bdb322
Update README.md
ekrichbaum May 14, 2024
8dbd926
Update Dockerfile
ekrichbaum May 14, 2024
ac0dcfa
use platform from ovirt guest_operating_system.distribution if available
Jun 17, 2024
7c85c95
normalize host mac_address
Jun 18, 2024
932a59d
don't ignore offline ovirt vms
Jun 18, 2024
88bb439
Merge pull request #1 from gstorme/ovirt
ekrichbaum Jun 24, 2024
de432e4
fix IndentationError in openstack connection
gstorme Jul 15, 2024
6e4f4e7
Merge pull request #2 from gstorme/ovirt
ekrichbaum Aug 5, 2024
d13c3f5
Update connection.py to trap error for a cluster with no hosts
ekrichbaum Aug 16, 2024
6f84365
Update README.md to add ovirt and openstack library info
ekrichbaum Aug 16, 2024
b2c1dd8
Update requirements.txt to normalize openstack and ovirt sdks. Also u…
ekrichbaum Aug 16, 2024
fa4c88c
Merge branch 'development' into Ovirt-and-Openstack
bb-Ricardo Aug 21, 2024
431d4cd
Update connection.py log object data for cpu missing from API call
ekrichbaum Sep 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,22 @@ The `vsphere-automation-sdk` must be installed if tags should be synced from vCe
pip install --upgrade git+https://github.com/vmware/vsphere-automation-sdk-python.git
```

### Openstack support (if necessary)
The `openstacksdk` must be installed to use openstack as a source

* assuming we are still in an activated virtual env
```shell
pip install --upgrade openstacksdk
```

### Ovirt support (if necessary)
The `ovirt-engine-sdk-python` must be installed to use ovirt as a source

* assuming we are still in an activated virtual env
```shell
pip install --upgrade ovirt-engine-sdk-python
```

## NetBox API token
In order to updated data in NetBox you need a NetBox API token.
* API token with all permissions (read, write) except:
Expand Down
5 changes: 3 additions & 2 deletions module/sources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

# define all available sources here
from module.sources.vmware.connection import VMWareHandler
from module.sources.openstack.connection import OpenStackHandler
from module.sources.ovirt.connection import OVirtHandler
from module.sources.check_redfish.import_inventory import CheckRedfish

from module.common.logging import get_logger
Expand All @@ -18,7 +20,7 @@
from module.config import source_config_section_name

# list of valid sources
valid_sources = [VMWareHandler, CheckRedfish]
valid_sources = [VMWareHandler, OpenStackHandler, OVirtHandler, CheckRedfish]


def validate_source(source_class_object=None, state="pre"):
Expand All @@ -31,7 +33,6 @@ def validate_source(source_class_object=None, state="pre"):
Parameters
----------
source_class_object: Source handler class/object
class/object to investigate
state: str
pre if validating a class, post if validating a initialized object

Expand Down
377 changes: 377 additions & 0 deletions module/sources/openstack/config.py

Large diffs are not rendered by default.

Loading