<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Madhavan V V K on Medium]]></title>
        <description><![CDATA[Stories by Madhavan V V K on Medium]]></description>
        <link>https://medium.com/@madhavan.vvk?source=rss-7313994230c0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*-mWy-RMWFaAXUkmrtpDs8w.jpeg</url>
            <title>Stories by Madhavan V V K on Medium</title>
            <link>https://medium.com/@madhavan.vvk?source=rss-7313994230c0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 18:28:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@madhavan.vvk/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[OpenShift 4.3: Installation of Terraform & Service Automation module on ICP4MCM V1.3]]></title>
            <link>https://medium.com/ibm-cloud-paks-help-and-guidance-from-ibm-cloud/openshift-4-3-a52d774e5f12?source=rss-7313994230c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/a52d774e5f12</guid>
            <category><![CDATA[mcm]]></category>
            <category><![CDATA[ibm-cloud-pak]]></category>
            <dc:creator><![CDATA[Madhavan V V K]]></dc:creator>
            <pubDate>Tue, 21 Jul 2020 10:07:52 GMT</pubDate>
            <atom:updated>2020-07-22T07:32:24.807Z</atom:updated>
            <content:encoded><![CDATA[<h3>OpenShift 4.3: Installation of Terraform &amp; Service Automation module on IBM Cloud Pak for Multicloud Management V1.3</h3><p>In this post, we will take a look at the installation steps of Terraform &amp; Service Automation module (Offline mode) on IBM Cloud Pak for Multicloud Management V1.3.</p><h3>Requirements</h3><p><strong><em>Hardware:</em></strong></p><p>The infrastructure used here is for demo/PoC purpose and it is the same environment where MCM Hub &amp; monitoring module is installed. Please find below the nodes used along with its capacity and roles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*A__98dN5PxzMffiD6MbVHQ.jpeg" /></figure><p><strong><em>Software:</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*c6ierh-QR6_d9g5ERzsONQ.jpeg" /></figure><p>For complete list of software with part number, refer <a href="https://www.ibm.com/support/knowledgecenter/SSFC4F_1.3.0/about/part_numbers.html">here</a>.</p><p><strong>Note:</strong> All installation steps are carried out from the Infra node.</p><h3>Preparing for Terraform &amp; Service Automation module (CAM) installation</h3><ol><li>Ensure that IBM Cloud Pak for Multicloud Management is installed on your hub cluster. Refer previous <a href="https://medium.com/ibm-cloud-paks-help-and-guidance-from-ibm-cloud/openshift-4-3-installation-of-ibm-cloud-pak-for-multicloud-management-v1-3-96d577792566">post</a>.</li><li>Manually install the service-catalog on OpenShift.</li></ol><p>a) Enable the service catalog API server.</p><pre>i) Edit the service catalog API server resource.<br>ii) Under <strong>spec</strong>, set the <strong>managementState</strong> field to <strong>Managed<br></strong>iii) Save the file to apply changes.</pre><p>The Operator installs the service catalog API server component into the “openshift-service-catalog-apiserver” namespace.</p><pre># oc edit servicecatalogapiservers</pre><pre>spec:<br>logLevel: Normal<br>managementState: <strong>Managed</strong></pre><pre># oc get projects | grep &quot;service-catalog-api&quot;<br>openshift-service-catalog-apiserver           Active</pre><pre># oc get pods -n openshift-service-catalog-apiserver<br>NAME              READY   STATUS    RESTARTS   AGE<br>apiserver-x84w8   1/1     Running   0          3m18s</pre><p>b) Enable the service catalog controller manager.</p><pre>i) Edit the service catalog controller manager resource.<br>ii) Under spec, set the managementState field to Managed:<br>iii) Save the file to apply the changes.</pre><p>The Operator installs the service catalog controller manager component into the “openshift-service-catalog-controller-manager” namespace.</p><pre># oc edit servicecatalogcontrollermanagers</pre><pre>spec:<br>logLevel: Normal<br>managementState: <strong>Managed</strong></pre><pre># oc get projects | grep &quot;service-catalog-control&quot;<br>openshift-service-catalog-controller-manager                Active</pre><pre># oc get pods -n openshift-service-catalog-controller-manager<br>NAME                       READY   STATUS    RESTARTS   AGEcontroller-manager-c7tph   1/1     Running   0          33s</pre><p>3. Install the Helm CLI, Kubernetes CLI (kubectl), and cloudctl CLI (cloudctl). This is already completed. Refer previous <a href="https://medium.com/ibm-cloud-paks-help-and-guidance-from-ibm-cloud/openshift-4-3-installation-of-monitoring-module-on-ibm-cloud-pak-for-multicloud-management-v1-3-6263fd6b5d80">post</a>.</p><p>4. The Helm repository must be configured to the ibm-charts repository and local-charts repository. To verify, from the ICP console, do the following steps:</p><p>a) In the navigation menu, click Administer -&gt; Helm Repository.</p><p>b) Verify whether you have configured the following repositories:</p><p>Name: ibm-charts</p><p>URL: <a href="https://raw.githubusercontent.com/IBM/charts/master/repo/stable/">https://raw.githubusercontent.com/IBM/charts/master/repo/stable/</a></p><p>Name: local-charts</p><p>URL: <a href="https://mycluster.icp:8443/helm-repo/charts">https://mycluster.icp:8443/helm-repo/charts</a></p><p>If you do not have these repositories configured, click Add repository and enter the Name and URL of the Helm repositories.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*UpvotU7ghWLJKB8eNnB_Gw.jpeg" /></figure><p>5. Persistent volumes with RWX mode is needed for Cloud Automation Manager and so the storage class <strong>rook-ceph-cephfs-internal (CephFS)</strong> is used here.</p><h3>Installation of Terraform &amp; Service Automation module (CAM)</h3><ol><li>Add the default pod security policy.</li></ol><pre># oc adm policy add-scc-to-user ibm-anyuid-hostpath-scc system:serviceaccount:services:default</pre><pre>securitycontextconstraints.security.openshift.io/ibm-anyuid-hostpath-scc added to: [&quot;system:serviceaccount:services:default&quot;]</pre><p>2. Below are the steps to create a new ServiceID that includes a service policy to grant Cluster Administrator/Administrator role to Terraform &amp; Service Automation Module and Helm API. Also, generates an API Key for Terraform &amp; Service Automation Module ServiceID. This key is used to onboard Terraform &amp; Service Automation Module into the Platform Identity and Access Management (IAM). IAM is used for authorization checks in Terraform &amp; Service Automation Module.</p><p>a) Export ServiceID and Service APIKey Name.</p><pre># export serviceIDName=&#39;service-deploy&#39;<br># export serviceApiKeyName=&#39;service-deploy-api-key&#39;</pre><p>b) Login to ICP console using Cloud Pak CLI.</p><pre># cloudctl login -a https://icp-console.apps.boycott.os.fyre.ibm.com:443 --skip-ssl-validation -u admin -p &lt;password&gt; -n services</pre><pre>Authenticating...<br>OK</pre><pre>Targeted account mycluster Account<br>Targeted namespace services</pre><pre>Configuring kubectl ...<br>Property &quot;clusters.mycluster&quot; unset.<br>Property &quot;users.mycluster-user&quot; unset.<br>Property &quot;contexts.mycluster-context&quot; unset.<br>Cluster &quot;mycluster&quot; set.<br>User &quot;mycluster-user&quot; set.<br>Context &quot;mycluster-context&quot; created.<br>Switched to context &quot;mycluster-context&quot;.<br>OK</pre><pre>Configuring helm: /root/.helm<br>OK</pre><p>c) Create Service ID.</p><pre># cloudctl iam service-id-create ${serviceIDName} -d &#39;Service ID for service-deploy&#39;</pre><pre>Name          service-deploy<br>Description   Service ID for service-deploy<br>CRN           crn:v1:icp:private:iam-identity:mycluster:n/services::serviceid:ServiceId-d79bd092-3149-4611-9bfb-a64e3ffc4829<br>Bound To      crn:v1:icp:private:k8:mycluster:n/services:::</pre><p>d) Create Service policy.</p><pre># cloudctl iam service-policy-create ${serviceIDName} -r Administrator,ClusterAdministrator --service-name &#39;idmgmt&#39;</pre><pre>Creating policy for service ID service-deploy in namespace services as admin...<br>OK<br>Service policy is successfully created</pre><pre>Policy ID:   67eeface-965c-48da-9de5-5671536d88e5<br>Roles:       Administrator, ClusterAdministrator<br>Resources:<br>Service Name:       idmgmt<br>Service Instance:<br>Resource Type:<br>Resource ID:</pre><pre># cloudctl iam service-policy-create ${serviceIDName} -r Administrator,ClusterAdministrator --service-name &#39;identity&#39;</pre><pre>Creating policy for service ID service-deploy in namespace services as admin...<br>OK<br>Service policy is successfully created<br>Policy ID:   c6631778-547c-4b4c-99d9-362939235ba0<br>Roles:       Administrator, ClusterAdministrator<br>Resources:<br>Service Name:       identity<br>Service Instance:<br>Resource Type:<br>Resource ID:</pre><p>e) Generate API Key.</p><pre># cloudctl iam service-api-key-create ${serviceApiKeyName} ${serviceIDName} -d &#39;Api key for service-deploy&#39;</pre><pre>Creating API key service-deploy-api-key of service service-deploy as admin...<br>OK<br>Service API key service-deploy-api-key is created</pre><pre>Please preserve the API key! It cannot be retrieved after it&#39;s created.</pre><pre>Name          service-deploy-api-key<br>Description   Api key for service-deploy<br>Bound To      crn:v1:icp:private:iam-identity:mycluster:n/services::serviceid:ServiceId-d79bd092-3149-4611-9bfb-a64e3ffc4829</pre><pre>Created At    2020-06-06T12:31+0000<br><strong>API Key       &lt;API Key&gt;</strong></pre><p>3. Execute the following commands to load the downloaded Terraform &amp; Service Automation Module offline PPA image into OpenShift docker registry.</p><pre># HOST=$(oc get route default-route -n openshift-image-registry --template=&#39;{{ .spec.host }}’)</pre><pre># cloudctl login -a https://icp-console.apps.boycott.os.fyre.ibm.com:443 --skip-ssl-validation -u admin -p &lt;password&gt; -n services</pre><pre>Authenticating...<br>OK</pre><pre>Targeted account mycluster Account<br>Targeted namespace services<br>Configuring kubectl ...<br>Property &quot;clusters.mycluster&quot; unset.<br>Property &quot;users.mycluster-user&quot; unset.<br>Property &quot;contexts.mycluster-context&quot; unset.<br>Cluster &quot;mycluster&quot; set.<br>User &quot;mycluster-user&quot; set.<br>Context &quot;mycluster-context&quot; created.<br>Switched to context &quot;mycluster-context&quot;.<br>OK</pre><pre>Configuring helm: /root/.helm<br>OK</pre><pre># docker login -u kubeadmin -p $(oc whoami -t) $HOST<br>Login Succeeded</pre><pre># cloudctl catalog load-archive --archive IBM_CLOUD_AUTO_MGR_4.2_Lnx.tar.gz --registry $HOST/services</pre><pre>Expanding archive<br>OK</pre><pre>Importing docker image(s)<br>Loading Image<br>Processing image: icam-broker:4.2.0.0-x86_64<br>Tagging Image<br>Pushing image as: default-route-openshift-image-registry.apps.boycott.os.fyre.ibm.com/services/icam-broker:4.2.0.0-x86_64<br>…………………………………………………………………………………………………………<br>…………………………………………………………………………………………………………<br>…………………………………………………………………………………………………………<br>Uploading Helm chart(s)<br>Processing chart: charts/ibm-cam-4.2.0.tgz<br>Updating chart values.yaml<br>Uploading chart<br>Loaded Helm chart<br>OK<br>Synch charts<br>OK</pre><pre>Archive finished processing</pre><p>Terraform and Service Automation can be installed either through UI or Command line. Here, UI based installation is followed.</p><p>4. Login to ICP console through a browser. Goto to Menu -&gt; Administer -&gt; Helm Repositories.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/1*o1gicOUsiNUdNBDA1NLTHQ.jpeg" /></figure><p>5. Click “Sync All” to Sync all repositories.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/817/1*i5sgzSENd_kh6No0cogPdg.jpeg" /></figure><p>6. Goto Catalog and search for ibm-cam.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*w4lz69Ndv09US3vK7lxN9Q.jpeg" /></figure><p>7. Click and open the ibm-cam local-charts.</p><p>8. Click Configure and Under Configuration tab, enter the values and accept the license agreement.</p><p>Note: Create a secret containing the credentials of the registry. You may accept the default values for parameters other than in the screenshots below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/695/1*PSk8fls7CW9QDAu1yUrR2g.jpeg" /></figure><p><strong>Note:</strong> Select “Use Dynamic Provisioning” and provide storage class name for mongo db, logs volume, terraform, and template designer volume components in the configuration.</p><p>9. Click Install.</p><p>10. Check if all pods have been created and running.</p><pre># oc get pods -n services</pre><pre>NAME                                READY     STATUS  RESTARTS  AGE<br>cam-bpd-cds-c7bf6bff-p9rth          1/1     Running   0         13m<br>cam-bpd-mariadb-648dbddcbc-bl4js    1/1     Running   0         13m<br>cam-bpd-mds-577fb744b5-5g9hv        1/1     Running   0         13m<br>cam-bpd-ui-5bdd6c6d88-bfjpj         1/1     Running   0         13m<br>cam-broker-58d97bf857-k4t4d         1/1     Running   0         13m<br>cam-iaas-675bd8487-lndwz            1/1     Running   0         13m<br>cam-mongo-6d785588d7-mvtcm          1/1     Running   0         13m<br>cam-orchestration-5fbcc9bb76-4r6cx  1/1     Running   0         13m<br>cam-portal-ui-d45f58d89-g6jzl       1/1     Running   0         13m<br>cam-provider-helm-864f5694c9-mdhqj   1/1     Running   0        13m<br>cam-provider-terraform-6cc7f7f678-82w5b  1/1     Running 0      13m<br>cam-proxy-66777878f7-nxtct          1/1     Running   0         13m<br>cam-service-composer-api-5d4cb98f44-jns2k 1/1     Running 0     13m<br>cam-service-composer-ui-865d5b8957-74wfn  1/1     Running 0     13m<br>cam-tenant-api-8597bc887f-2n5sj      1/1     Running   0        13m<br>cam-ui-basic-679768c646-xzfqd        1/1     Running   0        13m</pre><p>11. Access CAM in a browser using the url from “oc get routes” output.</p><pre># oc get routes -n services</pre><pre>NAME   HOST/PORT    PATH   SERVICES    PORT  TERMINATION   WILDCARD<br>cam    <strong>cam.apps.boycott.os.fyre.ibm.com</strong>  cam-proxy   cam-proxy-https   passthrough/Redirect   None</pre><p><a href="https://cam.apps.boycott.os.fyre.ibm.com/">https://cam.apps.boycott.os.fyre.ibm.com</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/757/1*SKmXgxOOh8xn17CMNvqN8A.jpeg" /></figure><h3>Integrating Terraform &amp; Service Automation with IBM Cloud Pak for Multicloud Management</h3><p>Complete the following steps to enable navigation to Terraform &amp; Service Automation (CAM).</p><ol><li>Download and configure the JQ tool using the following commands.</li></ol><pre># wget -O jq <a href="https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64">https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64</a></pre><pre># chmod +x ./jq-linux64<br># mv jq-linux64 /usr/bin/jq<br># ls -l /usr/bin/jq</pre><p>2. Enable navigation to your Terraform &amp; Service Automation located in the default namespace (services). Refer requirements section for the script download.</p><pre># chmod 755 ./automation-navigation-updates.sh &amp;&amp; ./automation-navigation-updates.sh -a</pre><pre>Checking if kubectl is installed...<br>kubectl is installed<br>Running kubectl command to retrieve navigation items...<br>*** A backup cr file is stored in ./navconfigurations.orginal</pre><pre>Finished importing into navconfigurations.yaml<br>Verifying...<br>Navconfigurations.yaml file is valid<br>Navigation items added to file<br>Updating MCM with new items...<br>Finished updating MCM<br>Success!</pre><p>3. Verify that the Terraform &amp; Service Automation instance is in the IBM Cloud Pak console navigation menu. From the IBM Cloud Pak navigation menu click <strong>Automate infrastructure</strong> &gt; <strong>Terraform Automation</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*cLpzB3vtrE4oGovkvfq9-Q.jpeg" /></figure><p>The integration of CAM with MCM is complete.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a52d774e5f12" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ibm-cloud-paks-help-and-guidance-from-ibm-cloud/openshift-4-3-a52d774e5f12">OpenShift 4.3: Installation of Terraform &amp; Service Automation module on ICP4MCM V1.3</a> was originally published in <a href="https://medium.com/ibm-cloud-paks-help-and-guidance-from-ibm-cloud">IBM Cloud Pak’s Help and Guidance from IBM Expert Labs Asia Pacific</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OpenShift 4.3: Installation of Monitoring module on IBM Cloud Pak for Multicloud Management V1.3]]></title>
            <link>https://medium.com/ibm-cloud-paks-help-and-guidance-from-ibm-cloud/openshift-4-3-installation-of-monitoring-module-on-ibm-cloud-pak-for-multicloud-management-v1-3-6263fd6b5d80?source=rss-7313994230c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/6263fd6b5d80</guid>
            <category><![CDATA[mcm]]></category>
            <category><![CDATA[ibm-cloud-pak]]></category>
            <dc:creator><![CDATA[Madhavan V V K]]></dc:creator>
            <pubDate>Mon, 20 Jul 2020 18:36:00 GMT</pubDate>
            <atom:updated>2020-08-05T05:53:52.303Z</atom:updated>
            <content:encoded><![CDATA[<p>In this post, we will take a look at the installation steps of the monitoring module (Offline mode) on IBM Cloud Pak for Multicloud Management V1.3.</p><h3><strong>Requirements</strong></h3><p><strong><em>Hardware:</em></strong></p><p>The infrastructure used here is for demo/PoC purpose and it is the same environment where MCM Hub V1.3 is installed. Please find below the nodes used along with its capacity and roles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*A__98dN5PxzMffiD6MbVHQ.jpeg" /></figure><p><strong><em>Software:</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*pggLh1Qf2fu8fx1z8DN1Nw.jpeg" /></figure><p>For complete list of software with part number, refer <a href="https://www.ibm.com/support/knowledgecenter/SSFC4F_1.3.0/about/part_numbers.html">here</a>.</p><p><strong>Note:</strong> All installation steps are carried out from the Infra node.</p><h3>Preparing for monitoring module (iCAM) installation</h3><ol><li>Ensure that IBM Cloud Pak for Multicloud Management is installed on your hub cluster. Refer previous <a href="https://medium.com/ibm-cloud-paks-help-and-guidance-from-ibm-cloud/openshift-4-3-installation-of-ibm-cloud-pak-for-multicloud-management-v1-3-96d577792566">post</a>.</li><li>Choose the storage solution for your Monitoring Module installation. Here, I have used the same rook-ceph block storage as it is a demo setup. If you are implementing on a production environment use persistent volumes that are backed by local storage. Refer IBM knowledge center.</li><li>Install kubectl. It is installed as part of OpenShift 4.3 deployment.</li></ol><pre># ls -l /usr/bin/kubectl</pre><pre>lrwxrwxrwx 1 root root 13 Jun  2 12:00 /usr/bin/kubectl -&gt; /root/kubectl</pre><p>Follow the below steps to configure the kubectl client.</p><p>From the ICP console (<em>https://icp-console.apps.boycott.os.fyre.ibm.com:443</em>), select the user icon, then click <strong>Configure client</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/484/1*BKXXc9wfPban8kpbhE0k_Q.jpeg" /></figure><p>Copy and paste the configuration information to your command line, and press <strong>Enter</strong>.</p><p>4. Install the cloudctl CLI.</p><p>a) Login to the ICP console. Click on Install CLI Tools. Under “IBM Cloud Pak CLI”, select the OS and copy the curl command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/431/1*ltyJ7QUl_jY3Fu6Tn-S6Ig.jpeg" /></figure><p>b) Execute the copied curl command on the Infra node to download the cloudctl file. Give permissions and copy to /usr/local/bin</p><pre># curl -kLo cloudctl-linux-amd64-v3.2.4-1675 <a href="https://icp-console.apps.boycott.os.fyre.ibm.com/api/cli/cloudctl-linux-amd64">https://icp-console.apps.boycott.os.fyre.ibm.com:443/api/cli/cloudctl-linux-amd64</a></pre><pre># chmod 755 cloudctl-linux-amd64-v3.2.4-1675<br># mv cloudctl-linux-amd64-v3.2.4-1675 /usr/local/bin/cloudctl</pre><p>c) Confirm that cloudctl is installed.</p><pre># cloudctl --help</pre><p>The cloudctl usage is displayed.</p><p>d) Login to the ICP console using cloudctl to ensure it is installed correctly. This will also create necessary <strong>.pem</strong> files required for helm to work.</p><pre># cloudctl login -a https://icp-console.apps.boycott.os.fyre.ibm.com:443 --skip-ssl-validation</pre><pre>Username&gt; admin<br>Password&gt;</pre><pre>Authenticating...<br>OK</pre><pre>Targeted account mycluster Account<br>Enter a namespace &gt; kube-system<br>Targeted namespace kube-system</pre><pre>Configuring kubectl ...<br>Property &quot;clusters.mycluster&quot; unset.<br>Property &quot;users.mycluster-user&quot; unset.<br>Property &quot;contexts.mycluster-context&quot; unset.<br>Cluster &quot;mycluster&quot; set.<br>User &quot;mycluster-user&quot; set.<br>Context &quot;mycluster-context&quot; created.<br>Switched to context &quot;mycluster-context&quot;.<br>OK</pre><pre>Configuring helm: /root/.helm<br>OK</pre><pre># cd /root/.helm<br># ls<br>ca.pem  cert.pem  key.pem</pre><p>5. Install the Helm CLI.</p><p>a) Login to the ICP console. Click on Install CLI Tools. Under “Helm CLI”, select the OS and copy the curl command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/446/1*shdZ6uSpXxUi1ikHUBXFyw.jpeg" /></figure><p>b) Execute the copied curl command on the Infra node to download the installation file. Extract, give permissions and copy to /usr/local/bin</p><pre># curl -kLo helm-linux-amd64-v2.12.3.tar.gz <a href="https://icp-console.apps.boycott.os.fyre.ibm.com/api/cli/helm-linux-amd64.tar.gz">https://icp-console.apps.boycott.os.fyre.ibm.com:443/api/cli/helm-linux-amd64.tar.gz</a></pre><pre># mkdir helm-unpacked<br># tar -xvzf ./helm-linux-amd64-v2.12.3.tar.gz -C helm-unpacked<br>linux-amd64/<br>linux-amd64/LICENSE<br>linux-amd64/helm<br>linux-amd64/README.md</pre><pre># chmod 755 ./helm-unpacked/linux-amd64/helm<br># mv ./helm-unpacked/linux-amd64/helm /usr/local/bin/helm</pre><p>c) Set HELM_HOME and initialize Helm CLI.</p><pre># export HELM_HOME=~/.helm</pre><pre># helm init<br>Creating /root/.helm/repository<br>Creating /root/.helm/repository/cache<br>Creating /root/.helm/repository/local<br>Creating /root/.helm/plugins<br>Creating /root/.helm/starters<br>Creating /root/.helm/cache/archive<br>Creating /root/.helm/repository/repositories.yaml</pre><pre>Adding stable repo with URL: <a href="https://kubernetes-charts.storage.googleapis.com/">https://kubernetes-charts.storage.googleapis.com</a><br>Adding local repo with URL: http://127.0.0.1:8879/charts</pre><pre>$HELM_HOME has been configured at /root/.helm.<br>Warning: Tiller is already installed in the cluster.</pre><pre>(Use --client-only to suppress this message, or --upgrade to upgrade Tiller to the current version.)</pre><pre>Happy Helming!</pre><p>d) Verify that the Helm CLI is initialized.</p><pre># helm version --tls</pre><pre>Client: &amp;version.Version{SemVer:&quot;v2.12.3&quot;, GitCommit:&quot;eecf22f77df5f65c823aacd2dbd30ae6c65f186e&quot;, GitTreeState:&quot;clean&quot;}</pre><pre>Server: &amp;version.Version{SemVer:&quot;v2.12.3+icp&quot;, GitCommit:&quot;&quot;, GitTreeState:&quot;&quot;}</pre><p>6. Add trusted certificate authorities (CAs) to the OpenShift cluster for use when pushing and pulling images using docker. If you skip this step, you may encounter similar error:</p><pre>rpc error: code = Unknown desc = error pinging docker registry default-route-openshift-image-registry.apps.bibber.os.fyre.ibm.com: Get <a href="https://default-route-openshift-image-registry.apps.bibber.os.fyre.ibm.com/v2/">https://default-route-openshift-image-registry.apps.bibber.os.fyre.ibm.com/v2/</a>: <strong>x509: certificate signed by unknown authority</strong></pre><p>a) Create a ConfigMap in the “openshift-config” namespace containing the trusted certificates for the registries that use self-signed certificates.</p><pre># oc create configmap registry-cas -n openshift-config --from-file=default-route-openshift-image-registry.apps.bibber.os.fyre.ibm.com=/etc/docker/certs.d/default-route-openshift-image-registry.apps.bibber.os.fyre.ibm.com/ca.crt</pre><pre>configmap/registry-cas created</pre><p>b) Update the cluster image configuration.</p><pre># oc patch image.config.openshift.io/cluster --patch &#39;{&quot;spec&quot;:{&quot;additionalTrustedCA&quot;:{&quot;name&quot;:&quot;registry-cas&quot;}}}&#39; --type=merge</pre><pre>image.config.openshift.io/cluster patched</pre><p>7. Create a secret containing the credentials of the registry. If you skip this step, you may encounter similar error:</p><pre>Failed to pull image &quot;default-route-openshift-image-registry.apps.bibber.os.fyre.ibm.com/kube-system/cassandra:3.11.5-202002261743&quot;: rpc error: code = Unknown desc = Error reading manifest 3.11.5-202002261743 in default-route-openshift-image-registry.apps.bibber.os.fyre.ibm.com/kube-system/cassandra: <strong>unauthorized: authentication required</strong></pre><pre># oc whoami -t</pre><p>Copy the token from the above command.</p><pre>#oc create secret docker-registry dockersecret --docker-server=default-route-openshift-image-registry.apps.boycott.os.fyre.ibm.com --docker-username=kubeadmin --docker-password=<strong>&lt;token&gt;</strong></pre><pre>secret/dockersecret created</pre><p>To use the secret for pulling images for Pods, add the secret to your service account. “default” is the default service account.</p><pre># oc secrets link default dockersecret --for=pull</pre><h3>Installation of monitoring module (iCAM)</h3><ol><li>Edit the cluster config resource to enable the creation of a defaultRoute.</li></ol><pre># oc patch configs.imageregistry.operator.openshift.io/cluster --patch &#39;{&quot;spec&quot;:{&quot;defaultRoute&quot;:true}}&#39; --type=merge</pre><pre>config.imageregistry.operator.openshift.io/cluster patched (no change)</pre><p>2. Add the default-route that is created by the OpenShift operator as an insecure registry to docker by opening or creating the /etc/docker/daemon.json file, and adding the following lines:</p><pre># oc get routes -n openshift-image-registry | grep default-route | awk &#39;{ print $2 }&#39;</pre><pre>default-route-openshift-image-registry.apps.boycott.os.fyre.ibm.com</pre><pre># vi /etc/docker/daemon.json<br>{<br>&quot;insecure-registries&quot;: [&quot;default-route-openshift-image-registry.apps.boycott.os.fyre.ibm.com”]<br>}</pre><p>3. Restart docker.</p><pre># systemctl restart docker</pre><p>4. Create a directory to save the installation and configuration files. Change to this directory after you create it.</p><pre># mkdir install_dir/<br># cd install_dir/</pre><p>5. Log in to the OCP console using CLI and go to kube-system project.</p><pre># oc login &lt;openshift url&gt; -u &lt;username&gt; -p &lt;password&gt;<br># oc project kube-system</pre><p>6. Log into the ICP console using CLI.</p><pre># cloudctl login -a https://icp-console.apps.boycott.os.fyre.ibm.com:443 -n kube-system --skip-ssl-validation</pre><pre>Username&gt; admin<br>Password&gt;<br>Authenticating...<br>OK</pre><pre>Targeted account mycluster Account<br>Targeted namespace kube-system</pre><pre>Configuring kubectl ...<br>Property &quot;clusters.mycluster&quot; unset.<br>Property &quot;users.mycluster-user&quot; unset.<br>Property &quot;contexts.mycluster-context&quot; unset.<br>Cluster &quot;mycluster&quot; set.<br>User &quot;mycluster-user&quot; set.<br>Context &quot;mycluster-context&quot; created.<br>Switched to context &quot;mycluster-context&quot;.<br>OK</pre><pre>Configuring helm: /root/.helm<br>OK</pre><p>7. Log in to the docker registry.</p><pre># docker login $(oc registry info) -u kubeadmin -p $(oc whoami -t)<br>Login Succeeded</pre><p>8. Navigate to the directory containing the downloaded iCAM archive package and load the package into the local registry. (refer Requirements section for the image details)</p><pre># cloudctl catalog load-archive --archive icam_ppa_2020.1.0_prod.tar.gz --registry $(oc registry info)/kube-system</pre><pre>Expanding archive<br>OK</pre><pre>Importing docker image(s)<br>Loading Image<br>Processing image: agentbootstrap:APM_202003130824<br>Tagging Image</pre><pre>Pushing image as: default-route-openshift-image-registry.apps.boycott.os.fyre.ibm.com/kube-system/agentbootstrap:APM_202003130824<br>Processing image: agentmgmt:APM_202003090608<br>Tagging Image</pre><pre>Pushing image as: default-route-openshift-image-registry.apps.boycott.os.fyre.ibm.com/kube-system/agentmgmt:APM_202003090608<br>………………………………………………………………………………………………………………………………………………<br>………………………………………………………………………………………………………………………………………………<br>………………………………………………………………………………………………………………………………………………<br>Processing image: zookeeper:1.1.10-202002261206<br>Tagging Image</pre><pre>Pushing image as: default-route-openshift-image-registry.apps.boycott.os.fyre.ibm.com/kube-system/zookeeper:1.1.10-202002261206<br>OK</pre><pre>Uploading Helm chart(s)<br>Processing chart: charts/ibm-cloud-appmgmt-prod-1.7.0.tgz<br>Updating chart values.yaml<br>Uploading chart<br>Loaded Helm chart<br>OK</pre><pre>Synch charts<br>OK</pre><p>9. Log in the IBM Cloud Pak console.</p><p>10. Click Catalog -&gt; Select the Repositories drop-down list -&gt; Select local-charts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*u5Tvw4HepR7fh25slmC4og.jpeg" /></figure><p>11. Select the “ibm-cloud-appmgmt-prod” chart and click <strong>Configure.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/477/1*nSu0ZYrRw8JxzjbJWjksag.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*wTJW838f-a66AxOk4sst1A.jpeg" /></figure><p>12. Under Configuration tab, provide the following values.</p><pre>Helm release name: ibmcloudappmgmt (can be any alpha numeric string)<br>Target namespace: kube-system<br>Target cluster: local-cluster<br>License Accepted: Yes</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/789/1*kmMoco3M1shgMibxUdYQDw.jpeg" /></figure><p>13. Under the <strong>Parameters</strong> area, expand <strong>All parameters</strong> and configure the required parameters. All others can be left as default or modified based on requirement.</p><p>Commands to get the values of certain parameters is enclosed between &lt;&lt; &gt;&gt;.</p><pre><strong>Create CRD:</strong> Yes<br><strong>Create TLS Certs:</strong> Yes<br><strong>Resource monitoring:</strong> Yes</pre><pre><strong>Cloud Console FQDN:</strong> icp-console.apps.boycott.os.fyre.ibm.com</pre><pre>&lt;&lt; kubectl get configmap ibmcloud-cluster-info -n kube-public -o=jsonpath=&#39;{.data.cluster_address}&#39; &gt;&gt;</pre><pre><strong>Cloud Console Port:</strong> 443</pre><pre>&lt;&lt; oc get configmap ibmcloud-cluster-info -n kube-public -o=jsonpath=&#39;{.data.cluster_router_https_port}&#39; &gt;&gt;</pre><pre><strong>Cloud Proxy FQDN:</strong> icp-proxy.apps.boycott.os.fyre.ibm.com</pre><pre>&lt;&lt; oc get configmap ibmcloud-cluster-info -n kube-public -o=jsonpath=&#39;{.data.proxy_address}&#39; &gt;&gt;</pre><pre><strong>Cluster Master FQDN</strong>: icp-console.apps.boycott.os.fyre.ibm.com</pre><pre>&lt;&lt; kubectl get configmap ibmcloud-cluster-info -n kube-public -o=jsonpath=&#39;{.data.cluster_address}&#39; &gt;&gt;</pre><pre><strong>Cluster Master Port:</strong> 443</pre><pre>&lt;&lt; oc get configmap ibmcloud-cluster-info -n kube-public -o=jsonpath=&#39;{.data.cluster_router_https_port}&#39; &gt;&gt;</pre><pre><strong>Product Deployment Size:</strong> test_amd64 (as it is a demo setup, you may choose other options)</pre><pre><strong>Image Repository:</strong> default-route-openshift-image-registry.apps.boycott.os.fyre.ibm.com/kube-system</pre><pre><strong>Image Pull Secret:</strong> dockersecret (created in the previous section)</pre><pre><strong>ICAM Default Storage Class:</strong> rook-ceph-block-internal (any block storage class)</pre><p>14. After configuring all the required parameters, click <strong>Install</strong> to deploy the ibm-cloud-appmgmt-prod Helm chart.</p><p>15. Approximately after 10–30 minutes, check by running the oc get pods -l release=ibmcloudappmgmt -n kube-system command.</p><pre># oc get pods -l release=ibmcloudappmgmt -n kube-system</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*ErpMXk2NhP4a8Pueqbli7g.png" /></figure><p>16. Next, complete the post-deployment steps to register with OIDC and register the service policy:</p><p>In the IBM Cloud Pak console, click the menu, and select <strong>Monitor health</strong> <strong>-&gt;</strong> <strong>Helm Releases</strong>, then select the release name — ibmcloudappmgmt. Scroll to the notes section and complete <strong>step 3 (OIDC registration)</strong> of the <strong>Notes</strong> section. Run the two kubectl commands that are displayed in step 3 in the <strong>Notes</strong> section.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*gnfvK0aXO6rMis6IWFW6jw.jpeg" /></figure><p>a) OIDC registration with IBM Cloud Pak for Multicloud Management is required to be able to login to the Performance Monitoring UI.</p><pre># kubectl exec -n kube-system -t `kubectl get pods -l release=ibmcloudappmgmt -n kube-system | grep &quot;ibmcloudappmgmt-ibm-cem-cem-users&quot; | grep &quot;Running&quot; | head -n 1 | awk &#39;{print $1}&#39;` bash -- &quot;/etc/oidc/oidc_reg.sh&quot; &quot;`echo $(kubectl get secret platform-oidc-credentials -o yaml -n kube-system | grep OAUTH2_CLIENT_REGISTRATION_SECRET: | awk &#39;{print $2}&#39;)`&quot;</pre><pre>Registering IBM Cloud Event Management identity ...<br>Checking registration (internal)...<br>% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current Dload  Upload   Total   Spent    Left  Speed</pre><pre>100   135    0   135    0     0     25      0 --:--:--  0:00:05 --:--:--    32</pre><pre>✖ Client does not exist...<br>Registering client...<br>Done.</pre><p>b) Policy registration with IBM Cloud Pak for Multicloud Management is required to allow the Performance Monitoring services to be able to access other services.</p><pre># kubectl exec -n kube-system -t `kubectl get pods -l release=ibmcloudappmgmt -n kube-system | grep &quot;ibmcloudappmgmt-ibm-cem-cem-users&quot; | grep &quot;Running&quot; | head -n 1 | awk &#39;{print $1}&#39;` bash -- &quot;/etc/oidc/registerServicePolicy.sh&quot; &quot;`echo $(kubectl get secret ibmcloudappmgmt-cem-service-secret -o yaml -n kube-system | grep cem-service-id: | awk &#39;{print $2}&#39;)`&quot; &quot;`cloudctl tokens --access`&quot;</pre><pre>Registering IBM Cloud Event Management identity ...</pre><pre>Checking service policy registration...</pre><pre>% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current Dload  Upload   Total   Spent    Left  Speed</pre><pre>100    15  100    15    0     0      6      0  0:00:02  0:00:02 --:--:--     6</pre><pre>Adding first policy registration<br>Adding second policy registration<br>Done</pre><p>The Monitoring Module is successfully installed with IBM Cloud Pak for Multicloud Management. If you want to verify that your installation is successful, you can run the helm test my_release_name --cleanup --tls command. If the Monitoring installation is successful, all the test pods that are generated are passed.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6263fd6b5d80" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ibm-cloud-paks-help-and-guidance-from-ibm-cloud/openshift-4-3-installation-of-monitoring-module-on-ibm-cloud-pak-for-multicloud-management-v1-3-6263fd6b5d80">OpenShift 4.3: Installation of Monitoring module on IBM Cloud Pak for Multicloud Management V1.3</a> was originally published in <a href="https://medium.com/ibm-cloud-paks-help-and-guidance-from-ibm-cloud">IBM Cloud Pak’s Help and Guidance from IBM Expert Labs Asia Pacific</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OpenShift 4.3: Installation of IBM Cloud Pak for Multicloud Management V1.3]]></title>
            <link>https://medium.com/ibm-cloud-paks-help-and-guidance-from-ibm-cloud/openshift-4-3-installation-of-ibm-cloud-pak-for-multicloud-management-v1-3-96d577792566?source=rss-7313994230c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/96d577792566</guid>
            <category><![CDATA[ibm-cloud-pak]]></category>
            <category><![CDATA[mcm]]></category>
            <dc:creator><![CDATA[Madhavan V V K]]></dc:creator>
            <pubDate>Thu, 16 Jul 2020 15:19:12 GMT</pubDate>
            <atom:updated>2020-07-20T16:33:08.909Z</atom:updated>
            <content:encoded><![CDATA[<p>The IBM Cloud Pak for Multicloud Management (CP4MCM), running on Red Hat OpenShift, is an open, hybrid cloud management platform. This platform helps organizations break down IT silos and move operations to start to codify tasks and processes and manage them as code artifacts. With CP4MCM, you get more application and cluster visibility across the enterprise to any public or private cloud. You can improve automation by simplifying your IT and application operations management with increased flexibility and cost savings, and intelligent data analysis driven by predictive signals.</p><p>In this post, we will go through<strong> air-gapped</strong> installation of IBM Cloud Pak for Multicloud Management 1.3 on Red Hat OpenShift 4.3 along with the expected output.</p><h3>Requirements</h3><p><strong><em>Hardware:</em></strong></p><p>The infrastructure used here is for demo/PoC purpose. Please find below the nodes used along with its capacity and roles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*A__98dN5PxzMffiD6MbVHQ.jpeg" /></figure><p><strong><em>Software:</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*2a1E0zrR8Jf43k2hDlcfUQ.jpeg" /></figure><p>For complete list of software with part number, refer <a href="https://www.ibm.com/support/knowledgecenter/SSFC4F_1.3.0/about/part_numbers.html">here</a>.</p><p><strong>Note:</strong> All installation steps are carried out from the Infra node.</p><h3>Preparing for MCM Hub installation</h3><ol><li>Ensure that a supported version of OpenShift Container Platform, including registry and storage services, installed and working in your cluster.</li><li>Access the OCP web console by running the following command.</li></ol><pre># kubectl -n openshift-console get route</pre><pre>NAME        HOST/PORT          PATH   SERVICES    PORT    TERMINATION          WILDCARD<br>console     <strong>console-openshift-console.apps.boycott.os.fyre.ibm.com</strong>       console     https   reencrypt/Redirect   None</pre><p>The console URL here is https://console-openshift-console.apps.boycott.os.fyre.ibm.com. Open the URL in the browser and check the result.</p><p>3. Docker is required for installing CP4MCM and needs to be installed on the Infra node. Install, enable and start docker.</p><pre># yum install -y docker<br># systemctl enable docker<br># systemctl start docker</pre><p>4. Login to the OpenShift Cluster.</p><pre># oc login &lt;openshift url&gt; -u &lt;username&gt; -p &lt;password&gt;</pre><p>5. A pre-configured Storage Class in OpenShift Container Platform that can be used for creating storage for CP4MCM. Pick a storage class.</p><pre># oc get sc</pre><pre>NAME                              PROVISIONER                   AGE<br>rook-ceph-block-internal          rook-ceph.<strong>rbd</strong>.csi.ceph.com    132m<br>rook-ceph-cephfs-internal         rook-ceph.<strong>cephfs</strong>.csi.ceph.com 132m<br>rook-ceph-delete-bucket-internal  ceph.rook.io/bucket           132m</pre><p>Here, we have rook-ceph storage provisioner with two CSI drivers integrated that will enable different scenarios:</p><p><strong>RBD:</strong> This driver is optimized for RWO pod access where only one pod may access the storage. <strong>CephFS:</strong> This driver allows for RWX with one or more pods accessing the same storage.</p><p>MCM hub and iCAM can work with persistent storage with RWO access and so the storage class <strong>rook-ceph-block-internal (RBD)</strong> is configured as default to enable dynamic provisioning of storage during installation.</p><pre># kubectl patch storageclass rook-ceph-block-internal -p &#39;{&quot;metadata&quot;: {&quot;annotations&quot;:{&quot;storageclass.kubernetes.io/is-default-class&quot;:&quot;true&quot;}}}&#39;</pre><pre>storageclass.storage.k8s.io/rook-ceph-block-internal patched</pre><pre># oc get sc<br>NAME                                   PROVISIONER              AGE<br>rook-ceph-block-internal <strong>(default)</strong> rook-ceph.rbd.csi.ceph.com   134m<br>rook-ceph-cephfs-internal        rook-ceph.cephfs.csi.ceph.com  134m rook-ceph-delete-bucket-internal   ceph.rook.io/bucket          134m</pre><p>6. Ensure that the OpenShift Container Platform registry has a valid route.</p><pre># oc patch configs.imageregistry.operator.openshift.io/cluster --type merge -p &#39;{&quot;spec&quot;:{&quot;defaultRoute&quot;:true}}&#39;</pre><pre>config.imageregistry.operator.openshift.io/cluster patched</pre><p>7. Ensure that the image registry has at least 100 GB CP4MCM images. Steps to check the Docker registry volume space:</p><p>a) Switch to the openshift-image-registry project.</p><pre># oc project openshift-image-registry</pre><pre>Now using project &quot;openshift-image-registry&quot; on server “https://api.apps.boycott.os.fyre.ibm.com:6443”.</pre><p>b) List Docker registry pods.</p><pre># oc get pod</pre><pre>NAME                               READY   STATUS    RESTARTS   AGE<br>cluster-image-registry-<br>operator-9754995-wkzl5             2/2     Running   0          155m<br>image-registry-7c797946b7-z2f6n    1/1     Running   0          149m<br>node-ca-45gqn                      1/1     Running   0          149m<br>node-ca-5sntb                      1/1     Running   0          150m<br>node-ca-p5gxr                      1/1     Running   0          150m<br>node-ca-z7bgx                      1/1     Running   0          150m</pre><p>c) Access the shell inside the pod and check the disk capacity.</p><pre># oc exec -it image-registry-7c797946b7-z2f6n bash</pre><pre>bash-4.2$ df -h</pre><pre>Filesystem        Size       Used     Avail   Use%  Mounted on<br>overlay           250G       11G       239G    5%   /<br>tmpfs             64M        0         64M     0%   /dev<br>tmpfs             7.9G       0         7.9G    0%   /sys/fs/cgroup<br>shm               64M        0         64M     0%   /dev/shm<br>tmpfs             7.9G       6.3M      7.9G    1%   /etc/passwd<br>10.16.2.102:/data/registry  1000G  33M  1000G  1%   /registry</pre><p>You need at least 100 GB available for the /registry.</p><p>8. Ensure that the vm.max_map_count setting is at least 262144 on all worker and compute nodes. Run the following command to check and set the value to 262144:</p><pre># sudo sysctl -a | grep vm.max_map_count<br># sudo sysctl -w vm.max_map_count=262144<br># echo &quot;vm.max_map_count=262144&quot; | sudo tee -a /etc/sysctl.conf</pre><h3>Installation of MCM Hub</h3><ol><li>Login to the OpenShift Infra node.</li><li>Navigate to the directory containing the downloaded MCM core archive package and load the package into the local registry. (refer Requirements section for the image details)</li></ol><pre># tar xf ibm-cp4mcm-core-1.3-x86_64.tar.gz  -O | sudo docker load</pre><pre>f8ab7e997d8b: Loading layer [=========================&gt;] 379.9 kB/379.9 kB<br>9977467c17b1: Loading layer [========================&gt;] 38.91 MB/38.91 MB<br>Loaded image: ibmcom/va-mcm-controller-amd64:3.4.0<br>917b65ce8d46: Loading layer [========================&gt;] 213.8 MB/213.8 MB<br>1c80afac2adc: Loading layer [=========================&gt;] 20.48 kB/20.48 kB<br>………………………………………………………………………………………………………………………………<br>………………………………………………………………………………………………………………………………<br>………………………………………………………………………………………………………………………………<br>37f05eaff047: Loading layer [==========================&gt;] 8.704 kB/8.704 kB<br>296dd2af453f: Loading layer [==========================&gt;] 72.7 kB/72.7 kB<br>Loaded image: ibmcom/mapp-fluentd-python-amd64:3.4.0<br>8eacea1e282f: Loading layer [=========================&gt;] 29.12 MB/29.12 MB<br>9722840b259d: Loading layer [========================&gt;] 3.072 kB/3.072 kB<br>Loaded image: ibmcom/mcm-controller-amd64:3.3.0</pre><p>3. Create the installation directory and navigate to that directory.</p><pre># mkdir /opt/ibm-multicloud-manager-1.3; cd /opt/ibm-multicloud-manager-1.3</pre><p>4. Extract the installation configuration files.</p><pre># sudo docker run --rm -v $(pwd):/data:z -e LICENSE=accept --security-opt label:disable ibmcom/mcm-inception-amd64:3.2.5 cp -r cluster /data</pre><p>The above command extracts the directory for MCM for v1.3.0. For a different version, use the appropriate mcm-inception tag. Example: For v1.3.1 fix pack, use 3.2.6</p><p>5. Create the kubeconfig which the installer will use.</p><pre># export KUBECONFIG=$(pwd)/myclusterconfig/opt/ibm-multicloud-manager-1.3/cluster</pre><pre># oc whoami -t</pre><p>Copy the token from the above command output.</p><pre># oc login --token=&lt;token&gt; <br>--server=https://api.apps.boycott.os.fyre.ibm.com:6443</pre><pre># cp $KUBECONFIG /opt/ibm-multicloud-manager-1.3/cluster/kubeconfig</pre><p>6. Update the config.yaml file with the information collected in the next steps. Config.yaml is located in /opt/ibm-multicloud-manager-1.3/cluster directory.</p><p>a) Get the OpenShift cluster node names that you want to deploy services upon.</p><pre># oc get nodes</pre><pre>NAME                             STATUS   ROLES       AGE  VERSION<br>master0.boycott.os.fyre.ibm.com   Ready   master      42h   v1.16.2<br>worker0.boycott.os.fyre.ibm.com   Ready   worker      42h   v1.16.2<br>worker1.boycott.os.fyre.ibm.com   Ready   worker      42h   v1.16.2<br>worker2.boycott.os.fyre.ibm.com   Ready   worker      42h   v1.16.2</pre><p>Use the above worker node names to select master, proxy, and management targets.</p><p>b) Update the cluster_nodes section of the config.yaml file with the OCP worker nodes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*erWGZe-g7NStUHHvDn3nng.jpeg" /></figure><p><strong>Note</strong>: The value of the master, proxy, and management parameters can have multiple nodes and the same node can be used for the master, management, and proxy.</p><p>c) Add the storage class name to the config.yaml file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*09TAre8lSinhrZv7YEJZfw.jpeg" /></figure><p>d) Update the password of the default user, who is the cluster administrator. The default username of the cluster administrator is admin. Set up a default password in the config.yaml file that meets the default password enforcement rule ‘^([a-zA-Z0–9\-]{32,})$’. You can also define a custom set of password rules. To disable the password_rule, add (.*) and provide a password against default_admin_password field.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/282/1*dSF7sMEQVUwW00AMsA_mMA.jpeg" /></figure><p>e) Define the management_services in the config.yaml. You may disable if they are not needed.</p><p>7. Change to the /opt/ibm-multicloud-manager-1.3/cluster directory and deploy the IBM Cloud Pak for Multicloud Management.</p><pre># cd /opt/ibm-multicloud-manager-1.3/cluster</pre><pre># docker run -t --net=host -e LICENSE=accept -v $(pwd):/installer/cluster:z -v /var/run:/var/run:z -v /etc/docker:/etc/docker:z --security-opt label:disable ibmcom/mcm-inception-amd64:3.2.5 install-with-openshift</pre><pre>PLAY [Deploying addon services] ********************************************************************TASK [Gathering Facts] ********************************************************************ok: [localhost]<br>TASK [kubectl-config : Configuring kubectl] ********************************************************************changed: [localhost -&gt; localhost]<br>TASK [k8s-detection : Detecting Kubernetes type] ********************************************************************changed: [localhost]…………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………………<br>TASK [openshift-archive-addon : include_tasks] ********************************************************************PLAY RECAP ********************************************************************localhost        : ok=422  changed=272  unreachable=0    failed=0</pre><pre>POST DEPLOY MESSAGE ********************************************************************The Dashboard URL: <br><strong>https://icp-console.apps.boycott.os.fyre.ibm.com:443</strong>, please use credentials in config.yaml to login.</pre><pre>Playbook run took 0 days, 2 hours, 19 minutes, 27 seconds</pre><p>8. If the installation is successful, you can access the URL to connect to ICP console. <em>https://icp-console.apps.boycott.os.fyre.ibm.com:443</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*CJqy7RYmboS49X2s3xD19A.png" /></figure><p>Login with the credentials as configured in config.yaml.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/1*6tKJ8qacXoA6ShzNiAkoTg.png" /></figure><p>9. MCM roles added to the OpenShift worker nodes.</p><pre># oc get nodes</pre><pre>NAME                              STATUS  ROLES         AGE  VERSION<br>master0.boycott.os.fyre.ibm.com   Ready   master        42h  v1.16.2<br>worker0.boycott.os.fyre.ibm.com   Ready   <strong>cp-master</strong>,    42h  v1.16.2<br>                                          worker<br>worker1.boycott.os.fyre.ibm.com   Ready   <strong>cp-proxy,</strong>     42h  v1.16.2<br>                                          worker<br>worker2.boycott.os.fyre.ibm.com   Ready   <strong>cp-management</strong>,42h  v1.16.2<br>                                          <strong>cp-proxy</strong>,<br>                                          worker</pre><p>This completes the installation of MCM Hub.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=96d577792566" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ibm-cloud-paks-help-and-guidance-from-ibm-cloud/openshift-4-3-installation-of-ibm-cloud-pak-for-multicloud-management-v1-3-96d577792566">OpenShift 4.3: Installation of IBM Cloud Pak for Multicloud Management V1.3</a> was originally published in <a href="https://medium.com/ibm-cloud-paks-help-and-guidance-from-ibm-cloud">IBM Cloud Pak’s Help and Guidance from IBM Expert Labs Asia Pacific</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[x509: certificate signed by unknown authority — error when working with images using docker…]]></title>
            <link>https://medium.com/ibm-cloud-paks-help-and-guidance-from-ibm-cloud/x509-certificate-signed-by-unknown-authority-error-when-working-with-images-using-docker-cf3e8ed33ae5?source=rss-7313994230c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf3e8ed33ae5</guid>
            <category><![CDATA[openshift-container-pla]]></category>
            <category><![CDATA[ocp]]></category>
            <dc:creator><![CDATA[Madhavan V V K]]></dc:creator>
            <pubDate>Sat, 30 May 2020 06:58:40 GMT</pubDate>
            <atom:updated>2020-07-20T18:55:39.110Z</atom:updated>
            <content:encoded><![CDATA[<h3>x509: certificate signed by unknown authority — error when working with images using docker (OpenShift 4.3)</h3><p><strong>Issue:</strong></p><p>Often, we get the below error when pulling images from the image registry using docker.</p><p>rpc error: code = Unknown desc = error pinging docker registry default-route-openshift-image-registry.apps.bibber.os.fyre.ibm.com: Get <a href="https://default-route-openshift-image-registry.apps.bibber.os.fyre.ibm.com/v2/">https://default-route-openshift-image-registry.apps.bibber.os.fyre.ibm.com/v2/</a>: x509: certificate signed by unknown authority</p><p><strong>Solution:</strong></p><p>You need to add trusted certificate authorities (CAs) to the Openshift cluster for use when pushing and pulling images.</p><p>Pre-requisites</p><ol><li>You must be a cluster admin.</li><li>You must have access to the registry’s public certificates, <strong>&lt;image-registry&gt;/ca.crt</strong> file located in the <strong>/etc/docker/certs.d/</strong> directory.</li></ol><p>Procedure</p><ol><li>Login to the cluster.</li></ol><pre>oc login &lt;cluster URL&gt; -u &lt;user&gt; -p &lt;password&gt;</pre><p>2. Create a ConfigMap in the “openshift-config” namespace containing the trusted certificates for the registries that use self-signed certificates.</p><pre>#oc create configmap registry-cas -n openshift-config --from-file=default-route-openshift-image-registry.apps.bibber.os.fyre.ibm.com=/etc/docker/certs.d/default-route-openshift-image-registry.apps.bibber.os.fyre.ibm.com/ca.crt</pre><pre>configmap/registry-cas created</pre><p>3. Update the cluster image configuration</p><pre># oc patch image.config.openshift.io/cluster --patch &#39;{&quot;spec&quot;:{&quot;additionalTrustedCA&quot;:{&quot;name&quot;:&quot;registry-cas&quot;}}}&#39; --type=merge</pre><pre>image.config.openshift.io/cluster patched</pre><p>The above steps should fix the issue, if not try restarting docker once and then try pulling images from image registry.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf3e8ed33ae5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ibm-cloud-paks-help-and-guidance-from-ibm-cloud/x509-certificate-signed-by-unknown-authority-error-when-working-with-images-using-docker-cf3e8ed33ae5">x509: certificate signed by unknown authority — error when working with images using docker…</a> was originally published in <a href="https://medium.com/ibm-cloud-paks-help-and-guidance-from-ibm-cloud">IBM Cloud Pak’s Help and Guidance from IBM Expert Labs Asia Pacific</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating a storage provisioner on RedHat Openshift 4.x: rook-ceph]]></title>
            <link>https://medium.com/ibm-cloud-paks-help-and-guidance-from-ibm-cloud/creating-a-storage-provisioner-on-redhat-openshift-4-x-rook-ceph-3b62e69d03d?source=rss-7313994230c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b62e69d03d</guid>
            <category><![CDATA[ocp]]></category>
            <category><![CDATA[openshift-container-pla]]></category>
            <dc:creator><![CDATA[Madhavan V V K]]></dc:creator>
            <pubDate>Fri, 22 May 2020 19:47:13 GMT</pubDate>
            <atom:updated>2020-07-20T18:56:16.864Z</atom:updated>
            <content:encoded><![CDATA[<h3>Creating a storage provisioner on RedHat OpenShift 4.x: rook-ceph</h3><p>While, there are many statically provisioned storage types available for use as persistent volumes in OpenShift, some types of storage are created dynamically using the built-in provider and plug-in APIs. We will discuss here about deploying a dynamic provisioner <strong>rook-ceph</strong> (Ceph RBD) plug-in and then creating a storage class on it.</p><p><strong>Prerequisite:</strong></p><p>Ensure OpenShift 4.x cluster is installed and running.</p><p><strong>Preparing to install ceph:</strong></p><ol><li>Login to the OpenShift Infra node.</li><li>Install git.</li></ol><pre># yum install -y git</pre><p>3. Navigate to a preferred directory and then download the Ceph configuration yaml files from the GIT repository.</p><pre># git clone https://github.com/Madhav29k/rook-ceph.git<br># cd rook-ceph<br># ls -alrt<br>total 40<br>-rw-r — r — 1 root root 1013 May 22 09:47 toolbox.yaml<br>-rw-r — r — 1 root root 975 May 22 09:47 storageclass.yaml<br>-rw-r — r — 1 root root 1217 May 22 09:47 scc.yaml<br>-rw-r — r — 1 root root 12710 May 22 09:47 operator.yaml<br>drwxr-xr-x 8 root root 163 May 22 09:47 .git<br>-rw-r — r — 1 root root 179 May 22 09:47 pvc.yaml<br>-rw-r — r — 1 root root 8042 May 22 09:47 cluster.yaml<br>drwxr-xr-x 6 root root 88 May 22 09:47 ..<br>drwxr-xr-x 2 root root 139 May 22 09:47 .</pre><p><strong>Installing Ceph Cluster:</strong></p><ol><li>Login to the Openshift Cluster from Infra node.</li></ol><pre># oc login &lt;cluster url&gt; -u &lt;adminuser&gt; -p &lt;password&gt;</pre><p>2. Create security context constraint required for Ceph.</p><pre># oc create -f scc.yaml<br>securitycontextconstraints.security.openshift.io/rook-ceph created</pre><pre># oc get scc<br>NAME 			AGE<br>anyuid 			16m<br>hostaccess 		16m<br>hostmount-anyuid 	16m<br>hostnetwork 		16m<br>node-exporter 		15m<br>nonroot 		16m<br>privileged 		16m<br>restricted 		16m<br><strong>rook-ceph 		3s</strong></pre><p>3. Create the rook operator.</p><pre># oc create -f operator.yaml<br>namespace/rook-ceph-system created<br>customresourcedefinition.apiextensions.k8s.io/cephclusters.ceph.rook.io created<br>customresourcedefinition.apiextensions.k8s.io/cephfilesystems.ceph.rook.io created<br>customresourcedefinition.apiextensions.k8s.io/cephobjectstores.ceph.rook.io created<br>customresourcedefinition.apiextensions.k8s.io/cephobjectstoreusers.ceph.rook.io created<br>customresourcedefinition.apiextensions.k8s.io/cephblockpools.ceph.rook.io created<br>customresourcedefinition.apiextensions.k8s.io/volumes.rook.io created<br>clusterrole.rbac.authorization.k8s.io/rook-ceph-cluster-mgmt created<br>role.rbac.authorization.k8s.io/rook-ceph-system created<br>clusterrole.rbac.authorization.k8s.io/rook-ceph-global created<br>clusterrole.rbac.authorization.k8s.io/rook-ceph-mgr-cluster created<br>serviceaccount/rook-ceph-system created<br>rolebinding.rbac.authorization.k8s.io/rook-ceph-system created<br>clusterrolebinding.rbac.authorization.k8s.io/rook-ceph-global created<br>deployment.apps/rook-ceph-operator created</pre><pre># oc get pods -n rook-ceph-system<br>NAME                                 READY  STATUS RESTARTS AGE<br>rook-ceph-operator-69c6dd8dd4-ffj6w   1/1   Running   0      6s</pre><p>4. The rook-ceph operator will then create other pods within few minutes as below:</p><pre># oc get pods -n rook-ceph-system<br>NAME                                  READY   STATUS  RESTARTS   AGE<br>rook-ceph-agent-b84lh                 1/1     Running   0        44s<br>rook-ceph-agent-cnhnm                 1/1     Running   0        44s<br>rook-ceph-agent-dctml                 1/1     Running   0        44s<br>rook-ceph-operator-69c6dd8dd4-ffj6w   1/1     Running   0        76s<br>rook-discover-2mzcb                   1/1     Running   0        48s<br>rook-discover-56hqr                   1/1     Running   0        44s<br>rook-discover-rcxwz                   1/1     Running   0        48s</pre><p>5. Create the rook cluster using the yaml file.</p><pre># oc create -f cluster.yaml<br>namespace/rook-ceph created<br>serviceaccount/rook-ceph-osd created<br>serviceaccount/rook-ceph-mgr created<br>role.rbac.authorization.k8s.io/rook-ceph-osd created<br>role.rbac.authorization.k8s.io/rook-ceph-mgr-system created<br>role.rbac.authorization.k8s.io/rook-ceph-mgr created<br>rolebinding.rbac.authorization.k8s.io/rook-ceph-cluster-mgmt created<br>rolebinding.rbac.authorization.k8s.io/rook-ceph-osd created<br>rolebinding.rbac.authorization.k8s.io/rook-ceph-mgr created<br>rolebinding.rbac.authorization.k8s.io/rook-ceph-mgr-system created<br>rolebinding.rbac.authorization.k8s.io/rook-ceph-mgr-cluster created<br>cephcluster.ceph.rook.io/rook-ceph created<br></pre><pre># oc get pods -n rook-ceph<br>NAME                                                        READY   STATUS      RESTARTS   AGE<br>rook-ceph-mgr-a-7d787567d-g7mks                             1/1     Running     0          3m7s<br>rook-ceph-mon-a-69b67568b5-zkk92                            1/1     Running     0          4m49s<br>rook-ceph-mon-b-5965889999-bjk79                            1/1     Running     0          4m9s<br>rook-ceph-mon-c-6f85dfb9-bz8nt                              1/1     Running     0          3m35s<br>rook-ceph-osd-0-7866f8479d-jzqrk                            1/1     Running     0          2m4s<br>rook-ceph-osd-1-64947f9856-29xnh                            1/1     Running     0          2m3s<br>rook-ceph-osd-2-9f7cdd8b-xdffw                              1/1     Running     0          2m<br>rook-ceph-osd-3-55d56646d7-r4xmr                            1/1     Running     0          2m<br>rook-ceph-osd-4-7c758df66b-dlz7n                            1/1     Running     0          2m4s<br>rook-ceph-osd-5-6dd4f7f5b8-4pb9q                            1/1     Running     0          2m3s<br>rook-ceph-osd-prepare-worker0.owens.cp.fyre.ibm.com-xvqz4   0/2     Completed   0          2m38s<br>rook-ceph-osd-prepare-worker1.owens.cp.fyre.ibm.com-b7ssw   0/2     Completed   0          2m37s<br>rook-ceph-osd-prepare-worker2.owens.cp.fyre.ibm.com-lpwwn   0/2     Completed   0          2m36s<br></pre><pre># oc -n rook-ceph get service<br>NAME                      TYPE        CLUSTER-IP       EXTERNAL-IP   PORT(S)    AGE<br>rook-ceph-mgr             ClusterIP   172.30.189.189   &lt;none&gt;        9283/TCP   3m39s<br>rook-ceph-mgr-dashboard   ClusterIP   172.30.111.60    &lt;none&gt;        8443/TCP   3m39s<br>rook-ceph-mon-a           ClusterIP   172.30.120.77    &lt;none&gt;        6790/TCP   5m48s<br>rook-ceph-mon-b           ClusterIP   172.30.72.208    &lt;none&gt;        6790/TCP   5m8s<br>rook-ceph-mon-c           ClusterIP   172.30.226.169   &lt;none&gt;        6790/TCP   4m34s</pre><p><strong>Verifying the Ceph Cluster:</strong></p><ol><li>Create the Ceph toolbox for verifying the Ceph cluster health.</li></ol><pre># oc create -f toolbox.yaml<br>pod/rook-ceph-tools created</pre><pre># oc get pods -n rook-ceph | grep tools<br>rook-ceph-tools                 1/1     Running     0          3m3s</pre><p>2. Login to the toolbox container and check cluster status.</p><pre># oc -n rook-ceph exec -it rook-ceph-tools bash</pre><pre>[root@rook-ceph-tools /]# ceph -s<br>  cluster:<br>    id:     ff6a0295-14b3-4075-9c82-631d29462569<br>   <strong> health: HEALTH_OK</strong></pre><pre>services:<br>    mon: 3 daemons, quorum b,a,c<br>    mgr: a(active)<br>    osd: 6 osds: 6 up, 6 in</pre><pre>data:<br>    pools:   0 pools, 0 pgs<br>    objects: 0  objects, 0 B<br>    usage:   6.0 GiB used, 1.2 TiB / 1.2 TiB avail<br>    pgs:</pre><pre>[root@rook-ceph-tools /]# exit</pre><p><strong>Creating a storage class:</strong></p><ol><li>Create a storage class using the yaml file. You may edit for customization.</li></ol><pre># oc create -f storageclass.yaml<br>cephblockpool.ceph.rook.io/rbd created<br>storageclass.storage.k8s.io/rook-ceph-block created</pre><pre># oc get sc<br>NAME              PROVISIONER          AGE<br>rook-ceph-block   ceph.rook.io/block   5s</pre><p>2. Make the storage class as default, so that dynamic provisioning will bind the persistent volumes against persistent volume claims automatically.</p><pre># oc patch storageclass <strong>rook-ceph-block</strong> -p &#39;{&quot;metadata&quot;: {&quot;annotations&quot;:{&quot;storageclass.kubernetes.io/is-default-class&quot;:&quot;true&quot;}}}&#39;<br>storageclass.storage.k8s.io/rook-ceph-block patched</pre><pre># oc get sc<br>NAME                        PROVISIONER          AGE<br>rook-ceph-block (default)   ceph.rook.io/block   114s</pre><p><strong>Verifying dynamic provisioning:</strong></p><ol><li>Create a persistent volume claim using the yaml file. You may edit for customization.</li></ol><pre># oc create -f pvc.yaml<br>persistentvolumeclaim/<strong>testpvc</strong> created</pre><p>2. Verify, if a persistent volume is automatically bound to the created persistent volume claim.</p><pre># oc get pvc<br>NAME      STATUS  VOLUME CAPACITY   ACCESS MODES   STORAGECLASS AGE<br>testpvc   Bound    pvc-99b31272-9457-4c7b-baf7-cf8f2fbbf438   2Gi        RWO            rook-ceph-block   6s</pre><pre># oc get pv<br>NAME   CAPACITY   ACCESS MODES   RECLAIM POLICY   STATUS   CLAIM                                             STORAGECLASS      REASON   AGE<br>pvc-99b31272-9457-4c7b-baf7-cf8f2fbbf438   2Gi        RWO            Delete           Bound    default/testpvc  rook-ceph-block    23s</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b62e69d03d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ibm-cloud-paks-help-and-guidance-from-ibm-cloud/creating-a-storage-provisioner-on-redhat-openshift-4-x-rook-ceph-3b62e69d03d">Creating a storage provisioner on RedHat Openshift 4.x: rook-ceph</a> was originally published in <a href="https://medium.com/ibm-cloud-paks-help-and-guidance-from-ibm-cloud">IBM Cloud Pak’s Help and Guidance from IBM Expert Labs Asia Pacific</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Delete “Terminating” projects: RedHat Openshift]]></title>
            <link>https://medium.com/ibm-cloud-paks-help-and-guidance-from-ibm-cloud/delete-terminating-projects-redhat-openshift-d8ecd2ab77c?source=rss-7313994230c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/d8ecd2ab77c</guid>
            <category><![CDATA[openshift-container-pla]]></category>
            <category><![CDATA[ocp]]></category>
            <dc:creator><![CDATA[Madhavan V V K]]></dc:creator>
            <pubDate>Mon, 18 May 2020 15:17:53 GMT</pubDate>
            <atom:updated>2020-07-20T18:56:50.188Z</atom:updated>
            <content:encoded><![CDATA[<h3>Delete “Terminating” projects: RedHat OpenShift</h3><p>Often, there are projects in Openshift which remain in “terminating” state for many days without disappearing, triggering an alert message as below when tried to delete:</p><p>Error from server (Conflict): Operation cannot be fulfilled on namespaces “ ”: The system is ensuring all content is removed from this namespace. Upon completion, this namespace will automatically be purged by the system.</p><p>The issue is because the finalizer is not getting removed from the project when it is deleted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*M1SPTOFQ_7RLYLuzgDLyRw.png" /></figure><p>Follow the below steps to remove “terminating” projects:</p><p>Note: The namespace which is being deleted here is “ta”. Please replace “ta” with your intended namespace while executing these steps.</p><ol><li>Get the project details into json file.</li></ol><pre># oc get project <strong>&lt;project&gt;</strong> -o json |grep -v &quot;kubernetes&quot; &gt; <strong>&lt;project&gt;</strong>.json<br># oc get project ta -o json |grep -v &quot;kubernetes&quot; &gt; ta.json</pre><p>2. In the json file, modify the below parameters.</p><pre>apiVersion&quot;: &quot;project.openshift.io/v1&quot;     --- before<br>&quot;kind&quot;: &quot;Project&quot;</pre><pre>&quot;apiVersion&quot;: &quot;v1&quot;                         --- after<br>&quot;kind&quot;: &quot;Namespace&quot;</pre><p>3. Open proxy connection to the cluster.</p><pre># oc proxy --port=8080 &amp;</pre><p>4. Push the json content to the cluster with curl to remove the finalizer.</p><pre># curl -k -H &quot;Content-Type: application/json&quot; -X PUT --data-binary <a href="http://twitter.com/ta">@</a><strong>&lt;project&gt;</strong>.json localhost:8080/api/v1/namespaces/<strong>&lt;project&gt;</strong>/finalize<br># curl -k -H &quot;Content-Type: application/json&quot; -X PUT --data-binary <a href="http://twitter.com/ta">@ta</a>.json localhost:8080/api/v1/namespaces/ta/finalize</pre><p>5. The terminating project should be gone now.</p><pre># oc get projects</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*3Q3lQmRo9xPxE6rWe7bimA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d8ecd2ab77c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ibm-cloud-paks-help-and-guidance-from-ibm-cloud/delete-terminating-projects-redhat-openshift-d8ecd2ab77c">Delete “Terminating” projects: RedHat Openshift</a> was originally published in <a href="https://medium.com/ibm-cloud-paks-help-and-guidance-from-ibm-cloud">IBM Cloud Pak’s Help and Guidance from IBM Expert Labs Asia Pacific</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Event Notification Automation: IBM Cloud APM]]></title>
            <link>https://medium.com/ibm-cloud-application-performance-management-icapm/event-notification-automation-ibm-cloud-apm-57a884f8afb6?source=rss-7313994230c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/57a884f8afb6</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[apm]]></category>
            <category><![CDATA[events]]></category>
            <dc:creator><![CDATA[Madhavan V V K]]></dc:creator>
            <pubDate>Fri, 15 May 2020 08:51:31 GMT</pubDate>
            <atom:updated>2020-06-03T12:06:33.326Z</atom:updated>
            <content:encoded><![CDATA[<p>IBM Cloud Application Performance Management (ICAPM) is a comprehensive solution that helps us manage the performance and availability of applications that are deployed on premises (private), in a public cloud, or as a hybrid combination. We can reduce and prevent outages, slowdowns around the clock in a hybrid application world as Cloud APM assists us in moving from identifying performance issues to isolating where the problem is occurring and diagnosing issues before our business is impacted. The problems detected is sent proactively to respective stakeholders as events so that action can be taken promptly to avoid bottlenecks.</p><p><strong>Problem Statement</strong></p><p>IBM Cloud APM’s out-of-box event notification does not meet customer’s expectations.</p><p><strong>Problem Breakdown</strong></p><p>1) Lacks customization of email alerts until it is integrated with products like Alert Notification or Netcool Omnibus — Too many attributes for an event sent over email without proper description makes it difficult for the customer to understand.</p><p>2) Do not have an option to route events to specific recipients — Every event is sent to all recipients’ email address defined in the APM console.</p><p>3) Do not have an option to send events through SMS.</p><p><strong>Solution Design</strong></p><p>Developed an automation which,</p><p>1) Extract events from the Kafka “Enriched Alarm” topic on the APM server and stores in a temporary file. (Kafka is a embedded within APM and handles the event processing).</p><p>2) Based on the threshold name, the event is parsed, and only specific attributes are filtered. Description to be sent as email subject and SMS message is formed.</p><p>3) Based on the event type, recipients email, and mobile numbers are fetched from respective defined lookup files.</p><p>4) Event notification with the formed description as Subject and filtered attributes as the email body is sent to the customer’s email gateway (email addresses) through sendmail client utility installed/configured on the APM server.</p><p>5) Event notification with the formed SMS message is sent to the customer’s SMS gateway (mobile numbers) through a simple socket.</p><p>6) Events sent through email and SMS are stored in separate logs for tracking.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*wj8M19xkbs-aXmxSJgs8Cw.png" /></figure><p><strong>Implementation</strong></p><p>1) The script (event_notification) is scheduled to run every 5 minutes in the APM server’s cron.</p><p>2) Email and SMS lookup files created with appropriate recipients’ email addresses and mobile numbers respectively.</p><p><strong>Note:</strong> This automation is implemented in a premier public sector bank in India and running successfully.</p><p><strong>Benefits</strong></p><p>1) Eliminate the need to buy additional products like Alert Notification or Netcool Omnibus by the customer which results in their cost saving and customer satisfaction.</p><p>2) Control over event attributes customization triggered from APM without the need of any other products.</p><p>3) Event Routing — customize event recipients based on event type.</p><p>4) SMS integration — event notification through SMS.</p><p>5) Can be re-used in any customer’s infrastructure which is monitored through IBM Cloud APM.</p><p><strong>Results</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1009/1*MhK1wDNw2vXqbSwST934JA.png" /></figure><p><strong>Code</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/04b65148f4d211364bbd210d91163936/href">https://medium.com/media/04b65148f4d211364bbd210d91163936/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=57a884f8afb6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ibm-cloud-application-performance-management-icapm/event-notification-automation-ibm-cloud-apm-57a884f8afb6">Event Notification Automation: IBM Cloud APM</a> was originally published in <a href="https://medium.com/ibm-cloud-application-performance-management-icapm">IBM Cloud Application Performance Management (ICAPM)</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Integrating IBM Cloud APM with Tivoli Data Warehouse]]></title>
            <link>https://medium.com/ibm-cloud-application-performance-management-icapm/integrating-ibm-cloud-apm-with-tivoli-data-warehouse-3b6abc632907?source=rss-7313994230c0------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b6abc632907</guid>
            <category><![CDATA[apm]]></category>
            <category><![CDATA[tivoli]]></category>
            <category><![CDATA[itm]]></category>
            <category><![CDATA[icapm]]></category>
            <category><![CDATA[tdw]]></category>
            <dc:creator><![CDATA[Madhavan V V K]]></dc:creator>
            <pubDate>Fri, 15 May 2020 08:03:23 GMT</pubDate>
            <atom:updated>2020-05-15T08:03:23.510Z</atom:updated>
            <content:encoded><![CDATA[<h3>Synopsis</h3><p>In IBM Cloud Application Performance Management environment, the historical data is available for viewing up to 24 hours and comparing with up to 32 days in dashboards. Also, there is no APM provided reports for APM agents. For a long-term storage of data and reporting, APM should be integrated with the Tivoli Data Warehouse (TDW). APM V8 agents need to be configured to send data to the Tivoli Data Warehouse and then the data can be retrieved through reports from Tivoli Common Reporting (TCR). This document is prepared to show the flow of the procedure of this integration. Based on a production implementation experience, there are many useful information provided in this document to overcome the challenges while implementing this integration.</p><h3>Products</h3><p>IBM Cloud Application Performance Management, Private 8.1.4<br>IBM Tivoli Monitoring v6.3 — WPA, SPA, TEPS<br>IBM Tivoli Common Reporting</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/438/1*722QjxAMnG9sTxp18cW2QA.png" /></figure><h3>Procedure</h3><h3>Creating the Warehouse Database</h3><p>APM has its own internal DB2 database known as WAREHOUS, that it uses to persist data up to 32 days for displaying in the APM console. ITM v6 already has a database WAREHOUS (TDW) to store long-term historical data from ITM agents. Here, we are going to send data from APM agents to the ITM v6 WAREHOUS database. We shall start with creating the ITM v6 WAREHOUS database as follows, assuming that we do not have a ITM v6 environment:</p><p>1) Install DB2 Enterprise or Workgroup Server edition on the server dedicated for TDW, preferably a different server than the APM server.</p><p>2) Create the database with UTF-8 encoding. Create a name for the warehouse database, and an operating system (OS) user account (user name and password) that the warehousing components (portal server, Warehouse Proxy Agent, and Summarization and Pruning Agent) can use to access the data warehouse.</p><p>Login as instance owner,</p><p><strong>DB2 CREATE DATABASE WAREHOUS on &lt;mountpoint&gt; using codeset utf-8 restrictive</strong></p><p>3) To give the user administrative authority to the data warehouse, add the user to the DB2 for Linux SYSADM group. Run the following command to find the name of the SYSADM group:</p><p><strong>db2 get dbm cfg | grep SYSADM<br>SYSADM group name (SYSADM_GROUP) = DB2IADM1</strong></p><p>4) In this example, the name of the DB2 for Linux SYSADM group is DB2IADM1. If we created an OS user named ITMUSER, add ITMUSER to DB2IADM1.</p><p>5) Use the script to create the required buffer pool and tablespaces. Create the script on a computer from which we can connect to the Tivoli Data Warehouse database server. The name of the script is KHD_DB2_crt_BP_TBSP.sql.</p><p>— CREATE a Bufferpool of page size 8K<br><strong>CREATE BUFFERPOOL ITMBUF8K IMMEDIATE SIZE 2501 PAGESIZE 8 K;</strong></p><p>— CREATE a Regular Tablespace using the 8K Bufferpool<br><strong>CREATE REGULAR TABLESPACE ITMREG8K PAGESIZE 8 K<br>MANAGED BY SYSTEM USING (‘itmreg8k’)2 BUFFERPOOL ITMBUF8k;</strong></p><p>— CREATE a System tablespace using the 8K Bufferpool<br><strong>CREATE SYSTEM TEMPORARY TABLESPACE ITMSYS8K PAGESIZE 8 K<br>MANAGED BY SYSTEM USING (‘itmsys8k’)2 BUFFERPOOL ITMBUF8k;</strong></p><p>— CREATE a User tablespace using the 8K Bufferpool<br><strong>CREATE USER TEMPORARY TABLESPACE ITMUSER8K PAGESIZE 8 K<br>MANAGED BY SYSTEM USING (‘itmuser8k’)2 BUFFERPOOL ITMBUF8k;</strong></p><p>6) Change to the directory where the KHD_DB2_crt_BP_TBSP.sql script is located and run the script to create the required buffer pool and tablespaces:</p><p><strong>db2 -stvf KHD_DB2_crt_BP_TBSP.sql</strong></p><p>7) Grant these database authorities to the warehouse user:</p><p><strong>db2 “GRANT CONNECT ON DATABASE TO USER itmuser”<br>db2 “GRANT CREATETAB ON DATABASE TO USER itmuser”<br>db2 “GRANT USE OF TABLESPACE ITMREG8K TO itmuser”</strong></p><p>8) The TCP/IP listener processes on the DB2 server where the TDW is installed must be active in order to accept connections from a DB2 client. On a Windows system, the DB2 listeners are automatically activated. Run the following commands on a UNIX system where the TDW database is installed to activate the DB2 for Linux, UNIX and Windows listeners:</p><p>For example:</p><p><strong>db2set -i &lt;instance_name&gt; DB2COMM=tcpip<br>db2 update dbm cfg using SVCENAME &lt;port_number&gt;<br>db2stop<br>db2start</strong></p><p>where instance_name is the name of the instance in which you created the warehouse database and port_number is the listening port for the instance. (The port number is specified in the file /etc/services.)</p><h3>Installation &amp; Configuration of Warehouse Proxy Agent (WPA)</h3><p>Warehouse Proxy Agent needs to run in autonomous mode, it must be configured to run without registering its location with the hub monitoring server.</p><p>1) Install and Configure WPA using the standard procedure.</p><p>2) Add the following variable to the Warehouse Proxy Agent environment file (install_dir\TMAITM6\KHDENV on Windows operating systems; install_dir/config/hd.ini on UNIX and Linux operating systems):</p><p>KHD_REGWITHGLB=N</p><p>3) Restart the agent.</p><p><strong>Note:</strong> You will receive the below error in the WPA logs. It gets logged as there is no TEMS connection and can be ignored.</p><p>KCII2004E Could not create the records for file &quot;/opt/IBM/ITM/lx8266/hd/bin/glb_khd.txt&quot;</p><h3>Configuring historical data collection for APM agents</h3><p>You will have to create history configuration files for all the required agent types. You can find a sample history configuration file on your Cloud APM server. Create your configuration file by copying the sample file and editing the copy. The file includes the data sets (attribute groups) of the agent that can send historical data to Tivoli Data Warehouse. If a particular data set that you are interested in does not exist in the sample file, it is likely because this exact data set does not also exist in the Tivoli Monitoring V6.3 agent product or it is not available for historical data collection. You can remove some of the data sets if you do not want to collect data for them.</p><p>The file also contains other sample or default settings. You must modify these settings to configure historical data collection. Do not modify the sample history configuration file, because the next Cloud APM server upgrade installation can overwrite it. Instead, create a copy of the file.</p><p>1) Locate the product_name_sample_history.xml file on the Cloud APM server</p><pre><strong>install_dir/wlp/usr/servers/min/dropins/CentralConfigurationServer.war/data_source/pc</strong></pre><pre><strong>Example: Unix agent<br>/opt/ibm/wlp/usr/servers/min/dropins/CentralConfigurationServer.war/data_source/ux</strong></pre><p>2) Create a copy of the <em>product_name</em>_sample_history.xml file in the same directory with the following name:</p><p><em>pc</em>_history.xml</p><p>where pc is the two-character product code. For example, ud_history.xml for the Db2® agent and lz_history.xml for the Linux operating system agent.</p><p>Example: ux_history.xml</p><p>3) Open pc_history.xml in a text editor.</p><p>4) Specify the Warehouse Proxy agent location. The default value is:</p><p>&lt;WAREHOUSE LOCATION=&quot;ip.pipe:<em>#netaddress</em>[<em>port#</em>]&quot;/&gt;</p><p>ip.pipe: For non-secure RPC communication between the agent and the Warehouse Proxy Agent, leave at ip.pipe. For secure RPC communication, change to ip.spipe</p><p><em>#netaddress: </em>Set the IP address or fully qualified host name of the system where the Warehouse Proxy agent is installed.</p><p>If you use an IP address, add the # sign before the address. If you use a fully qualified host name, make sure the # sign is not present before the host name.</p><p><em>port#: </em>Enter the listening port of the Warehouse Proxy agent. The default port is 63358 for the ip.pipe protocol and 65100 for the ip.spipe protocol.</p><p>If you want to specify more than one destination or protocol, separate each with a semi-colon (;). For example, you can set the value:</p><pre><strong>&lt;WAREHOUSE LOCATION=&quot;ip.spipe:#x.xx.xxx.xx[65100];ip.pipe#x.xx.xxx.xx[63358];ip.pipe:tdw.example.com[63358]&quot;/&gt;</strong></pre><p><strong>NOTE:</strong> The knowledge center says that you can find the value of the warehouse location string in the RAS1 log file on the Warehouse Proxy agent host. The RAS1 log file is located in the Install_Home/logs directory. The file name format is hostname_hd_timestamp-#.log (for example, myhost01_hd_56d4db3c-01.log). Search the log file for the register_interface message.</p><p>A RAS1 log message can look like this:</p><p><strong>&quot;register_interface&quot;) Registering &quot;Candle_Warehouse_Proxy&quot;: ip.pipe:#x.xx.xxx.xx[63358]</strong></p><p><strong>You will not find this information in the HD log until the WPA is registered to a TEMS.</strong></p><p>5) Optional: Delete the HISTORY EXPORT rows of the data sets that you do not want to collect history from:</p><p>&lt;HISTORY EXPORT=60 INTERVAL=15 RETAIN=6 TABLE=<em>TABLENAME</em>/&gt;</p><p>where <em>TABLENAME</em> is the data set name. For example, if you do not want to send Linux_IP_Address data samples to the Tivoli Data Warehouse, delete the &lt;HISTORY EXPORT=60 INTERVAL=15 RETAIN=6 TABLE=Linux_IP_Address/&gt; row. Data sets are described in the Attributes section of the agent help and the reference PDF.</p><p>In the rows that remain, specify the interval for exporting the data, the interval for collecting the data, and how long to keep the collected samples locally:</p><p>EXPORT</p><p>This parameter specifies the interval in minutes for exporting historical data to the Tivoli Data Warehouse. Valid export intervals are 15, 30, and values divisible by 60; an interval greater than 60 could be 120, 180, 240, and so on, up to 1440. The export interval must also be divisible by the INTERVAL parameter value. If you enter an invalid value, no historical data is collected nor exported for the specified data set. Default: 60 minutes.</p><p>INTERVAL</p><p>This parameter specifies the historical data collection interval in minutes. The minimum collection interval is 1 minute, and the maximum is 1440 (24 hours). Valid intervals are must divide evenly into 60 or are divisible by 60: 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, and 30; an interval greater than 60 could be 120, 180, 240, and so on, up to 1440. If you enter an invalid value, no history is collected for the specified data set. Default: 15.</p><p>RETAIN</p><p>This parameter defines the short-term history data retention period in hours, with a one-hour minimum. There is no limit other than that imposed by storage space on the system. After the retention limit has been reached, the agent deletes oldest data samples as new samples arrive. This retention period ensures that, if the agent loses communication with the Tivoli Data Warehouse for some time, history data is not lost. Default: 6 hours.</p><p>6) Save the <em>pc</em>_history.xml file.</p><p>7) Repeat these steps for each agent that you want to configure for historical data collection.</p><p><strong>ux_history.xml – (from a prod env)</strong></p><p>&lt;PRIVATECONFIGURATION&gt;<br>&lt;WAREHOUSE LOCATION=”ip.pipe:#x.xx.xxx.xx[63358]”/&gt;<br>&lt;HISTORY EXPORT=”60&quot; INTERVAL=”5&quot; RETAIN=”3&quot; TABLE=”System”/&gt;<br>&lt;HISTORY EXPORT=”60&quot; INTERVAL=”5&quot; RETAIN=”3&quot; TABLE=”Disk”/&gt;<br>&lt;HISTORY EXPORT=”60&quot; INTERVAL=”5&quot; RETAIN=”3&quot; TABLE=”Network”/&gt;<br>&lt;HISTORY EXPORT=”60&quot; INTERVAL=”5&quot; RETAIN=”3&quot; TABLE=”SMP_CPU”/&gt;<br>&lt;HISTORY EXPORT=”60&quot; INTERVAL=”5&quot; RETAIN=”3&quot; TABLE=”Unix_Memory”/&gt;<br>&lt;HISTORY EXPORT=”60&quot; INTERVAL=”5&quot; RETAIN=”3&quot; TABLE=”UNIX_IP_Address”/&gt;<br>&lt;HISTORY EXPORT=”60&quot; INTERVAL=”5&quot; RETAIN=”3&quot; TABLE=”AIX_LPAR”/&gt;<br>&lt;HISTORY EXPORT=”60&quot; INTERVAL=”5&quot; RETAIN=”3&quot; TABLE=”Disk_Performance”/&gt;<br>&lt;/PRIVATECONFIGURATION&gt;</p><p>The APM server looks for the pc_history.xml files in the <em>install_dir/wlp/usr/servers/min/dropins/CentralConfigurationServer.war/data_source/pc</em> directories and then automatically updates the private_situations.xml file for each agent in the agent&#39;s sub-directory to include the history definitions in addition to the agent&#39;s threshold definitions. It then updates the private_situations.xml file on the agent. Data collection starts at the agent.</p><p>Depending on the Export value set in the xml file, you could see attribute tables created on the WAREHOUS database. E.g. Setting a value of 60 – data gets exported to the WAREHOUS DB after 60 mins and you can see the tables at the time of first export. This will confirm that warehousing is properly configured and working.</p><h3>Installation of Tivoli Enterprise Portal Server</h3><p>For a Summarization and Pruning Agent to run without connecting to a Tivoli Enterprise Portal Server, it must be configured to run autonomously, and it must be able to locate the application support files for the monitoring agents</p><p>So, if you have not already installed done so, install a Tivoli Enterprise Portal Server, and add application support for all types of monitoring agents that will be collecting historical data.</p><h3>Installation &amp; Configuration of Summarization &amp; Pruning Agent (SPA)</h3><p>To configure a Summarization and Pruning agent to run in autonomous mode, complete the following steps:</p><p>1. Install a Tivoli Enterprise Portal Server and add application support for all types of monitoring agents that will be collecting historical data.</p><p>2. Install and configure Summarization and Pruning agent using the standard procedures.</p><p>3. If the Summarization and Pruning agent is not installed on the same machine as the portal server, copy the required application support files to the S &amp; P agent server.</p><p>These files are named dockpc, where pc is the two-letter product code for the monitoring agent.</p><p>On Windows, the files are in install_dir\cnps directory.</p><p>On Unix, the files are in the installdir/arch/cq/data directory.</p><p>By default, the Summarization and Pruning agent looks for the application support files in the install_dir\TMAITM6\data directory (on Windows) or the install_dir/config/data directory (on UNIX and Linux). If you do not create this directory and copy the files to it, you must add the KSY_AUTONOMOUS_ODI_DIR variable to the Summarization and Pruning agent environment file and specify the alternative location.</p><p>4. On the machine where the Summarization and Pruning agent is installed, open its environment file in a text editor:</p><p>Windows: install_dir\cnps\KSYENV</p><p>Linux and UNIX: install_dir/config/data/sy.ini</p><p>5. Edit the following variables: To enable the Summarization and Pruning agent to run without connecting to the Tivoli Enterprise Portal Server, set KSY_AUTONOMOUS=YES. If you did not install the application support files in the default directory (see step 3), set KSY_AUTONOMOUS_ODI_DIR=alternative location of application support files.</p><p>6. Restart the Summarization and Pruning agent agent. The WAREHOUSESUMPRUNE table is automatically created when the Summarization and Pruning agent is started.</p><h3>Configuring Summarization &amp; Pruning settings Without TEPS</h3><p>You cannot configure the summarization &amp; pruning settings using TEPS as none of the agents report to HTEMS and so cannot be seen in the TEPS console.</p><p>Instead, configure them directly in the warehouse database WAREHOUSESUMPRUNE table using SQL commands. The below table contains descriptions of the columns in the WAREHOUSESUMPRUNE table. Insert one row for each attribute group for which you want to collect historical data, along with the values for any summarization and pruning settings. You do not need to set defaults for unused options; they are built into the table design. Varchar values must be enclosed in single quotes (&#39; &#39;).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*heEbrfvhlmdcb0e8k2ONdg.png" /></figure><p><strong>Examples</strong></p><p><strong>Configuration, daily/hourly summarization, and daily/hourly pruning</strong></p><p>Collection is configured, and daily and hourly summarizations are set. Pruning is specified for daily 3-month intervals and hourly 2-day intervals. Use the SQL INSERT command.</p><p>Required:</p><p>TABNAME=Table Code<br>DAYSUM=-16822 (summarize daily)<br>HOURSUM= -16822 (summarize hourly on)<br>PDAY= -16837 (prune daily)<br>PDAYINT=3 (prune interval)<br>PDAYUNIT= -16835 (prune monthly)<br>PHOUR = -16837 (prune hourly on)<br>PHOURINT= 2 (prune interval)<br>PHOURUNIT= -16836 (prune daily)<br>PRAW = -16837 (prune detailed on)<br>PRAWINT= 1 (prune interval)<br>PRAWUNIT= -16836 (prune daily)</p><p><em>db2 “INSERT INTO WAREHOUSESUMPRUNE (TABNAME, DAYSUM, HOURSUM, PDAY, PDAYINT, PDAYUNIT, PHOUR, PHOURINT, PHOURUNIT, PRAW, PRAWINT, PRAWUNIT) VALUES (&#39;WTMEMORY&#39;,&#39;-16822&#39;,&#39;-16822&#39;,&#39;-16837&#39;,3,&#39;-16835&#39;,2,&#39;-16836&#39;,&#39;-16837&#39;,1,&#39;-16836&#39;)”</em></p><p><strong>From a production environment:</strong></p><p>Below is the output from warehousesumprune table for Linux CPU</p><p>db2 &quot;select * from \&quot;WAREHOUSESUMPRUNE\&quot;”</p><p>TABNAME YEARSUM QUARTSUM MONSUM WEEKSUM DAYSUM HOURSUM PYEAR PYEARINT PYEARUNIT PQUART PQUARTINT PQUARTUNIT PMON PMONINT PMONUNIT PWEEK PWEEKINT PWEEKUNIT PDAY PDAYINT PDAYUNIT PHOUR PHOURINT PHOURUNIT PRAW PRAWINT PRAWUNIT MSLNAME</p><p>---------------------------------------- -------- -------- -------- -------- -------- -------- -------- -------- --------- -------- --------- ---------- -------- ------- -------- -------- -------- --------- -------- ------- -------- -------- -------- --------- -------- ------- -------- --------------------------------</p><p>KLZCPU -16823 -16823 -16822 -16822 -16822 -16822 -16838 1 -16834 -16838 1 -16834 -16837 6 -16835 -16837 3 -16835 -16837 30 -16836 -16837 7 -16836 -16837 7 -16836 #ALL</p><p>1 record(s) selected.</p><p><strong>Remove daily summarization and pruning</strong></p><p>In this example, collection has been configured, and daily and hourly summarizations have been set. You want to remove daily summarization and pruning. Use the SQL UPDATE command.</p><p>Required:</p><p>TABNAME= Table Code<br>DAYSUM= -16823 (summarize off)<br>PDAY= -16838 (prune daily off)<br>PDAYINT= 1 (prune interval to default)<br>PDAYUNIT= -16836 (prune daily)</p><p><em>db2 “UPDATE WAREHOUSESUMPRUNE SET DAYSUM=&#39;-16823&#39;, SET PDAY=&#39;-16838&#39;, SET PDAYINT=1, SET PDAYUNIT=&#39;-16836&#39; WHERE TABNAME=&#39;WTMEMORY&#39;”</em></p><p><strong>Note:</strong> The table name which is used in pc_history.xml and TABNAME which is used in WAREHOUSESUMPRUNE table is different.</p><p><strong>Example</strong></p><p>To enable Linux CPU attribute for historical data collection, the table name would be KLZ_CPU</p><p>&lt;HISTORY EXPORT=&quot;60&quot; INTERVAL=&quot;5&quot; RETAIN=&quot;3&quot; TABLE=&quot;KLZ_CPU&quot;/&gt;</p><p>whereas if you want to set the summarization &amp; pruning settings for Linux CPU in the WAREHOUSESUMPRUNE, the corresponding TABNAME would be KLZCPU</p><p>db2 “INSERT INTO WAREHOUSESUMPRUNE (TABNAME, DAYSUM, HOURSUM, PDAY, PDAYINT, PDAYUNIT, PHOUR, PHOURINT, PHOURUNIT, PRAW, PRAWINT, PRAWUNIT) VALUES (&#39;KLZCPU&#39;,&#39;-16822&#39;,&#39;-16822&#39;,&#39;-16837&#39;,3,&#39;-16835&#39;,2,&#39;-16836&#39;,&#39;-16837&#39;,1,&#39;-16836&#39;)”</p><p>You may find all the table names of the attributes in the summarization logs as below:</p><p><em>........Product : KLZ, Linux OS</em></p><p><em>............Table : KLZDISK, KLZ_Disk</em></p><p><em>............Table : KLZNET, KLZ_Network</em></p><p><em>............Table : KLZCPU, KLZ_CPU</em></p><p><em>............Table : KLZPROC, KLZ_Process</em></p><h3>Setting up reports in Tivoli Common Reporting</h3><p>The Tivoli Common Reporting uses the Tivoli Data Warehouse as the source of historical data for generating reports. Refer ITM administrator’s guide for detailed procedure.</p><p>To get up and running with reporting, complete the following tasks in the order provided:</p><p>Assumption: Tivoli Common Reporting is already installed in the environment.</p><p><strong>1)</strong> <strong>Ensure that historical reporting is enabled</strong></p><p>You must first configure historical data collection. Reports run against long-term historical data that is stored in the Tivoli Data Warehouse. Before you can run reports, ensure that you have installed the required components and configured historical data collection.</p><p>To build the resource dimension table, configure historical data collection for one or more of the following attribute groups, depending on the operating system you are getting reports for:</p><p><strong>2)</strong> <strong>Create and maintain the dimension tables</strong></p><p>Preparing the Tivoli Data Warehouse for Tivoli Common Reporting includes creating the dimension tables, which are required for running the Cognos reports.</p><p><strong>3)</strong> <strong>Configure ODBC connection</strong></p><p>You must configure an ODBC connection between the Tivoli Common Reporting server and the TDW server. The purpose of this configuration is to enable Tivoli Common Reporting to retrieve the required data from the TDW database by using a local DB2 client.</p><p><strong>4)</strong> <strong>Create Data Source</strong></p><p>A data source named “TDW” is created on the TCR console which creates a connection to the TDW server.</p><p><strong>5)</strong> <strong>Importing TCR reports</strong></p><p>TCR reports of respective ITM agent types are imported within the TCR console.</p><p>Finally, you can generate reports for specific agent types for which historical data was configured.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b6abc632907" width="1" height="1" alt=""><hr><p><a href="https://medium.com/ibm-cloud-application-performance-management-icapm/integrating-ibm-cloud-apm-with-tivoli-data-warehouse-3b6abc632907">Integrating IBM Cloud APM with Tivoli Data Warehouse</a> was originally published in <a href="https://medium.com/ibm-cloud-application-performance-management-icapm">IBM Cloud Application Performance Management (ICAPM)</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>