Openstack-integrator charm error

Hi, during deployment of charmed-kubernetes bundle, I am receiving error:

missing required credentials: user_domain_name, project_domain_name, project_name

I have following environment variables enabled during deployment:

OS_AUTH_URL=<URL>
OS_PROJECT_ID=e161a20aa0f14f6a9beeb536e93ce548
OS_PROJECT_NAME=<PROJECT>
OS_USER_DOMAIN_NAME=Default
OS_PROJECT_DOMAIN_ID=default
OS_USERNAME=<USERNAME>
OS_PASSWORD=<PASSWORD>
OS_REGION_NAME=swe2
OS_INTERFACE=public
OS_IDENTITY_API_VERSION=3

What’s wrong, what am I missing? Do I need set those values also into the credentials? How?

Hello! Thank you for the question.

You probably need to run juju add-credential myopenstack. An overview on doing so may be found at https://juju.is/docs/openstack-cloud

I usually find it most straightforward to make a yaml file, per the instructions at https://juju.is/docs/credentials#heading--adding-credentials-from-a-file, and then run juju add-credential myopenstack -f mycreds.yaml, as the interactive prompt can be a little bit unclear, depending on how your OpenStack credentials are setup.

Hello @pengale

Thanks, now it works!

Lumir

There is definitely something fishy about that project-name. I’m bumping into the same issue and I’m determined to try and update the existing credential instead of replacing it with a new one. however juju add-credential --replace openstack-cloud -f ./openstack-cloud-cred.yaml gives me: ERROR finalizing "openstack-cloud-cred" credential for cloud "openstack-cloud": unknown key "project-name" (value "xxx") what is the right place/format for the Project Name field in the openstack credential? Is there a blueprint with that field, somewhere, to use as reference?