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

[Bug]: after using v.5.48.00 (last version was 5.47.00), tags and tags_all on aws_fsx_ontap_storage_virtual_machine resource are recreated systematically, comportment that we haven't before with v. 5.47.00 #37346

Closed
philippecotter opened this issue May 8, 2024 · 5 comments · Fixed by #37353
Assignees
Labels
bug Addresses a defect in current functionality. regression Pertains to a degraded workflow resulting from an upstream patch or internal enhancement. service/fsx Issues and PRs that pertain to the fsx service.
Milestone

Comments

@philippecotter
Copy link

philippecotter commented May 8, 2024

Terraform Core Version

1.5.1

AWS Provider Version

5.48.00,5.47.00

Affected Resource(s)

aws_fsx_ontap_storage_virtual_machine

Expected Behavior

Using the freshly upgraded provider (5.48.00), we normally have no change to push
and we systematically have in place update of the TAGS and TAGS_ALL values.
We use the resource's TAGS and we never had this comportment until passing the the 5.48.00 version.

Actual Behavior

Now, systematically, TF server want to add TAGS and TAGS_ALL entries....
It's like the provider is not able to read the existing TAGS in AWS

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

resource "aws_fsx_ontap_storage_virtual_machine" "svm_xxxxxxxxxxxxx" {
#
  file_system_id = aws_fsx_ontap_file_system.xxxxxxxx.id
  name           = "svm_xxxxxxxx"
#
  root_volume_security_style = "UNIX"
#
  svm_admin_password = var.xxxxxxxxxxxxxxxxxxxxxxxxxxx
#
  active_directory_configuration {
    netbios_name = "xxxxxxxxxxxx"
    self_managed_active_directory_configuration {
      dns_ips     = xxxxxxxxxxxxxxx
      domain_name = var.SELF_MANAGED_AD_DNS
      password    = var.SELF_MANAGED_AD_PWD
      username    = var.SELF_MANAGED_AD_USERNAME
      file_system_administrators_group = var.SELF_MANAGED_AD_GROUP
      organizational_unit_distinguished_name = var.SELF_MANAGED_AD_OU
    }
  }

  tags = {
    Name              = "xxxxxxxxxxxxx"
    Platform          = "FILESHARE-FSXN"
    Environment       = "Production"
    ServiceMapping    = "xxxxxxxxxxxxxxxxxx"
    Application       = "xxxxxxxxxxxxxxxxxxe"
    Description       = "xxxxxxxxxxxxx"
    coverage          = "xxxxxxxxxxxxxxxx"
    Maison            = "xxxxxxxxxxxxxxxxx"
    PowerPolicy       = "xxxxxxxxxxxxxxx"
    INC               = "xxxxxxxxxxxxxxxxxxxxx"
    InternetPublished = "No"
  }

  lifecycle {
    ignore_changes = [
      svm_admin_password,
      active_directory_configuration
      ]
  }

  depends_on = [
    aws_fsx_ontap_file_system.xcft00103
  ]
}

Steps to Reproduce

just un-fix the version of the provider (so using the latest one, v. 5.48.00)

Debug Output

  # aws_fsx_ontap_storage_virtual_machine.svm_xxxxxxxxxx2 will be updated in-place
  ~ resource "aws_fsx_ontap_storage_virtual_machine" "svm_xxxxxxxxx" {
        id                         = "svm-xxxxxxxxxxxxxxxxxxxxxxxxxxx"
        name                       = "svm_xxxxxxxxxxx"
      ~ tags                       = {
          + "Application"       = "Cloud Files Share"
          + "Description"       = "xxxxxxx"
          + "Environment"       = "Production"
          + "INC"               = "xxxxxxxxxxx"
          + "InternetPublished" = "No"
          + "Maison"            = "xxxxxxxxxxxxx"
          + "Name"              = "svm_xxxxxxxxxxxxxxx"
          + "Platform"          = "xxxxxxxxxxxxxxxx"
          + "PowerPolicy"       = "24/7"
          + "ServiceMapping"    = "xxxxxxxxxxxx"
          + "coverage"          = "24/7"
        }
      ~ tags_all                   = {
          + "Application"       = "Cloud Files Share"
          + "Description"       = "xxxxxxx"
          + "Environment"       = "Production"
          + "INC"               = "xxxxxxxxxxx"
          + "InternetPublished" = "No"
          + "Maison"            = "xxxxxxxxxxxxx"
          + "Name"              = "svm_xxxxxxxxxxxxxxx"
          + "Platform"          = "xxxxxxxxxxxxxxxx"
          + "PowerPolicy"       = "24/7"
          + "ServiceMapping"    = "xxxxxxxxxxxx"
          + "coverage"          = "24/7"
        }
        # (7 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

Plan: 0 to add, 81 to change, 0 to destroy.

Panic Output

Important Factoids

no

References

No response

Would you like to implement a fix?

None

@philippecotter philippecotter added the bug Addresses a defect in current functionality. label May 8, 2024
Copy link

github-actions bot commented May 8, 2024

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • 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.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@github-actions github-actions bot added the service/fsx Issues and PRs that pertain to the fsx service. label May 8, 2024
@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label May 8, 2024
@justinretzolk justinretzolk added regression Pertains to a degraded workflow resulting from an upstream patch or internal enhancement. and removed needs-triage Waiting for first response or review from a maintainer. labels May 8, 2024
@terraform-aws-provider terraform-aws-provider bot added the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label May 8, 2024
@ewbankkit ewbankkit self-assigned this May 8, 2024
@ewbankkit
Copy link
Contributor

Relates #36511.

We are seeing this problem in our CI:

=== RUN   TestAccFSxONTAPStorageVirtualMachine_tags
=== PAUSE TestAccFSxONTAPStorageVirtualMachine_tags
=== CONT  TestAccFSxONTAPStorageVirtualMachine_tags
    ontap_storage_virtual_machine_test.go:209: Step 1/4 error: Check failed: Check 2/3 error: aws_fsx_ontap_storage_virtual_machine.test: Attribute 'tags.%' expected "1", got "0"
--- FAIL: TestAccFSxONTAPStorageVirtualMachine_tags (2759.81s)

Copy link

github-actions bot commented May 8, 2024

Warning

This issue has been closed, meaning that any additional comments are hard for our team to see. Please assume that the maintainers will not see them.

Ongoing conversations amongst community members are welcome, however, the issue will be locked after 30 days. Moving conversations to another venue, such as the AWS Provider forum, is recommended. If you have additional concerns, please open a new issue, referencing this one where needed.

@github-actions github-actions bot added this to the v5.49.0 milestone May 8, 2024
@github-actions github-actions bot removed the prioritized Part of the maintainer teams immediate focus. To be addressed within the current quarter. label May 10, 2024
Copy link

This functionality has been released in v5.49.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

Copy link

github-actions bot commented Jun 9, 2024

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 9, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. regression Pertains to a degraded workflow resulting from an upstream patch or internal enhancement. service/fsx Issues and PRs that pertain to the fsx service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants