damp-honey-93158
05/23/2023, 10:34 PMdamp-honey-93158
05/23/2023, 10:34 PMclean-zoo-67541
05/28/2023, 4:46 PMDownloading plugin: 158.80 MiB / 158.80 MiB [====================] 100.00% XmYs
[resource plugin aws-5.40.0] installing
However, when using the automation api with optup.ProgressStreams
, I'm only getting this output:
@ updating.....................................................................
for as long as it takes plugins to install.
Is there a way to get the same more verbose output with the automation API?
Thanks!modern-dinner-78469
05/30/2023, 2:07 AM"errorMessage": "An error occurred trying to start process 'pulumi' with working directory '/tmp/automation-33ihygga.ijh'. No such file or directory",
"exceptionType": "Win32Exception"
at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at CliWrap.Utils.ProcessEx.Start() in /home/runner/work/CliWrap/CliWrap/CliWrap/Utils/ProcessEx.cs:line 65
at CliWrap.Command.ExecuteAsync(ProcessEx process, CancellationToken cancellationToken) in /home/runner/work/CliWrap/CliWrap/CliWrap/Command.cs:line 372
at Pulumi.Automation.Commands.LocalPulumiCmd.RunAsyncInner(IList`1 args, String workingDir, IDictionary`2 additionalEnv, Action`1 onStandardOutput, Action`1 onStandardError, EventLogFile eventLogFile, CancellationToken cancellationToken)
at Pulumi.Automation.Commands.LocalPulumiCmd.RunAsync(IList`1 args, String workingDir, IDictionary`2 additionalEnv, Action`1 onStandardOutput, Action`1 onStandardError, Action`1 onEngineEvent, CancellationToken cancellationToken)
at Pulumi.Automation.LocalWorkspace.PopulatePulumiVersionAsync(CancellationToken cancellationToken)
at Pulumi.Automation.LocalWorkspace.CreateStackHelperAsync(InlineProgramArgs args, Func`4 initFunc, CancellationToken cancellationToken)
prehistoric-kite-30979
05/30/2023, 5:55 PMwonderful-motorcycle-58005
06/06/2023, 10:45 AM/Users/REDACTED/code/infrastructure/node_modules/@grpc/grpc-js/src/call.ts:81
const error = new Error(message);
^
Error: 14 UNAVAILABLE: No connection established
at callErrorFromStatus (/Users/REDACTED/code/infrastructure/node_modules/@grpc/grpc-js/src/call.ts:81:17)
at Object.onReceiveStatus (/Users/REDACTED/code/infrastructure/node_modules/@grpc/grpc-js/src/client.ts:356:55)
at Object.onReceiveStatus (/Users/REDACTED/code/infrastructure/node_modules/@grpc/grpc-js/src/client-interceptors.ts:455:34)
at Object.onReceiveStatus (/Users/REDACTED/code/infrastructure/node_modules/@grpc/grpc-js/src/client-interceptors.ts:417:48)
at /Users/REDACTED/code/infrastructure/node_modules/@grpc/grpc-js/src/resolving-call.ts:111:24
at processTicksAndRejections (node:internal/process/task_queues:78:11)
for call at
at ServiceClientImpl.makeUnaryRequest (/Users/REDACTED/code/infrastructure/node_modules/@grpc/grpc-js/src/client.ts:326:30)
at ServiceClientImpl.registerResourceOutputs (/Users/REDACTED/code/infrastructure/node_modules/@grpc/grpc-js/src/make-client.ts:189:15)
at /Users/REDACTED/code/infrastructure/node_modules/@pulumi/runtime/resource.ts:971:42
at new Promise (<anonymous>)
at Object.<anonymous> (/Users/REDACTED/code/infrastructure/node_modules/@pulumi/runtime/resource.ts:970:21)
at Generator.next (<anonymous>)
at fulfilled (/Users/REDACTED/code/infrastructure/node_modules/@pulumi/pulumi/runtime/resource.js:18:58)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
error Command failed with exit code 1.
full-dress-10026
06/09/2023, 5:29 PMstack.workspace.installPlugin("aws", "v4.0.0");
full-dress-10026
06/09/2023, 5:51 PMfull-dress-10026
06/10/2023, 8:01 PMicy-controller-6092
06/13/2023, 5:42 AMstack.setConfig
call inside automation api?icy-controller-6092
06/13/2023, 5:51 AMsalmon-account-74572
06/13/2023, 2:16 PMmillions-furniture-75402
06/13/2023, 2:23 PMicy-controller-6092
06/14/2023, 12:47 AMlemon-agent-27707
06/14/2023, 4:22 PMicy-controller-6092
06/16/2023, 1:34 AMlemon-agent-27707
06/20/2023, 4:57 PMalert-zebra-27114
06/26/2023, 7:48 AMlittle-orange-65618
07/01/2023, 2:20 AMtry:
user = Output(ccloud.get_user_output(email=config['email'])).apply(lambda user: user)
id = IdHolder(user.id)
return id
except:
inv = ccloud.Invitation(resource_name=name, email=config['email'], opts=ResourceOptions(retain_on_delete=True))
id = IdHolder(inv.users[0].id)
return id
The use case is, see if a user exists if not send an invite. Wrapping the .get_user_output() call with a Output() finally lets the except block execute, creating the invitation, but then the program stops no other resources are createdclean-zoo-67541
07/05/2023, 7:43 AMSetAppendUserAgent
https://pkg.go.dev/github.com/hashicorp/terraform-exec/tfexec#Terraform.SetAppendUserAgenticy-controller-6092
07/10/2023, 3:06 AMtall-london-69969
07/14/2023, 11:31 PMbumpy-toothbrush-18988
07/17/2023, 2:21 AMPulumi Test Extension Running
extensionHostProcess.js:105
Updating (pulumi-test):
extensionHostProcess.js:105
pulumi:pulumi:Stack test-pulumi-test running
extensionHostProcess.js:105
pulumi:pulumi:Stack test-pulumi-test running error: Unhandled exception: Error: Cannot find module 'prototype'
extensionHostProcess.js:105
@ updating....
extensionHostProcess.js:105
rejected promise not handled within 1 second: Error: Cannot find module 'prototype'
Require stack:
- /Applications/Visual Studio <http://Code.app/Contents/Resources/app/out/bootstrap-amd.js|Code.app/Contents/Resources/app/out/bootstrap-amd.js>
- /Applications/Visual Studio <http://Code.app/Contents/Resources/app/out/bootstrap-fork.js|Code.app/Contents/Resources/app/out/bootstrap-fork.js>
-
extensionHostProcess.js:105
stack trace: Error: Cannot find module 'prototype'
Require stack:
- /Applications/Visual Studio <http://Code.app/Contents/Resources/app/out/bootstrap-amd.js|Code.app/Contents/Resources/app/out/bootstrap-amd.js>
- /Applications/Visual Studio <http://Code.app/Contents/Resources/app/out/bootstrap-fork.js|Code.app/Contents/Resources/app/out/bootstrap-fork.js>
-
at Module._resolveFilename (node:internal/modules/cjs/loader:1010:15)
at Function.s._resolveFilename (node:electron/js2c/utility_init:2:2740)
at Module._load (node:internal/modules/cjs/loader:858:27)
at Function.f._load (node:electron/js2c/asar_bundle:2:13330)
at Function.l._load (/Applications/Visual Studio <http://Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:127:28070|Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:127:28070>)
at Function.p._load (/Applications/Visual Studio <http://Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:127:25404|Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:127:25404>)
at Function.u._load (/Applications/Visual Studio <http://Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:91:22191|Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:91:22191>)
at Module.require (node:internal/modules/cjs/loader:1082:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.get (/Applications/Visual Studio <http://Code.app/Contents/Resources/app/out/bootstrap-amd.js:6:87|Code.app/Contents/Resources/app/out/bootstrap-amd.js:6:87>)
at pulumi-test/node_modules/@pulumi/runtime/closure/createClosure.ts:324:49
at Generator.next (<anonymous>)
at fulfilled (pulumi-test/node_modules/@pulumi/pulumi/runtime/closure/createClosure.js:18:58)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
It appears to be an issue when createClosure.addGlobalInfoAsync is serializing the globals and attempts to access the protocol key on a vscode global "_VSCODE_NODE_MODULES", which Proxies the get lookup to require
#pulumi:createClosure.js
async function addGlobalInfoAsync(key: string) {
const globalObj = (<any>global)[key];
const text = utils.isLegalMemberName(key) ? `global.${key}` : `global["${key}"]`;
if (globalObj !== undefined && globalObj !== null) {
await addEntriesAsync(globalObj, text);
await addEntriesAsync(Object.getPrototypeOf(globalObj), `Object.getPrototypeOf(${text})`);
await addEntriesAsync(globalObj.prototype, `${text}.prototype`);
}
}
#vscode:bootstram-amd.js
const nodeRequire = require;
if (globalThis._VSCODE_NODE_MODULES = new Proxy(Object.create(null), {
get: (e, r) => nodeRequire(String(r))
}), globalThis._VSCODE_PRODUCT_JSON = require("../product.json"), process.env.VSCODE_DEV) try {
const e = require("../product.overrides.json");
globalThis._VSCODE_PRODUCT_JSON = Object.assign(globalThis._VSCODE_PRODUCT_JSON, e)
} catch {}
silly-match-22314
07/20/2023, 1:28 PMclass PulumiProgram:
def __init__(self):
self._work_dir = os.path.join(os.path.dirname(__file__))
self._data = self._load_config_file('defaults.yaml')
self._stack = auto.create_or_select_stack('dev', project_name='test-eks', work_dir=self._work_dir,
program=self._create_resources())
self._stack.set_config('aws:region', auto.ConfigValue('us-east-1'))
self._stack.set_config('values', auto.ConfigValue(json.dumps(self._data.get('values'))))
def preview(self):
self._stack.refresh(on_output=print)
self._stack.preview(on_output=print)
def up(self):
self._stack.refresh(on_output=print)
self._stack.up(on_output=print)
def _load_config_file(self, path: str):
with open(path, "r") as f:
data = yaml.full_load(f)
return data
def _create_resources(self):
chart_values = self._data.get('values')
kube = open("/Users/nathanell/.kube/lab-okta-playground-eks").read()
k8s_provider = k8s.Provider(resource_name="k8s-provider", kubeconfig=pulumi.Output.secret(kube))
ui_app_chart = Release(
"ui-app-micro-fe",
ReleaseArgs(
name='nginx-test-nati',
chart="../helm",
values=chart_values,
namespace=f'{chart_values.get("project")}-{chart_values.get("app")}',
create_namespace=True,
version='1.0.0'
),
opts=ResourceOptions(provider=k8s_provider)
)
if __name__ == "__main__":
PulumiProgram().up()
While the same code is working for me while using Pulumi CLI program:
config = pulumi.Config()
chart_values = json.loads(config.get('values'))
kube = open("/Users/nathanell/.kube/lab-okta-playground-eks").read()
provider = k8s.Provider(resource_name="k8s-provider", kubeconfig=pulumi.Output.secret(kube))
print(chart_values)
nginx_chart = Release(
"nginx-ingress",
ReleaseArgs(
name='nginx-test-nati',
chart="../helm",
values=chart_values,
namespace=f'{chart_values.get("project")}-{chart_values.get("app")}',
create_namespace=True,
version='1.0.0'
),
opts=ResourceOptions(provider=provider)
)
This is the error that I'm getting:
kubernetes:core/v1:Namespace (ui-app-nginx):
error: configured Kubernetes cluster is unreachable: unable to load schema information from the API server: the server has asked for the client to provide credentials
Although I have verified that the kubeconfig is ok and working in the pulumi CLI program
Someone can assist?most-napkin-6669
07/25/2023, 3:29 PMsilly-match-22314
07/30/2023, 2:57 PMsome-motherboard-44061
07/31/2023, 11:07 PMelegant-window-55250
08/03/2023, 2:04 PMelegant-window-55250
08/03/2023, 2:05 PMacceptable-city-13686
08/03/2023, 2:31 PMconst stack = await RemoteWorkspace.selectStack({url: <git repo>})
await stack.up({
onOutput: <http://console.info|console.info>,
policyPacks: ['../policy_folder']})