Open 0x00ace opened 1 month ago
This is strange, what if you create a node group manualy without Terraform (with the CLI)?
I think that this is the problem of API calls used by Terraform. Terraform to update node count in default pool use PATCH /v1/clusters/{cluster_ident}
which raises an exception in magnum-cluster-api NotImplementedError() in https://github.com/vexxhost/magnum-cluster-api/blob/21fc4a8b365e93a708e57da89d65d2f10b620610/magnum_cluster_api/driver.py#L272
A fast workaround would be to implement this part as something like this
worker_ng = cluster.default_ng_worker
if worker_ng is not None:
self._update_nodegroup(context, cluster, worker_ng)
else:
raise NotImplementedError()
Does anyone have a working example for terraform with magnum-cluster-api?
So far, I have been managing clusters with the OpenStack client. Creating clusters/nodegroups and resizing with the OpenStack client works fine. But with terraform I have some issues.
I have tried the following terraform manifest:
With this manifest kubernetes cluster created successfully.
But when I'm trying to change node count 2 - > 3 cluster transits to UPDATE_FAILED state.
In magnum logs I have the following:
After some investigation, I found, that resizing with terraform is different from
openstack coe cluster resize mycluster 2
command:Also, I have tried to leverage the node group functionality but without success.
The node group is visible as CREATE_IN_PROGRESS, but nothing happened on the CAPI/CAPO side:
Configuration:
I tried to find any issues with such cases but with no luck.
So, my question is it a bug or a feature? Or could someone point me to a related issue on github?