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

dt/license_enforcement: delay disabling trial license #24426

Conversation

pgellert
Copy link
Contributor

@pgellert pgellert commented Dec 4, 2024

Previously the test relied on the fact that the previous major version (v24.2) did not do strict license enforcement.

We can no longer rely on that since the head version became v25.1 and the previous major version v24.3 which does do strict license enforcement.

This fixes the current CI failures on dev.

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v24.3.x
  • v24.2.x
  • v24.1.x

Release Notes

  • none

Previously the test relied on the fact that the previous major version
(v24.2) did not do strict license enforcement.

We can no longer rely on that since the head version became v25.1 and the
previous major version v24.3 which does do strict license enforcement.
@pgellert pgellert requested a review from a team December 4, 2024 10:51
@pgellert pgellert self-assigned this Dec 4, 2024
@pgellert pgellert requested review from aanthony-rp and michael-redpanda and removed request for a team December 4, 2024 10:51
Copy link
Contributor

@IoannisRP IoannisRP left a comment

Choose a reason for hiding this comment

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

lgtm

@vbotbuildovich
Copy link
Collaborator

@michael-redpanda michael-redpanda merged commit 5dedfdc into redpanda-data:dev Dec 4, 2024
18 checks passed
@@ -49,9 +49,6 @@ def setUp(self):
)
Copy link
Member

Choose a reason for hiding this comment

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

Previously the test relied on the fact that the previous major version
(v24.2) did not do strict license enforcement.
We can no longer rely on that since the head version became v25.1 and the
previous major version v24.3 which does do strict license enforcement.

Does this allude to a future problem with real clusters and upgrading? If so, "delay" doesn't sound like a robust solution. Is this a test only issue?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is this a test only issue?

Yes.

Does this allude to a future problem with real clusters and upgrading?

I don't think so. Do you?

The underlying logic of upgrading from v24.2.x -> v24.3.x is the same (wrt. upgrade blocking) as upgrading from v24.3.x -> v25.1.x. And the test assertions are the same as well. The test needed changing because it needs some initialization (setting up a starting cluster that has an enterprise feature enabled and has an invalid license state). This test initialization logic is what needed changing now that the previous_version moved from v24.2.x to v24.3.x.

Copy link
Member

Choose a reason for hiding this comment

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

thanks @pgellert makes sense!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants