Skip to content

Commit

Permalink
Remove the system:openshift:openshift-authenticator csr
Browse files Browse the repository at this point in the history
Looks like after the cert rotation
`system:openshift:openshift-authenticator` csr is not recreated and
causing issue for auth operator. As a workaround we need to manually
delete it so new csr is generated with updated cert info.

- https://bugzilla.redhat.com/show_bug.cgi?id=1978193
  • Loading branch information
praveenkumar committed Jul 28, 2021
1 parent 7e78f95 commit e400623
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions snc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ fi
# Wait for install to complete, this provide another 30 mins to make resources (apis) stable
${OPENSHIFT_INSTALL} --dir ${INSTALL_DIR} wait-for install-complete ${OPENSHIFT_INSTALL_EXTRA_ARGS}

# Remove the openshift-authenticator CSR to force a certificate regeneration
# BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1978193
retry ${OC} delete csr system:openshift:openshift-authenticator

# Set the VM static hostname to crc-xxxxx-master-0 instead of localhost.localdomain
HOSTNAME=$(${SSH} core@api.${CRC_VM_NAME}.${BASE_DOMAIN} hostnamectl status --transient)
${SSH} core@api.${CRC_VM_NAME}.${BASE_DOMAIN} sudo hostnamectl set-hostname ${HOSTNAME}
Expand Down

0 comments on commit e400623

Please sign in to comment.