Closed gbaufake closed 6 months ago
Thanks for the report!
Depending on the infrastructure and how fast the Ansible controller is, there is indeed cases where the validation will ran before the service has fully started. You can add wait_for: to check that Zookeeper is indeed up (or simply delay the validation step):
roles:
- role: amq_stream_zookeeper
...
post_tasks:
- name: "Wait for Zookeeper to be up"
ansible.builtin.wait_for:
host: <zk_host>
port: <zk_port>
- ansible.builtin.include_role:
name: amq_streams_zookeeper
tasks_from: validation.yml
Otherwise, I've added such a wait in the amq_streams_broker role, that can be can be activate (see https://github.com/ansible-middleware/amq_streams/pull/94). Maybe you can try it in your environment, see if it helps?
@gbaufake can we close this issue?
I'm still facing this issue.
@gbaufake Oh, sorry to hear that! I assumed, wrongly, that adding the timeout/delay had worked.
Can you share your playbook and some details on the target system? We need to be able to reproduce the issue in order to investigate.
Thanks!
SUMMARY
When
server_log_validation: true
, the collection fails because the server.log is not being created timely when the check is being performed.ISSUE TYPE
ANSIBLE VERSION
COLLECTION VERSION
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS