Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes via Rancher API call are not persistet #105

Open
mschickervxob opened this issue Nov 5, 2020 · 0 comments
Open

Changes via Rancher API call are not persistet #105

mschickervxob opened this issue Nov 5, 2020 · 0 comments

Comments

@mschickervxob
Copy link

I want to change a node template via API, because I run into a issue creating node that the machine driver complains about
"Error setting machine configuration from flags provided: --hetzner-image and --hetzner-image-id are mutually exclusive; Timeout waiting for ssh key"

{
"annotations": {
"ownerBindingsCreated": "true"
},
"baseType": "nodeTemplate",
"cloudCredentialId": null,
"created": "2020-11-04T08:56:05Z",
"createdTS": 1604480165000,
"creatorId": "user-8b49n",
"driver": "hetzner",
"engineInstallURL": "https://releases.rancher.com/install-docker/19.03.sh",
"engineRegistryMirror": null,
"hetznerConfig": {
"apiToken": "REDACTED",
"existingKeyId": "0",
"existingKeyPath": "",
"image": "ubuntu-18.04",
"imageId": "168855",
"networks": null,
"serverLocation": "nbg1",
"serverType": "cpx41",
"usePrivateNetwork": false,
"userData": "REDACTED"
},
"id": "cattle-global-nt:nt-pt7qm",
"labels": {
"cattle.io/creator": "norman"
},
"links": {
"nodePools": "…/v3/nodePools?nodeTemplateId=cattle-global-nt%3Ant-pt7qm",
"nodes": "…/v3/nodes?nodeTemplateId=cattle-global-nt%3Ant-pt7qm",
"remove": "…/v3/nodeTemplates/cattle-global-nt:nt-pt7qm",
"self": "…/v3/nodeTemplates/cattle-global-nt:nt-pt7qm",
"update": "…/v3/nodeTemplates/cattle-global-nt:nt-pt7qm"
},
"name": "CPX41",
"principalId": "local://user-8b49n",
"state": "active",
"transitioning": "no",
"transitioningMessage": "",
"type": "nodeTemplate",
"useInternalIpAddress": true,
"uuid": "b8dfabfc-dc14-4fb0-a436-02dc57e19299"
}

As the driver does not like to have both image and imageId set at the same time I tried to remove the image property in hetznerConfig object. The request looks good. But the answer contains the image set to "ubuntu-18.04" again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant