You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Acquiring state lock. This may take a few moments...
module.ingress.docker_service.this: Creating...
╷
│ Error: Error response from daemon: rpc error: code = AlreadyExists desc = name conflicts with an existing object: service ingress_cloudflare_agent already exists
│
│ with module.ingress.docker_service.this,
│ on .terraform/modules/ingress/modules/cloudflare-gateway/main.tf line 57, in resource "docker_service" "this":
│ 57: resource "docker_service" "this" {
│
╵
Expected Behaviour
The docker_service should be destroyed first and replaced with a new one.
Actual Behaviour
The docker_service is created directly that got name conflict.
Steps to Reproduce
Define service without labels
terraform apply
Add labels to the service
terraform apply
The network is changed triggering this error, too.
Important Factoids
Heavily depend on the customize module which generated a lot of default config.
Some error is triggered by changing the module to add a new optional config, e.g. label
References
N/A
The text was updated successfully, but these errors were encountered:
I would be delighted to know if anyone has a workaround for this. In our CI/CD pipeline, when this occurs, just about the only thing I can do to handle it in an automated way is to destroy everything in the stack and recreate it which feels like an incredibly blunt instrument.
No workaround, but I believe that the reasoning of #152 was only valid for containers, but is not for services as they update labels in-place just fine - at least on the resource level in my case. Maybe using the
Community Note
Terraform (and docker Provider) Version
Affected Resource(s)
docker_service
Terraform Configuration Files
Debug Output
Panic Output
Expected Behaviour
The
docker_service
should be destroyed first and replaced with a new one.Actual Behaviour
The
docker_service
is created directly that got name conflict.Steps to Reproduce
Important Factoids
Heavily depend on the customize module which generated a lot of default config.
References
N/A
The text was updated successfully, but these errors were encountered: