Error "Oracle cloud credentials test failed. Unable to get valid accessToken and establish connection with the provided credentials" While Integrating Oracle Cloud VMware Solution (OCVS) in VMware Aria Operations
search cancel

Error "Oracle cloud credentials test failed. Unable to get valid accessToken and establish connection with the provided credentials" While Integrating Oracle Cloud VMware Solution (OCVS) in VMware Aria Operations

book

Article ID: 400607

calendar_today

Updated On:

Products

VCF Operations/Automation (formerly VMware Aria Suite)

Issue/Introduction

  • When configuring an Oracle Cloud VMware Solution (OCVS) instance in VMware Aria Operations, the validate connection fails with the error:

    Oracle cloud credentials test failed. Unable to get valid accessToken and establish connection with the provided credentials



  • /storage/log/vcops/log/adapters/OCVSAdapter/ocvsAdapter.log reports the following exception

    ERROR [############-###########-####] (10920) com. vmware. vrops. adapter.ocvs. util. validators. impl. OCVSConnectionValidator. validate - Exception while getting Sddc from OCVS with exception
    org.bouncycastle. util. encoders. DecoderException: unable to decode base64 string: invalid characters encountered in base64 data
    at org.bouncycastle. util. encoders. Base64.decode (Unknown Source) ~[##-####-#.0.2.4.jar:1.0.2.4]

    ERROR [############-###########-####] (10920) com. vmware. vrops. adapter. ocvs. OCVSAdapter. onConfigure - Configure failed with exception
    com. vmware. vrops. adapter. ocvs. exception. LoginException: Oracle cloud credentials test failed. Unable to get valid accessToken and establish connection with the provided credentials.
    at com. vmware. vrops.adapter. ocvs.helper. OCVSAdapterHelper.doTest (OCVSAdapterHelper. java: 349) ~ [OCVSAdapter. jar: ?]

Environment

Aria Operations 8.18.x

Cause

  • This issue occurs when an encrypted private key or an SSH-RSA private key is used for the Oracle Cloud credentials. The VMware Aria Operations OCVS adapter is unable to properly decode these specific key formats, leading to the failure in obtaining a valid access token and establishing a connection

  • The Encrypted private key in PEM format looks something like this:

    -----BEGIN ENCRYPTED PRIVATE KEY-----
    MIIBIjANBgkqhkiG9w0BAQE...
    ...
    -----END ENCRYPTED  PRIVATE KEY-----

  • The SSH-RSA private key in PEM format looks something like this:

    -----BEGIN RSA PRIVATE KEY-----
    MIIBIjgkqhkiG9w0BAQE...
    ...
    -----END RSA  PRIVATE KEY-----

Resolution

To resolve this issue, generate the private key in a compatible format as outlined in the Oracle Cloud "Required Keys and OCIDs" documentation. Once the new private key is generated, update the Oracle Cloud VMware Solution instance configuration in VMware Aria Operations with the correctly formatted private key to successfully complete the integration