# Problem creating cluster - RKE

**URL:** <https://forums.suse.com/t/problem-creating-cluster-rke/20103>\
**Category:** SUSE Rancher Prime\
**Created:** [April 20, 2021, 12:31pm UTC](https://forums.suse.com/t/problem-creating-cluster-rke/20103 "2021-04-20T12:31:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![roeybl](https://avatars.discourse-cdn.com/v4/letter/r/e274bd/32.png) [@roeybl](https://forums.suse.com/u/roeybl)\
**Post date:** [April 20, 2021, 12:31pm UTC](https://forums.suse.com/t/problem-creating-cluster-rke/20103/1 "2021-04-20T12:31:32Z")

</div>

Hi,

I am using rancher 2.5.7 and trying to add a new cluster (i already have 2 working clusters)  
I’m using existing VM with ubuntu 20.04 and Docker version 19.03.15, build 99e3ed8919  
im using RKE template with kubernetes 1.19.9-rancher1-1  
after i run the install commend (node role etcd and control plane) i see that the node is Waiting to register with Kubernetes  
when i check the docker logs in the node i get-  
level=warning msg=“Error while getting agent config: invalid response 500: [nodes.management.cattle.io](http://nodes.management.cattle.io) “c-5z6hd/m-fda58d2806cd” not found”  
and sometimes i get -  
“the object has been modified; please apply your changes to the latest version and try again”

is there any solution ?

thnx

---

<div class="post-metadata">

**Author:** ![jamrizzi](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/jamrizzi/32/2256_2.png) [@jamrizzi](https://forums.suse.com/u/jamrizzi)\
**Post date:** [May 1, 2021, 10:01am UTC](https://forums.suse.com/t/problem-creating-cluster-rke/20103/2 "2021-05-01T10:01:57Z")

</div>

I am getting this same error when I try and register a new node to the digitial ocean cluster. I’m using the DigitalOcean RKE, but I am trying to register an existing brand new node. My script that I execute is the following . . .

```auto
      echo `curl "https://$RANCHER_HOSTNAME/v3/clusterRegistrationTokens/$CLUSTER_ID":system \
        -H 'Content-Type: application/json' \
        -H "Authorization: Basic $(echo -n $RANCHER_ACCESS_KEY:$RANCHER_SECRET_KEY | base64 | tr -d '\n\r')" | \
        jq -r '.nodeCommand' | sed 's/^sudo //g'` --worker --taints entrypoint=true:PreferNoSchedule | tee /tmp/rancher_node_register.sh
      sh /tmp/rancher_node_register.sh

```

It registers with rancher for a split second and then dissapears. I was able to take the following screenshot before it dissapeared.

 ![Screenshot from 2021-05-01 04-54-35](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/b/bc2dbbfd538bb5183294af03c94bb15afc95af92.png)

Here is the error I am getting from the rancher-agent container.

 ![Screenshot from 2021-05-01 04-58-59](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/4/431fd13a875242789b5f4f31d89ae190e2b90052.png)

I am using the following . . .

| Rancher | v2.5.7 |
| --- | --- |
| User Interface | v2.5.6 |
| Helm | v2.16.8-rancher1 |
| Machine | v0.15.0-rancher52 |

The droplet I am trying to register is Ubuntu 18.04

---

<div class="post-metadata">

**Author:** ![jamrizzi](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/jamrizzi/32/2256_2.png) [@jamrizzi](https://forums.suse.com/u/jamrizzi)\
**Post date:** [May 1, 2021, 11:14am UTC](https://forums.suse.com/t/problem-creating-cluster-rke/20103/3 "2021-05-01T11:14:26Z")

</div>

So, it turns out that my issue was because Rancher deletes the nodes I try to register because they are not part of the cloud provider. Am am moving this to a new top at the link below.

 ![Screenshot from 2021-05-01 06-09-05](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/b/b2469082d04b2096b26ab67e30df87bd75e87671.png)

> [@Deleting node because it does not exist in the cloud provider](http://forums.suse.com/t/deleting-node-because-it-does-not-exist-in-the-cloud-provider/20187):
>
> Sometime I need to add custom nodes to a cloud provided cluster, however rancher deletes them when I try to add them.

---

<div class="post-metadata">

**Author:** ![spatialy](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/spatialy/32/2664_2.png) [@spatialy](https://forums.suse.com/u/spatialy)\
**Post date:** [June 21, 2021, 2:32am UTC](https://forums.suse.com/t/problem-creating-cluster-rke/20103/4 "2021-06-21T02:32:03Z")

</div>

Hi @jamrizzi were you able to get a workaround?

---

<div class="post-metadata">

**Author:** ![jamrizzi](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/jamrizzi/32/2256_2.png) [@jamrizzi](https://forums.suse.com/u/jamrizzi)\
**Post date:** [July 14, 2021, 9:45am UTC](https://forums.suse.com/t/problem-creating-cluster-rke/20103/5 "2021-07-14T09:45:43Z")

</div>

I was not. I would have to fork the code and modify it to prevent this from happening.

---

<div class="post-metadata">

**Author:** ![Arthur\_Chan](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/arthur_chan/32/9014_2.png) [@Arthur\_Chan](https://forums.suse.com/u/Arthur_Chan)\
**Post date:** [September 26, 2022, 6:51pm UTC](https://forums.suse.com/t/problem-creating-cluster-rke/20103/6 "2022-09-26T18:51:44Z")

</div>

I’ve ran into this issue as well, but my situation may have been different. Two things I noticed:

- Rancher does not appear to set up the nodes until etcd, controlplane _and_ workers are present.
- When I used 22.04 I got the same error messages that you guys got, but it might be that the error messages were a red herring, because I was able to spin up a different cluster with 22.04.

I used Rancher 2.5.9.
