Bug 2158428

Summary: foreman-installer fails with "file keytool does not exist"
Product: Red Hat Satellite Reporter: Jan Jansky <jjansky>
Component: InstallerAssignee: satellite6-bugs <satellite6-bugs>
Status: POST --- QA Contact: Satellite QE Team <sat-qe-bz-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.11.4CC: ahumbe, arahaman, egolov, ehelms
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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 Jan Jansky 2023-01-05 12:27:37 UTC
Description of problem:
Originally this happened on Satellite 6.11.4 after leapp.

After leapp somehow keytool was not in the PATH and due to that installer is failing.

Version-Release number of selected component (if applicable):
6.11.4 but most likely can happen during any leapp


How reproducible:
Specific scenario of customer


Steps to Reproduce:
1. Instal Satellite 6.11.4 on RHEL7
2. Use leapp to upgrade OS to RHEL8

Actual results:

Leapp will partitaly fail on satellite-installer part as below

2023-01-01 00:00:00.590 DEBUG    PID: 8867 leapp.workflow.FirstBoot.satellite_upgrader: ^[[34m2023-01-01 00:00:00^[[0m [^[[31mERROR ^[[0m] [^[[36mconfigure^[[0m] Could not find a suitable provider for keystore
2023-01-01 00:00:00.597 DEBUG    PID: 8867 leapp.workflow.FirstBoot.satellite_upgrader: ^[[34m2023-01-01 00:00:00^[[0m [^[[31mERROR ^[[0m] [^[[36mconfigure^[[0m] Could not find a suitable provider for truststore
2023-01-01 00:00:00.607 DEBUG    PID: 8867 leapp.workflow.FirstBoot.satellite_upgrader: ^[[34m2023-01-01 00:00:00^[[0m [^[[31mERROR ^[[0m] [^[[36mconfigure^[[0m] Could not find a suitable provider for truststore_certificate
2023-01-01 00:00:00.622 DEBUG    PID: 8867 leapp.workflow.FirstBoot.satellite_upgrader: ^[[34m2023-01-01 00:00:00^[[0m [^[[31mERROR ^[[0m] [^[[36mconfigure^[[0m] Could not find a suitable provider for keystore_certificate
...
2023-01-01 00:00:00.958 ERROR    PID: 8867 leapp.workflow.FirstBoot.satellite_upgrader: Could not run the installer, please inspect the logs in /var/log/foreman-installer!


Expected results:

Successful leapp


Additional info:
on RHEL7 was keytool set properly via alternatives as slave of java-1.8.0_openjdk family

Can be fixed by 
# alternatives --auto java