From dd763ceac091174aaced80064dc4195ae9c15044 Mon Sep 17 00:00:00 2001 From: Oren Leiman Date: Wed, 24 Apr 2024 11:49:15 -0700 Subject: [PATCH] dt/rbac_upgrade: Upgrade to head version instead of a specific 24.x The intent of this test is to show that upgrading from a non-RBAC supporting version to an RBAC supporting build creates the Users role. Previously, we would install v24.1.x explicitly. This broke because we have tagged v24.2.0-dev (which bumps the head version) but have NOT yet tagged v24.1.1 (so 24.1 doesn't appear in released_versions). Simplest solution here is to upgrade directly to head version from a non-RBAC supporting version, which should have the same effect functionally but is more general. Signed-off-by: Oren Leiman --- tests/rptest/tests/rbac_upgrade_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/rptest/tests/rbac_upgrade_test.py b/tests/rptest/tests/rbac_upgrade_test.py index 2d28ea9bd37b1..8038bb4e91396 100644 --- a/tests/rptest/tests/rbac_upgrade_test.py +++ b/tests/rptest/tests/rbac_upgrade_test.py @@ -48,7 +48,8 @@ def test_rbac_migration(self): self.admin.create_user("bob") # Update all nodes to newest version - self.installer.install(self.redpanda.nodes, (24, 1)) + self.installer.install(self.redpanda.nodes, + self.installer.head_version()) self.redpanda.restart_nodes(self.redpanda.nodes) _ = wait_for_num_versions(self.redpanda, 1)