Bug 1508455

Summary: Change to tty2 during kexec to prevent terminal freeze
Product: Red Hat Satellite Reporter: Roman Plevka <rplevka>
Component: Discovery ImageAssignee: Lukas Zapletal <lzap>
Status: CLOSED ERRATA QA Contact: Roman Plevka <rplevka>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: bbuckingham, ehelms, lzap, rabajaj, sghai
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/20548
Whiteboard:
Fixed In Version: smart_proxy_discovery_image-1.0.9 foreman-discovery-image-3.4.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-02-21 16:54:17 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 Roman Plevka 2017-11-01 13:15:23 UTC
Description of problem:
currently, the session is not being switched to TTY2 before kexecing. From the console one has a n impression, the kexec is stuck.

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

Steps to Reproduce:
1. just discover a host using FDI in a way that FDI awaits kexec after sending the facts out (either boot it from iso or interrupt the automatic facts sending and follow the wizard)
2. try to provision the host from foreman
3. watch the vm console

Actual results:
console stuck after kexecing

Expected results:
session switched to tty2

Comment 2 Roman Plevka 2017-11-01 13:51:37 UTC
Consulted with Lukas who suggested rebasing FDI with smart_proxy_discovery_image 1.0.8

Comment 3 Lukas Zapletal 2017-11-02 11:40:00 UTC
To fix this FDI needs new build.

Before building FDI please pull this dependency first:

https://github.com/theforeman/foreman-packaging/pull/1910

commit c0af5d8556d4b8338f2cb99665d1545e8ed3d93e

Make sure it is in brew build root and only then build FDI.

Comment 7 Roman Plevka 2018-02-06 15:41:06 UTC
VERIFIED
on satellite-6.3.0-23.0.el7sat.noarch

- the tty seems to be swtiched to tty2 automatically on kexec now.

Comment 8 Bryan Kearney 2018-02-17 16:10:28 UTC
*** Bug 1289147 has been marked as a duplicate of this bug. ***

Comment 9 Satellite Program 2018-02-21 16:54:17 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/RHSA-2018:0336