Skip to content
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

Pulumi refresh fails when plugin version is not found #2669

Closed
dbilleci-lightstream opened this issue Apr 23, 2019 · 0 comments · Fixed by #2773
Closed

Pulumi refresh fails when plugin version is not found #2669

dbilleci-lightstream opened this issue Apr 23, 2019 · 0 comments · Fixed by #2773
Assignees
Milestone

Comments

@dbilleci-lightstream
Copy link

Posting per request of @swgillespie - this seems to be related to #2608 but he asked that I post a new issue because there can probably be better handling for "refresh".

Here's the gist:

  • We use Pulumi in our pipelines, and it's self-contained in a docker container.
  • Generally only the latest versions of Pulumi and the Azure and AWS plugins are installed in the container
  • We have a "nonstandard" package.json configuration as described in package.json not found by CLI if above local folder #2608 basically at the top level of our pulumi projects (/data/pulumi/package.json in the below example) we have one package.json that has the dependencies for all stacks
  • In our pipelines, we currently run a "refresh" step before the "destroy" step when we go to teardown to correct drift
  • With the above context, the refresh fails

Here is some output showing the issue:

deploy@3085431aa1b4:/data$ pulumi plugin ls
NAME   KIND      VERSION  SIZE    INSTALLED  LAST USED
aws    resource  0.18.1   160 MB  n/a        48 seconds ago
azure  resource  0.18.0   135 MB  n/a        48 seconds ago

TOTAL plugin cache size: 294 MB
deploy@3085431aa1b4:/data$ cd pulumi/infra/azure/api/

deploy@3085431aa1b4:/data/pulumi/infra/azure/compute-studio$ pulumi version
v0.17.5

deploy@3085431aa1b4:/data/pulumi/infra/azure/api$ pulumi stack select MyCompany/api-u-prod-weu
Logging in using access token from PULUMI_ACCESS_TOKEN

deploy@3085431aa1b4:/data/pulumi/infra/azure/api$ pulumi refresh --yes
Previewing refresh (MyCompany/api-u-prod-weu):
error: could not load plugin for azure provider 'urn:pulumi:api-u-prod-weu::api::pulumi:providers:azure::default': no resource plugin 'azure-v0.16.7' found in the workspace or on your $PATH, install the plugin using `pulumi plugin install resource azure v0.16.7`

Let me know if you need any more information.
Thanks!

@lukehoban lukehoban added this to the 0.23 milestone Apr 24, 2019
ellismg added a commit that referenced this issue May 24, 2019
Like `preview`, `update` and `destroy` we should ensure any plugins
that are listed in the snapshot are present.

Fixes #2669
@ellismg ellismg assigned ellismg and unassigned swgillespie May 24, 2019
ellismg added a commit that referenced this issue May 24, 2019
Like `preview`, `update` and `destroy` we should ensure any plugins
that are listed in the snapshot are present.

Fixes #2669
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants