-
Notifications
You must be signed in to change notification settings - Fork 51
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
Unable to create regional cluster #124
Comments
I'm also using location in node pool, and that seems to error as well on new gcp.container.NodePool(
name,
{
cluster: this.instance.name,
project,
location,
nodeCount: (1 + nodeLocations.length) * initialNodeCount,
nodeConfig: {
machineType: config.get('machineType') || 'n1-standard-1', // prod: n1-standard-2
oauthScopes: [
'https://www.googleapis.com/auth/devstorage.read_only',
'https://www.googleapis.com/auth/logging.write',
'https://www.googleapis.com/auth/monitoring.write',
'https://www.googleapis.com/auth/pubsub',
'https://www.googleapis.com/auth/service.management.readonly',
'https://www.googleapis.com/auth/servicecontrol',
'https://www.googleapis.com/auth/trace.append',
'https://www.googleapis.com/auth/monitoring',
'https://www.googleapis.com/auth/cloud-platform',
'https://www.googleapis.com/auth/devstorage.full_control',
'https://www.googleapis.com/auth/sqlservice.admin',
'https://www.googleapis.com/auth/userinfo.email',
],
},
management: {
autoRepair: true,
autoUpgrade: true,
},
},
{ parent: this, dependsOn: [this.instance] },
)
|
I can't reproduce either of these using the latest plugins. I suspect what is happening is that you have both the latest and an older version of the plugin installed, and the older one is getting selected. This manifests as a runtime error since the TypeScript is compiled against the intended target. In other words, it would be resolved by pulumi/pulumi#2389. To work around this in the short term, I think all components throughout the entire stack need to be using the latest version of the GCP provider SDK. |
Confirmed the cause is pulumi/pulumi#2389, thank you. From slack
|
Reopening because I am unable to workaround the plugin versioning. After a rebuild with initial yarn, the plugins are confirmed good:
Then I ran
I then notice that
With the result:
What is bizarre is this originally worked briefly (a few hours), then stopped working. Now I cannot use the code written for the regional cluster even after clearing plugins/rebuilding node_modules. |
@rosskevin Could you share what is in the |
Yes, it has it. The stack was up previously, I've just been omitting/adding back the cluster. "manifest": {
"time": "2019-04-03T15:23:13.414846-05:00",
"magic": "4c9e3af950abf0bb06246576f7dddc0b09f84e5b925a0be3d28d7b943f3cfe41",
"version": "v0.17.4",
"plugins": [
{
"name": "nodejs",
"path": "/usr/local/bin/pulumi-language-nodejs",
"type": "language",
"version": "0.17.4"
},
{
"name": "gcp",
"path": "/Users/kross/.pulumi/plugins/resource-gcp-v0.18.0/pulumi-resource-gcp",
"type": "resource",
"version": "0.18.0"
}
]
}, I'll try a full destroy and see if that allows me to workaround for the moment. |
Okay - sounds like this is directly caused by pulumi/pulumi#2576 then. |
I hand edited manifest and imported, I'll see if that works |
Hand edit + import then |
Can you provide some more details on this? In particular, if you run |
I deleted the stack already. It is clear that hand editing the manifest + import had no impact. The next |
Right - the log gathering is to understand why that happened. I'll try to work on a repro, but what is supposed to happen is that the plugins required by the language host (i.e. the ones in your package.json) override everything else for the purposes of new resources. |
I think I'm having the same/similar issue as @rosskevin . I was getting messages about 'region' being deprecated. So I went through our cluster code, updated references to region to the new location. Running preview against 3 different stacks gives me 3 different outcomes. One, no changes. Another 'missing key' like @rosskevin . Yet another, it wants to replace a node pool and shows the change as deleting the region attribute and adding the location. |
Current state of my stack:
After reviewing the stack file there is a reference to gcp provider 0.16.6. So I removed it - why not. Imported the file then it does this:
Changed it back but this is making migrating the provider untenable. |
I was looking for an old issue I created and bumped into this one and saw it was open. I'm no longer having problems with regional clusters so I'm going to close this for now, until I bump into it again. pulumi/pulumi#2576 is resolved so perhaps that was indeed the cause. |
@pulumi/gcp@0.18.2
This should be possible based on #119
The text was updated successfully, but these errors were encountered: