Replacement has incorrect status messages #2761
Labels
area/await-logic
kind/bug
Some behavior is incorrect or out of spec
resolution/fixed
This issue was fixed
What happened?
I observe that Pulumi emits incorrect status messages when doing a replacement of a Kubernetes resource. In particular, the last message pertaining to the "replacement" object (as it is created) is later shown on the "original" object (as it is deleted).
Example
For example, observe the erroneous "Waiting" messages in the following sequence. Note that I am using
--non-interactive
for clarity, and that Pulumi is using delete-after-replace semantics in this example.Output of
pulumi about
Additional context
I believe that the root cause is related to the fact that the "original" object and "replacement" object have the same resource URN. As the CLI emits a log line for each engine event, it repeats the most recent diagnostic message for the associated resource. The "replacement" object's await logic produces the diagnostic messages, but the "original" object doesn't produce any diagnostic message and so the last message of the former object is repeated.
Two fixes come to mind:
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: