bright-controller-92189
01/18/2023, 12:53 PM{
"level": "error",
"ts": "2023-01-18T11:54:20.674Z",
"logger": "controller_stack",
"msg": "Failed to update Stack",
"Request.Namespace": "default",
"Request.Name": "nginx-k8s-stack-1",
"Stack.Name": "alinalex/nginx/dev",
"error": "installing project dependencies: exit status 1",
"stacktrace": "<http://github.com/pulumi/pulumi-kubernetes-operator/pkg/controller/stack.(*ReconcileStack).Reconcile\n\t/home/runner/work/pulumi-kubernetes-operator/pulumi-kubernetes-operator/pkg/controller/stack/stack_controller.go:459\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.0/pkg/internal/controller/controller.go:298\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.0/pkg/internal/controller/controller.go:253\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.0/pkg/internal/controller/controller.go:214|github.com/pulumi/pulumi-kubernetes-operator/pkg/controller/stack.(*ReconcileStack).Reconcile\n\t/home/runner/work/pulumi-kubernetes-operator/pulumi-kubernetes-operator/pkg/controller/stack/stack_controller.go:459\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.0/pkg/internal/controller/controller.go:298\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.0/pkg/internal/controller/controller.go:253\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/home/runner/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.9.0/pkg/internal/controller/controller.go:214>"
}
Any clue about the error?important-australia-24045
01/18/2023, 8:25 PMbright-controller-92189
01/19/2023, 5:58 PMfew-painting-46153
01/20/2023, 4:03 AMstderr: error: passphrase must be set with PULUMI_CONFIG_PASSPHRASE or PULUMI_CONFIG_PASSPHRASE_FILE environment variables
can someone pls help me where to set this
nice-rainbow-20104
01/20/2023, 9:52 AMnice-rainbow-20104
01/20/2023, 9:53 AMnice-rainbow-20104
01/20/2023, 10:24 AMnice-rainbow-20104
01/20/2023, 10:24 AMnice-rainbow-20104
01/20/2023, 10:25 AMlimited-dusk-32272
01/20/2023, 3:07 PMmagnificent-rainbow-92633
01/20/2023, 5:49 PMkind-sunset-30303
01/22/2023, 3:13 PMsparse-intern-71089
01/22/2023, 7:16 PMnice-rainbow-20104
01/23/2023, 10:16 AMfaint-scooter-28762
01/23/2023, 3:29 PM* reading ACM Certificate (): InvalidParameter: 1 validation error(s) found. - minimum field size of 20, DescribeCertificateInput.CertificateArn.
Upon debugging I can see that the certificateArn
value being passed in fulfills that minimum field size 🤔bulky-balloon-31221
01/24/2023, 5:47 AMred-finland-22910
01/24/2023, 8:01 AMprivate void InitStorageAccount(Config config)
{
var storageAccount = new StorageAccount("saaggregatorservice", new StorageAccountArgs
{
ResourceGroupName = ResourceGroup.Name,
AccountName = $"saaggregatorservice{config.Env}",
Sku = new StorageSkuArgs
{
Name = SkuName.Standard_LRS
},
Kind = Kind.StorageV2,
Tags = config.DefaultTags,
});
var saKey = Output.Tuple(storageAccount.Name, ResourceGroup.Name, Output.CreateSecret(""), storageAccount.Id).Apply(
t => ListStorageAccountKeys.InvokeAsync(new ListStorageAccountKeysArgs
{
AccountName = t.Item1,
ResourceGroupName = t.Item2,
})).Apply(result => result.Keys.First().Value);
StorageConnectionString =
Output.Format($"DefaultEndpointsProtocol=https;AccountName={storageAccount.Name};AccountKey={saKey}");
}
Before the update to 3.51.* this code was successfully able to generate a service account. Now however, I'm faced with the following error:
Error:
azure-native:web:WebApp (aggregatorFunctionApp):
error: Code="BadRequest" Message="There was a conflict. The remote name could not be resolved: '<http://saaggregatorservice.file.core.windows.net|saaggregatorservice.file.core.windows.net>'" Details=[{"Message":"There was a conflict. The remote name could not be resolved: '<http://saaggregatorservice.file.core.windows.net|saaggregatorservice.file.core.windows.net>'"},{"Code":"BadRequest"},{"ErrorEntity":{"Code":"BadRequest","ExtendedCode":"01020","Message":"There was a conflict. The remote name could not be resolved: '<http://saaggregatorservice.file.core.windows.net|saaggregatorservice.file.core.windows.net>'","MessageTemplate":"There was a conflict. {0}","Parameters":["The remote name could not be resolved: '<http://saaggregatorservice.file.core.windows.net|saaggregatorservice.file.core.windows.net>'"]}}]
Is anyone able to assist in debugging?astonishing-orange-99314
01/24/2023, 6:24 PMthankful-napkin-37863
01/25/2023, 2:14 PMlet instances = []
const numNodes = 2
for (let n = 0; n < numNodes; n++) {
// Create a Linode resource (Linode Instance)
const instance = new linode.Instance(`foo-${n}`, {
type: "g6-nanode-1",
region: "eu-central",
image: 'linode/ubuntu22.04',
label: `foo-${n}`,
group: 'foo',
tags: ["test"],
privateIp: true,
interfaces: [{purpose: 'public'}, {purpose: 'vlan', label: 'acc-swarm', ipamAddress: '192.0.2.0/24'}],
});
instances.push(instance)
}
Then I create a firewall instance:
const accSwarmFirewall = new linode.Firewall("acc-swarm", {
label: 'acc_swarm',
inbounds: [ ... ],
inboundPolicy: 'DROP',
outbounds: [ ... ],
outboundPolicy: "ACCEPT",
linodes: [instances[0].id, instances[1].id]
})
This does what you'd expect: the firewall is assigned to both instances. But of course I don't want to hard-code the number of instances again in that firewall declaration. I've tried many things, for example: pulumi.all(instances).apply(i=>i.id)
. This way when I change numNodes
to 3, I don't get any errors, but the new node is not added to the firewall. Or this: pulumi.all(instances.map(i => i.id.apply(id=>parseInt(id))))
, guided by TypeScript type information (apparently instance.id
is a string
, but the firewall expects a list of numbers), but then I get errors like this:
pulumi:pulumi:Stack (foo-dev):
panic: interface conversion: interface {} is string, not int
goroutine 105 [running]:
<http://github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.HashInt({0x291b0a0|github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.HashInt({0x291b0a0>?, 0x31acd50?})
/home/runner/go/pkg/mod/github.com/pulumi/terraform-plugin-sdk/v2@v2.0.0-20220824175045-450992f2f5b9/helper/schema/set.go:24 +0x55
<http://github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim/sdk-v2.v2Schema.SetHash({0x0?}|github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim/sdk-v2.v2Schema.SetHash({0x0?}>, {0x291b0a0, 0x31acd50})
/home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/v3@v3.28.1/pkg/tfshim/sdk-v2/schema.go:176 +0x43
<http://github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge.visitPropertyValue({0xc003be0b20|github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge.visitPropertyValue({0xc003be0b20>, 0x7}, {0xc003b019d0, 0x7}, {{0x28c7ba0?, 0xc003b2ac18?}}, {0x31dd8b8?, 0xc0000b72c0}, 0x0, 0x0, ...)
/home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/v3@v3.28.1/pkg/tfbridge/diff.go:114 +0x812
<http://github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge.doIgnoreChanges({0x31d1070|github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge.doIgnoreChanges({0x31d1070>, 0xc00048d080}, 0xc003b45f10?, 0x31b5c00?, 0xc003b35d40?, {0x0, 0x0, 0xc000682820?}, {0x31d3b78, 0xc000634a00})
/home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/v3@v3.28.1/pkg/tfbridge/diff.go:260 +0x3ce
<http://github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge.(*Provider).Diff(0xc000386fc0|github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfbridge.(*Provider).Diff(0xc000386fc0>, {0x31cbc88?, 0xc003b346c0?}, 0xc000ba09a0)
/home/runner/go/pkg/mod/github.com/pulumi/pulumi-terraform-bridge/v3@v3.28.1/pkg/tfbridge/provider.go:762 +0x608
<http://github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Diff_Handler.func1({0x31cbc88|github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Diff_Handler.func1({0x31cbc88>, 0xc003b346c0}, {0x2bb6760?, 0xc000ba09a0})
/home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.38.0/proto/go/provider.pb.go:3707 +0x78
<http://github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1({0x31cbc88|github.com/grpc-ecosystem/grpc-opentracing/go/otgrpc.OpenTracingServerInterceptor.func1({0x31cbc88>, 0xc003b342a0}, {0x2bb6760, 0xc000ba09a0}, 0xc003b28880, 0xc003b2a300)
/home/runner/go/pkg/mod/github.com/grpc-ecosystem/grpc-opentracing@v0.0.0-20180507213350-8e809c8a8645/go/otgrpc/server.go:57 +0x3f9
<http://github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Diff_Handler({0x2c7fb80|github.com/pulumi/pulumi/sdk/v3/proto/go._ResourceProvider_Diff_Handler({0x2c7fb80>?, 0xc000386fc0}, {0x31cbc88, 0xc003b342a0}, 0xc000ba0930, 0xc000a641e0)
/home/runner/go/pkg/mod/github.com/pulumi/pulumi/sdk/v3@v3.38.0/proto/go/provider.pb.go:3709 +0x138
<http://google.golang.org/grpc.(*Server).processUnaryRPC(0xc000a6a000|google.golang.org/grpc.(*Server).processUnaryRPC(0xc000a6a000>, {0x31d4240, 0xc000102b60}, 0xc003b079e0, 0xc000a58ab0, 0x4233608, 0x0)
/home/runner/go/pkg/mod/google.golang.org/grpc@v1.48.0/server.go:1295 +0xb2b
<http://google.golang.org/grpc.(*Server).handleStream(0xc000a6a000|google.golang.org/grpc.(*Server).handleStream(0xc000a6a000>, {0x31d4240, 0xc000102b60}, 0xc003b079e0, 0x0)
/home/runner/go/pkg/mod/google.golang.org/grpc@v1.48.0/server.go:1636 +0xa2f
<http://google.golang.org/grpc.(*Server).serveStreams.func1.2()|google.golang.org/grpc.(*Server).serveStreams.func1.2()>
/home/runner/go/pkg/mod/google.golang.org/grpc@v1.48.0/server.go:932 +0x98
created by <http://google.golang.org/grpc.(*Server).serveStreams.func1|google.golang.org/grpc.(*Server).serveStreams.func1>
/home/runner/go/pkg/mod/google.golang.org/grpc@v1.48.0/server.go:930 +0x28a
I'm not sure what I'm missing here. Is there anyone who can shed some light on this? Thanks a lot!!bumpy-plastic-18391
01/25/2023, 3:59 PMsome-grass-63999
01/25/2023, 6:28 PMreturn
, as is pretty common in Go. When the resource fail for whatever reason, it's hard to track down in the codebase where athey are happening. Are there are tricks to doing this? I've tried using something like https://github.com/pkg/errors, or even hand-rolling our own error with a callstack, but that hasn't deemed super successful. I'm hesitant to use panic
everywhere, though that may be more helpful as I will know where the errors are occurring.
Any advice on error handling in go to make it easier to track down where issues are happening? Thanks!big-intern-49519
01/26/2023, 6:06 PMboundless-monkey-2042
01/26/2023, 8:52 PMgentle-school-19497
01/28/2023, 9:54 AMstraight-yacht-47796
02/01/2023, 5:58 PMlocal-exec
or, better still a way of doing eksctl utils associate-iam-oidc-provider
in Pulumi? thanksgentle-school-19497
02/01/2023, 8:09 PMplain-belgium-35196
02/01/2023, 11:39 PMrefined-quill-24998
02/02/2023, 7:22 AMCREATE TABLE `t_temp_table_iceberg`
(
`col1` string,
`col2` double,
`col3` string,
`col4` BOOLEAN,
`col5` BOOLEAN
)
PARTITIONED BY(
col1,
col2
)
LOCATION '<s3://bucket-name/iceberg_location/>'
TBLPROPERTIES (
'table_type'='ICEBERG',
'format'='parquet'
)
Tried to deploy the same in pulumi but the table is created with wrong format similar like Hive table with partitions and not able to access in Athena( Not an issue with permissions verified). Can anyone help me with it.
t_temp_table_iceberg = aws.glue.CatalogTable(
resource_name="t_temp_table_iceberg",
name="t_temp_table_iceberg",
database_name=self.glue_catalog_iceberg_catalog_db.name,
parameters={
"table_type": 'ICEBERG',
"format": "parquet"
},
storage_descriptor=aws.glue.CatalogTableStorageDescriptorArgs(
columns=[
aws.glue.CatalogTableStorageDescriptorColumnArgs(
name="col1",
type="string",
),
aws.glue.CatalogTableStorageDescriptorColumnArgs(
name="col2",
type="double",
),
aws.glue.CatalogTableStorageDescriptorColumnArgs(
comment="",
name="col3",
type="String",
),
aws.glue.CatalogTableStorageDescriptorColumnArgs(
comment="",
name="col4",
type="Boolean",
),
aws.glue.CatalogTableStorageDescriptorColumnArgs(
comment="",
name="col5",
type="Boolean",
),
aws.glue.CatalogTableStorageDescriptorColumnArgs(
comment="",
name="Substituted",
type="Boolean",
), ],
location=f"s3://{self.curated_bucket_name}/iceberg_location/",
),
partition_keys=[
aws.glue.CatalogTablePartitionKeyArgs(
name="col1",
type="",
comment="",
),
aws.glue.CatalogTablePartitionKeyArgs(
name="col2",
type="",
comment="",
)
],
)
brash-alligator-49865
02/02/2023, 1:02 PMpulumi up --retries 3
?brash-alligator-49865
02/02/2023, 1:02 PM# Trigger the pulumi up => change the world.
pulumi up --yes --message "$AUGMENTED_MESSAGE" ||
# retry-as-a-service :P
pulumi up --yes --message "(1st retry) - $AUGMENTED_MESSAGE" ||
# retry-as-a-service :P
pulumi up --yes --message "(2nd retry) - $AUGMENTED_MESSAGE" ||
# retry-as-a-service :P
pulumi up --yes --message "(3rd and last retry) - $AUGMENTED_MESSAGE"