juju client panics during bootstrap on a k8s cloud
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Fix Released
|
Critical
|
Thomas Miller |
Bug Description
I have a machine based controller running in vsphere with charmed-kubernetes running.
kubectl functions just fine and nothing seems to be amiss.
So, I added a new cloud to the controller (and client) without storage
❯ juju add-k8s k8s-cloud --controller addyess-controller --client --skip-storage
k8s substrate added as cloud "k8s-cloud" with no configured storage provisioning capability.
You can now bootstrap to this cloud by running 'juju bootstrap k8s-cloud'.
Good, then following the output from the above instructions ---
❯ juju bootstrap k8s-cloud ck8s --debug -vv
16:10:23 INFO juju.cmd supercommand.go:56 running juju [2.9.25 0 695d9bc09df0725
16:10:23 DEBUG juju.cmd supercommand.go:57 args: []string{
16:10:23 INFO cmd bootstrap.go:595
Now you can run
juju add-model <model-name>
to create a new model to deploy workloads.
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x184ccf3]
goroutine 1 [running]:
github.
/build/
github.
/build/
github.
/build/
github.
/build/
github.
/build/
github.
/build/
github.
/build/
github.
/build/
github.
/build/
main.main()
/build/
❯ juju controllers
Use --refresh option with this command to see the latest information.
Controller Model User Access Cloud/Region Models Nodes HA Version
addyess-controller* k8s-core admin superuser k8s-vsphere/Boston 3 4 none 2.9.22
~
❯ juju clouds
Only clouds with registered credentials are shown.
There are more clouds, use --all to see them.
Clouds available on the controller:
Cloud Regions Default Type
k8s-cloud 1 default k8s
k8s-vsphere 1 Boston vsphere
Clouds available on the client:
Cloud Regions Default Type Credentials Source Description
k8s-cloud 0 k8s 1 local A Kubernetes Cluster
k8s-vsphere 1 Boston vsphere 1 local
Changed in juju: | |
status: | Fix Committed → Fix Released |
in this event, i don't know why but there was no need for me to bootstrap a controller? Right away i was able to add a model on the new cloud:
> juju add-model vsphere-ccm k8s-cloud
Added 'vsphere-ccm' model on k8s-cloud/default with credential 'k8s-cloud' for user 'admin'