Red Hat Bugzilla – Bug 1315470
Canceling out of fusor-installer restarts network, named, and dhcpd
Last modified: 2016-09-13 12:27:12 EDT
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
The full log is at /var/log/katello-installer/katello-installer.log
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):
Steps to Reproduce:
1.) Cancel out of initial run of fusor-installer.
2.) See above output.
Canceling out of fusor-installer restarts network, named, and dhcpd.
No service restarts if canceling out of fusor-installer.
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.
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.
Verified on QCI-1.2-RHEL-7-20160621.t.0.
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.