Error in driver during machine creation: Error launching instance: InvalidParameterValue: Invalid value 'r5.12xlarge ' for InstanceType.

Follow
Table of Contents

Issue

When trying to deploy a node in AWS EC2 on Rancher v1.6.x, you recieve an error like Error in driver during machine creation: Error launching instance: InvalidParameterValue: Invalid value 'r5.12xlarge\t' for InstanceType.

Pre-requisites

  • Running Rancher UI v1.6.50 or earlier (included by default in Rancher v1.6.28 or earlier)
  • Trying to deploy an AWS EC2 node of size r5.12xlarge, r5.24xlarge, r5a.12xlarge, or r5a.24xlarge

Resolution

The fix is in rancher ui v1.6.51 which is introduced in Rancher v1.6.29. Upgrade to v1.6.29 or later to deploy EC2 nodes of the affected sizes. It is advised to upgrade to the latest stable Rancher v1.6.x and migrate to latest stable Rancher v2.x

Further reading

The issue is a trailing tab in the name of the instance type. The commit that solves the issue can be seen here: https://github.com/rancher/ui/commit/5709e997aea949f41e299db8f519dc046d731cb9 rancher/ui v1.6.51: https://github.com/rancher/ui/tree/v1.6.51/app/components/machine rancher/rancher v1.6.29: https://github.com/rancher/rancher/releases/tag/v1.6.29

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.