Juju controller bootstrap fails on openstack backed private cloud

I have added opentack cloud

juju add-cloud cloud name: openstack API: https://10.120.123.24:5000/v3/

juju add-credential openstack RegionOne userpass cred name: xyz username: xyz

juju metadata generate-image -d ~/simplestreams -i 78d00453-a9a7-4138-b6b2-47817cfb05c3 --base ubuntu@22.04 -r RegionOne -u https://10.120.123.24:5000/v3/

juju bootstrap openstack bby2 --config network=9685ed9d-989e-4572-b68e-17e2fbac7b17 --metadata-source ~/simplestreams/images --debug --verbose --keep-broken

Logs:

I am aware that lot of people faced this problem in the past and it could be related to a network issue in our env. If anybody can point me to right direction would be helpful.

Hi

As you say, this looks like a network issue in your env. The controller VM is unable to reach simple streams.

However, since you’re providing a metadata source, you shouldn’t need this. Once this is resolved, you may find you run into another problem. It is possible to bootstrap juju in an air-gapped environment, but takes a bit of work.

What version of juju are you using?

Could you try specifying --bootstrap-base ubuntu@22.04? It’s possible Juju is defaulting to ubuntu@20.04 if it’s an older version, which obviosuly isn’t included in the metadata-source youv’e provided.

Maybe a bit of a long shot, but could you try:

juju bootstrap openstack bby2 --config network=9685ed9d-989e-4572-b68e-17e2fbac7b17 --metadata-source ~/simplestreams

i.e. ~/simplestreams instead of ~/simplestreams/images.

You’ll also likely need to include --bootstrap-constraints "allocate-public-ip=true" for the OpenStack provider to provision a usable controller

I am using 3.5.4-genericlinux-amd64 and tried -bootstrap-base ubuntu@22.04 and ~/simplestreams same problem persists

we already have it deployed on LXD Baremetal cluster and everything works we are in the process of testing on openstack and deploying on our production use cases globally on openstack platform juju orchestrator with k8s backed by openstack private cloud. Hope we make it work.

Hi again

Sorry for the slow response. Looking into this properly is on my list

This may be related to this:

Could you check the contents of your simplestreams metadata? And verify the bases are correct?

Thanks for your response. Checked below is the info attached.