Bug 2013630

Summary: foreman-maintain packages install/update command(without --assumeyes) hangs after listing packages
Product: Red Hat Satellite Reporter: Gaurav Talreja <gtalreja>
Component: Satellite MaintainAssignee: Amit Upadhye <aupadhye>
Status: CLOSED ERRATA QA Contact: Gaurav Talreja <gtalreja>
Severity: high Docs Contact:
Priority: high    
Version: 6.10.0CC: ahumbe, apatel, ehelms, kgaikwad, mmccune, myarboro, zhunting
Target Milestone: 6.10.1Keywords: Regression, Triaged, UserExperience
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rubygem-foreman_maintain-0.8.21 Doc Type: Known Issue
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-18 14:26:51 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 Gaurav Talreja 2021-10-13 12:18:42 UTC
Description of problem:
foreman-maintain packages install/update command(without --assumeyes) hangs after listing packages and installed size, hangs there waiting for confirmation for [y/d/N] in step `Is this ok [y/d/N]:`, which never printed on stdout.

If hit enter on a keyboard it just exits a user command, and if randomly hit `y` then it completes a packages install/update

Version-Release number of selected component (if applicable):
rubygem-foreman_maintain-0.8.19-1.el7sat.noarch

How reproducible:
Always

Steps to Reproduce:
1. # foreman-maintain packages install/update walrus
2.
3.

Actual results:
Command waiting for user confirmation, which was never asked.

Expected results:
Should ask for confirmation.

Additional info:
https://privatebin-it-iso.int.open.paas.redhat.com/?868f7022abf7b4a7#6mnFqZiCiMLQhp5odqd6YBdLYCv7hafWMWL76sav15Hc

Comment 1 Mike McCune 2021-10-14 14:27:26 UTC
WORKAROUND:

Hit Y and it proceeds.

Comment 2 mark yarborough 2021-10-14 14:46:51 UTC
Please list as known issue for 6.10 GA ; plan to include fix in 6.10.1

Comment 5 Amit Upadhye 2021-10-28 10:32:47 UTC
Created redmine issue https://projects.theforeman.org/issues/33803 from this bug

Comment 6 Mike McCune 2021-11-03 21:42:11 UTC
upstream is merged, POST

Comment 7 Gaurav Talreja 2021-11-11 08:08:30 UTC
Verified.

Tested on Satellite 6.10.1 Snap 1.0 
Version: rubygem-foreman_maintain-0.8.21-1.el7sat.noarch

Steps:
1. satellite-maintain packages install <pkg-name>

Observation:
f-m Package install (without --assumeyes) waits for confirmation with a message like `Is this ok [y/d/N]:`
Also tested new f-m interactive command runner stdbuf with nohup job to run content migration on 6.9, and it works fine (related to BZ 1965218)

Comment 10 errata-xmlrpc 2021-11-18 14:26:51 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 (Satellite Maintenance 6.10.1 Async Bug Fix Update), 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/RHBA-2021:4736