-
Notifications
You must be signed in to change notification settings - Fork 53
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
Update replacing compute instance doesn't maintain instance group membership #284
Comments
So... 2 years later and some change we got hit with the exact same issue again - Is there anyone even working on this? All bugs I've reported since I've started using Pulumi with GCP are still open.. |
I tested this with the following code and its still broken at of 8.7.0, I swapped hostname. I get a update in preview but not in up.
Code:
|
Pulumi About:
|
Hi @rshade , it seems that in preview instance.selfLink was unknown so that indicated a preview diff, but during up this unknown resolved to the same value as before, resulting in no changes. CC @VenelinMartinov this is an interesting illustration of a recent conversation we had, on how bridge preview diff has to guess if something is going to be a replacement or not, in the case of an unknown. It appears the bridge makes a guess that this will be a replacement, even in cases where subsequent up is not a replacement. |
I'm assuming here that |
Yes, it will be the same |
Cross-linking pulumi/pulumi#838 - this would have been really useful here. |
I'm not sure if |
@VenelinMartinov pulumi up has |
Thanks for pointing out @c2h5oh. I believe The expected behaviour either way in this case is that the resources should have been replaced. |
pulumi v1.10.0
pulumi-gcp v2.2.0
Repro:
Expected:
replacement instance is part of instance group
Actual:
replacement instance is not part of instance group
pulumi refresh followed by pulumi up fixes the issue (once you export stack, edit, import to deal with #273 ...)
The text was updated successfully, but these errors were encountered: