-
Notifications
You must be signed in to change notification settings - Fork 81
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
Use ansibleEE library instead of AnsibleEE v1 CR #972
Use ansibleEE library instead of AnsibleEE v1 CR #972
Conversation
Skipping CI for Draft Pull Request. |
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/8d8fc165435e40cd8a678ed706092259 ❌ openstack-k8s-operators-content-provider FAILURE in 6m 37s |
696c586
to
ea26612
Compare
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/ff4f8dea98fc4e5db900f382d883aa83 ❌ openstack-k8s-operators-content-provider FAILURE in 8m 16s |
179aded
to
6bf7c55
Compare
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/1ae4243f9a8e4f3b8f4679b20439a9f4 ✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 38m 49s |
Looks like an issue with the
|
6bf7c55
to
15fa6e8
Compare
Merge Failed. This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset. |
15fa6e8
to
c6aad6f
Compare
Merge Failed. This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset. |
c6aad6f
to
13a7570
Compare
Merge Failed. This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset. |
13a7570
to
5e7a6cf
Compare
Merge Failed. This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset. |
5e7a6cf
to
3877b1f
Compare
Merge Failed. This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset. |
3877b1f
to
0e6b954
Compare
e0f2fe7
to
eb2fb61
Compare
d1a3572
to
8e48cf0
Compare
if ansibleEE.Status.JobStatus == ansibleeev1.JobStatusRunning || ansibleEE.Status.JobStatus == ansibleeev1.JobStatusPending { | ||
log.Info(fmt.Sprintf("AnsibleEE job is not yet completed: Execution: %s, Status: %s", ansibleEE.Name, ansibleEE.Status.JobStatus)) | ||
if ansibleEE.Status.Succeeded == 0 || ansibleEE.Status.Active != 0 && ansibleEE.Status.Failed != 0 { | ||
log.Info(fmt.Sprintf("AnsibleEE job is not yet completed: Execution: %s, Active pods: %d", ansibleEE.Name, ansibleEE.Status.Active)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there would be scenario when all the three are zero (status.active == 0, status.succeeded == 0 and status.failed == 0) which is when the job is pending and we need to update the status with .readyWaitingMessage
. I can't see how that is handled here.
8e48cf0
to
62d186a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+2, could be refactored further to change some of the functions from GetAnsibleExecution
to GetEEJob
etc. Also, remove some of the comments like https://github.com/openstack-k8s-operators/openstack-operator/blob/main/pkg/dataplane/util/ansible_execution.go#L41.
62d186a
to
6bc57fa
Compare
/test openstack-operator-build-deploy-kuttl |
3 similar comments
/test openstack-operator-build-deploy-kuttl |
/test openstack-operator-build-deploy-kuttl |
/test openstack-operator-build-deploy-kuttl |
/retest-required |
This change swaps out the use of the AnsibleEE custom resource for a generic Go library implementation. This enables us to stop using the unnecessary OpenStackAnsibleEE abstraction that we currently have around Kubernetes Jobs for AnsibleEE executions. Jira: https://issues.redhat.com/browse/OSPRH-8926 Signed-off-by: Brendan Shephard <[email protected]>
This change updates the functional tests to work with the changes from Ansibleeev1 to the new lib-common AnsibleEE library. Signed-off-by: Brendan Shephard <[email protected]>
Signed-off-by: Brendan Shephard <[email protected]>
Signed-off-by: Brendan Shephard <[email protected]>
6bc57fa
to
0ac1288
Compare
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/c5a51331398f44c780df58ad6829e5dc ✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 55m 05s |
recheck |
Build failed (check pipeline). Post https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/3fcaaf93f1984609b949078d6856fbda ❌ openstack-k8s-operators-content-provider FAILURE in 5m 03s |
recheck |
Yeah, the file could use some work. I have another branch with some refactoring here: Once this one merges, I'll be able to tidy it up and send that branch as a PR to clean up the rest of it. This PR was already too big and too many changes, so I left any additional refactoring for another PR. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bshephar, fao89 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold |
fdde812
into
openstack-k8s-operators:main
hold wasn't feast enough 😓 |
It was ready. I have some further refactoring in another branch. So I'll send that and we can make any additional adjustments as part of that PR. |
This change swaps out the use of the AnsibleEE custom resource for a generic Go library implementation. This enables us to stop using the unnecessary OpenStackAnsibleEE abstraction that we currently have around Kubernetes Jobs for AnsibleEE executions.
Jira: https://issues.redhat.com/browse/OSPRH-8926