terraform-provider-google icon indicating copy to clipboard operation
terraform-provider-google copied to clipboard

Error updating workbench labels in VertexAI

Open alfonsozamorac opened this issue 1 year ago • 2 comments

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 me too comments, 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.
  • If an issue is assigned to the modular-magician user, it is either in the process of being autogenerated, or is planned to be autogenerated soon. If an issue is assigned to a user, that user is claiming responsibility for the issue. If an issue is assigned to hashibot, a community member has claimed the issue already.

Terraform Version

Terraform v1.2.9 hashicorp/google v5.14.0

Affected Resource(s)

google_notebooks_runtime

Terraform Configuration Files

terraform {
  required_version = ">= 0.15"
  required_providers {
    google = {
      source  = "hashicorp/google"
      version = "~> 5.0"
    }
  }
}

resource "google_notebooks_runtime" "runtime" {
  name     = "notebooks-runtime"
  location = "europe-west4"
  project  = "MyProject"
  access_config {
    access_type   = "SINGLE_USER"
    runtime_owner = "XXXXX"
  }
  virtual_machine {
    virtual_machine_config {
      machine_type = "n1-standard-1"
      data_disk {
        initialize_params {
          disk_size_gb = "50"
          disk_type    = "PD_STANDARD"
        }
      }
    }
  }
  labels = {
    "provider" = "go",
    "region" = "euw4",
    "environment" = "tst",
    "app" = "myapp",
  }
}

Expected Behavior

Labels can be updated

Actual Behavior

│ Error: Error waiting for Updating Runtime: Error code 3, message: labels can't be updated │ │ with google_notebooks_runtime.runtime, │ on main.tf line 16, in resource "google_notebooks_runtime" "runtime": │ 16: resource "google_notebooks_runtime" "runtime" {

Steps to Reproduce

  1. terraform apply
  2. Modify tags value: labels = { "provider" = "go", "region" = "euw4", "environment" = "tst", "app" = "newapp", }
  3. terraform apply

b/323334345

alfonsozamorac avatar Jan 31 '24 10:01 alfonsozamorac

I can repro the issue. This appears to be an API bug.

labels is part of Instance which is supposed to be updatable specified in updateMask

edwardmedia avatar Jan 31 '24 18:01 edwardmedia

Any update on this @edwardmedia ?

prabhu34 avatar May 10 '24 05:05 prabhu34