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

Bug 1113953

Summary: neutron-openvswitch-agent exits with 1 on SIGTERM
Product: Red Hat OpenStack Reporter: Jakub Libosvar <jlibosva>
Component: openstack-neutronAssignee: Jakub Libosvar <jlibosva>
Status: CLOSED ERRATA QA Contact: Toni Freger <tfreger>
Severity: high Docs Contact:
Priority: high    
Version: 5.0 (RHEL 6)CC: chrisw, ihrachys, jlibosva, lpeer, nyechiel, oblaut, sclewis, yeylon
Target Milestone: rc   
Target Release: 5.0 (RHEL 6)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-neutron-2014.1-38.el6ost Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1112968 Environment:
Last Closed: 2014-07-28 18:58:44 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:
Bug Depends On: 1112968    
Bug Blocks: 1063427    

Description Jakub Libosvar 2014-06-27 10:34:25 UTC
+++ This bug was initially created as a clone of Bug #1112968 +++

Description of problem:

systemctl Fail to  stop neutron-openvswitch-agent  

Have tested on compute/networker 

Version-Release number of selected component (if applicable):

openstack-neutron-2014.1-34.el7ost.noarch
How reproducible:


Steps to Reproduce:
1.systemctl stop neutron-openvswitch-agent 
2.systemctl status neutron-openvswitch-agent 
3.

Actual results:


Expected results:


Additional info:

--- Additional comment from Jakub Libosvar on 2014-06-25 12:41:51 CEST ---

IIUC this bug is about that openvswitch-agent returns 1 on SIGTERM.

--- Additional comment from Ofer Blaut on 2014-06-25 14:25:12 CEST ---

Will the return code will impact HA ? PaceMaker ?

--- Additional comment from lpeer on 2014-06-25 14:27:13 CEST ---

This could be problematic for the HA support. We'll need to address that before releasing HA.

--- Additional comment from Ihar Hrachyshka on 2014-06-25 14:29:04 CEST ---

From systemd.service(5):

       SuccessExitStatus=
           Takes a list of exit status definitions that when returned by the
           main service process will be considered successful termination, in
           addition to the normal successful exit code 0 and the signals
           SIGHUP, SIGINT, SIGTERM and SIGPIPE. Exit status definitions can
           either be numeric exit codes or termination signal names, separated
           by spaces. Example: "SuccessExitStatus=1 2 8 SIGKILL", ensures that
           exit codes 1, 2, 8 and the termination signal SIGKILL are
           considered clean service terminations. This option may appear more
           than once in which case the list of successful exit statuses is
           merged. If the empty string is assigned to this option the list is
           reset, all prior assignments of this option will have no effect.


So we may patch that in dist-git without touching Neutron code itself. Anyway, it's wrong that the agent returns 1 on successful exit, so this should also be patched in u/s.

--- Additional comment from Jakub Libosvar on 2014-06-25 14:43:43 CEST ---

(In reply to Ihar Hrachyshka from comment #4)
> From systemd.service(5):
> 
>        SuccessExitStatus=
This is very dangerous. In case there is error in config file, ovs-agent exits with 1. Same applies when tunneling cannot be set. systemd would report success even though agent failed to start.

--- Additional comment from Ihar Hrachyshka on 2014-06-25 14:58:55 CEST ---

Fair enough. Reporting a failure on success is not any better than reporting success on failure.

Comment 3 Toni Freger 2014-07-17 07:33:43 UTC
Icehouse on RHEL6.5
openstack-neutron-openvswitch-2014.1.1-2.el6ost.noarch


Steps to Reproduce:
1.service stop neutron-openvswitch-agent 
2.service status neutron-openvswitch-agent 

Have tested several times on Networker and on Compute node.
Service works as expected, stop/start without any issue.

Comment 6 errata-xmlrpc 2014-07-28 18:58:44 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2014-0953.html