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

Functional test for dbpurge job #896

Conversation

auniyal61
Copy link
Contributor

@auniyal61 auniyal61 commented Nov 18, 2024

Nova operator's dbpurge job should assigned a node

Closes #OSPRH-10765

@openshift-ci openshift-ci bot requested review from abays and kk7ds November 18, 2024 09:19
@auniyal61
Copy link
Contributor Author

/retest

1 similar comment
@auniyal61
Copy link
Contributor Author

/retest

@auniyal61 auniyal61 force-pushed the test-dbpurge-nodeselector branch from fe3da3d to 7139863 Compare November 20, 2024 11:03
Copy link
Contributor

@mrkisaolamb mrkisaolamb left a comment

Choose a reason for hiding this comment

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

This test changes is failing need rework

Copy link
Contributor

@gibizer gibizer left a comment

Choose a reason for hiding this comment

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

Now that the fix is merged to main, let's rebase this PR.

@@ -376,6 +376,8 @@ var _ = Describe("NovaConductor controller", func() {
Equal(fmt.Sprintf("%d", *conductor.Spec.DBPurge.ArchiveAge)))
Expect(GetEnvVarValue(jobEnv, "PURGE_AGE", "")).To(
Equal(fmt.Sprintf("%d", *conductor.Spec.DBPurge.PurgeAge)))
nodeSelector := cron.Spec.JobTemplate.Spec.Template.Spec.NodeSelector
Expect(nodeSelector).NotTo(BeNil())
Copy link
Contributor

Choose a reason for hiding this comment

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

We want to test that the NodeSelector from the NovaConductor Spec is passed to the DB purge job's NodeSelector.

Copy link
Contributor

Choose a reason for hiding this comment

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

I believe what Gibi meant was to check if this is the same NodeSelector as in NovaConductorSpec. Please verify and ensure they are identical

@auniyal61 auniyal61 force-pushed the test-dbpurge-nodeselector branch from 7139863 to a52914c Compare November 26, 2024 10:58
@mrkisaolamb mrkisaolamb self-requested a review November 27, 2024 10:14
Nova operator's dbpurge job should assigned a node

Closes #OSPRH-10765
@auniyal61 auniyal61 force-pushed the test-dbpurge-nodeselector branch from a52914c to 713fa2f Compare November 27, 2024 12:21
Copy link
Contributor

@mrkisaolamb mrkisaolamb left a comment

Choose a reason for hiding this comment

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

lgtm

@openshift-ci openshift-ci bot added the lgtm label Nov 27, 2024
Copy link
Contributor

openshift-ci bot commented Nov 27, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: auniyal61, mrkisaolamb

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit dfc4cc1 into openstack-k8s-operators:main Nov 27, 2024
6 checks passed
@auniyal61 auniyal61 deleted the test-dbpurge-nodeselector branch November 27, 2024 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants