Release: 4.2, 4.3
Component: APIPRD
This can occur for various reasons but usually occurs because Jarvis and/or the portal tenants have not been properly on-boarded with the Portal. In some older versions of Portal (4.2.5) there were instances were Jarvis was not properly on-boarded during the initial setup.
First, you should confirm that Jarvis is properly on-boarded
1) Log in to the Portal host via SSH
2) Execute the below command to connect the LDDS container:
3) Run the below curl command:
curl -v http://apis:8080/onboarding/products
The expected result will be a JSON document with details regarding Jarvis (formatted below for readability). If this does not return something similar or simply returns empty JSON (ie: {}). You will need to proceed to step 4, otherwise proceed to step 5.
{
"products": [{
"product_id": "ca_apim",
"product_name": "APIM Portal Analytics"
}, {
"product_id": "jarvis",
"product_description": "Created internal product: jarvis",
"product_name": "jarvis"
}]
}
4) On-board Jarvis:
Execute the below command to connect the the LDDS container:
4a) Run the below command:
curl -X POST http://apis:8080/onboarding/products -w " Response Code %{http_code}" -H 'Content-Type: application/json' -d '{"product_id":"ca_apim","product_name":"APIM Portal Analytics"}'
The expected result with be a HTTP 204 (Success, no content returned)
4b) Type exit to exit the LDDS container and return to the Portal host.
5) On-board the tenant(s):
Run the following command:
6) Copy the JARVIS_PRODUCT_ID and JARVIS_URL for later use.
EXAMPLE
JARVIS_URL=http://apis:8080/",
JARVIS_PRODUCT_ID=ca_apim
7) Run the following command:
10) Run the below curl command replacing the details in the angle brackets <> with the values obtained in step 8. Be sure to remove the angle brackets.
The expected result with be either an HTTP 204 (Success, no content returned) or an HTTP 400 with a message indicating the tenant already exists. Should you receive a message indicating that the product ID does not exist you will need to execute step 4 again substituting the product ID and product name return in step 7.
ie: {"_message":"Tenant already exists.","_code":"1003"} Response Code 400
11) Type exit to exit the container
12) Run the following command to connect to the LDDS container:
13) Run the below curl command replacing the details in the angle brackets <> with the values obtained in step 8. Be sure to remove the angle brackets.