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

OCPBUGS-13680: Allow changing cluster-name on existing deployments #276

Merged
merged 2 commits into from Apr 10, 2024

Conversation

dulek
Copy link

@dulek dulek commented Apr 9, 2024

We've deployed clusters configuring CCM with the default --cluster-name=kubernetes and this created issues when there are multiple clusters running on a single tenant - if namespace and service names were colliding, there's no way CCM was able to figure out which LB is which and both deployments "stole" LBs from each other.

This commit aims at allowing to change the cluster-name on a running environment and handling all the renames of the LB resources and their tags. A patch updating CCCMO to configure --cluster-name=<InfrastructureName> is prepared as well in cluster-cloud-controller-manager-operator#337.

It's a common issue that clusters are deployed with the default
`--cluster-name=kubernetes` and later on it's discovered that next
deployments on the same cloud will have conflicts when trying to manage
LBs of the same namespace and name.

This commit aims at allowing to change the cluster-name on a running
environment and handling all the renames of the LB resources and their
tags.

Co-authored-by: Michał Dulko <mdulko@redhat.com>
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 9, 2024
@dulek
Copy link
Author

dulek commented Apr 9, 2024

/retest

Looks pretty much unrelated.

@pierreprinetti
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Apr 9, 2024
Copy link

openshift-ci bot commented Apr 9, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dulek, pierreprinetti

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link

openshift-ci bot commented Apr 9, 2024

@dulek: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@dulek dulek changed the title Allow changing cluster-name on existing deployments OCPBUGS-13680: Allow changing cluster-name on existing deployments Apr 10, 2024
@openshift-ci-robot openshift-ci-robot added jira/severity-moderate Referenced Jira bug's severity is moderate for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Apr 10, 2024
@openshift-ci-robot
Copy link

@dulek: This pull request references Jira Issue OCPBUGS-13680, which is invalid:

  • expected the bug to target either version "4.16." or "openshift-4.16.", but it targets "4.14.0" instead

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

We've deployed clusters configuring CCM with the default --cluster-name=kubernetes and this created issues when there are multiple clusters running on a single tenant - if namespace and service names were colliding, there's no way CCM was able to figure out which LB is which and both deployments "stole" LBs from each other.

This commit aims at allowing to change the cluster-name on a running environment and handling all the renames of the LB resources and their tags. A patch updating CCCMO to configure --cluster-name=<InfrastructureName> is prepared as well in cluster-cloud-controller-manager-operator#337.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@dulek
Copy link
Author

dulek commented Apr 10, 2024

/jira refresh

@openshift-ci-robot openshift-ci-robot added jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. and removed jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Apr 10, 2024
@openshift-ci-robot
Copy link

@dulek: This pull request references Jira Issue OCPBUGS-13680, which is valid. The bug has been moved to the POST state.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.16.0) matches configured target version for branch (4.16.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, POST)

No GitHub users were found matching the public email listed for the QA contact in Jira (itbrown@redhat.com), skipping review request.

In response to this:

/jira refresh

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-merge-bot openshift-merge-bot bot merged commit 5340eaa into openshift:master Apr 10, 2024
5 checks passed
@openshift-ci-robot
Copy link

@dulek: Jira Issue OCPBUGS-13680: Some pull requests linked via external trackers have merged:

The following pull requests linked via external trackers have not merged:

These pull request must merge or be unlinked from the Jira bug in order for it to move to the next state. Once unlinked, request a bug refresh with /jira refresh.

Jira Issue OCPBUGS-13680 has not been moved to the MODIFIED state.

In response to this:

We've deployed clusters configuring CCM with the default --cluster-name=kubernetes and this created issues when there are multiple clusters running on a single tenant - if namespace and service names were colliding, there's no way CCM was able to figure out which LB is which and both deployments "stole" LBs from each other.

This commit aims at allowing to change the cluster-name on a running environment and handling all the renames of the LB resources and their tags. A patch updating CCCMO to configure --cluster-name=<InfrastructureName> is prepared as well in cluster-cloud-controller-manager-operator#337.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@pierreprinetti pierreprinetti deleted the rename-lbs-openshift branch April 10, 2024 16:45
@openshift-bot
Copy link

[ART PR BUILD NOTIFIER]

This PR has been included in build csi-driver-manila-container-v4.16.0-202404101645.p0.g5340eaa.assembly.stream.el9 for distgit csi-driver-manila.
All builds following this will include this PR.

@openshift-merge-robot
Copy link

Fix included in accepted release 4.16.0-0.nightly-2024-04-13-070448

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/severity-moderate Referenced Jira bug's severity is moderate for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants