IBM / cloud-pak-deployer

Configuration-based installation of OpenShift and Cloud Pak for Data/Integration/Watson AIOps on various private and public cloud infrastructure providers. Deployment attempts to achieve the end-state defined in the configuration. If something fails along the way, you only need to restart the process to continue the deployment.
https://ibm.github.io/cloud-pak-deployer/
Apache License 2.0
130 stars 65 forks source link

CPD4.8.5: Block storage class required at setup-instance-topology command #691

Closed israel-a-vizcarra closed 2 months ago

israel-a-vizcarra commented 2 months ago

Describe the bug setup-instance-topology command in cpd4.8.5 installation now requires a block storage class , as stated at:

https://www.ibm.com/docs/en/cloud-paks/cp-data/4.8.x?topic=data-installing-cloud-pak-foundational-services#taskinstall-platform-topology__steps__1

Modification to the following files required

cloud-pak-deployer/automation-roles/50-install-cloud-pak/cp4d/cp4d-cluster/templates/setup-instance-topology.j2

set -o pipefail
setup-instance-topology \
    --cpd_operator_ns={{ current_cp4d_cluster.operators_project | default('cpd-operators') }} \
    --cpd_instance_ns={{ current_cp4d_cluster.project }} \
    --release={{ current_cp4d_cluster.cp4d_version }} \
    --block_storage_class= {{ ocp_storage_class_block }} \  #<<<<<<<<<<
    --license_acceptance=true 2>&1 | tee {{ status_dir }}/log/{{ current_cp4d_cluster.project }}-setup-instance-topology.log

cloud-pak-deployer/automation-roles/50-install-cloud-pak/cp4d/cp4d-cluster/tasks/openshift-prepare-project.yml

  - name: Run script to setup instance topology, output can be found in {{ status_dir }}/log/{{ current_cp4d_cluster.project }}-setup-instance-topology.log
    shell: |
      {{ status_dir }}/cp4d/{{ current_cp4d_cluster.project }}-setup-instance-topology.sh

  when:
  - current_cp4d_cluster.cp4d_version >= '4.7.0' and  current_cp4d_cluster.cp4d_version < '4.8.0'
fketelaars commented 2 months ago

When running CP4D 4.8.5 install without the block storage class specified:

TASK [cp4d-cluster : Run script to setup instance topology, output can be found in /Data/fk-ubs-9-status/log/cpd-setup-instance-topology.log] ***
Sunday 14 April 2024  20:03:53 +0000 (0:00:00.499)       0:17:06.786 **********
fatal: [localhost]: FAILED! => changed=true
  cmd: |-
    /Data/fk-ubs-9-status/cp4d/cpd-setup-instance-topology.sh
  delta: '0:00:00.346593'
  end: '2024-04-14 20:03:53.775172'
  msg: non-zero return code
  rc: 1
  start: '2024-04-14 20:03:53.428579'
  stderr: ''
  stderr_lines: <omitted>
  stdout: |-
    running pre-validation routines (if any) for pre_setup_instance_topology..
    Sun Apr 14 20:03:53 UTC 2024

    [31m[✘] No storage class defined for CommonService CR. Please specify --block_storage_class=<RWO class name>[0m
  stdout_lines: <omitted>