Bug 1315470

Summary: Canceling out of fusor-installer restarts network, named, and dhcpd
Product: Red Hat Quickstart Cloud Installer Reporter: Tasos Papaioannou <tpapaioa>
Component: fusor-installerAssignee: Jesus M. Rodriguez <jesusr>
Status: CLOSED ERRATA QA Contact: Tasos Papaioannou <tpapaioa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 1.0CC: jesusr, jmatthew
Target Milestone: gaKeywords: Triaged
Target Release: 1.0   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-13 16:27:12 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:    
Bug Blocks: 1315447    

Description Tasos Papaioannou 2016-03-07 20:16:44 UTC
Description of problem:

If I use ctrl-C or select "20. Cancel installation" to exit out of fusor-installer, I get the following output:

****
Modify settings as needed, and then proceed with the installation:
1.      Proceed with the values shown
2.           Network interface | eth1
[...]
18. Do not configure networking
19. Do not configure firewall
20. Cancel installation
20
  The full log is at /var/log/katello-installer/katello-installer.log
Restarting network...
Restarting named...
Restarting dhcpd...
Job for dhcpd.service failed because the control process exited with error code. See "systemctl status dhcpd.service" and "journalctl -xe" for details.
****

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

QCI-1.0-RHEL-7-20160302.t.0

How reproducible:

100%

Steps to Reproduce:
1.) Cancel out of initial run of fusor-installer.
2.) See above output.

Actual results:

Canceling out of fusor-installer restarts network, named, and dhcpd.

Expected results:

No service restarts if canceling out of fusor-installer.

Additional info:

Comment 1 John Matthews 2016-03-07 20:24:22 UTC
Likely related to launch-fusor-installer, it is a wrapper that calls fusor-installer from the ISO install then it restarts some system services.

We can check the exit status of fusor-installer prior to initiating the restart of the services.

Comment 2 Jesus M. Rodriguez 2016-03-29 14:29:26 UTC
The fusor-installer was remapping the cancellation exit code from 100 to 0. This prevented the launch script from knowing the process was canceled. The fix was to simply let the cancellation exit code return as is with no remapping.

This fix works for entering 20 at the menu, as well as CTRL-C at the menu.

https://github.com/fusor/fusor-installer/pull/54

Comment 3 Tasos Papaioannou 2016-06-22 15:25:25 UTC
Verified on QCI-1.2-RHEL-7-20160621.t.0.

Comment 9 errata-xmlrpc 2016-09-13 16:27:12 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.

https://access.redhat.com/errata/RHEA-2016:1862