-
Notifications
You must be signed in to change notification settings - Fork 2
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
Old builder.name
value is used on preview
, may lead to crash
#279
Comments
@stazz This would be expected behavior since the old builder no longer exists, and you're instructing Pulumi in your Pulumi program to explicitly use the old deleted builder. You will need to update your Pulumi program's |
@stazz elaborating on the above, |
Ah, so I simply just omit the builder name. That works for my usecase with However, I still feel like it is a bug, if I specify correct name for new builder on I think the nature of Docker BuilderX instance is transient, and the provider should be able to handle errors related to them gracefully, especially if end-state is valid (like it is in this case). |
I totally agree! Unfortunately Pulumi has a limitation here where it doesn't actually invoke your program for This comes up frequently in the context of Docker (#121) because these "cloud" resources are actually local and transient. What I think we can do here is treat the builder's 404 as if the resource was deleted, so your subsequent update will re-create it. Edit: although thinking about it more, the image can still exist even if the builder is gone so I'm not sure this makes sense. |
Ahh, okay, that was interesting piece of knowledge that Pulumi doesn't invoke program for those operations! 🤔 Doesn't sound like that root cause will be resolved anytime soon (at least not during As to what to do with this particular issue, that is tricky indeed. I noticed that my |
What happened?
I hae
Image
resource withbuilder.name
property serialized to stack from previous runs. Runningpulumi preview
with different builder name gives this error:error: Preview failed: new builder: no builder "<old builder name>" found
.This happens always if one reuses builder set up by
docker/setup-buildx-action
action, as it produces unique name on every run.Example
Have
Image
resource withbuilder.name
set. Runpulumi up
once, shut down old builder instance, create new one with different name, and then runpulumi preview
.Output of
pulumi about
The output is a bit wonky since I am utilising Pulumi Automation API to run my pipeline, as it is a bit complex (has some other components than just Pulumi), and I am storing the state and encryption key in AWS (not using Pulumi cloud). Furthermore, I am running Pulumi inside Docker container
pulumi/pulumi-nodejs-22:3.134.1
.But the versions in the
package.json
are like this:Additional context
In order to reproduce this, there already needs to be
Image
resource existing in stack with somebuilder.name
value.Then, if a different
builder.name
value is provided on e.g.preview
command, the bug will occur.Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: