Skip to content
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

authentification always fails if user is not to subscribed to us-phoenix-1 region #20

Closed
chris93111 opened this issue Oct 30, 2020 · 13 comments
Assignees

Comments

@chris93111
Copy link

chris93111 commented Oct 30, 2020

Hi

i try to deploy oke with rancher but i have always error 401 in authentification

i have try with many user

my credential work correctly with sdk

the parameter set in ui:
tenancyid
userocid
fingerprint
compartiementocid
private_key

Service error:NotAuthenticated. The required information to complete authentication was not provided or was incorrect.. http status code: 401. Opc request id: XXXXXXXXXX

@chris93111
Copy link
Author

chris93111 commented Nov 1, 2020

Hi it's work with rancher 2.4.8 , i think region parameter is missing
rancher 2.5.1

@jlamillan
Copy link
Collaborator

Thanks for the report, we'll check it out

@jlamillan
Copy link
Collaborator

@jrosinsk

@jlamillan
Copy link
Collaborator

jlamillan commented Nov 12, 2020

@chris93111 - I have not been able to reproduce this issue on Rancher v2.5.1 (using the v1.4.2 OKE driver which is installed by default).

Is there anything else specific to your environment that I should be trying? For example, is your OCI API password protected? Are you using a different OKE driver version? etc.

Also, please confirm you are talking about the OKE Cluster driver for hosted Kubernetes (rather than the OCI node driver for the OCI infrastructure provider).

@chris93111
Copy link
Author

Hi i don't have the parameter region with 2.5.2 and oci 1.4.2 , work with 2.4.8 because parameter "region" is available
image

@jlamillan
Copy link
Collaborator

jlamillan commented Nov 13, 2020

I believe its choosing us-phoenix-1 by default, which should be ok for basic authentication purposes.

Is the admin in the User OCID field typo? Note that it is expecting a user OCID i.e. ocid1.user.oc1..aaaaaaaa....

@jlamillan jlamillan self-assigned this Nov 13, 2020
@chris93111
Copy link
Author

yes my ocid is ok because i can use with sdk of oci and api with no problem

but my region is in frankfurt, so maybe the region phoenix is not same authentification and i can't change this parameter with 2.5.2

@jlamillan
Copy link
Collaborator

Ok. Using the console, you should be able to check whether you're "subscribed" to the Phoenix region

@jlamillan
Copy link
Collaborator

What you're describing does sound like a bug. But we have a bit of a "chicken and egg" problem in that we need to authenticate to retrieve the region list.

The region list that was there before was static and often out of date since we're adding new regions so frequently.

@chris93111
Copy link
Author

I don't have subscription with phoenix region
Ok i inderstand region is recover dynamically but with 2.4.8 the region parameter is set by the user , maybe you can let the user overload region in 2.5.1 and with empty param use dynamic search region

@jlamillan
Copy link
Collaborator

@jrosinsk

@jlamillan
Copy link
Collaborator

While we are sorting this issue out, you should be able to work around your authentication issue by subscribing to the "US West (Phoenix)" region:

OCI Console=> Administration => Region Management=> US West (Phoenix) => Subscribe

@jlamillan jlamillan changed the title authentification always fail authentification always fails if user is not to subscribed to us-phoenix-1 region Nov 18, 2020
@jlamillan
Copy link
Collaborator

jlamillan commented Dec 3, 2020

Upstream PR to add the list of regions back to the authentication pane.

OKE Cluster

2.4 back-port PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants