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

Service returned with error: (UNPROCESSABLE_ENTITY) 422 Unprocessable Entity #9

Open
antonionovaesjr opened this issue Jun 17, 2024 · 1 comment
Assignees
Labels
bug Something isn't working database

Comments

@antonionovaesjr
Copy link

antonionovaesjr commented Jun 17, 2024

O que acontece ?

Ao tentar aumentar o tamanho e um tipo ao disco de um DBaaS, o terraform ocorre o erro:

│ Error: Unable to create mgc_dbaas_instances
│ 
│   with module.dbaas_example_ne.mgc_dbaas_instances.this[0],
│   on ../../main.tf line 1, in resource "mgc_dbaas_instances" "this":
│    1: resource "mgc_dbaas_instances" "this" {
│ 
│ Service returned with error: (UNPROCESSABLE_ENTITY) 422 Unprocessable Entity - Instance: 'db-example-ne-52eJ1WvZ' already exists (request-id: 94d9c529-56ad-4a6c-b692-590072cb6312)

O que é esperado ?

Modificar o banco de dados, focando no volume

Como reproduzir

Criar um banco de dados com 20 GB
Mudar de 20 para 30
Dar apply

provider "mgc" {
  alias  = "ne"
  region = "br-ne1"
}

resource "random_string" "sufix_name" {
  length  = 8
  special = false
}

resource "random_string" "password" {
  length  = 8
  special = false
}

module "dbaas_example_ne" {
  providers = {
    mgc = mgc.ne
  }
  source               = "../../"
  name                 = "db-example-ne-${random_string.sufix_name.id}"
  flavor               = "cloud-dbaas-bs1.medium"
  engine               = "mysql-8.0"
  user                 = "admin"
  password             = random_string.password.id
  replicas_enable      = true
  volume_size          = 30
  backup_enable        = true
  bastion_enable       = false
  bastion_ssh_key_name = var.ssh_key_name
}
@lfpicoloto1
Copy link
Collaborator

Me parece ser o mesmo problema que #6
Vamos investigar.

@lfpicoloto1 lfpicoloto1 added the bug Something isn't working label Jul 17, 2024
@lfpicoloto1 lfpicoloto1 added this to the Basic Infrastructure Connected milestone Jul 24, 2024
@lfpicoloto1 lfpicoloto1 self-assigned this Jul 24, 2024
@lfpicoloto1 lfpicoloto1 moved this to Backlog in Terraform Roadmap Jul 24, 2024
@lfpicoloto1 lfpicoloto1 removed this from the Basic Infrastructure Connected milestone Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working database
Projects
None yet
Development

No branches or pull requests

2 participants