Giter Club home page Giter Club logo

Comments (3)

pmatseykanets avatar pmatseykanets commented on June 29, 2024

Validation Template

What was fixed, or what change has occurred

Orphaned ClusterUserAttributes are now cleaned up by the corresponding controller.

Areas or cases that should be tested

  • Create a downstream cluster with ACE enabled
  • Create two users and assign them to the downstream cluster
  • Log in by both users and download the kubeconfigs
  • On the local cluster change the second user's token to point to the first one
  • Delete the second user
  • Observe that the ClusterUserAttribute for the second user was left on the downstream cluster
  • Restart Rancher or trigger clusteruserattribute controller in other way
  • Observe that the ClusterUserAttribute for the second user was removed from the downstream cluster

What areas could experience regressions

  • Additional strain on ClusterUserAttribute controller as we now always make a read to check if the corresponding UserAttribute object exists whereas previously we did that only when the refresh was needed.

Are the repro steps accurate/minimal?

N/A.

from rancher.

skanakal avatar skanakal commented on June 29, 2024

I am pastin the workaround here... Although a fix for this issue has been developed, it has been targeted to 2.9.next. In the meantime, users encountering this problem can apply the below workaround to resolve it...

What's causing the issue is the orphaned ClusterUserAttribute's on downstream cluster(s)
Customer need to delete those (obviously only the orphaned ones, that the controller is complaining about in the logs).

Checking for offending ClusterUserAttribute's:

KUBECONFIG=<path/to/downstream/kubeconfig> kubectl -n cattle-system get clusteruserattribute <orphaned-clusteruserattribute-name> 

thank you @pmatseykanets

from rancher.

joesims22 avatar joesims22 commented on June 29, 2024

Validated on v2.9-head id 3c48a19. All scenarios in test plan have been executed and passed.

from rancher.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.