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

Add OpenShift Virtualization Inventory source option #15047

Merged
merged 13 commits into from
Jun 14, 2024

Conversation

chadmf
Copy link
Collaborator

@chadmf chadmf commented Mar 29, 2024

SUMMARY

Adding OpenShift Virtualization inventory source

ISSUE TYPE
  • New or Enhanced Feature
COMPONENT NAME
  • UI
  • API
AWX VERSION
WIP
ADDITIONAL INFORMATION
WIP

@chadmf chadmf requested a review from shanemcd March 29, 2024 00:05
@github-actions github-actions bot added component:api component:awx_collection issues related to the collection for controlling AWX community labels Mar 29, 2024
@TheRealHaoLiu TheRealHaoLiu changed the title WIP commit for AAP-22242 to add OpenShift Virtualization Inventory so… Add OpenShift Virtualization Inventory source option Jun 12, 2024
@TheRealHaoLiu
Copy link
Member

still need to find a ocp that's capable of hosting kubevirt VM to test this... can't afford that AWS Baremetal node, lol

chadmf and others added 13 commits June 14, 2024 11:47
- generate migration for adding ovirt inventory source
- fix python and UI linting issue
- make the UI actually work
for credential of CLOUD_PROVIDER inventory source...
fix
```
tools_awx_1       | 2024-06-14 15:39:23,424 ERROR    [63b8bfcc] awx.main.tasks.jobs inventory_update 8 (running) Post run hook errored.
tools_awx_1       | Traceback (most recent call last):
tools_awx_1       |   File "/awx_devel/awx/main/tasks/jobs.py", line 637, in run
tools_awx_1       |     self.post_run_hook(self.instance, status)
tools_awx_1       |   File "/awx_devel/awx/main/tasks/jobs.py", line 1669, in post_run_hook
tools_awx_1       |     if getattr(settings, '%s_EXCLUDE_EMPTY_GROUPS' % src.upper()):
tools_awx_1       |        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tools_awx_1       |   File "/awx_devel/awx/conf/settings.py", line 540, in __getattr_without_cache__
tools_awx_1       |     return getattr(self._wrapped, name)
tools_awx_1       |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tools_awx_1       |   File "/awx_devel/awx/conf/settings.py", line 441, in __getattr__
tools_awx_1       |     return self._get_default(name)
tools_awx_1       |            ^^^^^^^^^^^^^^^^^^^^^^^
tools_awx_1       |   File "/awx_devel/awx/conf/settings.py", line 415, in _get_default
tools_awx_1       |     return getattr(self.default_settings, name)
tools_awx_1       |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tools_awx_1       | AttributeError: 'Settings' object has no attribute 'OPENSHIFT_VIRTUALIZATION_EXCLUDE_EMPTY_GROUPS'
```
@TheRealHaoLiu
Copy link
Member

ok tested against a cluster that actually have kubevirt machines
image

@tvo318
Copy link
Member

tvo318 commented Jun 14, 2024

I'll add the docs for this! See #15274.

@TheRealHaoLiu TheRealHaoLiu merged commit 31a086b into ansible:devel Jun 14, 2024
20 of 21 checks passed
chrismeyersfsu added a commit to chrismeyersfsu/awx that referenced this pull request Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community component:api component:awx_collection issues related to the collection for controlling AWX component:ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants