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

Dependency of NIFI to Kafka is invalid #198

Open hadoopch opened 5 months ago

hadoopch commented 5 months ago

Hi,

according to

./roles/config/cluster/base/templates/configs/inter-service-dependencies.j2

there should be a dependency of nifi to kafka if kafka is in the services list.

NIFI:
  SERVICEWIDE:
    hdfs_service: hdfs
    zookeeper_service: zookeeper
{% if 'KAFKA' in cluster.services %}
    kafka_service: kafka
{% endif %}

This dependency provokes the following error

ok: [cm001.cdp.lan] => (item=ZEPPELIN)
failed: [cm001.cdp.lan] (item=NIFI) => {"ansible_loop_var": "service", "cache_control": "no-cache, no-store, max-age=0, must-revalidate", "changed": false, "connection": "close", "content": "{\n  \"message\" : \"Unknown configuration attribute 'kafka_service' for service (type: 'NIFI', name: 'nifi').\"\n}", "content_type": "application/json;charset=utf-8", "date": "Wed, 31 Jan 2024 09:48:12 GMT", "elapsed": 0, "expires": "0", "msg": "Status code was 400 and not [200]: HTTP Error 400: Bad Request", "pragma": "no-cache", "redirected": false, "service": "NIFI", "set_cookie": "SESSION=NGNjMmYwZDItYzk1NS00OTZhLThkNjgtM2I2OTI4Y2UxMWZl; Path=/; Secure; HttpOnly; SameSite=Lax", "status": 400, "strict_transport_security": "max-age=31536000 ; includeSubDomains", "url": "https://cm001.cdp.lan:7183/api/v54/clusters/cdpdevbase/services/nifi/config?message=Automated%20updates%20from%20Ansible", "x_content_type_options": "nosniff", "x_frame_options": "DENY", "x_xss_protection": "1; mode=block"}

Regards

Uli