Deploying Cloudera Cloud Core on Platform9


1. Prerequisites

  • Get the paywall registry credential for accessing the following images. Save as /opt/ccc-installation/creds/paywall.txt.
CategoryItemRegistry
Cloudera Cloud Coreccc-lcmcontainer.repository.cloudera.com/ccc-lcm/ccc-lcm:1.1.0-b50
Cloudera Service for Kubernetesopenstack-cloud-controller-managercontainer.repository.cloudera.com/cloudera-thirdparty-helm/openstack-cloud-controller-manager:2.34.0
Cloudera Service for Kubernetescinder-csi-plugincontainer.repository.cloudera.com/cloudera-thirdparty-helm/openstack-cinder-csi:2.34.0
Cloudera Service for Kuberneteskubelet-csr-approvercontainer.repository.cloudera.com/cloudera-thirdparty-helm/kubelet-csr-approver:1.2.14
Cloudera Service for Kubernetesmetrics-servercontainer.repository.cloudera.com/cloudera-thirdparty-helm/metrics-server:3.13.0
Cloudera Service for Kubernetescsk-installcontainer.repository.cloudera.com/cloudera/taikun-csk-cluster-manager:1.0.0-b4
Cloudera Cloud Factoryfluxcontainer.repository.cloudera.com/cloudera/taikun/flux-latest:1.0.0-b23
Cloudera Cloud Factoryccf-installcontainer.repository.cloudera.com/cloudera/ccf-install:1.0.0-b6
Anywhere Cloudanywhere-cloudcontainer.repository.cloudera.com/cloudera-helm/awc-core/anywhere-cloud:1.0.0-b24
Anywhere CloudData Services Marketplacecontainer.repository.cloudera.com/cloudera/awc/marketplace:latest
IP addressshostnameOSdescriptionHardware Size
10.129.80.140ip-10-129-80-140.iopscloud.cloudera.comCentos 8.4FREEIPA Server2 vcores, 8GB RAM, 40GB disk
10.129.80.144ip-10-129-80-144.iopscloud.cloudera.comUbuntu 24.04CCC Node 132 vcores, 128GB RAM, 1TB disk
10.129.80.145ip-10-129-80-145.iopscloud.cloudera.comUbuntu 24.04CCC Node 232 vcores, 128GB RAM, 1TB disk
10.129.80.146ip-10-129-80-146.iopscloud.cloudera.comUbuntu 24.04CCC Node 332 vcores, 128GB RAM, 1TB disk
NetworkCIDRGatewayMTUPurpose
SE_INTERNAL_NET10.129.80.0/2210.129.80.19000management, tunnel_vlan ,ceph_vlan
COMPUTE_POOL_01_NET10.129.28.0/2210.129.28.11500provider_external_vlan
FilePath on CCC Node 1
CCC certificate/opt/ccc-installation/tls/ccc/ccc-wildcard.crt
CCC private key/opt/ccc-installation/tls/ccc/ccc-wildcard.key

2. Launch three OpenStack virtual machines

  • Get environment variables directly from the OpenStack Dashboard (Horizon) under Access & Security > Openstack RC.

  • Load the above variables into the current shell session.

  • Lunch 3 instances (feng-ccc1 ~ feng-ccc3) using the OpenStack CLI. Taking feng-ccc1 as an example.
    • –image: Specifies the source operating system image (Ubuntu 24.04) used to boot the instance.
    • –flavor: Defines the hardware sizing profile (32 CPU cores, 128GB RAM).
    • –security-group: Attaches the default virtual firewall ruleset.
    • –availability-zone: Targets the specific CLOUD physical compute zone.
    • –key-name: Injects the public SSH key associated with feng-keypair.
    • –property group: Attaches custom metadata (key=value) to the instance.
    • –boot-from-volume: Instructs OpenStack (Cinder) to create a persistent 160 GB block storage volume.
    • –port: Connects the instance to a pre-created Neutron network port (osft-nw-port-10-129-80-144).
    • feng-ccc1: Specify the display name of the new virtual machine.
    openstack server create \
      --image ubuntu-24-04-base \
      --flavor  r2.2xlarge \
      --security-group default \
      --availability-zone CLOUD \
      --key-name feng-keypair \
      --property group=602829f3-78eb-45e8-8cc2-e570f8be5378 \
      --boot-from-volume 160  \
      --port osft-nw-port-10-129-80-144 \
      feng-ccc1
    
  • Create 3 Cinder block storage volumes (feng-ccc1 ~ feng-ccc3) using the OpenStack CLI.

    openstack volume create \
      --size 1000 \
      --availability-zone nova \
      --non-bootable \
      --read-write \
      feng-ccc1
    
  • Attache the volume (feng-ccc1 ~ feng-ccc3) to the running instance (feng-ccc1 ~ feng-ccc3).

    openstack server add volume \
      --device '/dev/vdb' \
      feng-ccc1   \
      feng-ccc1
    
  • Attache an additional virtual network interface (NIC) to the running instance (feng-ccc1 ~ feng-ccc3).

    openstack server add network feng-ccc1 COMPUTE_POOL_01_NET
    

  • Get MAC Address of the additional virtual network interface (feng-ccc1 ~ feng-ccc3).

    openstack port list \
      --server feng-ccc1 \
      --network COMPUTE_POOL_01_NET \
      -c "MAC Address"
    
    +-------------------+
    | MAC Address       |
    +-------------------+
    | fa:16:3e:13:dd:26 |
    +-------------------+
    

3. Update the hostname and configure network interface

  • Use standardized hostnames(i.e. ip-<ipv4 address>.iopscloud.cloudera.com). Update feng-ccc1 through feng-ccc3 in sequence.

    ssh ubuntu@feng-ccc1
    
    sudo -i
    hostnamectl set-hostname ip-10-129-80-144.iopscloud.cloudera.com
    
  • Configure an additional network interface (using Netplan) and rename it predictably to ens8 for VLAN trunks. Update feng-ccc1 through feng-ccc3 in sequence.

    ssh ubuntu@ip-10-129-80-144.iopscloud.cloudera.com
    
    export MAC_ADDRESS="fa:16:3e:13:dd:26"
    cat > /etc/netplan/60-provider.yaml <<EOF
    network:
      version: 2
      renderer: networkd
      ethernets:
        provider-uplink:
          match:
            macaddress: "${MAC_ADDRESS}"
          set-name: ens8
          dhcp4: false
          dhcp6: false
          link-local: []
          mtu: 1500
          optional: true  
    EOF
      
    chmod 600 /etc/netplan/60-provider.yaml
    netplan generate
    netplan apply
    

4. Manually create CCC DNS records

  • Log in to the FreeIPA Server and add A records using the ipa command

    ssh centos@ip-10-129-80-140.iopscloud.cloudera.com
    
    ipa dnszone-del iopscloud.cloudera.com.
    ipa dnszone-del 80.129.10.in-addr.arpa.
    ipa dnszone-add iopscloud.cloudera.com.
    ipa dnszone-add --name-from-ip=10.129.80.0/24
    ipa dnsrecord-add iopscloud.cloudera.com. ip-10-129-80-144 --a-rec 10.129.80.144 --a-create-reverse
    ipa dnsrecord-add iopscloud.cloudera.com. ip-10-129-80-145 --a-rec 10.129.80.145 --a-create-reverse
    ipa dnsrecord-add iopscloud.cloudera.com. ip-10-129-80-146 --a-rec 10.129.80.146 --a-create-reverse
    ipa dnszone-add ccc.ecscloud.iopscloud.cloudera.com.
    ipa dnsrecord-add ccc.ecscloud.iopscloud.cloudera.com. '*' --a-rec={10.129.80.144,10.129.80.145,10.129.80.146}
    
  • Wildcard covers all service hostnames (keystone.ccc..., horizon.ccc..., etc.). No separate A record is required for the apex ccc.ecscloud.iopscloud.cloudera.com.

5. Enable Passwordless SSH

  • Run on feng-ccc1 as ubuntu. The key lives on node 1 instead of a laptop. The first ssh-copy-id to each host may ask for the ubuntu password.

    ssh ubuntu@ip-10-129-80-144.iopscloud.cloudera.com
    
    SSH_OPTS=(-o StrictHostKeyChecking=accept-new)
      
    NODES=(
      ip-10-129-80-144.iopscloud.cloudera.com
      ip-10-129-80-145.iopscloud.cloudera.com
      ip-10-129-80-146.iopscloud.cloudera.com
    )
      
    if [ -f "${HOME}/.ssh/id_ed25519" ]; then
      SSH_KEY="${HOME}/.ssh/id_ed25519"
    elif [ -f "${HOME}/.ssh/id_rsa" ]; then
      SSH_KEY="${HOME}/.ssh/id_rsa"
    else
      SSH_KEY="${HOME}/.ssh/id_ed25519"
      ssh-keygen -t ed25519 -f "${SSH_KEY}" -N ""
    fi
      
    for node in "${NODES[@]}"; do
      echo "=== Copying SSH key to ${node} ==="
      ssh-copy-id -f -i "${SSH_KEY}.pub" "${SSH_OPTS[@]}" "ubuntu@${node}"
    done
      
    for node in "${NODES[@]}"; do
      echo "=== Verifying SSH to ${node} ==="
      ssh -i "${SSH_KEY}" "${SSH_OPTS[@]}" -o BatchMode=yes \
        "ubuntu@${node}" \
        "echo Successfully connected to \$(hostname -f 2>/dev/null || hostname)"
    done
    
  • Run on feng-ccc1 as ubuntu. The first ssh -t to each node may ask for the ubuntu password.

    for node in "${NODES[@]}"; do
      echo "=== Enabling passwordless sudo on ${node} ==="
      ssh -t "ubuntu@${node}" "printf '%s\n' 'ubuntu ALL=(ALL) NOPASSWD:ALL' | sudo tee /etc/sudoers.d/ubuntu >/dev/null && sudo chmod 0440 /etc/sudoers.d/ubuntu && sudo visudo -cf /  etc/sudoers.d/ubuntu"
      
      echo "=== Verifying passwordless sudo on ${node} ==="
      ssh "ubuntu@${node}" "sudo -n true && echo \"PASS passwordless sudo works on \$(hostname -f 2>/dev/null || hostname)\""
    done
    

6. Prepare data disks for Rook Ceph OSD discovery

  • Each node has 1TB data disks. Use the /dev/vdb (kernel names differ per node).

    for node in "${NODES[@]}"; do
      echo "=== ${node} ==="
      ssh -o BatchMode=yes "ubuntu@${node}" "device='/dev/vdb'
          set -e
          if [ ! -e \"\${device}\" ]; then
            echo \"ERROR: \${device} does not exist on ${node}\" >&2
            exit 1
          fi
          if sudo lsblk -no MOUNTPOINT \"\${device}\" | grep -q .; then
            echo \"ERROR: \${device} has a mounted filesystem; refusing to wipe\" >&2
            exit 1
          fi
          sudo sgdisk --zap-all \"\${device}\"
          sudo partprobe \"\${device}\" || true
        "
    done
    

7. Set kernel sysctl settings on all nodes

  • update sysctl parameters

    for node in "${NODES[@]}"; do
      echo "=== ${node} ==="
      ssh "ubuntu@${node}" "sudo tee /etc/sysctl.d/10-cldr-sysctl.conf >/dev/null <<'EOF'
    fs.file-max=2000000
    fs.inotify.max_user_instances=100000
    fs.inotify.max_user_watches=100000
    fs.inotify.max_queued_events=524288
    net.ipv4.tcp_mtu_probing=1
    EOF
    sudo sysctl -p /etc/sysctl.d/10-cldr-sysctl.conf >/dev/null && echo applied"
    done
    
  • Apply KVM device permissions udev rule

    for node in "${NODES[@]}"; do
      echo "=== ${node} ==="
      ssh "ubuntu@${node}" "sudo tee /etc/udev/rules.d/99-cldr-udev.rules >/dev/null <<'EOF'
    KERNEL==\"kvm\", OWNER=\"root\", GROUP=\"103\", MODE=\"0660\"
    EOF
    sudo udevadm control --reload-rules && sudo udevadm trigger --sysname-match=kvm && echo applied"
    done
    
  • Disable 5-level paging by adding no5lvl to the GRUB kernel boot parameters. Update feng-ccc1 through feng-ccc3 in sequence. This change requires a host reboot to take effect.

    for node in "${NODES[@]}"; do
      echo "=== ${node} ==="
      
      ssh "ubuntu@${node}" 'sudo bash -s' <<'EOF'
    set -e
      
    # Back up the original configuration only once
    if [ ! -f /etc/default/grub.before-no5lvl ]; then
        cp -a /etc/default/grub /etc/default/grub.before-no5lvl
    fi
      
    # Append no5lvl if it does not already exist
    if ! grep -Eq '^GRUB_CMDLINE_LINUX="([^"]* )?no5lvl( [^"]*)?"' /etc/default/grub; then
        sed -i '/^GRUB_CMDLINE_LINUX="/ {
            s/""$/"no5lvl"/
            / no5lvl"$/! {
                /="no5lvl"$/! s/"$/ no5lvl"/
            }
        }' /etc/default/grub
    fi
      
    # Verify the configuration
    grep '^GRUB_CMDLINE_LINUX=' /etc/default/grub
      
    # Regenerate GRUB configuration
    update-grub
    EOF
      
      if [ $? -eq 0 ]; then
        echo "=== ${node}: SUCCESS ==="
      else
        echo "=== ${node}: FAILED ==="
      fi
    done
    

8. Reboot all nodes

  • Reboot all three nodes one at a time. Wait for each node to come back before.
  • After rebooting, verify that the running kernel has loaded the parameter:

    for node in "${NODES[@]}"; do
      echo "=== ${node} ==="
      ssh "ubuntu@${node}" \
        "cat /proc/cmdline"
    done
    
  • The output should include no5lvl. You can also verify that 5-level paging (la57) is no longer active by running:

    for node in "${NODES[@]}"; do
      echo "=== ${node} ==="
      ssh "ubuntu@${node}" \
        'if grep -qw no5lvl /proc/cmdline; then
           echo "no5lvl: ENABLED"
         else
           echo "no5lvl: NOT ENABLED"
         fi'
    done
    

9. Set DNS setting on all nodes

  • Modify DNS to point to the FreeIPA server.

    for node in "${NODES[@]}"; do
      echo "=== ${node} ==="
      ssh "ubuntu@${node}" "sudo resolvectl dns ens3 10.129.80.140 && nslookup *.ccc.ecscloud.iopscloud.cloudera.com"
    done
    

10. Log in to the installation node feng-ccc1, switch to root, and create the base directory

  • On node feng-ccc1 as ubuntu, switch to root. All subsequent commands run as root on node feng-ccc1 unless noted. SSH to other nodes stays ubuntu@.

    sudo -i
    mkdir -p /opt/ccc-installation
    cd /opt/ccc-installation
    

11. Distribute installer SSH key to all nodes

  • Run as root on node feng-ccc1. Uses /root/.ssh/id_ed25519 for the CCC installer and for ubuntu@ SSH to cluster nodes (create the key only if missing).

    SSH_KEY=/root/.ssh/id_ed25519
    KNOWN_HOSTS=/root/.ssh/known_hosts
      
    if [ ! -f "${SSH_KEY}" ]; then
      ssh-keygen -t ed25519 -f "${SSH_KEY}" -N ""
    fi
      
    for node in "${NODES[@]}"; do
      ssh-keygen -R "${node}" -f "${KNOWN_HOSTS}" 2>/dev/null || true
      echo "=== Copying ${SSH_KEY}.pub to ${node} ==="
      ssh-copy-id -f -i "${SSH_KEY}.pub" "${SSH_OPTS[@]}" "ubuntu@${node}"
    done
    

12. Log in to Cloudera container registry and pull the CCC LCM installer image

  • Install Podman on the installation node

    apt update
    apt install -y podman
    podman --version
    
  • Pull the CCC LCM installer image

    PAYWALL_CREDS=/opt/ccc-installation/creds/paywall.txt
    CLDR_REGISTRY="container.repository.cloudera.com"
    CLDR_USERNAME="$(sed -n '1p' "${PAYWALL_CREDS}")"
    CLDR_PASSWORD="$(sed -n '2p' "${PAYWALL_CREDS}")"
    IMAGE="${CLDR_REGISTRY}/ccc-lcm/ccc-lcm:1.1.0-b50"
      
    echo "${CLDR_PASSWORD}" | podman login --compat-auth-file /root/.docker/config.json \
      "${CLDR_REGISTRY}" -u "${CLDR_USERNAME}" --password-stdin
    podman pull "${IMAGE}"
    podman image exists "${IMAGE}" && echo "PASS ${IMAGE}"
    

13. Create local Site OCI registry

  • Download and run the Docker Registry version 2 container on the node feng-ccc1.

    sudo mkdir -p /opt/site-registry/{data,auth,tls}
      
    sudo apt update
    sudo apt install -y apache2-utils
    
    # Create and maintain an HTTP user authentication file; please manually add usernames and passwords to /opt/ccc-installation/creds/harbor.txt
    sudo htpasswd -Bc /opt/site-registry/auth/htpasswd admin
      
    sudo openssl req -newkey rsa:4096 \
      -nodes -sha256 -x509 -days 3650 \
      -keyout /opt/site-registry/tls/registry.key \
      -out /opt/site-registry/tls/registry.crt \
      -subj "/CN=ip-10-129-80-144.iopscloud.cloudera.com" \
      -addext "subjectAltName=DNS:ip-10-129-80-144.iopscloud.cloudera.com,IP:10.129.80.144"
      
    sudo tee /opt/site-registry/config.yml > /dev/null <<'EOF'
    version: 0.1
      
    log:
      level: info
      fields:
        service: awc-site-registry
      
    storage:
      filesystem:
        rootdirectory: /var/lib/registry
      cache:
        blobdescriptor: inmemory
      delete:
        enabled: true
      
    http:
      addr: 0.0.0.0:5000
      tls:
        certificate: /certs/registry.crt
        key: /certs/registry.key
      headers:
        X-Content-Type-Options: [nosniff]
      
    auth:
      htpasswd:
        realm: awc-site-registry
        path: /auth/htpasswd
      
    health:
      storagedriver:
        enabled: true
        interval: 10s
        threshold: 3
    EOF
      
      
    sudo chmod 600 /opt/site-registry/tls/registry.key
    sudo chmod 600 /opt/site-registry/auth/htpasswd
    sudo chmod 644 /opt/site-registry/tls/registry.crt
    sudo chmod 644 /opt/site-registry/config.yml
      
    sudo podman pull docker.io/library/registry:2
      
    sudo podman rm -f awc-site-registry 2>/dev/null || true
      
    sudo podman run -d \
      --name awc-site-registry \
      --restart=always \
      --network host \
      -v /opt/site-registry/data:/var/lib/registry \
      -v /opt/site-registry/config.yml:/etc/docker/registry/config.yml:ro \
      -v /opt/site-registry/auth:/auth:ro \
      -v /opt/site-registry/tls:/certs:ro \
      docker.io/library/registry:2
      
    sudo podman logs awc-site-registry
    sudo ss -lntp | grep ':5000'
      
    # Installing CA into the system certificate store on Ubuntu
    install -m 0644 \
      /opt/site-registry/tls/registry.crt \
      /usr/local/share/ca-certificates/site-registry-ca.crt
      
    update-ca-certificates
      
    # CA trust check
    curl -v https://10.129.80.144:5000/v2/
    
    
  • Login and read/write test (credentials from file; no copy-paste)

    HARBOR_CREDS=/opt/ccc-installation/creds/harbor.txt
    OCI_REGISTRY="10.129.80.144:5000"
    OCI_REPO="awc-site"
    OCI_USERNAME="$(sed -n '1p' "${HARBOR_CREDS}")"
    OCI_PASSWORD="$(sed -n '2p' "${HARBOR_CREDS}")"
    OCI_TEST="cloudera-oci-rw-test:$(date +%Y%m%d)"
    SOURCE="docker.io/library/alpine:3.20"
    TARGET="${OCI_REGISTRY}/${OCI_REPO}/${OCI_TEST}"
      
    echo "${OCI_PASSWORD}" | podman login --compat-auth-file /root/.docker/config.json \
      "${OCI_REGISTRY}" -u "${OCI_USERNAME}" --password-stdin
    podman pull "${SOURCE}"
    podman tag "${SOURCE}" "${TARGET}"
    podman push "${TARGET}"
    podman rmi "${TARGET}" "${SOURCE}"
    podman pull "${TARGET}"
    podman rmi "${TARGET}"
    echo "PASS ${TARGET}"
    

14. Run the CCC LCM installer (unattended)

  • Use tmux. During stage flux, run Pre-create OpenStack TLS secrets in a second terminal.

  • Prepare installer config files (inventory.ini, inventory.yaml, site.yaml)

    mkdir -p /opt/ccc-installation/config
    
    cat >/opt/ccc-installation/config/inventory.ini <<EOF
    [all]
    ip-10-129-80-144.iopscloud.cloudera.com ansible_host=10.129.80.144 ip=10.129.80.144
    ip-10-129-80-145.iopscloud.cloudera.com ansible_host=10.129.80.145 ip=10.129.80.145
    ip-10-129-80-146.iopscloud.cloudera.com ansible_host=10.129.80.146 ip=10.129.80.146
      
    [kube_control_plane]
    ip-10-129-80-144.iopscloud.cloudera.com
    ip-10-129-80-145.iopscloud.cloudera.com
    ip-10-129-80-146.iopscloud.cloudera.com
      
    [etcd]
    ip-10-129-80-144.iopscloud.cloudera.com
    ip-10-129-80-145.iopscloud.cloudera.com
    ip-10-129-80-146.iopscloud.cloudera.com
      
    [kube_node]
    ip-10-129-80-144.iopscloud.cloudera.com
    ip-10-129-80-145.iopscloud.cloudera.com
    ip-10-129-80-146.iopscloud.cloudera.com
      
    [k8s_cluster:children]
    kube_node
    kube_control_plane
    EOF
      
      
    PAYWALL_CREDS=/opt/ccc-installation/creds/paywall.txt
    HARBOR_CREDS=/opt/ccc-installation/creds/harbor.txt
      
    export CLDR_USERNAME="$(sed -n '1p' "${PAYWALL_CREDS}")"
    export SITE_REGISTRY_BASE='10.129.80.144:5000/awc-site'
    export SITE_REGISTRY_USERNAME="$(sed -n '1p' "${HARBOR_CREDS}")"
      
    cat >/opt/ccc-installation/config/inventory.yaml <<EOF
    kubernetes_inventory_file: config/inventory.ini
    kubernetes_ssh_user: ubuntu
    kubernetes_ssh_private_key_path: /root/.ssh/id_ed25519
      
    # The underlying interface has an MTU of 1500; VXLAN introduces an encapsulation overhead of 50 bytes.
    network_plugin_mtu: "1450"
    calico_vxlan_mode: Always
    calico_ipip_mode: Never
    oci_registry_base: container.repository.cloudera.com/ccc-lcm
    oci_registry_username: ${CLDR_USERNAME}
    oci_site_registry_base: ${SITE_REGISTRY_BASE}
    oci_site_registry_username: ${SITE_REGISTRY_USERNAME}
      
    node_label_storage_daemon_nodes:
      - ip-10-129-80-144.iopscloud.cloudera.com
      - ip-10-129-80-145.iopscloud.cloudera.com
      - ip-10-129-80-146.iopscloud.cloudera.com
    node_label_storage_osd_nodes:
      - ip-10-129-80-144.iopscloud.cloudera.com
      - ip-10-129-80-145.iopscloud.cloudera.com
      - ip-10-129-80-146.iopscloud.cloudera.com
    node_label_control_plane_nodes:
      - ip-10-129-80-144.iopscloud.cloudera.com
      - ip-10-129-80-145.iopscloud.cloudera.com
      - ip-10-129-80-146.iopscloud.cloudera.com
    node_label_compute_nodes:
      - ip-10-129-80-144.iopscloud.cloudera.com
      - ip-10-129-80-145.iopscloud.cloudera.com
      - ip-10-129-80-146.iopscloud.cloudera.com
    node_label_octavia_nodes:
      - ip-10-129-80-144.iopscloud.cloudera.com
      - ip-10-129-80-145.iopscloud.cloudera.com
      - ip-10-129-80-146.iopscloud.cloudera.com
      
    storage_disk_selection:
      ip-10-129-80-144.iopscloud.cloudera.com:
        - /dev/vdb
      ip-10-129-80-145.iopscloud.cloudera.com:
        - /dev/vdb
      ip-10-129-80-146.iopscloud.cloudera.com:
        - /dev/vdb
    EOF
      
      
    cat >/opt/ccc-installation/config/site.yaml <<EOF
    base_domain: ccc.ecscloud.iopscloud.cloudera.com
    tunnel_interface: ens3
    bridge_interface: ens8
    ceph_mons_raw:
      - 10.129.80.144
      - 10.129.80.145
      - 10.129.80.146
    ceph_public: 10.129.80.0/22
    ceph_cluster: 10.129.80.0/22
    cinder_default_volume_type: hdd
    base_manifest_version: 1.1.0-b50
      
    ext_net_vlan_id: ""
    ext_net_mtu: "1500"
    ext_net_cidr: 10.129.28.0/22
    ext_net_gateway: 10.129.28.1
    ext_net_pool: 10.129.29.100,10.129.31.250
    EOF
    
  • Start unattended install

    tmux new-session -A -s ccc-install
      
    PAYWALL_CREDS=/opt/ccc-installation/creds/paywall.txt
    HARBOR_CREDS=/opt/ccc-installation/creds/harbor.txt
    export LCM_SECRET_OCI_REGISTRY_TOKEN="$(sed -n '2p' "${PAYWALL_CREDS}")"
    export LCM_SECRET_OCI_SITE_REGISTRY_TOKEN="$(sed -n '2p' "${HARBOR_CREDS}")"
    export IMAGE='container.repository.cloudera.com/ccc-lcm/ccc-lcm:1.1.0-b50'
      
    podman run --rm --name ccc-lcm --network host \
      -v /opt/ccc-installation:/opt/ccc-lcm \
      -v /root/.ssh:/root/.ssh:ro \
      -v /etc/ssl/certs:/etc/ssl/certs:ro \
      -e LCM_SECRET_OCI_REGISTRY_TOKEN \
      -e LCM_SECRET_OCI_SITE_REGISTRY_TOKEN \
      "${IMAGE}" \
      --site-id feng-ccc \
      --config config/inventory.yaml \
      --config config/site.yaml \
      --unattended
    
  • Resume if failed in stage ccf_resources

  podman run --rm --name ccc-lcm --network host \
    -v /opt/ccc-installation:/opt/ccc-lcm \
    -v /root/.ssh:/root/.ssh:ro \
    -v /etc/ssl/certs:/etc/ssl/certs:ro \
    -e LCM_SECRET_OCI_REGISTRY_TOKEN \
    -e LCM_SECRET_OCI_SITE_REGISTRY_TOKEN \
    "${IMAGE}" \
    --site-id feng-ccc \
    --config config/inventory.yaml \
    --config config/site.yaml \
    --profile-mode merge \
    --from-stage ccf_resources \
    --unattended
  • Tail the log in another terminal:

    sudo tail -f /opt/ccc-installation/logs/installer-runtime-log-*.log
    

15. Pre-create OpenStack TLS secrets during the flux stage

  • While the installer is on stage flux, in a second terminal:

    export KUBECONFIG=/etc/kubernetes/admin.conf
    EXPECTED_TLS_PUBLIC=14
    POLL_SECONDS=10
      
    while true; do
      ns_phase=$(kubectl get namespace openstack -o jsonpath='{.status.phase}' 2>/dev/null || true)
      existing=$(
        kubectl get secrets -n openstack --field-selector type=kubernetes.io/tls \
          -o jsonpath='{range .items[*]}{.metadata.name}{"\n"}{end}' 2>/dev/null \
          | grep -c tls-public || true
      )
      echo "$(date '+%H:%M:%S') ns=${ns_phase:-missing} secrets=${existing}/${EXPECTED_TLS_PUBLIC}"
      if [ "${existing}" -ge "${EXPECTED_TLS_PUBLIC}" ]; then
        echo "DONE: secrets already present"
        break
      fi
      if [ "${ns_phase}" = Active ]; then
        echo "READY: inject now"
        break
      fi
      sleep "${POLL_SECONDS}"
    done
    
  • Inject (same Sectigo cert/key for every *-tls-public Secret):

    mkdir -p /opt/ccc-installation/tls/ccc
      
    openssl req -newkey rsa:4096 \
      -nodes -sha256 -x509 -days 3650 \
      -keyout /opt/ccc-installation/tls/ccc/ccc-wildcard.key \
      -out /opt/ccc-installation/tls/ccc/ccc-wildcard.crt \
      -subj "/CN=*.ccc.ecscloud.iopscloud.cloudera.com" \
      -addext "subjectAltName=DNS:*.ccc.ecscloud.iopscloud.cloudera.com"
      
    export KUBECONFIG=/etc/kubernetes/admin.conf
    CCC_CERT="/opt/ccc-installation/tls/ccc/ccc-wildcard.crt"
    CCC_KEY="/opt/ccc-installation/tls/ccc/ccc-wildcard.key"
    chmod 600 "${CCC_KEY}"
      
    for name in \
      barbican-tls-public ceph-tls-public cinder-tls-public glance-tls-public \
      heat-tls-public horizon-tls-public keystone-tls-public manila-tls-public \
      neutron-tls-public nova-tls-public nova-novncproxy-tls-public \
      octavia-tls-public placement-tls-public rgw-tls-public
    do
      echo "=== ${name} ==="
      kubectl create secret tls "${name}" \
        --namespace openstack \
        --cert="${CCC_CERT}" \
        --key="${CCC_KEY}"
    done
    
  • Wait for installer exit code 0 before continuing.

    # Installing CA into the system certificate store on Ubuntu
    install -m 0644 \
      /opt/ccc-installation/tls/ccc/ccc-wildcard.crt \
      /usr/local/share/ca-certificates/ccc-wildcard.crt
    update-ca-certificates
      
    # CA trust check
    curl -v https://keystone.ccc.ecscloud.iopscloud.cloudera.com/v3/
    

16. Rebuilding Nova Compute Pods

  • Pause the entire kustomize-controller while keeping the helm-controller running:

    kubectl -n flux-system scale deployment kustomize-controller --replicas=0
    
  • Verify that it has stopped:

    kubectl -n flux-system get deployment kustomize-controller
    
    Expected output:
    0/0
    
  • Modify the libvirt values for Nova:

    kubectl -n openstack patch helmrelease nova \
      --type=merge \
      -p '{
        "spec": {
          "values": {
            "conf": {
              "nova": {
                "libvirt": {
                  "virt_type": "kvm",
                  "cpu_mode": "custom",
                  "cpu_model_extra_flags":null,
                  "cpu_models": "Haswell-noTSX-IBRS"
                }
              }
            }
          }
        }
      }'
    
  • Trigger an immediate Helm reconciliation:

    bash kubectl -n openstack annotate helmrelease nova \ reconcile.fluxcd.io/requestedAt="$(date -Iseconds)" \ --overwrite bash

  • Check if the Helm Controller has processed this new generation:

    kubectl -n openstack get helmrelease nova \
    -o jsonpath='{.metadata.generation}{" observed="}{.status.observedGeneration}{"\n"}{range .status.conditions[*]}{.type}{"="}{.status}{" reason="}{.reason}{" message="}{.message}{"\n"}{end}'  
    
  • Monitor the Ready status; wait until it becomes True.

  • Add a post-render patch to prevent the chart from overwriting the configuration with an incorrect --use-fqdn setting:

    kubectl -n openstack patch daemonset nova-compute-default \
    --type=json \
    -p '[
      {
        "op": "remove",
        "path": "/spec/template/spec/containers/0/startupProbe/exec/command/7"
      }
    ]'
    
  • Check if the DaemonSet still contains –use-fqdn

    kubectl -n openstack get daemonset nova-compute-default \
    -o jsonpath='{.spec.template.spec.containers[0].startupProbe.exec.command}{"\n"}'
    
  • Check if the HelmRelease still retains the post-render configuration:

    kubectl -n openstack get helmrelease nova \
    -o jsonpath='{.spec.postRenderers}{"\n"}'
    
  • Wait for all Nova Compute Pods to be recreated:

    kubectl -n openstack rollout status daemonset/nova-compute-default --timeout=15m
    
    kubectl -n openstack get pods -l application=nova,component=compute
    
  • Verify that the new configuration has been applied within the container:

    kubectl -n openstack exec \
    $(kubectl -n openstack get pod -l application=nova,component=compute \
      -o jsonpath='{.items[0].metadata.name}') \
    -c nova-compute -- \
    awk '/^\[libvirt\]/{p=1} p&&NF{print} /^\[/{if($0!="[libvirt]") p=0}' \
    /etc/nova/nova.conf
    
    [libvirt]
    connection_uri = qemu+unix:///system?socket=/run/libvirt/libvirt-sock
    cpu_mode = custom
    cpu_models = Haswell-noTSX-IBRS
    disk_cachemodes = network=writeback
    hw_disk_discard = unmap
    images_rbd_ceph_conf = /etc/ceph/ceph.conf
    images_rbd_pool = vms
    images_type = qcow2
    rbd_secret_uuid = 457eb676-33da-42ec-9a8c-9293d545c337
    rbd_user = cinder
    virt_type = qemu
    [neutron]
    

17. Create OpenStack admin RC file and build CLI wrappers

  • Verify the certificate

    openssl s_client \
      -connect keystone.ccc.ecscloud.iopscloud.cloudera.com:443 \
      -servername keystone.ccc.ecscloud.iopscloud.cloudera.com \
      -CAfile /etc/ssl/certs/ca-certificates.crt \
      -verify_return_error </dev/null
    
  • Create OpenStack admin RC file

    export OPENSTACK_PASSWORD="$(helm get values -n openstack openstack-keystone -o json | jq -r '.endpoints.identity.auth.admin.password')"
    cat >/opt/ccc-installation/admin-openrc.sh <<EOF
    export OS_AUTH_URL=https://keystone.ccc.ecscloud.iopscloud.cloudera.com/v3
    export OS_PROJECT_DOMAIN_NAME=Default
    export OS_USER_DOMAIN_NAME=Default
    export OS_PROJECT_NAME=admin
    export OS_USERNAME=admin
    export OS_PASSWORD="${OPENSTACK_PASSWORD}"
    export OS_REGION_NAME=RegionOne
    export OS_INTERFACE=public
    export OS_IDENTITY_API_VERSION=3
    export OS_CACERT=/etc/ssl/certs/ca-certificates.crt
    EOF
    chmod 0600 /opt/ccc-installation/admin-openrc.sh
    
  • Build the local OpenStack CLI image (tag localhost/openstack-cli:3.11) .

    install -d -m 0755 /opt/ccc-installation/openstack-cli-image
    cd /opt/ccc-installation/openstack-cli-image
      
    cat >Containerfile <<'EOF'
    FROM python:3.11-slim
      
    RUN pip install --no-cache-dir \
        python-openstackclient \
        python-manilaclient \
        python-octaviaclient \
        python-heatclient \
        python-designateclient \
        python-barbicanclient \
        python-magnumclient
      
    ENTRYPOINT ["openstack"]
    EOF
      
    podman build -t localhost/openstack-cli:3.11 .
    podman run --rm localhost/openstack-cli:3.11 --version
    
  • Create OpenStack CLI wrappers. Complete this before continuing to CCF; the CCF runbook expects /opt/ccc-installation/openstack-cli-admin.

    cat >/opt/ccc-installation/openstack-cli-with-rc <<'EOF'
    #!/usr/bin/env bash
    set -euo pipefail
      
    if [ "$#" -lt 2 ]; then
      echo "Usage: $0 <openrc-file> <openstack-args...>" >&2
      exit 2
    fi
      
    OPENRC_FILE="$1"
    shift
      
    OPENSTACK_CLI_IMAGE="${OPENSTACK_CLI_IMAGE:-localhost/openstack-cli:3.11}"
      
    exec podman run --rm --network host \
      --entrypoint /bin/sh \
      -v "${OPENRC_FILE}:/opt/openstack/openrc.sh:ro" \
      -v /etc/ssl/certs:/etc/ssl/certs:ro \
      "${OPENSTACK_CLI_IMAGE}" \
      -c '. /opt/openstack/openrc.sh && exec openstack "$@"' \
      openstack "$@"
    EOF
      
    chmod 0755 /opt/ccc-installation/openstack-cli-with-rc
      
    cat >/opt/ccc-installation/openstack-cli-admin <<'EOF'
    #!/usr/bin/env bash
    set -euo pipefail
      
    exec /opt/ccc-installation/openstack-cli-with-rc /opt/ccc-installation/admin-openrc.sh "$@"
    EOF
      
    chmod 0755 /opt/ccc-installation/openstack-cli-admin
    /opt/ccc-installation/openstack-cli-admin token issue
    /opt/ccc-installation/openstack-cli-admin endpoint list
    
  • Install the Flux CLI

    mkdir -p /opt/ccc-installation/bin
      
    if [ ! -x /opt/ccc-installation/bin/flux ]; then
      FLUX_VERSION=2.8.6
      curl -fsSL "https://github.com/fluxcd/flux2/releases/download/v${FLUX_VERSION}/flux_${FLUX_VERSION}_linux_amd64.tar.gz" \
        | tar -xz -C /opt/ccc-installation/bin flux
      chmod 0755 /opt/ccc-installation/bin/flux
    fi
    /opt/ccc-installation/bin/flux --version
    

18. Open the OpenStack Dashboard (Horizon)

  • log in using the username “admin” and the password “OPENSTACK_PASSWORD”.

  • You can view the compute and volume summary.

Troubleshooting Reference

issue 1. SSL: CERTIFICATE_VERIFY_FAILED

  • Errors

    [Deploy Cloud Stack:stderr] SSL exception connecting to https://keystone.ccc.ecscloud.iopscloud.cloudera.com/v3/auth/tokens: HTTPSConnectionPool(host='keystone.ccc.ecscloud.iopscloud.cloudera.com', port=443): Max retries exceeded with url: /v3/auth/tokens (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1065)')))
    
  • Root Cause
    • On Ubuntu/Debian:
    • /usr/local/share/ca-certificates/*.crt: A directory for local trusted certificates added manually by an administrator.
    • /etc/ssl/certs/ca-certificates.crt: A PEM bundle generated by update-ca-certificates from system CA certificates and local .crt files.
    • /etc/ssl/certs/: Also contains symbolic links named after certificate hashes, allowing OpenSSL to locate certificates by directory.
    • When using podman run, include the argument -v /etc/ssl/certs:/etc/ssl/certs:ro.
  • Solution
    # Install the CA into the system certificate store on Ubuntu:
    install -m 0644 \
    /opt/ccc-installation/tls/ccc/ccc-wildcard.crt \
    /usr/local/share/ca-certificates/ccc-wildcard.crt
    update-ca-certificates
    # Verify
    curl -v https://keystone.ccc.ecscloud.iopscloud.cloudera.com/v3/
    

issue 2. KVM: entry failed, hardware error 0x8

  • Errors

    kubectl -n openstack exec libvirt-libvirt-default-g2q79 \
      -c libvirt -- \
      tail -n 200 /var/log/libvirt/qemu/instance-00000008.log
      
    KVM: entry failed, hardware error 0x8
    EAX=00000000 EBX=00000000 ECX=00000000 EDX=000606a6
    ESI=00000000 EDI=00000000 EBP=00000000 ESP=00000000
    EIP=0000fff0 EFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0
    ES =0000 00000000 0000ffff 00009300
    CS =f000 ffff0000 0000ffff 00009b00
    SS =0000 00000000 0000ffff 00009300
    DS =0000 00000000 0000ffff 00009300
    FS =0000 00000000 0000ffff 00009300
    GS =0000 00000000 0000ffff 00009300
    LDT=0000 00000000 0000ffff 00008200
    TR =0000 00000000 0000ffff 00008b00
    GDT=     00000000 0000ffff
    IDT=     00000000 0000ffff
    CR0=60000010 CR2=00000000 CR3=00000000 CR4=00000000
    DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000 
    DR6=00000000ffff0ff0 DR7=0000000000000400
    EFER=0000000000000000
    
  • Root Cause
    • The presence of la57 in the host’s /proc/cpuinfo indicates that its kernel is utilizing five-level paging. With five-level paging, the LA57 bit in the host’s CR4 register is set to 1, and kernel addresses are 57-bit canonical addresses (e.g., 0xff11…). If the KVM hypervisor (at the L0 level) handles the validation of these 57-bit canonical addresses—or the corresponding CR4 register checks—incorrectly, it can trigger “error 0x8.” Upstream KVM has addressed such issues; around the time of the Linux 6.13 kernel release, a series of patches was introduced to correct canonical address checks related to LA57, including those involving VMX host-state fields.
    • When the no5lvl parameter is applied, Ubuntu switches to four-level paging. In this configuration, the LA57 bit in the host’s CR4 register becomes 0, and addresses revert to the 48-bit range—effectively bypassing the code paths where these problematic checks occur.
  • Solution

issue 3. pod nova-compute is running but not healthy

  • Errors

    socket.gethostname()
    = ip-10-129-80-144.iopscloud.cloudera.com
      
    socket.getfqdn()
    = 10-129-80-144.ceph-mon.rook-ceph.svc.cluster.local
    
    • However, the startup probe of pod nova-compute enforces the use of:
    --use-fqdn
    
    • Consequently, the script sends RPC requests to:
    topic=compute
    server=10-129-80-144.ceph-mon.rook-ceph.svc.cluster.local
    
    • Meanwhile, Nova Compute typically registers its RPC queue using its hostname—most likely:
    compute.ip-10-129-80-144.iopscloud.cloudera.com
    
    • When these do not match, the probe sends a ping to a queue that either does not exist or has no consumer, resulting in a timeout after 60 seconds.
  • Solution

    • Configure the health probe to use socket.gethostname(), ensuring it matches the actual host identifier used by Nova Compute. Do not attempt a fix by modifying files inside the Pod; instead, update the Helm/GitOps values or the nova-bin ConfigMap template used to generate the nova-compute DaemonSet.
    • For this specific deployment, however, removing --use-fqdn is a more direct and reliable approach.
    • Please see Set kernel sysctl settings on all nodes

Back to top

All trademarks, logos, service marks and company names appeared here are the property of their respective owners.

This site uses Just the Docs, a documentation theme for Jekyll.