neutron services continuously restarted following upgrade
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Neutron API Charm |
Fix Released
|
Critical
|
Edward Hope-Morley |
Bug Description
Starting an action-managed upgrade of Neutron using the neutron-api charm appears to have triggered something that is causing the charm to continuously restart neutron-services which causing other neutron agents to fail. We see this happening over and over and have had to stop juju unit agents.
2020-08-26 02:36:01 DEBUG juju-log cluster:12: Restarting neutron services following db initialisation
2020-08-26 02:36:50 DEBUG juju-log cluster:12: Restarting neutron services following db initialisation
2020-08-26 02:37:27 DEBUG juju-log cluster:12: Restarting neutron services following db initialisation
2020-08-26 02:37:51 DEBUG juju-log cluster:12: Restarting neutron services following db initialisation
2020-08-26 02:38:16 DEBUG juju-log cluster:12: Restarting neutron services following db initialisation
2020-08-26 02:39:17 DEBUG juju-log cluster:12: Restarting neutron services following db initialisation
2020-08-26 02:39:42 DEBUG juju-log cluster:12: Restarting neutron services following db initialisation
2020-08-26 02:41:17 DEBUG juju-log cluster:12: Restarting neutron services following db initialisation
2020-08-26 02:41:47 DEBUG juju-log cluster:12: Restarting neutron services following db initialisation
This is using the 20.08 charms and upgrading from Rocky to Stein on Bionic
description: | updated |
Changed in charm-neutron-api: | |
milestone: | none → 20.10 |
assignee: | nobody → Edward Hope-Morley (hopem) |
importance: | Undecided → Critical |
tags: | added: backport-potential stable-backport |
tags: | added: sts |
Changed in charm-neutron-api: | |
status: | Fix Committed → Fix Released |
From an initial look it seems likely this is happening due to check_local_ db_actions_ complete( ) and it's subsequent call to is_new_ dbinit_ notification - that check has to fail for it to then "echo" the DB notification. Which then is received and it again fails the check that it's new and echoes it again.
But I didn't yet debug why that check is failing
See https:/ /github. com/openstack/ charm-neutron- api/blob/ ec9304f50ea47d7 6592ab26fe522f1 e582031565/ hooks/neutron_ api_utils. py#L292
Probably need to add some debugging of the compared values. My only guess was some kind of leadership confusion.