docker-machine-opennebula
docker-machine-opennebula copied to clipboard
Reprovisioning node with rancher fails with "Error creating machine: Error in driver during machine creation: Multiple resources with that name."
Hi, I'm using this plugin with rancher to create a kubernetes cluster. The creation of a new cluster works without a problem. But if I delete a node from a running cluster, rancher will redeploy a new one with the same name. I suspect that there is somewhere a race condition issue. The old node is not finally deletete in opennebula. Its in SHUTDOWN or EPILOG state and the new node is already created. Below you find the log from rancher. The failing node is called etcd2. The final error is: Error creating machine: Error in driver during machine creation: Multiple resources with that name.
2019/10/16 08:06:44 [INFO] Removing node etcd2 done
2019/10/16 08:06:44 [ERROR] NodeController c-4v52t/m-pbs69 [node-controller] failed with : nodes.management.cattle.io "m-pbs69" not found
2019/10/16 08:06:45 [INFO] Creating jail for c-4v52t
2019/10/16 08:06:45 [INFO] Provisioning node etcd2
2019/10/16 08:06:45 [INFO] [node-controller-docker-machine] Creating CA: /management-state/node/nodes/etcd2/certs/ca.pem
2019/10/16 08:06:46 [INFO] [node-controller-docker-machine] Creating client certificate: /management-state/node/nodes/etcd2/certs/cert.pem
2019/10/16 08:06:47 [INFO] [node-controller-docker-machine] Running pre-create checks...
2019/10/16 08:06:47 [INFO] [node-controller-docker-machine] Creating machine...
2019/10/16 08:06:47 [INFO] [node-controller-docker-machine] (etcd2) Creating SSH key...
2019/10/16 08:06:47 [ERROR] NodeController etcd2 recovered from panic "runtime error: invalid memory address or nil pointer dereference". (err=
2019/10/16 08:06:47 [INFO] [node-controller-docker-machine] (etcd2) Starting VM... 2019/10/16 08:06:49 [INFO] [node-controller-docker-machine] The default lines below are for a sh/bash shell, you can specify the shell you're using, with the --shell flag. 2019/10/16 08:06:49 [INFO] [node-controller-docker-machine] 2019/10/16 08:06:50 [INFO] Generating and uploading node config etcd2 2019/10/16 08:06:50 [ERROR] NodeController c-4v52t/m-p9xbc [node-controller] failed with : Error creating machine: Error in driver during machine creation: Multiple resources with that name.