Я получаю ошибки при попытке установить новый кластер с двумя iscsigws
Я получаю ошибки при обнаружении службы tcmu-runner, как показано ниже, но после перезагрузки службы появляется ошибка, связанная с атрибутом
2020-03-09 15:52:09,723 p=9931 u=owolfi | <cnode05> (1, '\n{"msg": "Could not find the requested service tcmu-runner: host", "failed": true, "invocation": {"module_args": {"no_block": false, "force": null, "name": "tcmu-runner", "daemon_reexec": false, "enabled": true, "daemon_reload": false, "state": "started", "user": null, "scope": null, "masked": false}}}\n', '')
2020-03-09 15:52:09,723 p=9931 u=owolfi | <cnode05> Failed to connect to the host via ssh:
2020-03-09 15:52:09,734 p=9931 u=owolfi | fatal: [cnode05]: FAILED! => changed=false
invocation:
module_args:
daemon_reexec: false
daemon_reload: false
enabled: true
force: null
masked: false
name: tcmu-runner
no_block: false
scope: null
state: started
user: null
msg: 'Could not find the requested service tcmu-runner: host'
2020-03-10 12:51:20,205 p=39156 u=owolfi | <cnode05> Failed to connect to the host via ssh: Traceback (most recent call last):
File "<stdin>", line 114, in <module>
File "<stdin>", line 106, in _ansiballz_main
File "<stdin>", line 49, in invoke_module
File "/tmp/ansible_igw_gateway_payload_ZmhG9c/__main__.py", line 145, in <module>
File "/tmp/ansible_igw_gateway_payload_ZmhG9c/__main__.py", line 90, in ansible_main
AttributeError: 'Config' object has no attribute 'config'
2020-03-10 12:51:20,216 p=39156 u=owolfi | The full traceback is:
Traceback (most recent call last):
File "<stdin>", line 114, in <module>
File "<stdin>", line 106, in _ansiballz_main
File "<stdin>", line 49, in invoke_module
File "/tmp/ansible_igw_gateway_payload_ZmhG9c/__main__.py", line 145, in <module>
File "/tmp/ansible_igw_gateway_payload_ZmhG9c/__main__.py", line 90, in ansible_main
AttributeError: 'Config' object has no attribute 'config'
2020-03-10 12:51:20,220 p=39156 u=owolfi | fatal: [cnode05]: FAILED! => changed=false
module_stderr: |-
Traceback (most recent call last):
File "<stdin>", line 114, in <module>
File "<stdin>", line 106, in _ansiballz_main
File "<stdin>", line 49, in invoke_module
File "/tmp/ansible_igw_gateway_payload_ZmhG9c/__main__.py", line 145, in <module>
File "/tmp/ansible_igw_gateway_payload_ZmhG9c/__main__.py", line 90, in ansible_main
AttributeError: 'Config' object has no attribute 'config'
module_stdout: ''
msg: |-
MODULE FAILURE
See stdout/stderr for the exact error
rc: 1
Как узнать, какая конфигурация в моем файле yml вызывает ошибку и где можно получить справку do c с опциями для добавления в файл yml
Это мой контент iscsigws.yml (IP-адреса удалено) --- # Переменные здесь применимы ко всем группам хостов, а НЕ ролям
# This sample file generated by generate_group_vars_sample.sh
# Dummy variable to avoid error because ansible does not recognize the
# file as a good configuration file when no variable in it.
dummy:
# You can override vars by using host or group vars
###########
# GENERAL #
###########
# Whether or not to generate secure certificate to iSCSI gateway nodes
#generate_crt: False
#iscsi_conf_overrides: {}
iscsi_pool_name: iscsi_pool
iscsi_pool_size: "{{ osd_pool_default_size }}"
deploy_settings: True
perform_system_checks: True
#copy_admin_key: True
gateway_iqn: iqn.2003-01.com.redhat.iscsi-gw:iscsi-igw
gateway_ip_list:
##################
# RBD-TARGET-API #
##################
# Optional settings related to the CLI/API service
api_user: admin
api_password: admin
api_port: 5000
api_secure: false
#loop_delay: 1
trusted_ip_list:
##########
# DOCKER #
##########
# Resource limitation
# For the whole list of limits you can apply see: docs.docker.com/engine/admin/resource_constraints
# Default values are based from: https://access.redhat.com/documentation/en-us/red_hat_ceph_storage/2/html/red_hat_ceph_storage_hardware_guide/minimum_recommendations
# These options can be passed using the 'ceph_mds_docker_extra_env' variable.
# TCMU_RUNNER resource limitation
#ceph_tcmu_runner_docker_memory_limit: "{{ ansible_memtotal_mb }}m"
#ceph_tcmu_runner_docker_cpu_limit: 1
# RBD_TARGET_GW resource limitation
#ceph_rbd_target_gw_docker_memory_limit: "{{ ansible_memtotal_mb }}m"
#ceph_rbd_target_gw_docker_cpu_limit: 1
# RBD_TARGET_API resource limitation
#ceph_rbd_target_api_docker_memory_limit: "{{ ansible_memtotal_mb }}m"
#ceph_rbd_target_api_docker_cpu_limit: 1