Unexplained Identity

Solution In Progress - Updated -

Environment

  • OpenShift Enterprise 3.0

Issue

  • My username now has a 2 next to it
  • My user was created under a different identity with a 2 next to it

Resolution

  • Step 1 - Get information
# oc get identity
htpasswd:foo htpasswd foo foo c805cab7-57c8-11e5-bfbe-fa163e7a4b21

# oc get users
foo c805cab7-57c8-11e5-bfbe-fa163e7a4b21 htpasswd:foo
  • Step 2 - Delete only the user
# oc delete user foo
user "foo" deleted
  • Step 3 - Delete the identity
# oc delete identity htpasswd:foo
  • Step 4 - Login successfully
# oc login -u foo

Root Cause

The identity Provider, in /etc/openshift/master/master-config.yaml was changed after the user was initially created. This causes the system to see the user as a different person entirely that just shares the same username, but has a different identity, so it adds a 2 to help the users differentiate the two accounts.

Diagnostic Steps

Running the following commands as system:admin can help identify the issue.

oc get users

oc get identity

With getting the users you should see a different identity associated with the original user and the user2 which is simply confirmed with getting the identity.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments