-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add project domain id to identity credentials #89
Conversation
openrc downloaded from OpenStack horizon for a non-admin user has OS_PROJECT_DOMAIN_ID set but not OS_PROJECT_DOMAIN_NAME. Project domain ID details are added in Credentials structure. Fixes: go-goose#88
9abd851
to
506b782
Compare
juju autoload-credentials ignores the OS_PROJECT_DOMAIN_ID if set and looks for only OS_PROJECT_DOMAIN_NAME. However there are cases where openrc downloaded from OpenStack Dashboard for non-admin user sets only OS_PROJECT_DOMAIN_ID. In these cases juju bootstrap fails with authentication error since juju is not aware of project domain id and project domain name is empty. This change reads OS_PROJECT_DOMAIN_ID and sets in CredentialsAttribute map. The same have been passed to the client for authentication purpose. - This PR depends on PR submitted for go-goose package go-goose/goose#89 https://bugs.launchpad.net/juju/+bug/1772649
juju autoload-credentials ignores the OS_PROJECT_DOMAIN_ID if set and looks for only OS_PROJECT_DOMAIN_NAME. However there are cases where openrc downloaded from OpenStack Dashboard for non-admin user sets only OS_PROJECT_DOMAIN_ID. In these cases juju bootstrap fails with authentication error since juju is not aware of project domain id and project domain name is empty. This change reads OS_PROJECT_DOMAIN_ID and sets in CredentialsAttribute map. The same have been passed to the client for authentication purpose. - This PR depends on PR submitted for go-goose package go-goose/goose#89 https://bugs.launchpad.net/juju/+bug/1772649 Fixes: LP#1772649
juju autoload-credentials ignores the OS_PROJECT_DOMAIN_ID if set and looks for only OS_PROJECT_DOMAIN_NAME. However there are cases where openrc downloaded from OpenStack Dashboard for non-admin user sets only OS_PROJECT_DOMAIN_ID. In these cases juju bootstrap fails with authentication error since juju is not aware of project domain id and project domain name is empty. This change reads OS_PROJECT_DOMAIN_ID and sets in CredentialsAttribute map. The same have been passed to the client for authentication purpose. - This PR depends on PR submitted for go-goose package go-goose/goose#89 https://bugs.launchpad.net/juju/+bug/1772649 Fixes: LP#1772649
@hemanthnakkina, this looks good, I'm waiting on the using pr, before approving it. autoload-credentials wasn't doing what the QA steps said it should be. |
Hi I believe you are referring to QA steps in juju/juju#12838. I am on vacation and will be back on Apr 14th, can provide the exact steps with the output. |
@hmlanigan @hemanthnakkina is this close to merging? |
Closing as it's stale now, please reopen when the juju issues have been addressed in the related PR |
openrc downloaded from OpenStack horizon for a non-admin
user has OS_PROJECT_DOMAIN_ID set but not OS_PROJECT_DOMAIN_NAME.
Project domain ID details are added in Credentials structure.
Fixes: #88