2023-04-08 11:41:27,371 - [CLI] - NOTICE - Configuring Cloudify CLI...
2023-04-08 11:41:27,371 - [CLI] - INFO - Setting CLI for the root user...
2023-04-08 11:41:27,371 - [MAIN] - ERROR - ProcessExecutionError: Failed running command: ['cfy', 'profiles', 'set', '-m', 'example.com', '-t', 'default_tenant', '-u', 'admin', '-c', '/etc/cloudify/ssl/cloudify_internal_ca_cert.pem', '--ssl', 'on'] ().
ProcessExecutionError: Failed running command: ['cfy', 'profiles', 'set', '-m', 'example.com', '-t', 'default_tenant', '-u', 'admin', '-c', '/etc/cloudify/ssl/cloudify_internal_ca_cert.pem', '--ssl', 'on'] ().
manager:
cli_local_profile_host_name: 'example.com'
ssl_inputs:
external_cert_path: '/home/centos/certs/certificate.crt'
external_key_path: '/home/centos/certs/private.key'
external_ca_cert_path: '/home/centos/certs/ca_bundle.crt'
if config[MANAGER][SECURITY]['ssl_enabled']:
if config[SSL_INPUTS]['external_cert_path'] != '':
set_cmd += ['-c', CA_CERT_PATH, '--ssl', 'on']
else:
set_cmd += ['-c', EXTERNAL_CA_CERT_PATH , '--ssl', 'on']
else:
set_cmd += ['--ssl', 'off']
version: 6.4.0
steps to reproduce:
cfy_manager configure will fail
Error Message
Config File
Analysis
the problem is with
https://github.com/cloudify-cosmo/cloudify-manager-install/blob/6.4.0/cfy_manager/components/cli/cli.py#L71
this logic can be improved like