neutron-server process get restarted when shared-db-relation-changed occurs

Bug #1708459 reported by Yoshi Kadokawa
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Cinder Charm
Invalid
Medium
Unassigned
OpenStack Neutron API Charm
Fix Released
Medium
Edward Hope-Morley

Bug Description

Whenever shared-db-relation-changed has been triggered,
for example leader of percona-cluster is changed, neutron-server process in neutron-api application, will get restarted.
percona-cluster is in HA with hacluster charm, so even one of the percona-cluster unit is being failed over,
the VIP will just go to another unit and nothing should affect to other services,
so restarting services should not be required.

I am seeing this when doing the following steps.

OS: Ubuntu 16.04
OpenStack Mitaka

1. Deploy OpenStack with this bundle[0]
2. Shutoff percona-cluster unit who is the leader
3. Confirmed that neutron-server process got restarted in neutorn-api unit

[0] http://paste.ubuntu.com/25233464/

Changed in charm-neutron-api:
milestone: none → 17.08
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Edward Hope-Morley (hopem)
Revision history for this message
Edward Hope-Morley (hopem) wrote :

confirmed.

Revision history for this message
Edward Hope-Morley (hopem) wrote :

The cause of this appears to simply be that the neutron-api charm will always (unless the unit is paused) do a db init - https://github.com/openstack/charm-neutron-api/blob/master/hooks/neutron_api_hooks.py#L364

We should implement the db init check that already exists in the cinder charm to protect against this.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-neutron-api (master)

Fix proposed to branch: master
Review: https://review.openstack.org/493931

Changed in charm-neutron-api:
status: Triaged → In Progress
Ryan Beisner (1chb1n)
Changed in charm-cinder:
importance: Undecided → Medium
assignee: nobody → Edward Hope-Morley (hopem)
milestone: none → 17.08
status: New → In Progress
James Page (james-page)
Changed in charm-neutron-api:
milestone: 17.08 → 17.11
Changed in charm-cinder:
milestone: 17.08 → 17.11
James Page (james-page)
Changed in charm-neutron-api:
milestone: 17.11 → 18.02
Changed in charm-cinder:
milestone: 17.11 → 18.02
Revision history for this message
Edward Hope-Morley (hopem) wrote :

neutron-api patch actually landed already and was released in 17.08

Changed in charm-neutron-api:
milestone: 18.02 → 17.08
status: In Progress → Fix Released
Changed in charm-cinder:
assignee: Edward Hope-Morley (hopem) → nobody
status: In Progress → New
James Page (james-page)
Changed in charm-cinder:
status: New → Invalid
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.