gifted-fall-44000
01/17/2023, 6:14 PMgreen-daybreak-91402
01/17/2023, 7:28 PMfierce-xylophone-92490
01/17/2023, 8:31 PMprehistoric-rainbow-44526
01/18/2023, 8:42 AMgray-knife-50817
01/18/2023, 11:06 AMwooden-caravan-96340
01/18/2023, 11:51 AMcompute.GetVirtualMachine()
in automation api with golang? Did anybody encounter this kind of error? I'm getting panic: runtime error: invalid memory address or nil pointer dereference
error :(. The code looks like this:
con := context.Background()
ctx, err := pulumi.NewContext(con, pulumi.RunInfo{Project: "rest-api", Stack: "pulumi-test"})
if err != nil {
fmt.Println(err)
}
vm, err := compute.GetVirtualMachine(ctx, "vm480cd303", pulumi.ID("50dd5f24-507b-4b76-a911-4708782d2940"), &compute.VirtualMachineState{})
if err != nil { fmt.Println(err)}
fmt.Println(vm.Name)
bright-controller-92189
01/18/2023, 12:27 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?bright-controller-92189
01/18/2023, 12:53 PMmost-mouse-38002
01/18/2023, 3:21 PMtls
package, it is not entirely clear to me how I am going to generate a CA and sign a certificate with it. I create the CA with tls.NewSelfSignedCert
but I would assume I would need to use tls.NewLocallySignedCert
for signing the certs to this CA? I have also tried with tls.NewSelfSignedCert
but there is no obvious way to reference the CA from this function. Any help would be greatly appreciated.big-actor-42639
01/18/2023, 4:15 PM$ pulumi plugin install resource pulumi-resource-github v4.11.0-alpha.1645193352
[resource plugin pulumi-resource-github-4.11.0-alpha.1645193352] installing
error: [resource plugin pulumi-resource-github-4.11.0-alpha.1645193352] downloading from : failed to download plugin: pulumi-resource-github-4.11.0-alpha.1645193352: 403 HTTP error fetching plugin from <https://get.pulumi.com/releases/plugins/pulumi-resource-pulumi-resource-github-v4.11.0-alpha.1645193352-linux-amd64.tar.gz>
gorgeous-minister-41131
01/19/2023, 1:18 AMoutput
things I wanted other modules or states to be able to re-use. Is this something one could do in pulumi as well using pulumi.Output()
and a bunch of namespace configs?bulky-balloon-31221
01/19/2023, 5:12 AMdry-beach-58138
01/19/2023, 6:08 AM⯠poetry show
arpeggio 2.0.0 Packrat parser interpreter
attrs 22.2.0 Classes Without Boilerplate
certifi 2022.12.7 Python package for providing Mozilla's CA Bundle.
charset-normalizer 2.1.1 The Real First Universal Charset Detector. Open, modern and actively mainta...
dill 0.3.6 serialize all of python
grpcio 1.50.0 HTTP/2-based RPC framework
idna 3.4 Internationalized Domain Names in Applications (IDNA)
jmespath 1.0.1 JSON Matching Expressions
parver 0.4 Parse and manipulate version numbers.
protobuf 4.21.12
pulumi 3.52.0 Pulumi's Python SDK
pulumi-aws 5.21.1 A Pulumi package for creating and managing Amazon Web Services (AWS) cloud ...
pulumi-kubernetes 3.23.1 A Pulumi package for creating and managing Kubernetes resources.
pyyaml 6.0 YAML parser and emitter for Python
requests 2.28.1 Python HTTP for Humans.
semver 2.13.0 Python helper for Semantic Versioning (<http://semver.org/>)
six 1.16.0 Python 2 and 3 compatibility utilities
urllib3 1.26.14 HTTP library with thread-safe connection pooling, file post, and more.
⯠python
Python 3.10.7 (main, Oct 17 2022, 11:07:33) [Clang 13.1.6 (clang-1316.0.21.2.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pulumi
>>> import pulumi_kubernetes as k8s
>>>
>>> guestbook = k8s.yaml.ConfigFile('guestbook', 'guestbook-all-in-one.yaml')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/william/git_repo/k8s_lab/.venv/lib/python3.10/site-packages/pulumi_kubernetes/yaml/yaml.py", line 350, in __init__
__ret__ = invoke_yaml_decode(text)
File "/Users/william/git_repo/k8s_lab/.venv/lib/python3.10/site-packages/pulumi_kubernetes/yaml/yaml.py", line 348, in invoke_yaml_decode
inv = pulumi.runtime.invoke('kubernetes:yaml:decode', {'text': text}, invoke_opts)
File "/Users/william/git_repo/k8s_lab/.venv/lib/python3.10/site-packages/pulumi/runtime/invoke.py", line 142, in invoke
invoke_result, invoke_error = _sync_await(asyncio.ensure_future(do_rpc()))
File "/Users/william/git_repo/k8s_lab/.venv/lib/python3.10/site-packages/pulumi/runtime/sync_await.py", line 54, in _sync_await
return loop.run_until_complete(fut)
File "/Users/william/.pyenv/versions/3.10.7/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete
return future.result()
File "/Users/william/git_repo/k8s_lab/.venv/lib/python3.10/site-packages/pulumi/runtime/invoke.py", line 137, in do_rpc
raise exn
File "/Users/william/git_repo/k8s_lab/.venv/lib/python3.10/site-packages/pulumi/runtime/rpc_manager.py", line 68, in rpc_wrapper
result = await rpc
File "/Users/william/git_repo/k8s_lab/.venv/lib/python3.10/site-packages/pulumi/runtime/invoke.py", line 107, in do_invoke
resp, error = await asyncio.get_event_loop().run_in_executor(None, do_invoke)
File "/Users/william/.pyenv/versions/3.10.7/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/Users/william/git_repo/k8s_lab/.venv/lib/python3.10/site-packages/pulumi/runtime/invoke.py", line 103, in do_invoke
return monitor.Invoke(req), None
AttributeError: 'NoneType' object has no attribute 'Invoke'
>>>
It seems cause by no kubernetes provider ?magnificent-scientist-64889
01/19/2023, 9:18 AM@pulumi/aws
to a newer version. Now when i do a preview
i get the following warning:
warning: resource plugin aws is expected to have version >=5.27.0, but has 5.9.2; the wrong version may be on your path, or this may be a bug in the plugin
When doing a pulumi plugin ls
i see the following:
NAME KIND VERSION SIZE INSTALLED LAST USED
aws resource 5.27.0 499 MB 1 hour ago 1 hour ago
aws resource 5.9.2 387 MB 48 minutes ago 48 minutes ago
If run the following command to remove the 5.9.2 version pulumi plugin rm resource aws 5.9.2
and then run a preview
i get the following error:
error: could not load plugin for aws provider 'urn:pulumi:test::sapbasis::pulumi:providers:aws::default_5_27_0': aws (resource) plugin [C:\Program Files\chocolatey\bin\p
ulumi-resource-aws.exe] wrote a non-numeric port to stdout ('0'): strconv.Atoi: parsing "Cannot find file at '..\\\\lib\\pulumi\\home\\plugins\\resource-aws-v5.9.2\\pulu
mi-resource-aws.exe' This usually indicates a missing or moved
file.\r": invalid syntax
This indicates that the stack is somehow still using the 5.9.2 Provider. Doing an export of the stack with pulumi stack export --file out.json
- the stack has no references to the 5.9.2 version but are instead all listed as using ::pulumi:providers:aws::default_5_27_0
.
Any ideas?
Sincerelybright-controller-92189
01/19/2023, 3:33 PMflat-animal-66780
01/19/2023, 3:45 PMvar crdsOperator = new ConfigFile("crds-operators", new ConfigFileArgs
{
File = Path.Combine(Environment.CurrentDirectory, "KubernetesFiles", "crds.yaml")
}, new ComponentResourceOptions { Provider = aksProvider });
var elasticOperator = new ConfigFile("elastic-operators", new ConfigFileArgs
{
File = Path.Combine(Environment.CurrentDirectory, "KubernetesFiles", "operator.yaml")
}, new ComponentResourceOptions { Provider = aksProvider, DependsOn = { crdsOperator.Ready() } });
var elasticSecret = new ConfigFile("elastic-secret", new ConfigFileArgs
{
File = Path.Combine(Environment.CurrentDirectory, "KubernetesFiles", "elastic-secret.yml")
}, new ComponentResourceOptions { Provider = aksProvider, DependsOn = { elasticOperator.Ready() } });
var elasticMonitor = new ConfigFile("elastic-monitor", new ConfigFileArgs
{
File = Path.Combine(Environment.CurrentDirectory, "KubernetesFiles", "elastic-monitor.yml")
}, new ComponentResourceOptions { Provider = aksProvider, DependsOn = { elasticSecret.Ready() } });
var sev = Kubernetes.Core.V1.Service.Get(
"ingress",
"default/es-log-monitoring-test-es-http",
new CustomResourceOptions { Provider = aksProvider, DependsOn = { elasticMonitor.Ready() } }
and the elastic-monitor.yml looks like this
apiVersion: <http://elasticsearch.k8s.elastic.co/v1|elasticsearch.k8s.elastic.co/v1>
kind: Elasticsearch
metadata:
name: es-log-monitoring-test
namespace: default
spec:
version: 8.4.2
image: elasticsearch:8.4.2
http:
service:
spec:
type: LoadBalancer
tls:
selfSignedCertificate:
disabled: true
nodeSets:
- name: node
count: 1
podTemplate:
spec:
containers:
- name: elasticsearch
resources:
requests:
memory: 1500Mi
limits:
memory: 1800Mi
volumeClaimTemplates:
- metadata:
name: elasticsearch-data # Do not change this name unless you set up a volume mount for the data path.
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 50Gi
storageClassName: default
config:
xpack.ml.enabled: true
node.store.allow_mmap: false
and when it reaches the service get it produces this error
kubernetescore/v1Service :
error: 3 errors occurred:
* Resource 'es-log-monitoring-test-es-http' was created but failed to initialize
* Service does not target any Pods. Selected Pods may not be ready, or field '.spec.selector' may not match labels on any Pods
* Service was not allocated an IP address; does your cloud provider support this?future-oil-73108
01/19/2023, 5:44 PMpulumi config set
. Any ideas, thank you.icy-doctor-13719
01/20/2023, 5:20 AM- uses: pulumi/actions@v4
id: pulumi
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}
with:
stack-name: ${{ env.stack }}
command: preview
refresh: true
expect-no-changes: true
diff: true
When I attempt to access the stack output as below, it comes back blank:
${{ steps.pulumi.outputs.output }}
Any suggestions on the correct way to access the output? I essentially want the same output that would be there if comment-on-pr
were set to true
. Since my action is running on cron rather than pr, Iām unable to use that command. Many thanks! šlimited-dusk-32272
01/20/2023, 3:09 PMbright-controller-92189
01/20/2023, 3:39 PMwide-apple-61576
01/20/2023, 6:36 PMlimited-dusk-32272
01/21/2023, 8:40 AMlively-pizza-96645
01/21/2023, 10:19 PMstocky-sundown-45608
01/22/2023, 6:42 AMerror: Error: invocation of kubernetes:helm:template returned an error: failed to generate YAML for specified Helm chart: failed to create chart from template: execution error at (neo4j-cluster-core/templates/_helpers.tpl:73:16): No node exists in the cluster which has all the below labels (.Values.nodeSelector)
%smap[<http://cloud.google.com/gke-nodepool:primarynodes-f059c87|cloud.google.com/gke-nodepool:primarynodes-f059c87>]
at Object.callback (workspace/code_play/typescript_projects/dev/gke-cluster/k8s/node_modules/@pulumi/runtime/invoke.ts:172:33)
at Object.onReceiveStatus (/workspace/code_play/typescript_projects/dev/gke-cluster/k8s/node_modules/@grpc/grpc-js/src/client.ts:338:26)
at Object.onReceiveStatus (/workspace/code_play/typescript_projects/dev/gke-cluster/k8s/node_modules/@grpc/grpc-js/src/client-interceptors.ts:426:34)
at Object.onReceiveStatus (/workspace/code_play/typescript_projects/dev/gke-cluster/k8s/node_modules/@grpc/grpc-js/src/client-interceptors.ts:389:48)
at /workspace/code_play/typescript_projects/dev/gke-cluster/k8s/node_modules/@grpc/grpc-js/src/call-stream.ts:276:24
at processTicksAndRejections (node:internal/process/task_queues:77:11)
square-laptop-45713
01/22/2023, 5:01 PMpulumi refresh
command as I just ran it and it seemingly removed a resource that was manually added for troubleshooting purposes. From the documentation here it states:
Any such changes are adopted into the current stack.Itās not clear if this is referring to the ācurrent stackā as just the state held within Pulumiās state management OR if ācurrent stackā means the actual resources in the Cloud Provider
incalculable-crayon-23090
01/23/2023, 12:57 PMgcp:orgpolicy:Policy (primary):
error: 1 error occurred:
* Error creating Policy: failed to create a diff: failed to retrieve Policy resource: googleapi: Error 403: Your application has authenticated using end user credentials from the Google Cloud SDK or Google Cloud Shell which are not supported by the <http://orgpolicy.googleapis.com|orgpolicy.googleapis.com>. We recommend configuring the billing/quota_project setting in gcloud or using a service account through the auth/impersonate_service_account setting. For more information about service accounts and how to use them in your application, see <https://cloud.google.com/docs/authentication/>. If you are getting this error with curl or similar tools, you may need to specify 'X-Goog-User-Project' HTTP header for quota and billing purposes. For more information regarding 'X-Goog-User-Project' header, please check <https://cloud.google.com/apis/docs/system-parameters>.
Details:
[
{
"@type": "<http://type.googleapis.com/google.rpc.ErrorInfo|type.googleapis.com/google.rpc.ErrorInfo>",
"domain": "<http://googleapis.com|googleapis.com>",
"metadata": {
"consumer": "projects/764086051850",
"service": "<http://orgpolicy.googleapis.com|orgpolicy.googleapis.com>"
},
"reason": "SERVICE_DISABLED"
}
]
early-cat-34152
01/23/2023, 4:21 PMlist
. But for example, listing all virtual machine scale set instances is supported by the Azure API but I cannot find that functionality in the Pulumi Azure Native provider API docs. How can I do this?some-continent-1577
01/23/2023, 5:22 PMpulumi up
from the pulumi web console instead of the terminal? Iām hoping to automate deployment approval from a github actions workflowmagnificent-lifeguard-15082
01/23/2023, 5:49 PMpulumi cancel
to get around this
5. Previews that were started while the update was happening (usually not a problem) gets stuck (loading spinner in summary and "updating" constantly") but does show stack outputs in diff
Follow on questions:
1. Is there a way to cancel a preview since they don't seem to become unstuck?
2. Is this a known issue or one that others have experienced?
3. Is there something we can do to be more resilient?magnificent-glass-81378
01/23/2023, 6:13 PMpulumi up
, even if the Dockerfile it's using hasn't changed? That what it's doing for me, but I'd expect to to only rebuild and push if the Dockerfile has changed.