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

Not able to update size of a server_instance #2830

Closed
D0wn3r opened this issue Dec 2, 2024 · 3 comments
Closed

Not able to update size of a server_instance #2830

D0wn3r opened this issue Dec 2, 2024 · 3 comments
Assignees
Labels
instance Instance issues, bugs and feature requests

Comments

@D0wn3r
Copy link

D0wn3r commented Dec 2, 2024

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

Terraform v1.9.6
on linux_amd64
+ provider registry.terraform.io/hashicorp/archive v2.6.0
+ provider registry.terraform.io/hashicorp/local v2.5.2
+ provider registry.terraform.io/scaleway/scaleway v2.47.0

Affected Resource(s)

  • scaleway_instance_server

Terraform Configuration Files

resource "scaleway_instance_server" "worker" {
  for_each = var.worker_servers
  type = each.value.instance_type
  image = each.value.image
  ip_id = scaleway_instance_ip.public_ip[each.key].id
  name = each.key
  tags = each.value.tags
  root_volume {
    volume_type = each.value.volume_type
    size_in_gb = each.value.volume_size
  }
  private_network {
    pn_id  = scaleway_vpc_private_network.vpc.id
  }
}

Expected Behavior

I expect it to replace the volume size with the new one

Actual Behavior

When I do
terraform plan -target=scaleway_instance_server
it show me this:

Terraform will perform the following actions:

  # scaleway_instance_server.worker["xxxxxx"] must be replaced
-/+ resource "scaleway_instance_server" "worker" {
      - additional_volume_ids            = [] -> null
      + bootscript_id                    = (known after apply)
      + cloud_init                       = (known after apply)
      - enable_ipv6                      = false -> null
      ~ id                               = "fr-par-1/xxxx" -> (known after apply)
      - ip_ids                           = [] -> null
      + ipv6_address                     = (known after apply)
      + ipv6_gateway                     = (known after apply)
      ~ ipv6_prefix_length               = 0 -> (known after apply)
        name                             = "xxxx"
      ~ organization_id                  = "xxxxxx" -> (known after apply)
      + placement_group_policy_respected = (known after apply)
      + private_ip                       = (known after apply)
      ~ project_id                       = "xxxx" -> (known after apply)
      ~ public_ip                        = "xxxxx" -> (known after apply)
      ~ routed_ip_enabled                = true -> (known after apply)
      ~ security_group_id                = "xxxxx" -> (known after apply)
        tags                             = [
            "worker",
            "work_hours_only",
        ]
      ~ user_data                        = {
          - "ssh-host-fingerprints" = xxxxx
        } -> (known after apply)
      ~ zone                             = "xxxxx" -> (known after apply)
        # (7 unchanged attributes hidden)

      ~ private_network {
          ~ mac_address = "xxxxx" -> (known after apply)
          ~ pnic_id     = "xxxx" -> (known after apply)
          ~ status      = "available" -> (known after apply)
          ~ zone        = "xxxx" -> (known after apply)
            # (1 unchanged attribute hidden)
        }

      ~ public_ips (known after apply)
      - public_ips {
          - address = "xxxxxxxxx" -> null
          - id      = "xxxxx" -> null
        }

      ~ root_volume {
          ~ name                  = "Ubuntu 24.04 Noble Numbat" -> (known after apply)
          ~ sbs_iops              = 0 -> (known after apply)
          ~ size_in_gb            = 20 -> 50 # forces replacement
          ~ volume_id             = "xxxxxxxxx" -> (known after apply)
            # (3 unchanged attributes hidden)
        }
    }
@Laure-di Laure-di added the instance Instance issues, bugs and feature requests label Dec 3, 2024
@Laure-di
Copy link
Contributor

Laure-di commented Dec 5, 2024

Hello,

Currently we do not support the update of the size of volumes. I have just created a ticket to add this feature
#2838.

Thank you for your feedback,

Have a nice day,

@Laure-di Laure-di closed this as completed Dec 5, 2024
@D0wn3r
Copy link
Author

D0wn3r commented Dec 5, 2024

#2745
This fix was not for that ?

@Laure-di
Copy link
Contributor

Hello @D0wn3r,

The issue has been fix with #2842

Thanks you so much for the report,

Have a nice day,

Laure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
instance Instance issues, bugs and feature requests
Projects
None yet
Development

No branches or pull requests

3 participants