Closed pmw-rp closed 8 months ago
The following error was seen:
TASK [redpanda.cluster.redpanda_broker : Set cluster config] ******************************************************************************************************************************************************************************************************** failed: [REDACTED] (item={'key': 'rpc_server_tcp_recv_buf', 'value': 65536}) => {"ansible_loop_var": "item", "changed": true, "changed_when_result": "The conditional check '\"New configuration version is {{ config_version.stdout|int() }}.\" not in result.stdout' failed. The error was: Conditional is marked as unsafe, and cannot be evaluated.", "cmd": ["rpk", "cluster", "config", "set", "rpc_server_tcp_recv_buf", "65536"], "delta": "0:00:00.025335", "end": "2024-02-15 10:27:51.408827", "item": {"key": "rpc_server_tcp_recv_buf", "value": 65536}, "msg": "", "rc": 0, "start": "2024-02-15 10:27:51.383492", "stderr": "", "stderr_lines": [], "stdout": "Successfully updated configuration. New configuration version is 2.", "stdout_lines": ["Successfully updated configuration. New configuration version is 2."]} failed: [REDACTED] (item={'key': 'enable_rack_awareness', 'value': 'False'}) => {"ansible_loop_var": "item", "changed": true, "changed_when_result": "The conditional check '\"New configuration version is {{ config_version.stdout|int() }}.\" not in result.stdout' failed. The error was: Conditional is marked as unsafe, and cannot be evaluated.", "cmd": ["rpk", "cluster", "config", "set", "enable_rack_awareness", "False"], "delta": "0:00:00.023545", "end": "2024-02-15 10:27:51.807569", "item": {"key": "enable_rack_awareness", "value": "False"}, "msg": "", "rc": 0, "start": "2024-02-15 10:27:51.784024", "stderr": "", "stderr_lines": [], "stdout": "Successfully updated configuration. New configuration version is 2.", "stdout_lines": ["Successfully updated configuration. New configuration version is 2."]}
Looks like it was having difficulties with the defaults.
Relevant code is here.
Environment: Ansible was running on Centos 9, but the deployment target was bare-metal servers running RHEL 9.9.
Command: Install was run with ansible-playbook ansible/provision-basic-cluster.yml
ansible-playbook ansible/provision-basic-cluster.yml
hosts.ini:
[root@centos9 deployment-automation]# cat artifacts/hosts_ir.ini [redpanda] REDACTED1 ansible_host=10.128.5.51 ansible_user=root ansible_become=True private_ip=10.128.5.51 id=0 REDACTED2 ansible_host=10.128.5.52 ansible_user=root ansible_become=True private_ip=10.128.5.52 id=0 REDACTED3 ansible_host=10.128.5.53 ansible_user=root ansible_become=True private_ip=10.128.5.53 id=0
The following error was seen:
Looks like it was having difficulties with the defaults.
Relevant code is here.
Environment: Ansible was running on Centos 9, but the deployment target was bare-metal servers running RHEL 9.9.
Command: Install was run with
ansible-playbook ansible/provision-basic-cluster.yml
hosts.ini: