After charm-upgrade, config-changed times out waiting for the service to come back
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack RabbitMQ Server Charm |
New
|
Undecided
|
Unassigned |
Bug Description
Seen on OSCI when upgrading the charm from bionic-queens stable to -next:
http://
~~~~~~~~~~
2021-01-20 13:30:41 INFO juju-log Unit is ready
2021-01-20 13:30:42 INFO juju.worker.
2021-01-20 13:31:48 INFO juju.worker.
2021-01-20 13:31:48 INFO juju.downloader download.go:111 downloading from local:bionic/
2021-01-20 13:31:48 INFO juju.downloader download.go:94 download complete ("local:
2021-01-20 13:31:48 INFO juju.downloader download.go:174 download verified ("local:
2021-01-20 13:31:49 INFO juju.worker.uniter resolver.go:147 found queued "upgrade-charm" hook
2021-01-20 13:31:56 INFO juju-log Unknown hook upgrade-charm.real - skipping.
2021-01-20 13:32:03 INFO juju-log Unit is ready
2021-01-20 13:32:04 INFO juju.worker.
2021-01-20 13:32:04 INFO juju.worker.uniter resolver.go:147 found queued "config-changed" hook
2021-01-20 13:32:05 INFO juju-log Updating hosts file with: {'172.17.104.66': 'juju-f007d1-
2021-01-20 13:32:05 INFO juju-log Removing line '172.17.104.66 juju-f007d1-
' from hosts file
2021-01-20 13:32:05 INFO juju-log Changing ownership of path /var/lib/rabbitmq to rabbitmq:rabbitmq
2021-01-20 13:32:05 INFO juju-log Changing perms of path /var/lib/rabbitmq
2021-01-20 13:33:29 WARNING config-changed Job for rabbitmq-
2021-01-20 13:33:29 WARNING config-changed See "systemctl status rabbitmq-
2021-01-20 13:33:31 WARNING config-changed Error: process_not_running
2021-01-20 13:33:32 WARNING config-changed Error: unable to connect to node 'rabbit@
2021-01-20 13:33:32 WARNING config-changed
2021-01-20 13:33:32 WARNING config-changed DIAGNOSTICS
2021-01-20 13:33:32 WARNING config-changed ===========
2021-01-20 13:33:32 WARNING config-changed
2021-01-20 13:33:32 WARNING config-changed attempted to contact: ['rabbit@
2021-01-20 13:33:32 WARNING config-changed
2021-01-20 13:33:32 WARNING config-changed rabbit@
2021-01-20 13:33:32 WARNING config-changed * connected to epmd (port 4369) on juju-f007d1-
2021-01-20 13:33:32 WARNING config-changed * epmd reports: node 'rabbit' not running at all
2021-01-20 13:33:32 WARNING config-changed no other nodes on juju-f007d1-
2021-01-20 13:33:32 WARNING config-changed * suggestion: start the node
2021-01-20 13:33:32 WARNING config-changed
2021-01-20 13:33:32 WARNING config-changed current node details:
2021-01-20 13:33:32 WARNING config-changed - node name: 'rabbitmq-
2021-01-20 13:33:32 WARNING config-changed - home dir: /var/lib/rabbitmq
2021-01-20 13:33:32 WARNING config-changed - cookie hash: v8dn+KKQAkI0C8q
2021-01-20 13:33:32 WARNING config-changed
2021-01-20 13:33:33 WARNING config-changed Traceback (most recent call last):
2021-01-20 13:33:33 WARNING config-changed File "/var/lib/
2021-01-20 13:33:33 WARNING config-changed hooks.execute(
2021-01-20 13:33:33 WARNING config-changed File "/var/lib/
2021-01-20 13:33:33 WARNING config-changed self._hooks[
2021-01-20 13:33:33 WARNING config-changed File "/var/lib/
2021-01-20 13:33:33 WARNING config-changed wait_app()
2021-01-20 13:33:33 WARNING config-changed File "/var/lib/
2021-01-20 13:33:33 WARNING config-changed raise ex
2021-01-20 13:33:33 WARNING config-changed File "/var/lib/
2021-01-20 13:33:33 WARNING config-changed rabbitmqctl('wait', pid_file)
2021-01-20 13:33:33 WARNING config-changed File "/var/lib/
2021-01-20 13:33:33 WARNING config-changed subprocess.
2021-01-20 13:33:33 WARNING config-changed File "/usr/lib/
2021-01-20 13:33:33 WARNING config-changed raise CalledProcessEr
2021-01-20 13:33:33 WARNING config-changed subprocess.
2021-01-20 13:33:33 ERROR juju.worker.
~~~~~~~~~~
From <email address hidden> however we see that at 13:33 the RabbitMQ service has been already back for a minute:
~~~~~~~~~~
=INFO REPORT==== 20-Jan-
connection <0.28484.0> (172.17.
=ERROR REPORT==== 20-Jan-
** Connection attempt from disallowed node 'rabbitmq-
=INFO REPORT==== 20-Jan-
rabbit on node 'rabbit@
=INFO REPORT==== 20-Jan-
Keep rabbit@
=INFO REPORT==== 20-Jan-
node 'rabbit@
=INFO REPORT==== 20-Jan-
node 'rabbit@
=INFO REPORT==== 20-Jan-
accepting AMQP connection <0.29738.0> (172.17.
~~~~~~~~~~
This could be an instance of lp:1710247 where the /var/lib/
CI change for gathering /var/lib/rabbitmq/ from now on: https:/ /github. com/openstack- charmers/ bot-control/ pull/199