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

public_ip: fail to reassign Server #358

Open
teacherSsamko opened this issue Aug 21, 2023 · 1 comment
Open

public_ip: fail to reassign Server #358

teacherSsamko opened this issue Aug 21, 2023 · 1 comment

Comments

@teacherSsamko
Copy link
Contributor

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 CLI and Terraform Ncloud Provider Version

Terraform version : Terraform v1.5.5 on darwin_arm64
Ncloud Provider version : v2.3.18

Affected Resource(s)

  • ncloud_public_ip

Terraform Configuration Files

Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key: https://keybase.io/hashicorp
...

resource "ncloud_server" "server" {
  subnet_no                 = ncloud_subnet.test.id
  name                      = "my-tf-server"
  server_image_product_code = "SW.VSVR.OS.LNX64.UBNTU.SVR2004.B050"
  server_product_code = data.ncloud_server_products.spec.server_products[0].product_code
  login_key_name            = ncloud_login_key.loginkey.key_name
  init_script_no = ncloud_init_script.init.init_script_no
}

resource "ncloud_public_ip" "test" {
  server_instance_no = ncloud_server.server.instance_no
}

Debug Output

ncloud_public_ip.test: Modifying... [id=19086888]
╷
│ Error: Status: 400 Bad Request, Body: {
│   "responseError": {
│     "returnCode": "1080103",
│     "returnMessage": "Unassigned Authorized IP."
│   }
│ }
│ 
│   with ncloud_public_ip.test,
│   on main.tf line 77, in resource "ncloud_public_ip" "test":
│   77: resource "ncloud_public_ip" "test" {
│ 
╵

Panic Output

Expected Behavior

When I modify server that needs to be replaced, 'public_ip' should be assigned to the new server

Actual Behavior

Fail to be assigned to new server

Steps to Reproduce

  1. 'modify 'product_code' inside server'
  2. terraform apply

Important Factoids

References

  • #0000
@djdhyun-gglabs
Copy link

I'm suffering from this issue as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants