[Bug 1784757] Re: [SRU] rabbitmq-server does not properly shutdown

Bryce Harrington 1784757 at bugs.launchpad.net
Tue Jul 9 01:35:34 UTC 2019


I'm still not able to reproduce the error.

If you can provide an exact set of steps to run in an lxc container it'd
help a lot.  Here's what I've got so far:

```
$ lxc launch ubuntu:bionic bionic-lp-1784757
Creating bionic-lp-1784757
Starting bionic-lp-1784757
trent:~/ubuntu/RabbitmqServer/sru.1784757$ lxc exec bionic-lp-1784757 -- bash
root at bionic-lp-1784757:~# apt update
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
(...)
root at bionic-lp-1784757:~# ps aux | grep ^rabbit
rabbitmq  1390  0.0  0.0   4628   868 ?        Ss   01:30   0:00 /bin/sh /usr/sbin/rabbitmq-server
rabbitmq  1403  0.0  0.0   4628  1844 ?        S    01:30   0:00 /bin/sh /usr/lib/rabbitmq/bin/rabbitmq-server
rabbitmq  1553  0.0  0.0  26852   204 ?        S    01:30   0:00 /usr/lib/erlang/erts-9.2/bin/epmd -daemon
rabbitmq  1684  0.0  0.1 4291312 62276 ?       Sl   01:30   0:02 /usr/lib/erlang/erts-9.2/bin/beam.smp -W w -A 96 -P 1048576 (...)
rabbitmq  1834  0.0  0.0   4520   804 ?        Ss   01:30   0:00 erl_child_setup 65536
rabbitmq  1913  0.0  0.0   8264  1128 ?        Ss   01:30   0:00 inet_gethost 4
rabbitmq  1914  0.0  0.0  14616  1888 ?        S    01:30   0:00 inet_gethost 4
root at bionic-lp-1784757:~# sudo time --format %E systemctl stop rabbitmq-server.service
0:00.88
```

I've also experimented with having epmd started or stopped, in various
order with the start/stop of rabbitmq-server, but it always takes only a
second or two to start or stop.  Debian's changes suggest that the bug
is some interrelationship with epmd, but it's unclear from the patch
what exactly that is.

Are there any config settings, architecture specificness, or other
considerations that need taken into account?

** Changed in: rabbitmq-server (Ubuntu Bionic)
       Status: Triaged => Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to rabbitmq-server in Ubuntu.
https://bugs.launchpad.net/bugs/1784757

Title:
  [SRU] rabbitmq-server does not properly shutdown

Status in rabbitmq-server package in Ubuntu:
  Fix Released
Status in rabbitmq-server source package in Bionic:
  Incomplete
Status in rabbitmq-server source package in Cosmic:
  Triaged
Status in rabbitmq-server package in Debian:
  Fix Released

Bug description:
  [Impact]
  TBD

  [Test Case]
  TBD

  [Regression Potential]
  TBD

  [Fix]
  TBD

  The fix is available upstream in Debian as of 3.7.6, so would need
  backported for bionic and cosmic:

   rabbitmq-server | 3.5.7-1                | xenial          | source, all
   rabbitmq-server | 3.6.10-1               | bionic          | source, all
   rabbitmq-server | 3.6.10-1               | cosmic          | source, all
   rabbitmq-server | 3.7.8-4ubuntu2         | disco           | source, all
   rabbitmq-server | 3.7.8-4ubuntu2         | eoan            | source, all

  [Discussion]
  TBD

  [Original Report]
  When I run `systemctl restart rabbitmq-server` it waits for 90 seconds then systemd sends SIGKILL to it.

  Presumably the `epmd` process does not receive SIGTERM, since if I run
  `kill 1493` (or whatever pid it currently is) then restart happens
  straight after that successfully

  ● rabbitmq-server.service - RabbitMQ Messaging Server
     Loaded: loaded (/lib/systemd/system/rabbitmq-server.service; enabled; vendor preset: enabled)
     Active: deactivating (final-sigterm) since Wed 2018-08-01 01:17:04 UTC; 7s ago
    Process: 1183 ExecStop=/usr/sbin/rabbitmqctl stop (code=exited, status=0/SUCCESS)
    Process: 178 ExecStartPost=/usr/lib/rabbitmq/bin/rabbitmq-server-wait (code=exited, status=0/SUCCESS)
    Process: 177 ExecStart=/usr/sbin/rabbitmq-server (code=killed, signal=TERM)
   Main PID: 177 (code=killed, signal=TERM)
      Tasks: 1 (limit: 4915)
     CGroup: /system.slice/rabbitmq-server.service
             └─1493 /usr/lib/erlang/erts-9.2/bin/epmd -daemon

  Aug 01 01:11:20 rmq-1 systemd[1]: rabbitmq-server.service: Failed to reset devices.list: Operation not permitted
  Aug 01 01:11:20 rmq-1 systemd[1]: Starting RabbitMQ Messaging Server...
  Aug 01 01:11:25 rmq-1 rabbitmq[178]: Waiting for 'rabbit at rmq-1'
  Aug 01 01:11:25 rmq-1 rabbitmq[178]: pid is 204
  Aug 01 01:11:30 rmq-1 systemd[1]: Started RabbitMQ Messaging Server.
  Aug 01 01:17:04 rmq-1 systemd[1]: Stopping RabbitMQ Messaging Server...
  Aug 01 01:17:06 rmq-1 rabbitmq[1183]: Stopping and halting node 'rabbit at rmq-1'

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rabbitmq-server/+bug/1784757/+subscriptions



More information about the Ubuntu-openstack-bugs mailing list