Bug 1986706

Summary: System will hang during installation of RHEL9.0: postfix RPM scriptlet waits for a PEM pass phrase
Product: Red Hat Enterprise Linux 9 Reporter: 苏佳 <sujj5>
Component: postfixAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED DUPLICATE QA Contact: rhel-cs-infra-services-qe <rhel-cs-infra-services-qe>
Severity: high Docs Contact:
Priority: urgent    
Version: 9.0CC: ahuang12, bcao, dengdeng1, fweimer, lixc17, mknutson, ppisar, shangsong2, sujj5
Target Milestone: beta   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-02 02:06:32 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:
Attachments:
Description Flags
hang at installation none

Description 苏佳 2021-07-28 07:24:26 UTC
Created attachment 1806542 [details]
hang at installation

Description of problem:
 System will hang during installation of RHEL9.0.

Version-Release number of selected component (if applicable):
 nightly build(RHEL-9.0.0-20210725.3-x86_64-dvd1.iso)

How reproducible:
 1.Boot server into RHEL9.0 installation wizard
 2.In Software Selection,chose all of the list items under Server With GUI
 3.Click install button

Actual results:
 After clicking install button,system will hang at installing postfix_x86_64(812/1720).

Expected results:
 Succeed to install OS.

Comment 1 Petr Pisar 2021-07-28 08:37:24 UTC
Please contact Red Hat's Technical Account Manager appointed to your company to help you prioritize this issue.

Comment 3 Mike Cao 2021-07-28 12:11:09 UTC
(In reply to 苏佳 from comment #0)
> Created attachment 1806542 [details]
> hang at installation
> 
> Description of problem:
>  System will hang during installation of RHEL9.0.
> 
> Version-Release number of selected component (if applicable):
>  nightly build(RHEL-9.0.0-20210725.3-x86_64-dvd1.iso)

Hello Sujia

Is it hardware specified issue? May we know which server/prototype the issue reproduced?

Thanks,
Mike

Comment 4 苏佳 2021-07-28 12:20:22 UTC
It's not hardware specified issue.I can reproduce it on both AMD 1P milan(SR635) and Whitley(SR630V2).

Comment 6 Petr Pisar 2021-07-28 12:31:22 UTC
I tried installing all postfix packages and it seems to be postfix-2:3.5.9-9.el9.x86_64's fault:

# dnf install postfix
Last metadata expiration check: 0:01:44 ago on Wed 28 Jul 2021 02:25:11 PM CEST.
Dependencies resolved.
===========================================================================================================================================
 Package                     Architecture               Version                             Repository                                Size
===========================================================================================================================================
Installing:
 postfix                     x86_64                     2:3.5.9-9.el9                       rhel-9.0.0-appstream                     1.5 M

Transaction Summary
===========================================================================================================================================
Install  1 Package

Total size: 1.5 M
Installed size: 4.5 M
Is this ok [y/N]: y
Downloading Packages:
[SKIPPED] postfix-3.5.9-9.el9.x86_64.rpm: Already downloaded                                                                              
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                   1/1 
  Running scriptlet: postfix-2:3.5.9-9.el9.x86_64                                                                                      1/1 
  Installing       : postfix-2:3.5.9-9.el9.x86_64                                                                                      1/1 
  Running scriptlet: postfix-2:3.5.9-9.el9.x86_64                                                                                      1/1 
Enter PEM pass phrase:


Here it hangs. If I close a standard input, it continues like this:

806B9FB08D7F0000:error:1400006B:UI routines:UI_process:processing error:crypto/ui/ui_lib.c:544:while reading strings
806B9FB08D7F0000:error:0480006D:PEM routines:PEM_def_callback:problems getting password:crypto/pem/pem_lib.c:62:
806B9FB08D7F0000:error:07880109:common libcrypto routines:do_ui_passphrase:interrupted or cancelled:crypto/passphrase.c:175:
806B9FB08D7F0000:error:1C80009F:Provider routines:p8info_to_encp8:unable to get passphrase:providers/implementations/encode_decode/encode_key2any.c:116:
chmod: cannot access '/etc/pki/tls/certs/postfix.pem': No such file or directory

  Verifying        : postfix-2:3.5.9-9.el9.x86_64                                                                                      1/1 

Installed:
  postfix-2:3.5.9-9.el9.x86_64                                                                                                             

Complete!

I will reassign it to postfix component because RPM scriptlets should not be interactive.
But Anaconda could be more precautious and close the standard input proactively.

Comment 7 Florian Weimer 2021-07-31 15:22:45 UTC
There is already postfix bug 1985918. Should we close this bug or reassign it to anaconda for more robust terminal handling?

Comment 8 苏佳 2021-08-02 02:06:32 UTC
According to Commnent 7,it is duplicated with bug 1985918.Then close it and track bug 1985918.

*** This bug has been marked as a duplicate of bug 1985918 ***