health
service-functionality
Run scaled-down versions of end-user workflows to assess the operational capabilities of services. To list supported services, run the service-functionality list command.
Prerequisites
Create a profile to use the cpd-cli
management commands.
If either of the following services are installed on the instance of IBM Software Hub where you plan to run the service-functionality command, you must ensure that you have an
existing service instance before you run the service-functionality command:
Pulling the required image from a private container registry
The ibm-service-functionality image is automatically
mirrored when you mirror the IBM Software Hub images
to your private container registry.
Before you run the cpd-cli
health
service-functionality command, you must authorize the client
runtime environment on your workstation to pull the ibm-service-functionality image from the private container registry:
- Ensure that Docker or Podman is running on the client workstation.
- Source your installation environment variables script.
- Authenticate to your private container registry:
- Docker
docker login ${PRIVATE_REGISTRY_LOCATION} \ -u ${PRIVATE_REGISTRY_PULL_USER} \ -p ${PRIVATE_REGISTRY_PULL_PASSWORD} - Podman
podman login ${PRIVATE_REGISTRY_LOCATION} \ -u ${PRIVATE_REGISTRY_PULL_USER} \ -p ${PRIVATE_REGISTRY_PULL_PASSWORD}
- Docker
To use the ibm-service-functionality image from your
private container registry, you must specify the following options when you run the cpd-cli
health
service-functionality command:
--image-prefix--image-tag
For example:
cpd-cli health service-functionality \
--control_plane_ns=${PROJECT_CPD_INST_OPERANDS} \
--profile=${CPD_PROFILE_NAME} \
--image-prefix=${PRIVATE_REGISTRY_LOCATION} \
--image-tag=${VERSION}.${IMAGE_ARCH}
Syntax
cpd-cli health service-functionality \
--control_plane_ns=<project-cpd-inst-operands> \
--profile=<cpd-profile-name>] \
[--image-prefix=<image-registry-prefix>] \
[--image-tag=<image-tag> \
[--log-level=debug|trace] \
[--save] \
[--services=<comma-separated-list-of-service-keys>] \
[--verbose]
Arguments
The command has no arguments.
Options
| Option | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
--control_plane_ns
|
The project where the IBM Software
Hub control plane is installed.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
--image-prefix |
Specify the registry that the
image should be pulled from.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
--image-tag |
Specify the tag that identifies
the image in the repository. The tag must exist on the
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
--profile |
The name of the profile that you
created to store information about an instance of Cloud Pak for Data and your credentials for the
instance.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
--services |
Specify the service or
services for which you want to run service functionality
checks.
|
Examples
- Standard run when IBM Knowledge Catalog is installed
-
cpd-cli health service-functionality \ --control_plane_ns=${PROJECT_CPD_INST_OPERANDS} \ --profile=${CPD_PROFILE_NAME}Sample output:
########################################################################### SERVICE FUNCTIONALITY CHECKS ########################################################################### Each check may take many minutes to complete. Starting parallel check(s) for: Common Core Services, IBM Knowledge Catalog Common Core Services - Check Report CCS Execution Create a project, List all projects, Create DataAsset [SUCCESS...] Clean Up Clean up check artifacts [SUCCESS...] IBM Knowledge Catalog - Check Report Metadata enrichment Load business terms and run metadata enrichment [SUCCESS...] Cleanup Clean up check artifacts [SUCCESS...] - Verbose run IBM Knowledge Catalog is installed
-
cpd-cli health service-functionality \ --control_plane_ns=${PROJECT_CPD_INST_OPERANDS} \ --profile=${CPD_PROFILE_NAME} \ --verboseSample output:
########################################################################### SERVICE FUNCTIONALITY CHECKS ########################################################################### Each check may take many minutes to complete. == Starting parallel check(s) for: Common Core Services, IBM Knowledge Catalog COMMON CORE SERVICES CCS EXECUTION: DESCRIPTION ACTION RESPONSE MESSAGE Success: Create Project POST /transactional/v2/projects 201 Created Created project: sfc_ccs_test_project, id: 2ffdb708-d48f-4f11-983c-1c9a305afd40 Success: Get all projects GET /v2/projects 200 OK List of Projects: ["sfc_ccs_test_project"] Success: Upload data-asset file PUT /v2/asset_files/data_asset/sfc-sample-data-asset.json 201 Created Sample Data File "sfc-sample-data-asset.json" uploaded as a Data Asset Success: Create data-asset POST /v2/data_assets 201 Created Success: Get created data-asset GET /v2/data_assets/ddf88299-f734-487d-bfdb-eeb1b2ed9f03 200 OK Name of the created asset: sfc-sample-data-asset.json COMMON CORE SERVICES CLEAN UP: DESCRIPTION ACTION RESPONSE MESSAGE Success: Delete DataAsset DELETE /v2/asset_files/data_asset/sfc-sample-data-asset.json 204 No Content Deleted Data Asset: sfc-sample-data-asset.json Success: Delete Project DELETE /transactional/v2/projects/2ffdb708-d48f-4f11-983c-1c9a305afd40 204 No Content Deleted Project: sfc_ccs_test_project IBM KNOWLEDGE CATALOG METADATA ENRICHMENT: DESCRIPTION ACTION RESPONSE MESSAGE Success: Get current user account ID GET /usermgmt/v1/user/currentUserInfo 200 OK Success: Create Category POST /v3/categories 201 Created Category: sfc_test_category, id: 665ea11e-32e6-491a-95bc-d9401a4095dd Success: Import Business Terms POST /v3/governance_artifact_types/glossary_term/import 200 OK Terms added to category: sfc_test_category Success: Get publish terms task GET /v3/workflow_user_tasks 200 OK Success: Publish Business terms POST /v3/workflow_user_tasks/4ec9caa1-b7f6-11ef-8c4d-0a580afe1129/actions 204 No Content Success: Verify published terms POST /v3/search 200 OK 4 terms published Success: Create Project POST /transactional/v2/projects 201 Created Project: sfc_test_project, id: 2f88beec-95e2-45d1-8234-e663af754db8 Success: Create Catalog POST /v2/catalogs 201 Created Catalog: sfc_test_catalog, id: 21b3888b-43c3-437a-9c99-2f420aa0c5f5 Success: Upload Metadata Import CSV PUT /v2/asset_files/data_asset/TEST_clients.csv 201 Created Success: Create Metadata Import asset POST /v2/data_assets 201 Created Success: Set Metadata Enrichment config PUT /v2/metadata_enrichment/metadata_enrichment_area/settings 200 OK Success: Run data enrichment POST /v2/metadata_enrichment/metadata_enrichment_area 201 Created Enrichment job id: 376a4446-9329-45f8-b74d-eb284050c7d8 Success: Confirm enrichment job completed GET /v2/jobs/376a4446-9329-45f8-b74d-eb284050c7d8/runs 200 OK Success: Verfiy data enrichment GET /v2/data_assets/2b68b72b-cf4c-4e89-9519-0ee67f29b493 200 OK 2 business terms enriched IBM KNOWLEDGE CATALOG CLEANUP: DESCRIPTION ACTION RESPONSE MESSAGE Success: Delete Business Terms POST /v3/governance_artifact_types/glossary_term/delete 204 No Content 4 terms deleted Success: Delete Category DELETE /v3/categories/665ea11e-32e6-491a-95bc-d9401a4095dd 200 OK Deleted category: sfc_test_category Success: Delete Catalog DELETE /v2/catalogs/21b3888b-43c3-437a-9c99-2f420aa0c5f5 204 No Content Deleted project: sfc_test_catalog Success: Delete Project DELETE /transactional/v2/projects/2f88beec-95e2-45d1-8234-e663af754db8 204 No Content Deleted project: sfc_test_project *** Common Core Services - Check Report CCS Execution Create a project, List all projects, Create DataAsset [SUCCESS...] Clean Up Clean up check artifacts [SUCCESS...] IBM Knowledge Catalog - Check Report Metadata enrichment Load business terms and run metadata enrichment [SUCCESS...] Cleanup Clean up check artifacts [SUCCESS...]