https://pulumi.com logo
#general
Title
# general
m

most-mouse-38002

03/02/2023, 10:44 AM
I am not entirely sure how to reproduce yet, but it appears Pulumi has managed to get out of sync with itself (only one github action runs it), and it has the diff for an update wrong. It wants to remove what I want to add, and correctly in AWS the state reflects what Pulumi wanted to remove. Looking at the Pulumi scripts, they clearly agree with me, not Pulumi. I have no idea whats going on, but currently I have a hard time trusting the state managed by Pulumi. Has anyone seen anything similar? Could it potentially be a problem where a github action times out or something and appears to have successfully completed, but the state was not completely transferred to the pulumi service?
e

echoing-dinner-19531

03/02/2023, 11:24 AM
Could it potentially be a problem where a github action times out or something and appears to have successfully completed, but the state was not completely transferred to the pulumi service?
That's possible but the state will record that it started the operation, and warn you about partial operatings if that happens. Can you
pulumi refresh
the stack to see if pulumi thinks it's out of sync with AWS?
m

most-mouse-38002

03/02/2023, 11:30 AM
Not easily, no. I can add a manually trigger to the github action and see, but for now I ended up committing a change that removed the resource, and recreated it again, and it appears to add or remove actions within this AWS policy just fine now. If it happens again, I will do a refresh and perhaps create a bug report / reply in this thread?
e

echoing-dinner-19531

03/02/2023, 11:31 AM
Bug reports are easier to keep track of
m

most-mouse-38002

03/02/2023, 11:32 AM
Sure, I will create one if it happens again and try to reproduce it if possible
I just did not have time for that now, and had to move on without waiting.
Not entirely sure how I should go about reporting this as a bug, because I don’t really understand how I end up in this state. It appears to occur when trying to change IAM policies in AWS after a failed `pulumi up`has occurred before hand.
e

echoing-dinner-19531

03/02/2023, 1:55 PM
Just post as much info as possible, what happened, the output from the
up
that failed, etc. If we need more we can reply to the ticket.
3 Views