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

The hostgroup Ansible job schedule along with host provisioning. #15488

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

amolpati30
Copy link
Contributor

@amolpati30 amolpati30 commented Jun 23, 2024

Problem Statement

After provisioning a new host the assigned Ansible roles from hostgroups
are not executed on the new host

Solution

The method below assigns a role to a hostgroup, then assigns the same hostgroup to a host, and provisions the host to verify that the role is correctly assigned.

Dependent PR: SatelliteQE/airgun#1439

@amolpati30 amolpati30 requested a review from a team as a code owner June 23, 2024 05:25
@amolpati30 amolpati30 changed the title The hostgroup Ansible job should be scheduled along with host provisioning. The hostgroup Ansible job schedule along with host provisioning. Jun 23, 2024
@amolpati30 amolpati30 added CherryPick PR needs CherryPick to previous branches AutoMerge_Cherry_Picked The cherrypicked PRs of master PR would be automerged if all checks passing 6.14.z Introduced in or relating directly to Satellite 6.14 6.15.z Introduced in or relating directly to Satellite 6.15 labels Jun 23, 2024
@amolpati30 amolpati30 force-pushed the ansibleJobSchedule branch 6 times, most recently from 50608ef to 4c7c535 Compare June 23, 2024 06:53
@amolpati30
Copy link
Contributor Author

trigger: test-robottelo
pytest: tests/foreman/ui/test_ansible.py -k provision_host_with_hostgroup_role
airgun: 1439

@amolpati30
Copy link
Contributor Author

trigger: test-robottelo
pytest: tests/foreman/ui/test_ansible.py::TestAnsibleCfgMgmt -k provision_host_with_hostgroup_role
airgun: 1439

@amolpati30 amolpati30 force-pushed the ansibleJobSchedule branch 3 times, most recently from 1165d34 to 7f2e945 Compare June 23, 2024 19:05
@amolpati30 amolpati30 force-pushed the ansibleJobSchedule branch from 7f2e945 to 906a31d Compare July 8, 2024 12:13
@amolpati30 amolpati30 requested a review from a team as a code owner July 8, 2024 12:13
@amolpati30 amolpati30 force-pushed the ansibleJobSchedule branch from 906a31d to e44eaf8 Compare July 8, 2024 16:15
@amolpati30 amolpati30 force-pushed the ansibleJobSchedule branch from e44eaf8 to d206f3a Compare July 9, 2024 07:28
Copy link
Contributor

@shweta83 shweta83 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack with non-blocking comment

tests/foreman/ui/test_computeresource_vmware.py Outdated Show resolved Hide resolved
tests/foreman/ui/test_computeresource_vmware.py Outdated Show resolved Hide resolved
tests/foreman/ui/test_computeresource_vmware.py Outdated Show resolved Hide resolved
tests/foreman/ui/test_computeresource_vmware.py Outdated Show resolved Hide resolved
tests/foreman/ui/test_computeresource_vmware.py Outdated Show resolved Hide resolved
tests/foreman/ui/test_computeresource_vmware.py Outdated Show resolved Hide resolved
@amolpati30 amolpati30 force-pushed the ansibleJobSchedule branch 2 times, most recently from 407245b to 053e9ee Compare July 23, 2024 14:57
@amolpati30
Copy link
Contributor Author

trigger: test-robottelo
pytest: tests/foreman/ui/test_computeresource_vmware.py -k test_positive_provision_end_to_end
airgun: 1439

@amolpati30
Copy link
Contributor Author

"trigger": "test-robottelo"
"pytest": "-k 'test_positive_provision_end_to_end' tests/foreman/ui/test_computeresource_vmware.py"
"airgun": "1439"

@Satellite-QE
Copy link
Collaborator

PRT Result

Build Number: 7827
Build Status: SUCCESS
PRT Comment: pytest /opt/app-root/src/robottelo/tests/foreman -v -m build_sanity --external-logging
Test Result : ======= 12 passed, 5525 deselected, 5633 warnings in 1691.11s (0:28:11) ========

@Satellite-QE Satellite-QE added the PRT-Passed Indicates that latest PRT run is passed for the PR label Jul 23, 2024
@amolpati30 amolpati30 force-pushed the ansibleJobSchedule branch from 053e9ee to e55a34a Compare July 24, 2024 09:49
@Satellite-QE Satellite-QE removed the PRT-Passed Indicates that latest PRT run is passed for the PR label Jul 24, 2024
@Gauravtalreja1 Gauravtalreja1 added PRT-Passed Indicates that latest PRT run is passed for the PR QETestCoverage Issues and PRs relating to a Satellite bug labels Jul 24, 2024
Copy link
Collaborator

@Gauravtalreja1 Gauravtalreja1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job @amolpati30 🚀

@Gauravtalreja1 Gauravtalreja1 enabled auto-merge (squash) July 24, 2024 10:04
@Gauravtalreja1 Gauravtalreja1 merged commit 8727a24 into SatelliteQE:master Jul 24, 2024
11 checks passed
github-actions bot pushed a commit that referenced this pull request Jul 24, 2024
)

job schedule with hostgroup anible role for host after provisioning

(cherry picked from commit 8727a24)
github-actions bot pushed a commit that referenced this pull request Jul 24, 2024
)

job schedule with hostgroup anible role for host after provisioning

(cherry picked from commit 8727a24)
jyejare pushed a commit to jyejare/robottelo that referenced this pull request Oct 19, 2024
…elliteQE#15488)

job schedule with hostgroup anible role for host after provisioning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.14.z Introduced in or relating directly to Satellite 6.14 6.15.z Introduced in or relating directly to Satellite 6.15 AutoMerge_Cherry_Picked The cherrypicked PRs of master PR would be automerged if all checks passing CherryPick PR needs CherryPick to previous branches PRT-Passed Indicates that latest PRT run is passed for the PR QETestCoverage Issues and PRs relating to a Satellite bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants