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.
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?