This message was deleted.
# general
s
This message was deleted.
b
That shouldn't happen 😕 @incalculable-sundown-82514 just fixed a similar sounding issue last week, I wonder if it's the same problem. @microscopic-florist-22719 may also know.
w
@tall-librarian-49374 Can you share details of the
panic
you see on Update? I think I can suggest a way to get unblocked, but would help to know exactly what panic you are hitting.
t
Actually I just found out that
pulumi refresh
error was valid: there were duplicate bucket objects created - same name but different postfix IDs.
Now
refresh
succeeds, and then
update
succeeds too
Not sure how I got duplicated objects, but they were created by pulumi at some point. Deleted duplicates manually.
That's on GCP btw
b
Were they marked pending delete? That can happen if a replacement operation gets interrupted. That's the bug Sean just fixed (relaxed the assertion). I don't know if we cut a new CLI with the fix yet, but we should.
t
Umm... they looked normal 🙂 and I believe I interrupted Function creation
w
Yes - this means there were pending deletes - and @tall-librarian-49374 is hitting a few of this issues linked from https://github.com/pulumi/pulumi/issues/1645.
t
The object I deleted was 2 days old
w
The workaround here is to do the following: 1.
pulumi stack export > stack.json
2. Edit
stack.json
to remove the entries in the
resources
list that are marked
"delete": true
and make note of the IDs of anything you delete like this. 3. Run
pulumi sack import < stack.json
This process will make Pulumi "forget" about these resources, and then you will want to clean them up in the GCP console. Of course, we should have never let you get in this state, and that's what the above issue and it's sub-issues are tracking.
t
Ah, now I remember I've seen some "delete" resources popping up in console earlier. Not in the last runs though... That's probably related anyway.
Thanks for your help!
i
Sorry that you’ve run into this! Pending deletes are a big pain point in our system and I’m tracking a bunch of usability issues in the issue Luke linked
t
@white-balloon-205 While you are here 🙂 Is there no way to create python Function in GCP through pulumi? I don't see the support in terraform, so probably the answer is no.
i
It should always be OK to delete any resource with the “delete”: true property in a stack. You’ll have to delete those manually in the GCP console, but they have already been replaced by other resources.
@tall-librarian-49374 The 0.14.3 CLI that just got released has a fix for the particular issue you ran into
w
Is there no way to create python Function in GCP through pulumi? I don't see the support in terraform, so probably the answer is no.
Yes - I believe this is correct. Python support in Google Cloud Functions is still in beta, which may be part of the reason it is not (yet) in the terraform provider.
t
Would be cool to have some sort of generic way to get/set "custom" properties not known to pulumi. Otherwise the latest tech will often be blocked by release cadence. Not sure if that's feasible in any way.