Bug 1570461

Summary: Some component in the openshift master / CLI binaries are trapping CTRL+C twice, not once
Product: OpenShift Container Platform Reporter: Clayton Coleman <ccoleman>
Component: MasterAssignee: Stefan Schimanski <sttts>
Status: CLOSED DEFERRED QA Contact: Wang Haoran <haowang>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.9.0CC: amcdermo, aos-bugs, jokerman, mfojtik, mmccomas
Target Milestone: ---   
Target Release: 3.10.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:    
Bug Blocks: 1557851    

Description Clayton Coleman 2018-04-23 01:44:12 UTC
1. Start openshift-router
2. Hit CTRL+C

Actual:

Process does not exit

Expected:

Process exits

If I hit CTRL+C a second time the process exits.  It looks like someone double registered a sig trap handler somewhere in CLI or in the server code.

Marking high because this breaks process signal handling in at minimum the router.

Comment 1 Clayton Coleman 2018-04-23 01:47:49 UTC
Looks like it is a result of origin/pr/19063

Comment 2 Andrew McDermott 2018-04-23 19:02:20 UTC
(In reply to Clayton Coleman from comment #1)
> Looks like it is a result of origin/pr/19063

I moved the handling of the signal closer to NewCommandStartNode() but that only works some of the time now (8/10 signal is delivered successfully). Investigating why that is because it was reliable before.

Comment 3 Andrew McDermott 2018-04-27 13:46:44 UTC
PR: https://github.com/openshift/ose/pull/1221

Comment 4 Andrew McDermott 2018-05-01 12:04:30 UTC
The revert PR: https://github.com/openshift/ose/pull/1238 until we go fix the issues highlighted in the PR description.

Comment 5 Andrew McDermott 2018-05-15 14:38:45 UTC
Upstream PR: https://github.com/kubernetes/kubernetes/pull/63859

Comment 8 Stephen Cuppett 2019-11-20 19:06:48 UTC
OCP 3.6-3.10 is no longer on full support [1]. Marking CLOSED DEFERRED. If you have a customer case with a support exception or have reproduced on 3.11+, please reopen and include those details. When reopening, please set the Target Release to the appropriate version where needed.

[1]: https://access.redhat.com/support/policy/updates/openshift

Comment 9 Stephen Cuppett 2019-11-20 19:06:57 UTC
OCP 3.6-3.10 is no longer on full support [1]. Marking CLOSED DEFERRED. If you have a customer case with a support exception or have reproduced on 3.11+, please reopen and include those details. When reopening, please set the Target Release to the appropriate version where needed.

[1]: https://access.redhat.com/support/policy/updates/openshift