Skip to content

Commit 6019073

Browse files
authored
Bump the Cruise Control version to 2.5.142 (#11288)
Signed-off-by: ShubhamRwt <[email protected]>
1 parent 43ba942 commit 6019073

File tree

11 files changed

+22
-43
lines changed

11 files changed

+22
-43
lines changed

docker-images/artifacts/kafka-thirdparty-libs/3.9.x/pom.xml

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
<properties>
1919
<strimzi-oauth.version>0.15.0</strimzi-oauth.version>
20-
<cruise-control.version>2.5.141</cruise-control.version>
20+
<cruise-control.version>2.5.142</cruise-control.version>
2121
<opa-authorizer.version>1.5.1</opa-authorizer.version>
2222
<kafka-quotas-plugin.version>0.3.1</kafka-quotas-plugin.version>
2323
<kafka-kubernetes-config-provider.version>1.2.0</kafka-kubernetes-config-provider.version>
@@ -285,6 +285,10 @@
285285
<groupId>org.apache.kafka</groupId>
286286
<artifactId>kafka-clients</artifactId>
287287
</exclusion>
288+
<exclusion>
289+
<groupId>org.apache.kafka</groupId>
290+
<artifactId>kafka-server</artifactId>
291+
</exclusion>
288292
<exclusion>
289293
<groupId>org.slf4j</groupId>
290294
<artifactId>slf4j-api</artifactId>

docker-images/artifacts/kafka-thirdparty-libs/4.0.x/pom.xml

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
<properties>
1919
<strimzi-oauth.version>0.15.0</strimzi-oauth.version>
20-
<cruise-control.version>2.5.141</cruise-control.version>
20+
<cruise-control.version>2.5.142</cruise-control.version>
2121
<opa-authorizer.version>1.5.1</opa-authorizer.version>
2222
<kafka-quotas-plugin.version>0.3.1</kafka-quotas-plugin.version>
2323
<kafka-kubernetes-config-provider.version>1.2.0</kafka-kubernetes-config-provider.version>
@@ -278,6 +278,10 @@
278278
<groupId>org.apache.kafka</groupId>
279279
<artifactId>kafka-clients</artifactId>
280280
</exclusion>
281+
<exclusion>
282+
<groupId>org.apache.kafka</groupId>
283+
<artifactId>kafka-server</artifactId>
284+
</exclusion>
281285
<exclusion>
282286
<groupId>org.slf4j</groupId>
283287
<artifactId>slf4j-api</artifactId>

docker-images/artifacts/kafka-thirdparty-libs/cc/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</licenses>
1717

1818
<properties>
19-
<cruise-control.version>2.5.141</cruise-control.version>
19+
<cruise-control.version>2.5.142</cruise-control.version>
2020
</properties>
2121

2222
<repositories>

systemtest/src/main/java/io/strimzi/systemtest/utils/kafkaUtils/KafkaRebalanceUtils.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class KafkaRebalanceUtils {
3131

3232
private KafkaRebalanceUtils() {}
3333

34-
private static Condition rebalanceStateCondition(String namespaceName, String resourceName) {
34+
public static Condition rebalanceStateCondition(String namespaceName, String resourceName) {
3535

3636
List<Condition> statusConditions = KafkaRebalanceResource.kafkaRebalanceClient().inNamespace(namespaceName)
3737
.withName(resourceName).get().getStatus().getConditions().stream()

systemtest/src/test/java/io/strimzi/systemtest/cruisecontrol/CruiseControlApiST.java

-7
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,16 @@
1111
import io.skodjob.annotations.TestDoc;
1212
import io.strimzi.operator.common.model.cruisecontrol.CruiseControlEndpoints;
1313
import io.strimzi.systemtest.AbstractST;
14-
import io.strimzi.systemtest.Environment;
1514
import io.strimzi.systemtest.annotations.ParallelNamespaceTest;
1615
import io.strimzi.systemtest.docs.TestDocsLabels;
1716
import io.strimzi.systemtest.resources.ResourceManager;
1817
import io.strimzi.systemtest.storage.TestStorage;
1918
import io.strimzi.systemtest.templates.crd.KafkaNodePoolTemplates;
2019
import io.strimzi.systemtest.templates.crd.KafkaTemplates;
2120
import io.strimzi.systemtest.templates.kubernetes.SecretTemplates;
22-
import io.strimzi.systemtest.utils.TestKafkaVersion;
2321
import io.strimzi.systemtest.utils.specific.CruiseControlUtils;
2422
import org.apache.logging.log4j.LogManager;
2523
import org.apache.logging.log4j.Logger;
26-
import org.junit.jupiter.api.Assumptions;
2724
import org.junit.jupiter.api.BeforeAll;
2825
import org.junit.jupiter.api.Tag;
2926

@@ -155,10 +152,6 @@ void testCruiseControlAPIUsers() {
155152

156153
@BeforeAll
157154
void setUp() {
158-
// Cruise Control currently does not work with Kafka 4.0 and this tests is therefore disabled when Kafka 4.0 or newer is used.
159-
// This should be re-enabled once Cruise Control support is fixed: https://github.com/strimzi/strimzi-kafka-operator/issues/11199
160-
Assumptions.assumeTrue(TestKafkaVersion.compareDottedVersions(Environment.ST_KAFKA_VERSION, "4.0.0") < 0);
161-
162155
this.clusterOperator = this.clusterOperator
163156
.defaultInstallation()
164157
.createInstallation()

systemtest/src/test/java/io/strimzi/systemtest/cruisecontrol/CruiseControlConfigurationST.java

-7
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import io.strimzi.api.kafka.model.kafka.cruisecontrol.CruiseControlSpecBuilder;
1717
import io.strimzi.operator.common.model.cruisecontrol.CruiseControlConfigurationParameters;
1818
import io.strimzi.systemtest.AbstractST;
19-
import io.strimzi.systemtest.Environment;
2019
import io.strimzi.systemtest.TestConstants;
2120
import io.strimzi.systemtest.annotations.ParallelNamespaceTest;
2221
import io.strimzi.systemtest.docs.TestDocsLabels;
@@ -29,14 +28,12 @@
2928
import io.strimzi.systemtest.templates.specific.AdminClientTemplates;
3029
import io.strimzi.systemtest.utils.AdminClientUtils;
3130
import io.strimzi.systemtest.utils.RollingUpdateUtils;
32-
import io.strimzi.systemtest.utils.TestKafkaVersion;
3331
import io.strimzi.systemtest.utils.kubeUtils.controllers.DeploymentUtils;
3432
import io.strimzi.systemtest.utils.kubeUtils.objects.PodUtils;
3533
import io.strimzi.systemtest.utils.specific.CruiseControlUtils;
3634
import io.strimzi.test.WaitException;
3735
import org.apache.logging.log4j.LogManager;
3836
import org.apache.logging.log4j.Logger;
39-
import org.junit.jupiter.api.Assumptions;
4037
import org.junit.jupiter.api.BeforeAll;
4138
import org.junit.jupiter.api.Tag;
4239

@@ -214,10 +211,6 @@ void testConfigurationUpdate() throws IOException {
214211

215212
@BeforeAll
216213
void setUp() {
217-
// Cruise Control currently does not work with Kafka 4.0 and this tests is therefore disabled when Kafka 4.0 or newer is used.
218-
// This should be re-enabled once Cruise Control support is fixed: https://github.com/strimzi/strimzi-kafka-operator/issues/11199
219-
Assumptions.assumeTrue(TestKafkaVersion.compareDottedVersions(Environment.ST_KAFKA_VERSION, "4.0.0") < 0);
220-
221214
this.clusterOperator = this.clusterOperator
222215
.defaultInstallation()
223216
.createInstallation()

systemtest/src/test/java/io/strimzi/systemtest/cruisecontrol/CruiseControlST.java

-7
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import io.strimzi.api.kafka.model.rebalance.KafkaRebalanceStatus;
3131
import io.strimzi.operator.common.Annotations;
3232
import io.strimzi.systemtest.AbstractST;
33-
import io.strimzi.systemtest.Environment;
3433
import io.strimzi.systemtest.TestConstants;
3534
import io.strimzi.systemtest.annotations.IsolatedTest;
3635
import io.strimzi.systemtest.annotations.ParallelNamespaceTest;
@@ -51,7 +50,6 @@
5150
import io.strimzi.systemtest.utils.AdminClientUtils;
5251
import io.strimzi.systemtest.utils.ClientUtils;
5352
import io.strimzi.systemtest.utils.RollingUpdateUtils;
54-
import io.strimzi.systemtest.utils.TestKafkaVersion;
5553
import io.strimzi.systemtest.utils.VerificationUtils;
5654
import io.strimzi.systemtest.utils.kafkaUtils.KafkaRebalanceUtils;
5755
import io.strimzi.systemtest.utils.kafkaUtils.KafkaTopicUtils;
@@ -62,7 +60,6 @@
6260
import io.strimzi.test.k8s.KubeClusterResource;
6361
import org.apache.logging.log4j.LogManager;
6462
import org.apache.logging.log4j.Logger;
65-
import org.junit.jupiter.api.Assumptions;
6663
import org.junit.jupiter.api.BeforeAll;
6764
import org.junit.jupiter.api.Tag;
6865

@@ -869,10 +866,6 @@ void testCruiseControlRemoveDisksMode() {
869866

870867
@BeforeAll
871868
void setUp() {
872-
// Cruise Control currently does not work with Kafka 4.0 and this tests is therefore disabled when Kafka 4.0 or newer is used.
873-
// This should be re-enabled once Cruise Control support is fixed: https://github.com/strimzi/strimzi-kafka-operator/issues/11199
874-
Assumptions.assumeTrue(TestKafkaVersion.compareDottedVersions(Environment.ST_KAFKA_VERSION, "4.0.0") < 0);
875-
876869
this.clusterOperator = this.clusterOperator
877870
.defaultInstallation()
878871
.createInstallation()

systemtest/src/test/java/io/strimzi/systemtest/log/LoggingChangeST.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -2194,8 +2194,8 @@ void testLoggingHierarchy() {
21942194
}
21952195
)
21962196
void testChangingInternalToExternalLoggingTriggerRollingUpdate() {
2197-
// Cruise Control currently does not work with Kafka 4.0 and this tests is therefore disabled when Kafka 4.0 or newer is used.
2198-
// This should be re-enabled once Cruise Control support is fixed: https://github.com/strimzi/strimzi-kafka-operator/issues/11199
2197+
// This test would need some changes since Kafka 4.0.0 uses Log4j2 which provides dynamic logging changes for the brokers and is therefore disabled.
2198+
// This test can be enabled again once we fix the issue: https://github.com/strimzi/strimzi-kafka-operator/issues/11312
21992199
Assumptions.assumeTrue(TestKafkaVersion.compareDottedVersions(Environment.ST_KAFKA_VERSION, "4.0.0") < 0);
22002200

22012201
final TestStorage testStorage = new TestStorage(ResourceManager.getTestContext());

systemtest/src/test/java/io/strimzi/systemtest/operators/MultipleClusterOperatorsST.java

+8-3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
import io.strimzi.api.kafka.model.kafka.Kafka;
1212
import io.strimzi.api.kafka.model.kafka.cruisecontrol.CruiseControlResources;
1313
import io.strimzi.api.kafka.model.rebalance.KafkaRebalance;
14+
import io.strimzi.api.kafka.model.rebalance.KafkaRebalanceAnnotation;
15+
import io.strimzi.api.kafka.model.rebalance.KafkaRebalanceState;
1416
import io.strimzi.operator.common.Annotations;
1517
import io.strimzi.operator.common.model.Labels;
1618
import io.strimzi.systemtest.AbstractST;
@@ -36,7 +38,6 @@
3638
import io.strimzi.systemtest.templates.specific.ScraperTemplates;
3739
import io.strimzi.systemtest.utils.ClientUtils;
3840
import io.strimzi.systemtest.utils.RollingUpdateUtils;
39-
import io.strimzi.systemtest.utils.TestKafkaVersion;
4041
import io.strimzi.systemtest.utils.kafkaUtils.KafkaConnectUtils;
4142
import io.strimzi.systemtest.utils.kafkaUtils.KafkaRebalanceUtils;
4243
import io.strimzi.systemtest.utils.kafkaUtils.KafkaUtils;
@@ -253,8 +254,6 @@ void testMultipleCOsInDifferentNamespaces() {
253254
@SuppressWarnings("deprecation") // Replicas in Kafka CR are deprecated, but some API methods are still called here
254255
void testKafkaCCAndRebalanceWithMultipleCOs() {
255256
assumeFalse(Environment.isNamespaceRbacScope());
256-
// Currently not supported on Kafka 4.0.0
257-
assumeTrue(TestKafkaVersion.compareDottedVersions(Environment.ST_KAFKA_VERSION, "4.0.0") < 0);
258257
final TestStorage testStorage = new TestStorage(ResourceManager.getTestContext(), DEFAULT_NAMESPACE);
259258

260259
int scaleTo = 4;
@@ -335,6 +334,12 @@ void testKafkaCCAndRebalanceWithMultipleCOs() {
335334

336335
KafkaUtils.waitForClusterStability(testStorage.getNamespaceName(), testStorage.getClusterName());
337336

337+
// Refresh the KafkaRebalance to make sure it's not in `NotReady` state due to CruiseControlRestException
338+
// This can happen if the new Cruise Control pod was not up and request was propagated to old Cruise Control
339+
if (KafkaRebalanceUtils.rebalanceStateCondition(testStorage.getNamespaceName(), testStorage.getClusterName()).getType().equals(KafkaRebalanceState.NotReady.name())) {
340+
KafkaRebalanceUtils.annotateKafkaRebalanceResource(testStorage.getNamespaceName(), testStorage.getClusterName(), KafkaRebalanceAnnotation.refresh);
341+
}
342+
338343
KafkaRebalanceUtils.doRebalancingProcess(testStorage.getNamespaceName(), testStorage.getClusterName());
339344

340345
LOGGER.info("Verifying that operands are operated by expected Cluster Operator {}", FIRST_CO_NAME);

systemtest/src/test/java/io/strimzi/systemtest/operators/ReconciliationST.java

-7
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
import io.strimzi.operator.common.Annotations;
1313
import io.strimzi.operator.common.model.Labels;
1414
import io.strimzi.systemtest.AbstractST;
15-
import io.strimzi.systemtest.Environment;
1615
import io.strimzi.systemtest.annotations.ParallelNamespaceTest;
1716
import io.strimzi.systemtest.enums.CustomResourceStatus;
1817
import io.strimzi.systemtest.resources.ResourceManager;
@@ -31,7 +30,6 @@
3130
import io.strimzi.systemtest.templates.crd.KafkaTopicTemplates;
3231
import io.strimzi.systemtest.templates.specific.ScraperTemplates;
3332
import io.strimzi.systemtest.utils.RollingUpdateUtils;
34-
import io.strimzi.systemtest.utils.TestKafkaVersion;
3533
import io.strimzi.systemtest.utils.kafkaUtils.KafkaConnectUtils;
3634
import io.strimzi.systemtest.utils.kafkaUtils.KafkaConnectorUtils;
3735
import io.strimzi.systemtest.utils.kafkaUtils.KafkaRebalanceUtils;
@@ -41,7 +39,6 @@
4139
import io.vertx.core.json.JsonObject;
4240
import org.apache.logging.log4j.LogManager;
4341
import org.apache.logging.log4j.Logger;
44-
import org.junit.jupiter.api.Assumptions;
4542
import org.junit.jupiter.api.BeforeAll;
4643
import org.junit.jupiter.api.Tag;
4744

@@ -136,10 +133,6 @@ void testPauseReconciliationInKafkaAndKafkaConnectWithConnector() {
136133
@ParallelNamespaceTest
137134
@Tag(CRUISE_CONTROL)
138135
void testPauseReconciliationInKafkaRebalanceAndTopic() {
139-
// Cruise Control currently does not work with Kafka 4.0 and this tests is therefore disabled when Kafka 4.0 or newer is used.
140-
// This should be re-enabled once Cruise Control support is fixed: https://github.com/strimzi/strimzi-kafka-operator/issues/11199
141-
Assumptions.assumeTrue(TestKafkaVersion.compareDottedVersions(Environment.ST_KAFKA_VERSION, "4.0.0") < 0);
142-
143136
final TestStorage testStorage = new TestStorage(ResourceManager.getTestContext());
144137

145138
resourceManager.createResourceWithWait(

systemtest/src/test/java/io/strimzi/systemtest/operators/topic/TopicReplicasChangeST.java

-6
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,11 @@
2525
import io.strimzi.systemtest.templates.crd.KafkaTopicTemplates;
2626
import io.strimzi.systemtest.templates.specific.ScraperTemplates;
2727
import io.strimzi.systemtest.utils.ClientUtils;
28-
import io.strimzi.systemtest.utils.TestKafkaVersion;
2928
import io.strimzi.systemtest.utils.kafkaUtils.KafkaTopicUtils;
3029
import io.strimzi.systemtest.utils.kubeUtils.controllers.DeploymentUtils;
3130
import io.strimzi.systemtest.utils.specific.ScraperUtils;
3231
import org.apache.logging.log4j.LogManager;
3332
import org.apache.logging.log4j.Logger;
34-
import org.junit.jupiter.api.Assumptions;
3533
import org.junit.jupiter.api.BeforeAll;
3634
import org.junit.jupiter.api.Tag;
3735

@@ -425,10 +423,6 @@ private void sendAndRecvMessages(final TestStorage testStorage) {
425423

426424
@BeforeAll
427425
void setup() {
428-
// Cruise Control currently does not work with Kafka 4.0 and this tests is therefore disabled when Kafka 4.0 or newer is used.
429-
// This should be re-enabled once Cruise Control support is fixed: https://github.com/strimzi/strimzi-kafka-operator/issues/11199
430-
Assumptions.assumeTrue(TestKafkaVersion.compareDottedVersions(Environment.ST_KAFKA_VERSION, "4.0.0") < 0);
431-
432426
sharedTestStorage = new TestStorage(ResourceManager.getTestContext(), Environment.TEST_SUITE_NAMESPACE);
433427

434428
clusterOperator = clusterOperator

0 commit comments

Comments
 (0)