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 when pipeline is deleted in UI: "Error: NoSuchEntityException" #57

Open
max-rocket-internet opened this issue Oct 22, 2020 · 7 comments

Comments

@max-rocket-internet
Copy link

When I run terraform:

$ terraform apply
module.locust_pipeline.null_resource.render_pipeline: Refreshing state... [id=4622595260021803334]
module.locust_pipeline.spinnaker_pipeline.locust: Refreshing state... [id=110bac63-4bc2-4de6-86a2-067c0d156960]
spinnaker_pipeline.load_test["dms"]: Refreshing state... [id=230a5a70-290e-4e28-8f12-acf5969b116f]
spinnaker_pipeline.load_test["mas"]: Refreshing state... [id=0fd3373e-29d7-4a57-86e8-4b9f92eb6ca9]
spinnaker_pipeline.load_test["dps"]: Refreshing state... [id=380d199b-3425-4d26-8771-98856a6ad15b]
...
spinnaker_pipeline.load_test["opa-oma-cs"]: Refreshing state... [id=863e7992-e58e-49e6-a7f8-c45c20083c1f]

Error: NoSuchEntityException

I don't know how to fix this. I can't run terraform at 🤔

@max-rocket-internet
Copy link
Author

Ah, this happens when the pipeline is deleted in the UI and then terraform apply is rerun. In this scenario the provider should just recreate the pipeline.

@max-rocket-internet
Copy link
Author

To fix this you need to remove the pipeline from the state terraform state rm module.locust_pipeline.spinnaker_pipeline.locust

@max-rocket-internet max-rocket-internet changed the title "Error: NoSuchEntityException" Bug when pipeline is deleted in UI: "Error: NoSuchEntityException" Oct 22, 2020
@max-rocket-internet
Copy link
Author

Still an issue 🙂

@bilenkis
Copy link

Vote up, really annoying

@himanhsugusain
Copy link

Fixed this in my fork
gusain-himanshu/terraform-provider-spinnaker#1

@zzzzzsy
Copy link

zzzzzsy commented Feb 20, 2025

A target plan helped me work around this issue. Hopefully, it will help someone else as well.

@himanhsugusain
Copy link

A target plan helped me work around this issue. Hopefully, it will help someone else as well.

Can you elaborate a bit more here.

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

4 participants