cloudera-labs / cloudera.cluster

An Ansible collection for lifecycle and management of Cloudera CDP Private Cloud resources on bare metal, IaaS, and PaaS.
Apache License 2.0
32 stars 46 forks source link

Unwanted SDX deployment #101

Closed HirossxD closed 1 year ago

HirossxD commented 1 year ago

when running the cloudera deploy playbook (tags=default_cluster,kerberos), in the last tasks , i can see this, I also have added when it is triggered, from:

/opt/cldr-runner/collections/ansible_collections/cloudera/cluster/roles/deployment/cluster/tasks/main.yml

TASK [cloudera.cluster.cluster : Create base cluster data contexts (SDX)]

 when:
    - cluster.type | default(default_cluster_type) == 'base'
    - cloudera_manager_version is version('6.2.0','>=')

when running the playbook twice (for example with unset proxy, import cluster template fails when downloading parcels, after manual proxy set-up in the CM UI, playbook deploys cluster successfully on the second run, but with NO SDX!)

Cluster is always deployed successfully, in the green state, however, when I click on the Basic Cluster in the CM, instead of CMS I am seeing SDX which is not configured...

HirossxD commented 1 year ago

I have found out this file /opt/cldr-runner/collections/ansible_collections/cloudera/cluster/roles/config/cluster/common/defaults/main.yml https://github.com/cloudera-labs/cloudera.cluster/blob/main/roles/config/cluster/common/defaults/main.yml

Should I edit this file directly or are there any better configuration options ?

HirossxD commented 1 year ago

Added tag sdx in

/opt/cldr-runner/collections/ansible_collections/cloudera/cluster/roles/deployment/cluster/tasks/main.yml

as following:

- name: Create base cluster data contexts (SDX)
  include_tasks: create_data_context.yml
  loop: "{{ definition.clusters }}"
  loop_control:
    loop_var: _cluster
  vars:
    cluster: "{{ default_cluster_base | combine(_cluster) }}"
  when:
    - cluster.type | default(default_cluster_type) == 'base'
    - cloudera_manager_version is version('6.2.0','>=')
  tags:
    - sdx

with this modification, SDX is skipable via addin --skip-tags sdx to the ansible-playbook command