Intermittent service restart during update-status hook
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Octavia Charm |
Fix Released
|
Medium
|
Unassigned |
Bug Description
While investigating gate failure in https:/
I found:
Sep 14 21:06:32 juju-860e2a-
Sep 14 21:06:56 juju-860e2a-
Sep 14 21:06:58 juju-860e2a-
Sep 14 21:06:58 juju-860e2a-
Sep 14 21:06:58 juju-860e2a-
Sep 14 21:06:58 juju-860e2a-
Which appear to correlate with a update-status hook run (see below). However, attempts to reproduce by actually running the update-status hook manually are not successful.
2020-09-14 21:06:14 INFO juju-log Reactive main running for hook update-status
2020-09-14 21:06:17 INFO juju-log Initializing Leadership Layer (is follower)
2020-09-14 21:06:17 DEBUG juju-log tracer>
tracer: starting handler dispatch, 127 flags set
tracer: set flag amqp.available
tracer: set flag amqp.connected
tracer: set flag certificates.
tracer: set flag certificates.
tracer: set flag certificates.
tracer: set flag certificates.
tracer: set flag certificates.
tracer: set flag certificates.
tracer: set flag certificates.
tracer: set flag certificates.
tracer: set flag charm.installed
tracer: set flag charm.octavia.
tracer: set flag charms.
tracer: set flag charms.
tracer: set flag charms.
tracer: set flag charms.
tracer: set flag charms.
tracer: set flag charms.
tracer: set flag charms.
tracer: set flag charms.
tracer: set flag charms.
tracer: set flag cluster.available
tracer: set flag cluster.connected
tracer: set flag config.
tracer: set flag config.
tracer: set flag config.
tracer: set flag config.
tracer: set flag config.
tracer: set flag config.
tracer: set flag config.
tracer: set flag config.
tracer: set flag config.
tracer: set flag config.
tracer: set flag config.
tracer: set flag config.
tracer: set flag config.
tracer: set flag config.
tracer: set flag config.
tracer: set flag config.
tracer: set flag config.
tracer: set flag config.
tracer: set flag config.
tracer: set flag config.
tracer: set flag config.
tracer: set flag config.
tracer: set flag config.
tracer: set flag config.
tracer: set flag config.
tracer: set flag config.
tracer: set flag config.
tracer: set flag config.
tracer: set flag config.
tracer: set flag config.rendered
tracer: set flag config.
tracer: set flag config.
tracer: set flag config.set.debug
tracer: set flag config.
tracer: set flag config.
tracer: set flag config.
tracer: set flag config.
tracer: set flag config.
tracer: set flag config.
tracer: set flag config.
tracer: set flag config.
tracer: set flag config.
tracer: set flag config.set.region
tracer: set flag config.
tracer: set flag config.set.vip
tracer: set flag config.set.vip_cidr
tracer: set flag config.
tracer: set flag db.synced
tracer: set flag endpoint.
tracer: set flag endpoint.
tracer: set flag endpoint.
tracer: set flag endpoint.
tracer: set flag endpoint.
tracer: set flag endpoint.
tracer: set flag endpoint.
tracer: set flag endpoint.
tracer: set flag endpoint.
tracer: set flag endpoint.
tracer: set flag endpoint.
tracer: set flag endpoint.
tracer: set flag endpoint.
tracer: set flag endpoint.
tracer: set flag endpoint.
tracer: set flag endpoint.
tracer: set flag endpoint.
tracer: set flag endpoint.
tracer: set flag endpoint.
tracer: set flag endpoint.
tracer: set flag endpoint.
tracer: set flag endpoint.
tracer: set flag endpoint.
tracer: set flag endpoint.
tracer: set flag endpoint.
tracer: set flag endpoint.
tracer: set flag endpoint.
tracer: set flag endpoint.
tracer: set flag endpoint.
tracer: set flag endpoint.
tracer: set flag endpoint.
tracer: set flag endpoint.
tracer: set flag endpoint.
tracer: set flag ha.available
tracer: set flag ha.connected
tracer: set flag haproxy.
tracer: set flag identity-
tracer: set flag identity-
tracer: set flag identity-
tracer: set flag leadership.
tracer: set flag leadership.
tracer: set flag leadership.
tracer: set flag leadership.
tracer: set flag leadership.
tracer: set flag leadership.
tracer: set flag neutron-
tracer: set flag octavia-installed
tracer: set flag ovsdb-cms.available
tracer: set flag ovsdb-cms.connected
tracer: set flag ovsdb-subordina
tracer: set flag ovsdb-subordina
tracer: set flag sdn-subordinate
tracer: set flag sdn-subordinate
tracer: set flag shared-db.available
tracer: set flag shared-db.connected
tracer: set flag ssl.enabled
2020-09-14 21:06:17 DEBUG juju-log tracer>
tracer: hooks phase, 1 handlers queued
tracer: ++ queue handler reactive/
2020-09-14 21:06:17 INFO juju-log Invoking reactive handler: reactive/
2020-09-14 21:06:17 DEBUG juju-log tracer: set flag run-default-
2020-09-14 21:06:17 DEBUG juju-log tracer: set flag is-update-
2020-09-14 21:06:18 DEBUG juju-log tracer>
tracer: main dispatch loop, 16 handlers queued
tracer: ++ queue handler hooks/relations
tracer: ++ queue handler hooks/relations
tracer: ++ queue handler hooks/relations
tracer: ++ queue handler reactive/
tracer: ++ queue handler reactive/
tracer: ++ queue handler reactive/
tracer: ++ queue handler reactive/
tracer: ++ queue handler reactive/
tracer: ++ queue handler reactive/
tracer: ++ queue handler reactive/
tracer: ++ queue handler reactive/
tracer: ++ queue handler reactive/
tracer: ++ queue handler reactive/
tracer: ++ queue handler reactive/
tracer: ++ queue handler reactive/
tracer: ++ queue handler reactive/
2020-09-14 21:06:18 INFO juju-log Invoking reactive handler: reactive/
2020-09-14 21:06:18 INFO juju-log Invoking reactive handler: reactive/
2020-09-14 21:06:18 DEBUG juju-log tracer>
tracer: cleared flag run-default-
tracer: -- dequeue handler reactive/
2020-09-14 21:06:18 INFO juju-log Invoking reactive handler: reactive/
2020-09-14 21:06:20 INFO juju-log Invoking reactive handler: reactive/
2020-09-14 21:06:20 INFO juju-log Invoking reactive handler: reactive/
2020-09-14 21:06:21 INFO juju-log Invoking reactive handler: reactive/
2020-09-14 21:06:22 INFO juju-log Invoking reactive handler: reactive/
2020-09-14 21:06:22 INFO juju-log Invoking reactive handler: reactive/
2020-09-14 21:06:22 INFO juju-log Invoking reactive handler: reactive/
2020-09-14 21:06:23 INFO juju-log Installing [] with options: ['--option=
2020-09-14 21:06:23 DEBUG update-status Reading package lists...
2020-09-14 21:06:23 DEBUG update-status Building dependency tree...
2020-09-14 21:06:23 DEBUG update-status Reading state information...
2020-09-14 21:06:24 DEBUG update-status The following packages were automatically installed and are no longer required:
2020-09-14 21:06:24 DEBUG update-status grub-pc-bin python3-xdg
2020-09-14 21:06:24 DEBUG update-status Use 'apt autoremove' to remove them.
2020-09-14 21:06:24 DEBUG update-status 0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
2020-09-14 21:06:24 DEBUG update-status Hit:1 http://
2020-09-14 21:06:24 DEBUG update-status Hit:2 http://
2020-09-14 21:06:24 DEBUG update-status Hit:3 http://
2020-09-14 21:06:24 DEBUG update-status Hit:4 http://
2020-09-14 21:06:24 DEBUG update-status Hit:5 http://
2020-09-14 21:06:26 DEBUG update-status Reading package lists...
2020-09-14 21:06:31 INFO juju-log Running maybe_do_
2020-09-14 21:06:31 DEBUG juju-log Cleaning path: /etc/octavia/
2020-09-14 21:06:31 INFO juju-log Adding user systemd-network to group octavia
2020-09-14 21:06:31 DEBUG update-status Adding user systemd-network to group octavia
2020-09-14 21:06:31 DEBUG update-status inactive
2020-09-14 21:06:31 DEBUG update-status Synchronizing state of octavia-api.service with SysV service script with /lib/systemd/
2020-09-14 21:06:31 DEBUG update-status Executing: /lib/systemd/
2020-09-14 21:06:32 DEBUG update-status Unit /etc/systemd/
2020-09-14 21:06:33 INFO juju-log Invoking reactive handler: reactive/
2020-09-14 21:06:34 INFO juju-log Invoking reactive handler: reactive/
2020-09-14 21:06:34 INFO juju-log Invoking reactive handler: reactive/
2020-09-14 21:06:40 INFO juju-log toggling port 943c3336-
2020-09-14 21:06:47 INFO juju-log Invoking reactive handler: reactive/
2020-09-14 21:06:50 DEBUG juju-log Changing permissions on existing content: 33184 -> 416
2020-09-14 21:06:51 INFO juju-log Making dir /etc/octavia/certs root:octavia 750
2020-09-14 21:06:52 DEBUG juju-log Changing permissions on existing content: 33056 -> 288
2020-09-14 21:06:52 INFO juju-log Making dir /etc/octavia/certs root:octavia 750
2020-09-14 21:06:52 DEBUG juju-log Changing permissions on existing content: 33056 -> 288
2020-09-14 21:06:52 INFO juju-log Making dir /etc/octavia/certs root:octavia 750
2020-09-14 21:06:52 DEBUG juju-log Changing permissions on existing content: 33056 -> 288
2020-09-14 21:06:52 INFO juju-log Making dir /etc/octavia/certs root:octavia 750
2020-09-14 21:06:52 DEBUG juju-log Changing permissions on existing content: 33056 -> 288
2020-09-14 21:06:52 INFO juju-log Making dir /etc/octavia/certs root:octavia 750
2020-09-14 21:06:53 DEBUG juju-log Changing permissions on existing content: 33056 -> 288
2020-09-14 21:06:54 DEBUG juju-log Writing file /etc/octavia/
2020-09-14 21:06:54 DEBUG update-status none
2020-09-14 21:06:54 DEBUG juju-log Changing permissions on existing content: 33184 -> 416
2020-09-14 21:06:54 DEBUG juju-log Changing permissions on existing content: 33184 -> 416
2020-09-14 21:06:55 WARNING juju-log Not adding haproxy listen stanza for octavia-api_int port is already in use
2020-09-14 21:06:55 WARNING juju-log Not adding haproxy listen stanza for octavia-api_public port is already in use
2020-09-14 21:06:55 DEBUG juju-log Changing permissions on existing content: 33184 -> 416
2020-09-14 21:06:56 DEBUG juju-log Changing permissions on existing content: 33184 -> 416
tags: | added: unstable-test |
summary: |
- services appear to be restarted during update-status hook + Intermittent services restart during update-status hook |
summary: |
- Intermittent services restart during update-status hook + Intermittent service restart during update-status hook |
description: | updated |
Changed in charm-octavia: | |
status: | New → Fix Committed |
importance: | Undecided → Medium |
Changed in charm-octavia: | |
milestone: | none → 20.10 |
Changed in charm-octavia: | |
status: | Fix Committed → Fix Released |
There's a framework option now in charms.openstack that enables gating on update-status so that it doesn't do anything. I'll put a quick review up to show this.