vultr / rancher-ui-driver-vultr

Vultr options when used as a Rancher Node Template
Apache License 2.0
3 stars 1 forks source link

Rancher 2.7.6 - Failed to find driver in archive. #5

Closed ScionOfDesign closed 10 months ago

ScionOfDesign commented 1 year ago

Describe the bug I am extremely happy that Vultr is now making drivers for Rancher (Maybe even a VKE Engine driver eventually?)

However, when I follow the instructions to try adding the node driver to my Rancher instance, I get the following error:

[ERROR] error syncing 'nd-thsnk': handler node-driver-controller: failed to find driver in archive. There must be a file of form docker-machine-driver-*, requeuing

To Reproduce Steps to reproduce the behavior:

  1. Go to Cluster Management -> Drivers -> Node Drivers
  2. Add the driver based on the provided configuration.
  3. Observe that it gets stuck on "Downloading"
  4. See error in the Rancher pod logs.

Expected behavior I expected the driver to download and become active as expected.

Config Here is my API output:

{
"actions": {
"activate": "…/v3/nodeDrivers/nd-thsnk?action=activate",
"deactivate": "…/v3/nodeDrivers/nd-thsnk?action=deactivate"
},
"active": true,
"addCloudCredential": false,
"annotations": { },
"baseType": "nodeDriver",
"builtin": false,
"checksum": "",
"created": "2023-08-31T06:33:49Z",
"createdTS": 1693463629000,
"creatorId": "user-7xhdx",
"description": "",
"externalId": "",
"id": "nd-thsnk",
"labels": {
"cattle.io/creator": "norman"
},
"links": {
"exportYaml": "…/v3/nodeDrivers/nd-thsnk/exportyaml",
"remove": "…/v3/nodeDrivers/nd-thsnk",
"self": "…/v3/nodeDrivers/nd-thsnk",
"update": "…/v3/nodeDrivers/nd-thsnk"
},
"name": "",
"state": "downloading",
"status": {
"appliedChecksum": "",
"appliedDockerMachineVersion": "",
"appliedURL": "",
"conditions": [ 2 items
{
"status": "Unknown",
"type": "Downloaded"
},
{
"status": "Unknown",
"type": "Installed"
}
],
"type": "/v3/schemas/nodeDriverStatus"
},
"transitioning": "yes",
"transitioningMessage": "",
"type": "nodeDriver",
"uiUrl": "https://sjc1.vultrobjects.com/rancher-ui/component.js",
"url": "https://github.com/vultr/docker-machine-driver-vultr/archive/refs/tags/v2.0.0.tar.gz",
"uuid": "59d2247e-875b-422a-a47f-7a7b4fee9f4a",
"whitelistDomains": [ 2 items
"api.vultr.com",
"sjc1.vultrobjects.com"
]
}

Rancher Server:

Please let me know if there is anything I can do to solve this issue.

happytreees commented 10 months ago

I apologize, this was a typo in the readme. For Rancher to be able to download the driver it has to be a direct link to the binary. I have updated that.