Hosted Engine appliance upgrade to RHV 4.4 fails due to gssapi packages missing

Solution Unverified - Updated

Environment

Issue

During upgrade from RHV 4.3 to RHV 4.4 hosted-engine setup, appliance upgrade fails due to gssapi packages missing.
From hosted-engine.log:

2020-08-06 15:22:07,968+0300 INFO otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils._process_output:109 TASK [ovirt.engine-setup : Run engine-setup with answerfile]
2020-08-06 15:23:18,434+0300 DEBUG otopi.ovirt_hosted_engine_setup.ansible_utils ansible_utils._process_output:103 {'msg': 'non-zero return code', 'cmd': ['engine-setup', '--accept-defaults', '--config-append=/root/ovirt-engine-answers'], 'stdout': "[ INFO  ] Stage: Initializing\n[ INFO  ] Stage: Environment setup\n

Resolution

There is a bug file to track this issue and to add the missing packages to the appliance:
This content is not included.Bug 1867038 - gssapi packages missing on upgrade.

A possible workaround is to create a file /usr/share/ansible/roles/ovirt.hosted_engine_setup/hooks/enginevm_before_engine_setup/install-gssapi.yml with content:

- name: Install mod_auth_gssapi
  package:
      name: mod_auth_gssapi
      state: present

Root Cause

According to This content is not included.BZ#1866811, the issue is due to mod_auth_gssapi package required to configure single-sign-on, and is missing in RHV 4.4 appliance.

Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.