Open driedel1987 opened 2 years ago
This may be related to the following issue upstream https://github.com/digitalocean/terraform-provider-digitalocean/issues/782
We will monitor the upstream repo to see if there are any changes here
@stack72 in Issue https://github.com/digitalocean/terraform-provider-digitalocean/issues/782 @scotchneat provided information that this is an issue where Pulumi needs to have a could you please look into this?
Thank you
any updates here ?
Seems also to be related to this issue --> https://github.com/digitalocean/terraform-provider-digitalocean/issues/869
Unfortunately, it looks like this issue hasn't seen any updates in a while. If you're still encountering this problem, could you leave a quick comment to let us know so we can prioritize it?
This is still a problem and not working. The workaround from terraform i think is not usable in the context of pulumi .
Thank you for letting us know - we will add this issue to our planning.
I think there is an issue if you create an app with the "https://www.pulumi.com/registry/packages/digitalocean/api-docs/app/#create" operation if you include env variables.
If you create the app all is fine and working. But if you try to update the App with the same method, Pulumi recognizes changes and wants to update the app envs.
I did the following:
The NewApp creates all the environments variables for the app - all fine. But if i started the update process pulumi wants to change all the environment variables and if i execute this it runs in a timeout. What i understand is, that digital ocean app has another env order as pulumi. On creation the order is different as on update. And pulumi wants to order it new. Digital Ocean is ready after 1 sec because he sees no change and pulumi is doing update and after not sure a lot of minutes running in an timeout. i will attach some screen for explanation - i think this is not so easy to understand
Here some pictures for explanation:
First picture is a part of my array for the env in code for creation and updating. Second picture is the created order in digital ocean after creation process. Third picture is what pulumi wants to do on update (order new) and runs in a timeout.
I discussed this already in slack. Here is the conversation:
David Riedel Gestern um 16:00 Uhr Currently i am doing an preview operation in the automation api(golang) and the preview shows a diff for the image tag as expected: ~ tag : "0.0.12" => "0.0.11" but result is at the end is Ressource "1 unchanged" why is pulumi not recognizing this change and is redeploying the app on Up call? iam trying to update an app (https://www.pulumi.com/registry/packages/digitalocean/api-docs/app/#look-up) 9 Antworten
Fraser Waters vor 18 Stunden Are you trying to lookup and change a resource in one update?
David Riedel vor 15 Stunden i will try to explain what iam doing :leichtes_lächeln: Creating new app with the golang automation api (https://www.pulumi.com/registry/packages/digitalocean/api-docs/app/#example-usage) including a lot of env app variables and health check configuration. I am assigning the app configuration to a pulumi.RunFunc variable and executing it later with Up. Before iam doing newstackinlinesource and setconfig. After the creation i am storing the cloud ressourc id in a postgres db for accessing later. This all is working as expected and i am getting a helathy app including a state in pulumi dashboard.
David Riedel vor 15 Stunden ah and thank you ahead for taking time for my problem :leichtes_lächeln:
tenwit vor 13 Stunden It sounds like you have different chunks of code to manage one resource: one chunk if you cannot find it (new) and one chunk if you can (update). Is that right?
tenwit vor 13 Stunden That is an imperative solution, but Pulumi is declarative and does not work that way. Just use the "new" chunk. Don't look up the existing resource. Pulumi figures out that the resource already exists, and just updates the bits that need to change.
David Riedel vor 1 Stunde thanks :leichtes_lächeln: I tried this before my get solution. But there was one problem. The NewApp creates all the environments variables for the app - all fine. But if i started the update process pulumi wants to change all the environment variables and if i execute this it runs in a timeout. What i understand is, that digital ocean app has another env order as pulumi. On creation the order is different as on update. And pulumi wants to order it new. Digital Ocean is ready after 1 sec because he sees no change and pulumi is doing update and after not sure a lot of minutes running in an timeout. i will attach some screen for explanation - i think this is not so easy to understand
David Riedel vor 1 Stunde First picture is my array for the env in code for creation and updating (it is the same function as you told), Second picture is the created order in digital ocean after creation process, Third pricture is what pulumi wants to do on update (order new) - runs in an timeout 3 Dateien Bildschirmfoto vom 2022-05-25 10-01-38.png
Bildschirmfoto vom 2022-05-25 10-01-12.png
Bildschirmfoto vom 2022-05-25 10-01-55.png
David Riedel vor 1 Stunde this seems like a bug or?
Fraser Waters vor 40 Minuten That sounds like a normalisation bug. Can you raise an issue at https://github.com/pulumi/pulumi-digitalocean/issues