RabbitMQ pid file sometimes not present for task "Waiting for rabbitmq to start"

Bug #2086707 reported by Matt Crees
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kolla-ansible
In Progress
Undecided
Matt Crees

Bug Description

Occasionally we've seen the following error:

TASK [rabbitmq : Waiting for rabbitmq to start] *******************************************************************************
Tuesday 05 November 2024 14:39:28 +0000 (0:00:01.197) 0:09:38.753 ******
fatal: [<hostname-omitted>]: FAILED! => changed=true
  cmd:
  - docker
  - exec
  - rabbitmq
  - rabbitmqctl
  - wait
  - --timeout
  - '60'
  - /var/lib/rabbitmq/mnesia/rabbitmq.pid
  delta: '0:00:06.177517'
  end: '2024-11-05 14:39:34.731930'
  msg: non-zero return code
  rc: 137
  start: '2024-11-05 14:39:28.554413'
  stderr: ''
  stderr_lines: <omitted>
  stdout: Waiting for pid file '/var/lib/rabbitmq/mnesia/rabbitmq.pid' to appear
  stdout_lines: <omitted>

This seems to be because we try calling this rabbitmqctl command just before the pid file is created. Can be solved by adding retries to the task.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (master)
Changed in kolla-ansible:
status: New → In Progress
Matt Crees (mattcrees)
Changed in kolla-ansible:
assignee: nobody → Matt Crees (mattcrees)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.