# Error importing existing Openshift cluster

**URL:** <https://forums.suse.com/t/error-importing-existing-openshift-cluster/40318>\
**Category:** SUSE Rancher Prime\
**Created:** [March 21, 2023, 3:49pm UTC](https://forums.suse.com/t/error-importing-existing-openshift-cluster/40318 "2023-03-21T15:49:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xtnVL](https://avatars.discourse-cdn.com/v4/letter/x/e36b37/32.png) [@xtnVL](https://forums.suse.com/u/xtnVL)\
**Post date:** [March 21, 2023, 3:49pm UTC](https://forums.suse.com/t/error-importing-existing-openshift-cluster/40318/1 "2023-03-21T15:49:56Z")

</div>

Hello!

I’m trying to import a previously existing OpenShift cluster into my Rancher server, I created the cluster in the rancher GUI and curled/applied the import manifest into OpenShift logged as a cluster-admin user.

The cluster is stuck in pending and the cattle-cluster-agent pod is in CrashLoopBackOff STATUS, the pod logs read as follows:

```auto
time="2023-03-21T15:22:28Z" level=info msg="Listening on /tmp/log.sock"

time="2023-03-21T15:22:28Z" level=info msg="Rancher agent version v2.7.1 is starting"

time="2023-03-21T15:22:28Z" level=info msg="EnsureSecretForServiceAccount: waiting for secret [cattle-dockercfg-sqwlk] to be populated with token"

time="2023-03-21T15:22:36Z" level=fatal msg="looking up cattle-system/cattle ca/token: failed to ensure secret for service account cattle-system/cattle: error ensuring secret for service account [cattle-system:cattle]: timed out waiting for the condition"

```

---

<div class="post-metadata">

**Author:** ![dibanegu](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/dibanegu/32/10401_2.png) [@dibanegu](https://forums.suse.com/u/dibanegu)\
**Post date:** [September 18, 2023, 10:02am UTC](https://forums.suse.com/t/error-importing-existing-openshift-cluster/40318/2 "2023-09-18T10:02:15Z")

</div>

In my case i have to add manualy the secret to SA  
cattle-impersonation-u-j#####

- name: cattle-impersonation-u-jlogocxdxy-token-####

Thats happend with the cattle SA to and the solution its the same  
add the secret\*

```auto
secrets:
- name: cattle-token-#####*
- name: cattle-dockercfg-####

```

RancherV:v2.7.5  
OC Version:v1.24.6
