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

Service level resource not getting create if deleted from UI

Open shivanand7283 opened this issue 2 years ago • 1 comments

Hi there,

Thank you for opening an issue. In order to better assist you with your issue, we kindly ask to follow the template format and instructions. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests only. General usage questions submitted as issues will be closed and redirected to New Relic's Explorers Hub https://discuss.newrelic.com/c/build-on-new-relic/developer-toolkit.

Please include the following with your bug report

:warning: Important: Failure to include the following, such as omitting the Terraform configuration in question, may delay resolving the issue.

  • [ ] Your New Relic provider configuration (sensitive details redacted)
  • [ ] A list of affected resources and/or data sources
  • [ ] The configuration of the resources and/or data sources related to the bug report (i.e. from the list mentioned above)
  • [ ] Description of the current behavior (the bug)
  • [ ] Description of the expected behavior
  • [ ] Any related log output

Terraform Version

Run terraform -v to show the version. If you are not running the latest version of Terraform, please upgrade because your issue may have already been fixed.

version = "2.47.1"

Affected Resource(s)

Please list the resources as a list, for example:

  • newrelic_service_level

If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.

Terraform Configuration

Please include your provider configuration (sensitive details redacted) as well as the configuration of the resources and/or data sources related to the bug report.

# 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.

Actual Behavior

What actually happened? We have created the resource first using the entityGuid = 'NDE3MDU3fEFQTXxBUFBMSUNBVElPTnwzNDYxNzUyOQ' ,however we want to change this to appName during this change the _entityGuid resource is deleted via UI, when we made the changes to appName in TF code its failing with below error

Error: err: SLI with id=417057:333088:NDE3MDU3fEFQTXxBUFBMSUNBVElPTnw1NTc1MzkxOTE not found.

Expected Behavior

What should have happened? The resource should have created even if we changes to _entityGuid to appName in TF code.

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply

Debug Output

Please provider a link to a GitHub Gist containing the complete debug output: https://www.terraform.io/docs/internals/debugging.html. Please do NOT paste the debug output in the issue; just paste a link to the Gist.

Panic Output

If Terraform produced a panic, please provide a link to a GitHub Gist containing the output of the crash.log.

Important Factoids

Are there anything atypical about your accounts that we should know? For example: Running in EC2 Classic? Custom version of OpenStack? Tight ACLs?

References

Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:

  • GH-1234

shivanand7283 avatar Jul 28 '22 08:07 shivanand7283

Thanks @shivanand7283 We'll see if we can reproduce the issue.

kidk avatar Aug 01 '22 11:08 kidk

same issue

rinov avatar Aug 25 '22 11:08 rinov

We are able to recreate the issue. Working on fixing the issue.

NSSPKrishna avatar Aug 25 '22 16:08 NSSPKrishna

Fixed in next release

kidk avatar Aug 26 '22 13:08 kidk