Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1170635

Summary: HA | Processes used by Neutron are not being monitored by pacemaker.
Product: Red Hat OpenStack Reporter: Leonid Natapov <lnatapov>
Component: openstack-foreman-installerAssignee: Jason Guiditta <jguiditt>
Status: CLOSED DUPLICATE QA Contact: Ami Jeain <ajeain>
Severity: high Docs Contact:
Priority: unspecified    
Version: 5.0 (RHEL 7)CC: aberezin, chrisw, fdinitto, lpeer, majopela, mburns, morazi, nyechiel, oblaut, rhos-maint, yeylon
Target Milestone: ---   
Target Release: Installer   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-12-09 12:12:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Leonid Natapov 2014-12-04 13:48:33 UTC
Description of problem:


Dnsmasq process,ovs-vswitchd,ovsdb-server,neutron-ns-metadata-proxy

For example:
1.Dnsmasq process - Neutron instantiates dnsmasq process per network
which requires DHCP services. If one (or more) of the dnsmasq processes
fails we have to restart the DHCP agent which should in-turn re-spawn the
dnsmasq process.


2.neutron-ns-metadata-proxy processes are intiated by Neutron either in
the vRouter namespace or in the dnsmasq namespace, it depends on the
configuration of the 'isolated_metadata' property.
Either way the metadata processes are being watched for HA, via the
'neutron-dhcp-agent status' or via the '/etc/init.d/neutron-l3-agent
status' as needed.

The same way we should treat the rest of neutron processes.

Version-Release number of selected component (if applicable):
python-neutron-2014.1.3-11.el7ost.noarch
python-neutronclient-2.3.4-3.el7ost.noarch
openstack-neutron-openvswitch-2014.1.3-11.el7ost.noarch
openstack-neutron-ml2-2014.1.3-11.el7ost.noarch
openstack-neutron-2014.1.3-11.el7ost.noarch


rhel-osp-installer-0.4.7-1.el6ost.noarch

How reproducible:
100%

Steps to Reproduce:
1.Kill one of the neutron processes listed above.


Actual results:
Processes killed and doesn't starts.

Expected results:
appropriate neutron agent restarts and triggers all it's processes to be restarted.

Comment 3 Jason Guiditta 2014-12-04 15:05:35 UTC
I am not seeing any reference to the above things in the HA howto etherpad.  Miguel or Fabio, can you comment on desired path here, if any?

Comment 4 Fabio Massimo Di Nitto 2014-12-04 15:25:22 UTC
This is not a bug. pacemaker cannot control services that are spawned by another service.

If neutron-foo spawns neutron-bar, pacemaker has no way to know that and no way to know what the behavior of -bar should be. it is neutron-foo responsibility to look after it.

pacemaker can potentially check for them IF a dedicated resource agents exists to check for those child, but it can“t by default do it.

Comment 5 Miguel Angel Ajo 2014-12-09 10:04:50 UTC

Try enabling this in /etc/neutron/dhcp-agent.ini
check_child_processes_action = exit
check_child_processes_interval = 30

It's not enabled by default now, but we're considering to enable 'respawn' by default for RHOS5 & RHOS6.

But, installers may need to change check_child_processes_action to the suggested 'exit' in HA environments.


Fabio, what check interval does make more sense with current pacemaker timings?

Comment 6 Miguel Angel Ajo 2014-12-09 10:05:53 UTC
changing back to OFI, because of the non default "exit" behavior we'd need to set in HA.

Comment 7 Miguel Angel Ajo 2014-12-09 10:13:56 UTC
I have created this neutron counterpart bug to track the neutron side, but the defaults aren't going to be perfect for HA. 

https://bugzilla.redhat.com/show_bug.cgi?id=1172054

We may need to tune the action (exit) and interval.

Comment 8 Miguel Angel Ajo 2014-12-09 12:11:44 UTC
We (In reply to Miguel Angel Ajo from comment #7)
> I have created this neutron counterpart bug to track the neutron side, but
> the defaults aren't going to be perfect for HA. 
> 
> https://bugzilla.redhat.com/show_bug.cgi?id=1172054
> 
> We may need to tune the action (exit) and interval.

Ok, after discussion we believe that the default configuration (respawn, and 30 second interval) could be sane for an HA deployment, so in that case there would be no need to do any config change from the OFI side.

We believe this is better if we think of the following scenarios: 

- dnsmasq fails after start start on a certain configuration
- dnsmasq fails on a certain response ...

If that happens, when we move to a different node (pacemaker) because the dhcp-agent exited, it would fail again on the other node, and we keep moving all the agents around for something we can't fix.

With respawn... we will try to respawn the failed dnsmasqs, and it will be logged into the dhcp-agent.log

Comment 9 Miguel Angel Ajo 2014-12-09 12:12:56 UTC
Closed as it's not a bug on OFI, or may need to action from OFI, and we have the counterpart bug in neutron now:

https://bugzilla.redhat.com/show_bug.cgi?id=1172054

*** This bug has been marked as a duplicate of bug 1172054 ***