Skip to content

Conversation

@johscheuer
Copy link
Member

Description

This change adds support for only checking with the exclude command for already excluded addresses if they are fully excluded and if they can be removed from the cluster. Before this change it could happen that we invoked the CanSafelyRemove method before an address was excluded in the exclude sub reconciler (which has some additional age checks). In order to be more restrictive and be safer I added a check to only run the exclude command for processes that are marked as excluded in the cluster status.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Discussion

Are there any design details that you would like to discuss further?

Testing

local testing and I will add some more unit tests.

Documentation

Follow-up

I will create a design doc for some ideas how to improve the exclusion handling in the operator.

@johscheuer johscheuer added the bug Something isn't working label Feb 15, 2022
@foundationdb-ci
Copy link
Contributor

AWS CodeBuild CI Report for Linux CentOS 7

  • CodeBuild project: fdb-kubernetes-operator-pr
  • Commit ID: 9362aa5
  • Result: FAILED
  • Error: Build has timed out.
  • Build Logs (available for 30 days)

@johscheuer johscheuer marked this pull request as ready for review February 16, 2022 19:31
@johscheuer johscheuer requested a review from ltsampros February 16, 2022 19:34
@foundationdb-ci
Copy link
Contributor

AWS CodeBuild CI Report for Linux CentOS 7

  • CodeBuild project: fdb-kubernetes-operator-pr
  • Commit ID: 6d3274a
  • Result: FAILED
  • Error: Build has timed out.
  • Build Logs (available for 30 days)

@foundationdb-ci
Copy link
Contributor

AWS CodeBuild CI Report for Linux CentOS 7

  • CodeBuild project: fdb-kubernetes-operator-pr
  • Commit ID: 254d472
  • Result: FAILED
  • Error: Build has timed out.
  • Build Logs (available for 30 days)

@johscheuer johscheuer requested a review from 09harsh February 17, 2022 15:15
Copy link
Member

@brownleej brownleej left a comment

Choose a reason for hiding this comment

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

👍

@johscheuer johscheuer merged commit 664b4f4 into FoundationDB:main Feb 22, 2022
@johscheuer johscheuer deleted the better-exclude-checks branch February 22, 2022 09:03
09harsh pushed a commit to 09harsh/fdb-kubernetes-operator that referenced this pull request Aug 1, 2022
…lyRemove (FoundationDB#1064)

* Check if processes are excluded before run exclude command in CanSafelyRemove
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants