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

AWS integrations removal with metricstreams is not working #388

Open
sorpa opened this issue Aug 29, 2022 · 2 comments
Open

AWS integrations removal with metricstreams is not working #388

sorpa opened this issue Aug 29, 2022 · 2 comments

Comments

@sorpa
Copy link

sorpa commented Aug 29, 2022

When trying to remove AWS integration which has metricstreams enabled it fails. See following output

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

Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.

Enter a value: yes

module.splunk_apm_eu_north_1.signalfx_aws_integration.aws_myteam: Destroying... [id=FTgZvMGAAAA]
module.splunk_apm_eu_north_1.signalfx_aws_integration.aws_myteam: Destruction complete after 0s
module.splunk_apm_eu_north_1.signalfx_aws_external_integration.aws_myteam_extern: Destroying... [id=FTgZvMGAAAA]
module.splunk_apm_eu_north_1.signalfx_aws_external_integration.aws_myteam_extern: Still destroying... [id=FTgZvMGAAAA, 10s elapsed]
module.splunk_apm_eu_north_1.signalfx_aws_external_integration.aws_myteam_extern: Still destroying... [id=FTgZvMGAAAA, 20s elapsed]
module.splunk_apm_eu_north_1.signalfx_aws_external_integration.aws_myteam_extern: Still destroying... [id=FTgZvMGAAAA, 30s elapsed]
module.splunk_apm_eu_north_1.signalfx_aws_external_integration.aws_myteam_extern: Still destroying... [id=FTgZvMGAAAA, 40s elapsed]
module.splunk_apm_eu_north_1.signalfx_aws_external_integration.aws_myteam_extern: Still destroying... [id=FTgZvMGAAAA, 50s elapsed]
module.splunk_apm_eu_north_1.signalfx_aws_external_integration.aws_myteam_extern: Still destroying... [id=FTgZvMGAAAA, 1m0s elapsed]
module.splunk_apm_eu_north_1.signalfx_aws_external_integration.aws_myteam_extern: Still destroying... [id=FTgZvMGAAAA, 1m10s elapsed]
module.splunk_apm_eu_north_1.signalfx_aws_external_integration.aws_myteam_extern: Still destroying... [id=FTgZvMGAAAA, 1m20s elapsed]
module.splunk_apm_eu_north_1.signalfx_aws_external_integration.aws_myteam_extern: Still destroying... [id=FTgZvMGAAAA, 1m30s elapsed]
module.splunk_apm_eu_north_1.signalfx_aws_external_integration.aws_myteam_extern: Still destroying... [id=FTgZvMGAAAA, 1m40s elapsed]
module.splunk_apm_eu_north_1.signalfx_aws_external_integration.aws_myteam_extern: Still destroying... [id=FTgZvMGAAAA, 1m50s elapsed]
module.splunk_apm_eu_north_1.signalfx_aws_external_integration.aws_myteam_extern: Still destroying... [id=FTgZvMGAAAA, 2m0s elapsed]

│ Error: Error waiting for integration FTgZvMGAAAA state for use_metric_streams_sync to become disabled: unexpected state 'CANCELLATION_FAILED', wanted target ', DISABLED'. last error: %!s()

@sorpa
Copy link
Author

sorpa commented Aug 29, 2022

workaround is to check the integration id from splunk apm gui and run direct curl first to "CANCELLING" and then after some time "DISABLED" to same integration metricStreamsSyncState.
curl -XPUT 'https://api.splunkamp.com/v2/integration/XXXDDDDD' -H 'accept: application/json, text/plain, /' -H 'x-sf-token: XXXXDDDDYYYY' -H 'content-type: application/json' --data-raw '{"regions" : [ "eu-north-1" ], "name": "accountname", "pollRate": 300000, "importCloudWatch": true, "logsSyncState": "DISABLED", "metricStreamsSyncState": "CANCELLING"}'
After that you can remove the integration with terraform.

@navtej-splunk
Copy link

@sorpa,
Thanks a lot for reporting the issue. Can you help in providing additional information such as specific steps taken and any relevant configurations?
Rest assured that we are committed to resolving this issue and appreciate your cooperation in providing more details. We are committed in resolving this issue and appreciate your cooperation in providing more details.
Thank You!

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

No branches or pull requests

3 participants