-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[ST] Node Pools role changes. Role change and scale down prevention if replicas present. #9693
Conversation
do not merge before testNodePoolsRolesChanging |
44868d4
to
7a137d8
Compare
/azp run regression |
Azure Pipelines successfully started running 1 pipeline(s). |
7a137d8
to
d311f3d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few nits, mostly things that changed after my latest PR. Anyway thanks for the PR :)
systemtest/src/test/java/io/strimzi/systemtest/kafka/KafkaNodePoolST.java
Outdated
Show resolved
Hide resolved
systemtest/src/test/java/io/strimzi/systemtest/kafka/KafkaNodePoolST.java
Outdated
Show resolved
Hide resolved
systemtest/src/test/java/io/strimzi/systemtest/kafka/KafkaNodePoolST.java
Outdated
Show resolved
Hide resolved
systemtest/src/test/java/io/strimzi/systemtest/kafka/KafkaNodePoolST.java
Outdated
Show resolved
Hide resolved
systemtest/src/test/java/io/strimzi/systemtest/rollingupdate/KafkaRollerST.java
Outdated
Show resolved
Hide resolved
systemtest/src/test/java/io/strimzi/systemtest/rollingupdate/KafkaRollerST.java
Outdated
Show resolved
Hide resolved
systemtest/src/test/java/io/strimzi/systemtest/rollingupdate/KafkaRollerST.java
Outdated
Show resolved
Hide resolved
systemtest/src/test/java/io/strimzi/systemtest/kafka/KafkaNodePoolST.java
Outdated
Show resolved
Hide resolved
systemtest/src/test/java/io/strimzi/systemtest/kafka/KafkaNodePoolST.java
Outdated
Show resolved
Hide resolved
systemtest/src/test/java/io/strimzi/systemtest/kafka/KafkaNodePoolST.java
Outdated
Show resolved
Hide resolved
Signed-off-by: hzrncik <[email protected]>
d311f3d
to
b1cd0ee
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just one thing to consider but nothing, which is blocker to merge this PR
systemtest/src/test/java/io/strimzi/systemtest/rollingupdate/KafkaRollerST.java
Outdated
Show resolved
Hide resolved
Signed-off-by: hzrncik <[email protected]>
/azp list |
/azp run kraft-regression |
Azure Pipelines successfully started running 1 pipeline(s). |
Type of change
Description
addition of checks when preventing Scale down or role change (removal of broker role) in case given nodes (brokers) still contains replicas.
addition of new test (which can be in a future further extended), to cover role changes. As currently the only role transition fully supported is from Mixed role to Controller only, test contains only that. I did not incorporated it into the other tests as this is so far kraft specific and would create a mess of resources creation in other node pools tests.
also test testCruiseControlDuringBrokerScaleUpAndDown is enabled and fixed (to work in kraft) as well, this was done instead of adding CC into Kafka Node Pool specific test as there would be too big overlap. some checks there were removed as they were redundant, only significant parts there are that we create sepate roles instead of calling
NodePoolsConverter.convertNodePoolsIfNeeded
as this test does not need to run in mixed mode. also there is annotation for specific Ids for controllers in order to not need to introduce additional logic into Rebalancing and ids which would be changed due to 3 extra (controllers) Ids taken.