<@UB8A66MPS> Trying to create a pulumi/gcp@0.18.2 ...
# general
i
@stocky-spoon-28903 Trying to create a pulumi/gcp@0.18.2 regional cluster but encountering:
Copy code
error: gcp:container/cluster:Cluster resource 'production' has a problem: : invalid or unknown key: node_locations
    error: gcp:container/cluster:Cluster resource 'production' has a problem: : invalid or unknown key: location
s
Hmm, that looks like a bug.
i
@stocky-spoon-28903 Is this an easy hotfix? I’m in the eleventh hour, production needs to be up tomorrow (beta starts Friday) - this was my last change.
s
That largely depends whether the bug is in the terraform provider or the mapping - I’ll take a look shortly
Thanks for the repro
@important-leather-28796 can you run:
Copy code
pulumi plugin ls
And post the output?
I can’t repro this - I suspect you have side by side versions of the GCP plugin and the old one is getting selected
i
I’m already using ncu - so all ts dependencies are up to date
something else I need to check? brew?
0.17.4 of brew/pulumi installed
did a
yarn list @pulumi/gcp
and all are 0.18.2
double checking node_modules now
node_modules is up to date @stocky-spoon-28903 - is there somewhere else I need to check versions?
s
pulumi plugin ls
i
wow
s
A good way to find out is to do:
Copy code
pulumi plugin rm --all
i
Copy code
~/p/a/c/infrastructure ❯❯❯ pulumi plugin ls
NAME        KIND      VERSION  SIZE   INSTALLED    LAST USED
gcp         resource  0.18.2   64 MB  1 hour ago   now
gcp         resource  0.18.1   64 MB  1 day ago    now
gcp         resource  0.18.0   64 MB  1 week ago   now
gcp         resource  0.17.1   61 MB  3 weeks ago  now
gcp         resource  0.17.0   61 MB  3 weeks ago  now
gcp         resource  0.16.9   61 MB  4 weeks ago  now
gcp         resource  0.16.8   61 MB  1 month ago  now
kubernetes  resource  0.22.0   45 MB  1 week ago   now
kubernetes  resource  0.21.1   45 MB  1 week ago   now
kubernetes  resource  0.21.0   45 MB  3 weeks ago  now
kubernetes  resource  0.20.4   45 MB  4 weeks ago  now
kubernetes  resource  0.20.2   45 MB  1 month ago  now
random      resource  0.5.1    27 MB  3 weeks ago  now
random      resource  0.5.0    27 MB  3 weeks ago  now
random      resource  0.4.0    28 MB  1 month ago  now
random      resource  0.2.0    35 MB  1 month ago  now

TOTAL plugin cache size: 775 MB
s
Then remove
node_modules
, rerun
npm install
in the program, and then look at
pulumi plugin ls
again
i
ok
all good now, thanks. I added that process to my rebuild script
f
@important-leather-28796 What exactly was the process? Just running
pulumi plugin rm --all
?
f
Got it, thanks. I guess I need to add this to CI until this is fixed
i
yeah, good point, didn’t think about the same on ci
f
It might not matter depending on what your CI tool is
i.e. if it’s installing pulumi from scratch and using a fresh checkout
you might avoid this problem
i
just
pulumi plugin rm --all
before yarn may do it, but maybe not if the package is there and this happens on
postinstall
using circleci but haven’t automated yet. just finishing our production by hand today. Should be in cci tomorrow
f
tbh, this seems like it could be a p0 if people are using CI/CD with pulumi in production
i
somehow the old gcp plugin just appeared again - not sure how, did not re-yarn
Copy code
infrastructure ❯❯❯ pulumi plugin ls                                                                                                                                                                                                                                                          ✘ 255 
NAME        KIND      VERSION  SIZE   INSTALLED       LAST USED
gcp         resource  0.18.2   64 MB  1 hour ago      now
gcp         resource  0.18.0   64 MB  59 minutes ago  now
kubernetes  resource  0.22.0   45 MB  1 hour ago      now
random      resource  0.5.1    27 MB  1 hour ago      now

TOTAL plugin cache size: 199 MB
@stocky-spoon-28903 what would make that happen
s
Some kind of reference somewhere. Do you have a tree of custom packages?
i
I use a common code package, already sure that is the right npm version
I did restart
tsc
there
not sure how that could impact it
oh, I see the timing, it was shortly after initial use
rebuilding now to re-check installed plugins. I assume only pulumi/gcp npm package installs the gcp plugin?
so plugins were good:
Copy code
~/p/advisorIntake ❯❯❯ pulumi plugin ls
NAME        KIND      VERSION  SIZE   INSTALLED       LAST USED
gcp         resource  0.18.2   64 MB  54 seconds ago  now
kubernetes  resource  0.22.0   45 MB  54 seconds ago  now
random      resource  0.5.1    27 MB  54 seconds ago  now
(after yarn)
then on the first
pulumi up
it installed the older plugin:
Copy code
pulumi plugin ls
NAME        KIND      VERSION  SIZE   INSTALLED       LAST USED
gcp         resource  0.18.2   64 MB  1 minute ago    now
gcp         resource  0.18.0   64 MB  13 seconds ago  7 seconds ago
kubernetes  resource  0.22.0   45 MB  1 minute ago    now
random      resource  0.5.1    27 MB  1 minute ago    now
All declared pulumi packages used in both the stack and shared code:
Copy code
"@pulumi/gcp": "^0.18.2",
"@pulumi/kubernetes": "^0.22.0",
"@pulumi/pulumi": "^0.17.4",
"@pulumi/random": "^0.5.1",
c
The only way I was able to workaround my similar issue(linked in the "Version providers" github issue), is to downgrade the cli to 0.17.1 and remove the unnecessary plugins, the automatic plugin install/update was introduced in 0.17.2
i
luke just added a note in the issue, the older version is in the stack export manifest