Validation error while adding openstack cloud provider

Im trying to add an openstack newton provider but getting this error when trying to validate:

“Credential validation was not successful: Login failed due to a bad username or password.”

I’m using the following values:

API: keystone v3
Domain ID: default
Zone: Default zone
Username: admin (openstack admin user)

I can login to horizon dashboard with the same credentials with no problem.


Have you try to add the Region name while you adding the provider.

Apparently the openstack admin account doesn’t have an admin role on that default domain (by default), and needed to be granted admin role explicitly.

After running - openstack role add --domain default --user admin admin, validation went thru.