Environment
- YugabyteDB Anywhere - 2.20.0 - 2.20.7
- YugabyteDB Anywhere - 2024.1.0 - 2024.1.3
Issue
When trying to create a new YugabyteDB Anywhere (YBA) provider configuration for Google Cloud Platform (GCP) or edit an existing GCP provider configuration, the task fails with the following error:
Cannot invoke "com.fasterxml.jackson.databind.JsonNode.asBoolean()" because
the return value of "com.fasterxml.jackson.databind.JsonNode.get(String)" is null.
Messages similar to the following are seen in the YBA application.log:
YW 2025-01-17T15:20:03.348Z [DEBUG] 640b51238dfafaae0849e9a5f41f76e4 from ShellProcessHandler in
TaskPool-CloudBootstrap(b4ce5709-1234-5678-9abc-9cfaeeb8b234)-0 - Proc stdout for
'bin/ybcloud.sh gcp --region us-central1 query instance_types
{"platformVersion":"2.20.7.1-b10","perRegionMetadata":{
"us-east1":{"subnetId":"east1-subnet","latitude":0.0,"longitude":0.0},
"us-central1":{"subnetId":"central1-subnet","latitude":0.0,"longitude":0.0}},
"airGapInstall":false,"sshPort":22,"createNewVpc":false,"setUpChrony":false,
"ntpServers":[],"showSetUpChrony":true,"skipProvisioning":false,
"skipKeyValidateAndUpload":false}' :
YW 2025-01-17T15:20:03.348Z [DEBUG] 640b51238dfafaae0849e9a5f41f76e4 from ShellProcessHandler in
TaskPool-CloudBootstrap(b4ce5709-1234-5678-9abc-9cfaeeb8b234)-0 -
<yb-python-error>{"type": "requests.exceptions.JSONDecodeError",
"message":"Expecting value: line 1 column 1 (char 0)",
"file": "/opt/yugabyte/devops/pexvenv/lib64/python3.8/site-packages/requests/models.py",
"name": "json", "line": 978}</yb-python-error>
Resolution
Overview
This issue occurs because a hard-coded URL used for gathering instance pricing data is no longer available.
This issue is resolved in newer releases of the YBA software. The issue is resolved in the 2.20 branch starting in version 2.20.8 and in the 2024.1 branch starting in version 2024.1.4. It is recommended to upgrade to a fixed version of YBA.
Workaround
If it is not practical to upgrade YBA, please contact support for a workaround. Once the workaround is implemented, Universe pricing calculations will be unavailable.
Note: The workaround will not be preserved through upgrades and will have to be repeated if the system is upgraded from an affected release to another affected release.
Comments
0 comments
Please sign in to leave a comment.