Bug 2158428 - foreman-installer fails with "file keytool does not exist"
Summary: foreman-installer fails with "file keytool does not exist"
Keywords:
Status: POST
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Installer
Version: 6.11.4
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Satellite QE Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-05 12:27 UTC by Jan Jansky
Modified: 2023-07-31 17:16 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github theforeman puppet-certs pull 408 0 None Merged Fix bad requires and old Puppet_X notation 2023-07-31 17:16:00 UTC
Red Hat Issue Tracker SAT-14777 0 None None None 2023-01-06 13:33:23 UTC
Red Hat Knowledge Base (Solution) 6992992 0 None None None 2023-01-05 12:27:37 UTC

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


Note You need to log in before you can comment on or make changes to this bug.