Just curious, can you try without the double-quotes for region?
Thanks Vikram for pointing out. Still the same without any quotes.
I was desperate and trying different options and tried with quotes. Initial config file created has no quotes and i reverted back what it was.
Tried with different region too but no luck.
I am out of ideas and any help in this regard is greatly appreciated.
Understood. I also noticed the file timestamp for oci_api_key_public.pem, oci_api_key.pem and config are all the same. So I did not think the config file was manually updated.
Was yours an auto install or manual? From documentation, it almost looks like some of your information may be incorrect in the config. Clock, I remember, you mentioned is in sync.
html status code: 401
- Missing or incorrect authentication information. Verify that all the required information (tenant OCID, user OCID, fingerprint, and private key) is provided and accurate. Verify that the public key corresponding to the fingerprint has been uploaded for the user. For more information, see Required Keys and OCIDs.
- Clock skew. This status code is returned if the client's clock is skewed more than 5 minutes from the server's clock. For more information, see Maximum Allowed Client Clock Skew.
- API request signature error. This status code is returned if a required header is missing from a signing string. For more information, see Request Signatures.
I did a fresh install on a OCI compute instance just to see if it has anything to do with my install scripts.
Anyway I tried with a new user instead of a service administrator and it worked ...YAYYYYYYYYYYYYYYYYYYYY
Vikram thanks a lot man for your kind support and help.... Really appreciated.
[opc@shaikprod .oci]$ oci os ns get