narrow-author-62348
05/05/2020, 10:37 AMexport const secret = k8s.core.v1.Secret.get("kubeconfig", "admin/kubeconfig-for-admin");
export const k8sProvider = new k8s.Provider("new-cluster", {
kubeconfig: secret.stringData["kubeconfig"],
});
But the k8sProvider
does not work as expected, I couldn’t see the kubeconfig field in it. Does anyone know why it is that? I’m pretty sure the kubeconfig was stored as base64 string in the admin/kubeconfig-for-admin
.breezy-cricket-40277
05/05/2020, 11:23 AMglamorous-waitress-52533
05/05/2020, 3:08 PMglamorous-waitress-52533
05/05/2020, 3:24 PMlimited-rainbow-51650
05/05/2020, 3:32 PMpulumi login file://<path>
, does <path>
represent an absolute path, or can I use a relative one too? If so, how? I tried file:./state
, but I only get .pulumi
folder created in my current folder, not in a state
subfolder.wonderful-dog-9045
05/05/2020, 4:30 PMpulumi up
is getting stuck at the preview stage, even if the pulumi program is empty:
$ pulumi up
Previewing update (dev):
Type Name Plan
pulumi:pulumi:Stack empirica-base-dev
System Messages
^C received; cancelling. If you would like to terminate immediately, press ^C again.
^C received; terminating
^C received; terminating
It won't even terminate with Ctrl+C.
How do I troubleshoot this?
I did try reinstalling pulumi. Also tried creating a new stack. Still fails.wonderful-zoo-8760
05/05/2020, 5:57 PMaloof-engine-23345
05/05/2020, 6:27 PMaloof-engine-23345
05/05/2020, 6:27 PMgentle-soccer-81698
05/05/2020, 7:23 PMdependsOn
flag in opts=
for the vSphere cluster resource. Looking through the docs that's where I see the flag but I don't see it in vSphere.gentle-soccer-81698
05/05/2020, 7:28 PMbreezy-parrot-63905
05/05/2020, 7:47 PMclever-night-98510
05/05/2020, 10:06 PMdeleteBeforeReplace
doesn't solve the issue.
Here is the index.js code that I'm producing the error with
const aws = require( '@pulumi/aws' );
const awsx = require( '@pulumi/awsx' );
const api = new awsx.apigateway.API( 'some-name', {
routes: [ {
path: '/something',
method: 'POST',
eventHandler: new aws.lambda.CallbackFunction( 'lambda-test', {
memorySize: 128,
callback: ( event ) => {
console.log( event );
},
description: 'Some description',
} ),
} ],
} );
return {
url: api.url,
};
clever-night-98510
05/05/2020, 10:06 PMError creating Lambda function: ResourceConflictException: Function already existHere are relevant log entries from a Pulumi update that shows a ResourceConflictException happens 5 seconds before the successful deployment, possibly suggesting an issue with timeouts and retries.
@timestamp,@message
2020-05-05 18: 07: 15.676, "{""eventVersion"":""1.05"",""userIdentity"":{""type"":""IAMUser"",""principalId"":""AIDA3SNA767QOR3RN3I4Y"",""arn"":""arn:aws:iam::795443460064:user/chad.ort.snopes.local"",""accountId"":""795443460064"",""accessKeyId"":""AKIA3SNA767QJLIPDJSB"",""userName"":""chad.ort.snopes.local""},""eventTime"":""2020-05-05T17:50:10Z"",""eventSource"":""<http://lambda.amazonaws.com|lambda.amazonaws.com>"",""eventName"":""CreateFunction20150331"",""awsRegion"":""us-west-2"",""sourceIPAddress"":""97.114.75.236"",""userAgent"":""aws-sdk-go/1.29.7 (go1.13.8; darwin; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.11+compatible (+<https://www.terraform.io>)"",""requestParameters"":{""functionName"":""lambda-test-2d7ed19"",""runtime"":""nodejs12.x"",""role"":""arn:aws:iam::795443460064:role/lambda-test-f532b55"",""handler"":""__index.handler"",""code"":{},""description"":""write events to queue and return 200"",""timeout"":180,""memorySize"":128,""publish"":false,""environment"":{}},""responseElements"":{""functionName"":""lambda-test-2d7ed19"",""functionArn"":""arn:aws:lambda:us-west-2:795443460064:function:lambda-test-2d7ed19"",""runtime"":""nodejs12.x"",""role"":""arn:aws:iam::795443460064:role/lambda-test-f532b55"",""handler"":""__index.handler"",""codeSize"":7957025,""description"":""write events to queue and return 200"",""timeout"":180,""memorySize"":128,""lastModified"":""2020-05-05T17:50:10.334+0000"",""codeSha256"":""Hcc9msmvBw+tYRsWLEEf1wItAJ6UEbRtCXg6QwD49ds="",""version"":""$LATEST"",""environment"":{},""tracingConfig"":{""mode"":""PassThrough""},""revisionId"":""275fde3f-46de-4790-bd08-90f2be49e309"",""state"":""Active"",""lastUpdateStatus"":""Successful""},""requestID"":""37d15659-0d93-4586-80ba-dfce76c82a94"",""eventID"":""47ff845a-105f-4d51-a06b-5c82bed05e57"",""eventType"":""AwsApiCall"",""recipientAccountId"":""795443460064""}"
2020-05-05 18: 07:10.282, "{""eventVersion"":""1.05"",""userIdentity"":{""type"":""IAMUser"",""principalId"":""AIDA3SNA767QOR3RN3I4Y"",""arn"":""arn:aws:iam::795443460064:user/chad.ort.snopes.local"",""accountId"":""795443460064"",""accessKeyId"":""AKIA3SNA767QJLIPDJSB"",""userName"":""chad.ort.snopes.local""},""eventTime"":""2020-05-05T17:51:04Z"",""eventSource"":""<http://lambda.amazonaws.com|lambda.amazonaws.com>"",""eventName"":""CreateFunction20150331"",""awsRegion"":""us-west-2"",""sourceIPAddress"":""97.114.75.236"",""userAgent"":""aws-sdk-go/1.29.7 (go1.13.8; darwin; amd64) APN/1.0 HashiCorp/1.0 Terraform/0.11+compatible (+<https://www.terraform.io>)"",""errorCode"":""ResourceConflictException"",""errorMessage"":""Function already exist: lambda-test-2d7ed19"",""requestParameters"":{""functionName"":""lambda-test-2d7ed19"",""runtime"":""nodejs12.x"",""role"":""arn:aws:iam::795443460064:role/lambda-test-f532b55"",""handler"":""__index.handler"",""code"":{},""description"":""write events to queue and return 200"",""timeout"":180,""memorySize"":128,""publish"":false,""environment"":{}},""responseElements"":null,""requestID"":""6f0ea757-b48e-4f43-8de2-0d92be3bd2c3"",""eventID"":""a3e9e0ac-643a-41e4-acb4-e26330d9c213"",""eventType"":""AwsApiCall"",""recipientAccountId"":""795443460064""}"
Additional known infoechoing-breakfast-73834
05/06/2020, 12:11 AMflat-mechanic-75334
05/06/2020, 7:54 AMmyContainer.containerLogs.apply(logs => console.log("container logs:", logs));
big-potato-91793
05/06/2020, 1:21 PM@pulumi/kubernetesx
will be upgrading to the last pulumi version? Still depending on pulumi 1.12rhythmic-lawyer-36985
05/06/2020, 2:58 PM./pkg/cmd/pulumi/up.go
but I can't seem to find an example of not using the CLI tool to update/preview -- I was hoping to do it through a non-interactive service.flat-mechanic-75334
05/06/2020, 4:19 PMpulumi destroy
didn’t only delete the service account in question, but also blew away the role assignments from ALL service accounts that had identical role. Am I doing this wrong? Seems quite risky. Here’s the code I used to create the service account and assign the role:
const serviceAccount = new gcp.serviceAccount.Account("myServiceAccount",
{
accountId: SID,
displayName: SNAME,
description: "Service account Created by Pulumi"
}
);
const iam = new gcp.projects.IAMBinding("myBinding",
{
members: [pulumi.interpolate `serviceAccount:${serviceAccount.email}`],
role: "roles/storage.objectViewer",
}
);
adamant-motorcycle-76548
05/06/2020, 5:09 PMBuilding wheels for collected packages: pulumi-aws, grpcio
Running setup.py bdist_wheel for pulumi-aws ... error
Complete output from command /home/ayeste/Documentos/Pulumi/aws-python/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-zkdm1y8t/pulumi-aws/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpqfs9agflpip-wheel- --python-tag cp36:
/usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
warnings.warn(msg)
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: invalid command 'bdist_wheel'
----------------------------------------
Failed building wheel for pulumi-aws
Running setup.py clean for pulumi-aws
Running setup.py bdist_wheel for grpcio ... error
Complete output from command /home/ayeste/Documentos/Pulumi/aws-python/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-zkdm1y8t/grpcio/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpgydsg87cpip-wheel- --python-tag cp36:
Found cython-generated files...
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: invalid command 'bdist_wheel'
----------------------------------------
Failed building wheel for grpcio
Running setup.py clean for grpcio
Failed to build pulumi-aws grpcio
Installing collected packages: protobuf, grpcio, pulumi, arpeggio, attrs, parver, semver, pulumi-aws
Running setup.py install for grpcio ... \
done
Running setup.py install for pulumi-aws ... done
Successfully installed arpeggio-1.9.2 attrs-19.3.0 grpcio-1.28.1 parver-0.3.0 protobuf-3.11.3 pulumi-2.1.0 pulumi-aws-2.2.0 semver-2.9.1
mammoth-caravan-51104
05/06/2020, 5:35 PMvictorious-helmet-11068
05/06/2020, 5:40 PMgifted-restaurant-30072
05/06/2020, 6:53 PMpulumi.Context.ReadResource
but this requires my component resource to embed CustomResourceState
instead of ResourceState
and when calling ReadResource
it produces an error stating there isn't a plugin for the namespace I'm using for my component resource. So, finally, to my question, is there a way to read the outputs of a component resource inside a pulumi program without just parsing the state file directly?gorgeous-engine-88104
05/06/2020, 7:49 PM-v=9
swift-lunch-74411
05/06/2020, 10:04 PMwonderful-dog-9045
05/07/2020, 12:19 PMalert-pencil-7400
05/07/2020, 12:36 PMpackage-385ac3
I could have package-385ac3.zip
(in case with GCP BucketObject
resource)jolly-bear-34819
05/07/2020, 12:39 PMwonderful-dog-9045
05/07/2020, 12:53 PMpulumi up
freezes everytime.
Can someone familiar with go tell me what GetRequiredPlugins
is doing? It seem to be the function that is stuck.
$ pulumi up --logtostderr -v=9
I0507 13:47:42.755386 28275 backend.go:410] found username for access token
I0507 13:47:43.697486 28275 backend.go:410] found username for access token
Previewing update (dev):
I0507 13:47:44.093878 28275 backend.go:410] found username for access token
I0507 13:47:44.093702 28275 backend.go:887] Stack dev being updated to version 1
I0507 13:47:44.476166 28275 plugins.go:76] gatherPluginsFromProgram(): gathering plugins from language host
I0507 13:47:44.476447 28275 plugins.go:426] GetPluginPath(language, nodejs, <nil>): found on $PATH /home/gsuess/.pulumi/bin/pulumi-language-nodejs
I0507 13:47:44.476491 28275 plugin.go:83] Launching plugin 'nodejs' from '/home/gsuess/.pulumi/bin/pulumi-language-nodejs' with args: 127.0.0.1:39367
I0507 13:47:44.553950 28275 langruntime_plugin.go:170] langhost[nodejs].GetPluginInfo() executing
I0507 13:47:44.554275 28275 langruntime_plugin.go:83] langhost[nodejs].GetRequiredPlugins(proj=leaderboard,pwd=/home/gsuess/meteor-leaderboard,program=.) executing
Type Name Plan
pulumi:pulumi:Stack leaderboard-dev
System Messages
^C received; cancelling. If you would like to terminate immediately, press ^C again.
^C received; terminating
I've tried to isolate the problem, but could not bisect it (seems to be very prone to some cache somewhere).
Related thread about past attempts to get this problem isolated here: https://pulumi-community.slack.com/archives/C84L4E3N1/p1588696231371300
Any help would be really appreciated. Can't figure this one out so far.ancient-megabyte-79588
05/07/2020, 2:41 PM