-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrating existing stack using pulumi docker 3.1.0 to 4.0.1 fails with error: expected '::' in provider reference ''
#563
Comments
Thank you for reporting! Could you help us out here with a bit of a more detailed repro (GitHub gist or repo is ideal)? Curious whether any resource options are used on the Image resource etc. Custom first-class provider perhaps?
|
I also had to delete the v3 image and then recreate it with v4. v3 Image definition: const dockerImage = new docker.Image('project-app', {
imageName: `eu.gcr.io/project/app:latest`,
build: {
context: '../container/',
dockerfile: './Dockerfile',
},
}) For what it's worth, the diff is v3 Image
v4 Image
|
Hi @briandestura - I have successfully reproduced this with 3.1.0 --> 4.0.0 as well as 3.6.1 --> 4.0.0. Thank you for flagging this!
UPDATE We did alias the old resource URN with exactly this scenario in mind; so it appears this is a real bug that should not occur. Please stay tuned for a real fix. I believe removing the old Image resource from your stack file via pulumi state delete or alternately via pulumi stack export/import (details below) and re-running Details for resolutionvia state delete
via stack import/export
{
"urn": "urn:pulumi:dev::docker::docker:image:Image::my-image",
"custom": false,
"type": "docker:image:Image",
"outputs": {
"baseImageName": "gsaenger/demo-image:latest",
"digest": "gsaenger/demo-image:latest-9e5aea46035631f0d0a9b681eb72f427289bf467f3f1dde3c816980639cabe5e",
"id": "gsaenger/demo-image:latest-9e5aea46035631f0d0a9b681eb72f427289bf467f3f1dde3c816980639cabe5e",
"imageName": "gsaenger/demo-image:latest-9e5aea46035631f0d0a9b681eb72f427289bf467f3f1dde3c816980639cabe5e",
"registryServer": "docker.io"
},
"parent": "urn:pulumi:dev::docker::pulumi:pulumi:Stack::docker-dev"
},
|
Migration guide updated here: https://github.com/pulumi/pulumi-docker/releases/tag/v4.0.0 |
Thank you @guineveresaenger ! Also apologies @t0yv0 , got busy with personal stuff so didn't have time to add a detailed repro |
Update - I discovered there was an easier workaround via pulumi state delete which allows you to remove individual resources from a stack a bit more easily than manually editing a JSON file 🎉. See edit above. |
Final update: I spoke with my colleague @Frassle and this turns out to be a bug in the Pulumi engine. I have filed an issue there. Once a fix is made and released, all you will need for a seamless upgrade will be to update your pulumi version. I will leave this issue open but blocked on Pulumi engine work. Please use the workarounds described in the meantime. |
We have a fix via pulumi/pulumi#12561. On your next pulumi version upgrade, the pulujmi-docker upgrade should work as expected. |
What happened?
I have a stack that has images built using pulumi docker v3.1.0. Ive done the changes to migrate to v4.1.0 and tried to update my stack, but I get this error:
Running just
pulumi preview
raises the same error message. From a slack conversation I've got to know it's got something to do with v3 not requiring providers for docker images.A workaround is to delete those images from the statefile and rebuild
Expected Behavior
V4 release notes suggest code changes are all that's needed so was expecting it to work outright
Steps to reproduce
pulumi refresh
Output of
pulumi about
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).
The text was updated successfully, but these errors were encountered: