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

[CORE 8273] Adjust license warning text to include trial license links #24261

Merged
merged 7 commits into from
Nov 25, 2024

Conversation

BenPope
Copy link
Member

@BenPope BenPope commented Nov 22, 2024

Adjust license warning text to include trial license links.

Adjust CreateACLs response error to invalid_config from unknown_server_error, to match topic create/alter.

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

@BenPope BenPope requested a review from oleiman November 22, 2024 16:08
@BenPope BenPope self-assigned this Nov 22, 2024
@BenPope BenPope added this to the v24.3.1-RC8 milestone Nov 22, 2024
@BenPope BenPope marked this pull request as ready for review November 22, 2024 16:25
@BenPope BenPope requested a review from IoannisRP November 22, 2024 16:26
@BenPope BenPope force-pushed the core-8273-license-wording branch from 8c3aa1d to b4209a4 Compare November 22, 2024 16:35
Copy link
Member

@oleiman oleiman left a comment

Choose a reason for hiding this comment

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

few copy edits, otherwise looks awesome

src/v/features/enterprise_feature_messages.h Outdated Show resolved Hide resolved
src/v/features/enterprise_feature_messages.h Outdated Show resolved Hide resolved
src/v/features/enterprise_feature_messages.h Outdated Show resolved Hide resolved
src/v/cluster/config_manager.cc Outdated Show resolved Hide resolved
src/v/cluster/partition_balancer_backend.cc Outdated Show resolved Hide resolved
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.

Very nice groupings!
just a couple of minor comments

src/v/cluster/config_manager.cc Outdated Show resolved Hide resolved
src/v/features/enterprise_feature_messages.h Outdated Show resolved Hide resolved
tests/rptest/tests/enterprise_features_license_test.py Outdated Show resolved Hide resolved
@vbotbuildovich
Copy link
Collaborator

vbotbuildovich commented Nov 22, 2024

non flaky failures in https://buildkite.com/redpanda/redpanda/builds/58582#01935508-57f3-4541-b166-2b90a9d45266:

"rptest.tests.rbac_test.RBACLicenseTest.test_license_nag"
"rptest.tests.redpanda_kerberos_test.RedpandaKerberosLicenseTest.test_license_nag"

non flaky failures in https://buildkite.com/redpanda/redpanda/builds/58582#01935508-57f0-4df5-8cc3-c097e9958120:

"rptest.tests.redpanda_oauth_test.OIDCLicenseTest.test_license_nag.authn_config=.http_authentication.OIDC.BASIC"
"rptest.tests.schema_registry_test.SchemaRegistryLicenseTest.test_license_nag.mode=SchemaIdValidationMode.COMPAT"

non flaky failures in https://buildkite.com/redpanda/redpanda/builds/58582#0193551b-adc8-4142-97d1-71b888efb2f2:

"rptest.tests.rbac_test.RBACLicenseTest.test_license_nag"
"rptest.tests.redpanda_kerberos_test.RedpandaKerberosLicenseTest.test_license_nag"

non flaky failures in https://buildkite.com/redpanda/redpanda/builds/58582#0193551b-adc3-48a2-9a12-8dbe27271910:

"rptest.tests.redpanda_oauth_test.OIDCLicenseTest.test_license_nag.authn_config=.http_authentication.OIDC.BASIC"
"rptest.tests.schema_registry_test.SchemaRegistryLicenseTest.test_license_nag.mode=SchemaIdValidationMode.COMPAT"

non flaky failures in https://buildkite.com/redpanda/redpanda/builds/58582#0193551b-adc5-43e7-83d9-250a85272a8c:

"rptest.tests.redpanda_oauth_test.OIDCLicenseTest.test_license_nag.authn_config=.sasl_mechanisms.OAUTHBEARER.SCRAM"
"rptest.tests.schema_registry_test.SchemaRegistryLicenseTest.test_license_nag.mode=SchemaIdValidationMode.REDPANDA"

non flaky failures in https://buildkite.com/redpanda/redpanda/builds/58582#01935508-57f2-4c09-8ecb-fd9e405f7558:

"rptest.tests.redpanda_oauth_test.OIDCLicenseTest.test_license_nag.authn_config=.sasl_mechanisms.OAUTHBEARER.SCRAM"
"rptest.tests.schema_registry_test.SchemaRegistryLicenseTest.test_license_nag.mode=SchemaIdValidationMode.REDPANDA"

non flaky failures in https://buildkite.com/redpanda/redpanda/builds/58599#019355e8-150d-4fc4-b6e5-533da9bca896:

"rptest.tests.datalake.coordinator_retention_test.CoordinatorRetentionTest.test_retention.cloud_storage_type=CloudStorageType.S3"

@vbotbuildovich
Copy link
Collaborator

vbotbuildovich commented Nov 22, 2024

Retry command for Build#58582

please wait until all jobs are finished before running the slash command

/ci-repeat 1
tests/rptest/tests/rbac_test.py::RBACLicenseTest.test_license_nag
tests/rptest/tests/redpanda_kerberos_test.py::RedpandaKerberosLicenseTest.test_license_nag
tests/rptest/tests/redpanda_oauth_test.py::OIDCLicenseTest.test_license_nag@{"authn_config":{"http_authentication":["OIDC","BASIC"]}}
tests/rptest/tests/schema_registry_test.py::SchemaRegistryLicenseTest.test_license_nag@{"mode":"compat"}
tests/rptest/tests/redpanda_oauth_test.py::OIDCLicenseTest.test_license_nag@{"authn_config":{"sasl_mechanisms":["OAUTHBEARER","SCRAM"]}}
tests/rptest/tests/schema_registry_test.py::SchemaRegistryLicenseTest.test_license_nag@{"mode":"redpanda"}

@BenPope BenPope force-pushed the core-8273-license-wording branch from b4209a4 to 0f27174 Compare November 22, 2024 20:14
@BenPope BenPope requested review from oleiman and IoannisRP November 22, 2024 20:15
@BenPope
Copy link
Member Author

BenPope commented Nov 22, 2024

Changes in force-push

  • Improve some formatting strings
  • Switch license strings for admin

oleiman
oleiman previously approved these changes Nov 22, 2024
Copy link
Member

@oleiman oleiman left a comment

Choose a reason for hiding this comment

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

lgtm

oleiman
oleiman previously approved these changes Nov 22, 2024
@BenPope
Copy link
Member Author

BenPope commented Nov 22, 2024

CI Failures:

@vbotbuildovich
Copy link
Collaborator

the below tests from https://buildkite.com/redpanda/redpanda/builds/58599#0193558e-8be9-460e-ad15-7de7661242ba have failed and will be retried

gtest_raft_rpunit

@vbotbuildovich
Copy link
Collaborator

Retry command for Build#58599

please wait until all jobs are finished before running the slash command

/ci-repeat 1
tests/rptest/tests/datalake/coordinator_retention_test.py::CoordinatorRetentionTest.test_retention@{"cloud_storage_type":1}

@vbotbuildovich
Copy link
Collaborator

vbotbuildovich commented Nov 22, 2024

Signed-off-by: Ben Pope <ben@redpanda.com>
Signed-off-by: Ben Pope <ben@redpanda.com>
@BenPope
Copy link
Member Author

BenPope commented Nov 25, 2024

Changes in force-push

  • Ducktape: Moved has_license_nag to redpanda
  • Redpanda: Removed fmt::runtime
  • Redpanda: Changed CreateACL responseerror_code from unknown_server_error to invalid_config

Signed-off-by: Ben Pope <ben@redpanda.com>
Signed-off-by: Ben Pope <ben@redpanda.com>
Signed-off-by: Ben Pope <ben@redpanda.com>
For CreateACLs over the Kafka API, the error code is changed to
invalid_config to match topic create/alter.

Signed-off-by: Ben Pope <ben@redpanda.com>
Signed-off-by: Ben Pope <ben@redpanda.com>
@BenPope BenPope force-pushed the core-8273-license-wording branch from 78a0d9d to f705dec Compare November 25, 2024 10:59
@BenPope BenPope requested a review from oleiman November 25, 2024 11:07
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

@BenPope BenPope merged commit 8a30b96 into redpanda-data:dev Nov 25, 2024
19 checks passed
@vbotbuildovich
Copy link
Collaborator

/backport v24.3.x

@vbotbuildovich
Copy link
Collaborator

Failed to create a backport PR to v24.3.x branch. I tried:

git remote add upstream https://github.com/redpanda-data/redpanda.git
git fetch --all
git checkout -b backport-pr-24261-v24.3.x-509 remotes/upstream/v24.3.x
git cherry-pick -x 5d58e71fbd c97b39fd34 32c2577ac8 fb700d90ba f599d83e5b eeb149d069 f705decd6e

Workflow run logs.

Copy link
Member

@oleiman oleiman left a comment

Choose a reason for hiding this comment

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

lgtm

Comment on lines -1581 to +1588
auto ec = map_topic_error_code(results[i]);
response.data.results.push_back(
creatable_acl_result{.error_code = ec});
if (results[i] == cluster::errc::feature_disabled) {
response.data.results.back().error_message.emplace(
"An enterprise license is required to create an ACL with a "
"role binding");
response.data.results.emplace_back(
error_code::invalid_config,
features::enterprise_error_message::acl_with_rbac());
} else {
response.data.results.emplace_back(
map_topic_error_code(results[i]));
Copy link
Member

Choose a reason for hiding this comment

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

nice

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.

5 participants