Skip to content

Azure: cloudamqp_extra_disk_size sizing inconsistencies #301

@Bouke

Description

@Bouke

According to pricing - extras:

Extra disk space
Supported tiers are 25, 50, 100, 250, 500, 1000, 2000 (GB)
Azure: 0, 32, 64, 128, 256, 512, 1024, 2048 (GB)

So when I specified:

resource "cloudamqp_instance" "production" {
  ...
  region              = "azure-arm::westeurope"
}
resource "cloudamqp_extra_disk_size" "production" {
  instance_id    = cloudamqp_instance.production.id
  extra_disk_size = 128
}

Imagine my surprise:

cloudamqp_extra_disk_size.production: Creating...

│ Error: resize disk failed: Incorrect disk size value. Available disk sizes are: 0, 25, 50, 100, 250, 500, 1000, 2000

│ with cloudamqp_extra_disk_size.production,
│ on main.tf line 1034, in resource "cloudamqp_extra_disk_size" "production":
│ 1034: resource "cloudamqp_extra_disk_size" "production" {

So I thought; maybe an inconsistency in the API and a mapping applies?

resource "cloudamqp_instance" "production" {
  ...
  region              = "azure-arm::westeurope"
}
resource "cloudamqp_extra_disk_size" "production" {
  instance_id    = cloudamqp_instance.production.id
  extra_disk_size = 100
}

Which got applied... however...

image
image

What state did this get our cluster into?

Metadata

Metadata

Assignees

No one assigned

    Labels

    api or backendNeeds to be addressed in the API backend

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions