Open jkodroff opened 1 year ago
Hi @jkodroff - the error message suggests to me that your cluster got deleted somehow?
Alright, I got my DO credits set up.
I don't see the Error deleting Database DB:
error.
However, it appears there's a bug in the READ method for Database; when we invoke Refresh after deleting the grocery-list
DB we see the following:
{
"method": "/pulumirpc.ResourceProvider/Read",
"request": {
"id": "ae3a74f2-8e70-493f-9114-373c09470236/database/grocery-list",
"urn": "urn:pulumi:dev::digitalocean-345::digitalocean:index/databaseDb:DatabaseDb::db",
"properties": {
"clusterId": "ae3a74f2-8e70-493f-9114-373c09470236",
"id": "ae3a74f2-8e70-493f-9114-373c09470236/database/grocery-list",
"name": "grocery-list"
},
"inputs": {
"__defaults": [],
"clusterId": "ae3a74f2-8e70-493f-9114-373c09470236",
"name": "grocery-list"
}
},
"response": {
"id": "ae3a74f2-8e70-493f-9114-373c09470236/database/grocery-list",
"properties": {
"clusterId": "ae3a74f2-8e70-493f-9114-373c09470236",
"id": "ae3a74f2-8e70-493f-9114-373c09470236/database/grocery-list",
"name": "grocery-list"
},
"inputs": {
"__defaults": [],
"clusterId": "ae3a74f2-8e70-493f-9114-373c09470236",
"name": "grocery-list"
}
},
"metadata": {
"kind": "resource",
"mode": "client",
"name": "digitalocean"
}
}
which is false since the DB got deleted.
What happened?
A DB that has been deleted outside of Pulumi does not show as deleted after running
pulumi refresh
and requires stack surgery in order to reconcile.Steps to reproduce
Run this code:
Delete the DB from the DO console: https://cloud.digitalocean.com
Make some changes and run
pulumi refresh -y && pulumi up -y
Expected Behavior
DB should be recreated.
Actual Behavior
An error like the following:
Output of
pulumi about
No response
Additional context
No response
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).