What does does the output of juju show-credentials --show-secrets openstack-cloud openstack-juju-cre look like - please xxxx the private pieces. I’m interested in which keys are set.
Which env var are set in your novarc/openstackrc files?
It’s not clear to me whether you even have a controller created. I see evidence of juju add-cloud, juju add-credential, and juju add-model but not juju bootstrap.
I read and fellow the document OpenStack again, and change the date of credential , it is still fail,but now beacuase :
ERROR juju.cmd.juju.commands bootstrap.go:883 failed to bootstrap model: cannot start bootstrap instance: no metadata for “focal” images in RegionOne with arches [amd64]
I have deployen matedata manually ,and add a new instance in openstack constraints "“mem=3584M”,now the error is:
ERROR juju.cmd.juju.commands bootstrap.go:883 failed to bootstrap model: cannot start bootstrap instance: cannot set up groups: failed to create a security group with name: juju-2d62d080-c9ce-4172-8c3f-3189afa2443a-f25b5951-d203-4921-8a50-da61108d3916
07:29:45 DEBUG juju.provider.common bootstrap.go:628 connection attempt for 172.16.16.242 failed: ssh: connect to host 172.16.16.242 port 22: Connection timed out
I’m assuming 172.16.16.242 is the private IP address of the instance being spawned in Openstack
On your bootstrap command, try passing in a config flag of
It should be okay.
The bootstrap process injects the juju key (usually found at ~/.local/share/juju/ssh ) into the instance using the instance userdata
Once the controller is up you can always add more ssh keys with
I changed the network into sigle ethernet interface machines ,and redeployed openstack-base-78.
And repeat the above steps ,and it worked:
12:39:04 INFO cmd controller.go:104
Bootstrap complete, controller "openstack-cloud-regionone" is now available
Controller machines are in the "controller" model
12:39:04 INFO cmd bootstrap.go:595 Initial model "default" added
12:39:04 INFO cmd supercommand.go:544 command finished
root@vivodo-3:~/simplestreams#
root@vivodo-3:~/simplestreams# juju status
Model Controller Cloud/Region Version SLA Timestamp
default openstack-cloud-regionone openstack-cloud/RegionOne 2.9.18 unsupported 12:39:18+08:00
Model "admin/default" is empty.