The fire-new installation way for Db2 Data Gate in Cloud Pak for Data 4.5.0

IBM Db2 for z/OS Data Gate blog series

Sowmya Kameswaran
Cloud Pak for Data
5 min readAug 12, 2022

--

By Lu Liang

As we all know, IBM Db2 Data Gate for z/OS is one base service of IBM Cloud Pak for Data (CP4D) and it makes data from Db2 for z/OS readily accessible on the CP4D platform for business users and application developers.

Since CP4D 4.0.0 release, the installation and management mechanism of CP4D is totally changed from assembly package to operator based package which relies on the Operator Lifecycle Manager (OLM) as well as some key features delivered by Cloud Pak Foundational Services (CPFS).

In CP4D 4.5.0 release, IBM introduces a fire-new installation way to help customer easily understand these changes and provides a unified user experience for its all services.

The following is the details about how to make DB2 Data Gate available in CP4D 4.5.0

CPD-CLI and olm-utils

cpd-cli is the command line interface tool of CP4D and you can download it from github. olm-utils is a new plug-in of cpd-cli, which was delivered as one single docker or podman container in a client system (Mac, Linux or Windows). In CP4D 4.5.0 release, olm-utils as an alias manage is imported into cpd-cli.

Prerequisites

The latest image of olm-utils iscp.stg.icr.io/cp/cpd/olm-utils:latest-validated. In order to pull image from cp.stg.icr.io, the container runtime such as podman or docker need to be configured.

Since CP4D is installed on top of openshift cluster, the openshift client oc is also needed and configured with the OCP cluster.

Overview

cpd-cli supports a series of sub commands for CP4D. All olm-utils supported sub commands and detailed usage can be showed by cpd-cli manage --help

Setup

Besides the above prerequisites, before running the cpd-cli command, the following environment variables are also needed.

Run the sub command login-to-ocp to start olm-utils container. The workspace cpd-cli-workspace is created concurrently and all logs and detailed messages are stored.

Run the sub command setup-instane-ns to configure namespaces for CP4D.

  • cpd-instance #the namespace for all provisioned services instance
  • cpd-operator #the namespace for all installed operator
  • ibm-common-services #the namespace for shared foundational services

Install Operator

Since Data Gate is one of base service of CP4D, the CP4D core service (ZEN) and Cloud Pak Foundational Services (CPFS) are also needed.

  1. Install foundational service operator

2. Install core service operator

3. Install Data Gate service operator

After the above 3 commands run successfully, these installed operators can be displayed on openshift cluster console ui as below.

Installed Operators

Install Service

  1. Install service for core and foundational service

2. Install service for datagate service

3. Check status

Installed Services

Provision Data Gate Instance

After the Data Gate service is installed successfully, the Data Gate instance can be provisioned from platform UI. The detailed provision steps can be found from this blog.

https://medium.com/icp-for-data/what-is-db2-data-gate-db2-data-gate-blog-series-part-1-e4aabebe020c

Provision Data Gate Instance

--

--