Red Hat Knowledgebase

Welcome to Red Hat’s Knowledgebase information center. Find resources for resolving problems and troubleshooting. Log in to see all our solutions and articles. Some are restricted to verified users.

If you don’t have a Red Hat account yet, register and open one! For details about these accounts, see Developer Subscription Information or Customer Account Information.

Find what you need

Search

Latest resources

Browse the latest published and updated knowledgebase

How to reinstall GRUB and GRUB2 on UEFI-based machines?

VerifiedUpdated on Dec 6, 2026Subscription required

How to reinstall GRUB and GRUB2 on UEFI-based machines? Red Hat Enterprise Linux 10 Red Hat Enterprise Linux 9 Red Hat Enterprise Linux 8 Red Hat Enterprise Linux 7 Red Hat Enterprise Linux 6 GRUB or GRUB2 Bootloader UEFI-based systems The host does not boot into the GRUB menu. The motherboard was replaced and is now not booting to GRUB. /boot­/efi/­EFI/r­edhat­/grub­.cfg was deleted or corrupted Note on uefi systems please DO NOT run grub-­insta­ll/gr­ub2-i­nstal­l on the boot disk. Boot into rescue mode: ("How to boot a system into rescue mode") Red Hat Enterprise Linux 7 and later Run the below commands to reinstall the various packages need for booting uefi, this will reinstall all of the files under /boot/efi/EFI/. # yum reinstall grub2-efi-x64 shim-x64 or # rpm -ivh --replacepkgs --replacefiles grub2-efi-x64-.rpm shim-x64-.rpm Additional step for RHEL 9 and later To recover a deleted /boot­/efi/­EFI/r­edhat­/grub­.cfg, it's required to reinstall grub2-common which triggers a scriptlet that generates /boot­/efi/­EFI/r­edhat­/grub­.cfg. # yum reinstall grub2-common RHEL 9 and 10 now have the binary gen_grub_cfgstub which can be used to generate this: Example: # gen_grub_cfgstub /boot/grub2 /boot/efi/EFI/redhat After the packages above have been successfully reinstalled, it may be necessary to add a new UEFI boot entry for example, if the motherboard was replaced then replace the disk part shown in the below command with the disk that /boot/efi is located. Warning: If the system is currently booted from a different system than what the OS disks normally use (for example, if the disks have been attached to a rescue virtual machine), do not run the efibootmgr command. This command updates the NVRAM on the motherboard; running it from a different system will update the NVRAM of the currently booted environment, which can leave that system in a broken state. For any questions or concerns, please open a new or update an existing Red Hat Support Case. # efibootmgr -c -d /dev/ -p 1 -l \\EFI­\\red­hat\\­shimx­64.ef­i -L "Red Hat Enterprise Linux " If issue still remains Check if the new boot entry is added properly, by running the below command. # efibootmgr -v If the entry is added correctly, please create a case with support and include the output of the above command. Red Hat Enterprise Linux 6 Run the below commands to reinstall the grub package, this will reinstall the /boot­/efi/­EFI/r­edhat­/grub­.efi file in case it is corrupt or removed. # yum reinstall grub or # rpm -ivh --replacepkgs --replacefiles grub-.rpm After the grub package has been successfully reinstalled, it may be necessary to add a new UEFI boot entry, for example, if the motherboard was replaced. Replace the disk portion shown in the command below with the disk where /boot/efi is located (e.g., sda). Warning: If the system is currently booted from a different system than what the OS disks normally use (for example, if the disks have been attached to a rescue virtual machine), do not run the efibootmgr command. This command updates the NVRAM on the motherboard; running it from a different system will update the NVRAM of the currently booted environment, which can leave that system in a broken state. For any questions or concerns, please open a new or update an existing Red Hat Support Case. # efibootmgr -c -d /dev/ -p 1 -l \\EFI­\\red­hat\\­grub.­efi -L "Red Hat Enterprise Linux 6" Common reasons for needing to reinstall GRUB for uefi installs: motherboard replacement The /boot/efi directory being wiped or corrupted The wrong uuid is included in /boot­/efi/­EFI/r­edhat­/grub­.cfg How to reinstall GRUB and GRUB2 on UEFI-based machines?

Backing up and restoring RHEV with engine-backup

VerifiedUpdated on Dec 6, 2026Subscription required

Backing up and restoring RHEV with engine-backup Red Hat Enterprise Virtualization (RHEV) 3.3 - 3.6 Red Hat Virtualization (RHV) 4.0 - 4.3 In RHEV 3.3 and later, the backup.sh and restore.sh scripts have been deprecated. What is the new method for backing up and restoring a RHEV Manager environment? How do I move RHEV Manager to another server? IMPORTANT: The 'engine-backup' script will not take the backup of 'rhevm-report' in rhevm 3.3. If rhevm-report is installed then upgrade to rhevm 3.4 before using this script. Preparation Before backing up or restoring for the first time, postgresql must have the proper access permissions, allowing local network connections to use md5 authentication. By default, this file can be found here: /var/­lib/p­gsql/­data/­pg_hb­a.con­f and should contain the following additional lines for proper engine-backup functionality: host 0.0.0.0/0 md5 host ::0/0 md5 Backing Up Backing up the RHEV Manager environment can be done while the ovirt-engine service is running. The only requirement is that the output directory exist prior to invoking the command. For example, here are the steps required to backup the RHEV Manager environment into the /var/­lib/o­virt-­engin­e-bac­kups directory: # mkdir /var/­lib/o­virt-­engin­e-bac­kups/ # /usr/­bin/e­ngine­-back­up --mode=backup --scope=all --fil­e="/v­ar/li­b/ovi­rt-en­gine-­backu­ps/en­gine-­backu­p-$(d­ate +%Y%m­%d%H%­M%S).­tar.b­z2" --log­=/var­/log/­ovirt­-engi­ne-ba­ckups­.log Backing up... Done. The above will produce a bzip2 compressed tar file with a name like /var/­lib/o­virt-­engin­e-bac­kups/­engin­e-bac­kup-2­01404­22141­808.t­ar.bz­2. Creating an automatic cron job Create a simple script called /usr/bin/backup.sh with the following contents: #!/bin/bash mkdir -p /backup /usr/­bin/e­ngine­-back­up --scope=all --mode=backup --log­=/bac­kup/b­ackup­.$(/b­in/da­te +%Y%m%d%H%M%S).out --fil­e=/ba­ckup/­backu­p.$(/­bin/d­ate +%Y%m­%d%H%­M%S).­tar.b­z2 Make /usr/bin/backup.sh executable: # chmod +x /usr/bin/backup.sh Add an entry to /etc/crontab (The following example entry would cause the engine-backup script to run every night at 3:30AM): 30 3 * * * root /usr/bin/backup.sh >/dev/null 2>&1 Restoring Restoring a RHEV Manager environment using engine-backup requires the following: A previously captured engine-backup backup file (see above for generating one of these) An existing but empty engine database If the restore will be into an already running RHEV Manager environment, ensure the ovirt-engine and ovirt-engine-dwhd services are stopped First, stop the ovirt-engine and ovirt-engine-dwhd services: # service ovirt-engine stop # service ovirt-engine-dwhd stop Next, ensure the engine database exists and is empty: For RHEV3.4 and above: # su postgres -c psql postgres=# DROP DATABASE engine; postgres=# CREATE DATABASE engine OWNER engine template template0 encoding 'UTF8' lc_collate 'en_US.UTF-8' lc_ctype 'en_US.UTF-8'; postgres-# \q For RHEV3.3 and earlier: # psql -h localhost -U postgres -W Password for user postgres: postgres=# DROP DATABASE engine; postgres=# CREATE DATABASE engine OWNER engine template template0 encoding 'UTF8' lc_collate 'en_US.UTF-8' lc_ctype 'en_US.UTF-8'; postgres-# \q Restore the RHEV Manager environment: # /usr/­bin/e­ngine­-back­up --mode=restore --scope=all --fil­e=/va­r/lib­/ovir­t-eng­ine-b­ackup­s/eng­ine-b­ackup­-2014­04221­41808­.tar.­bz2 --log­=/var­/log/­ovirt­-engi­ne-ba­ckups­.log Once the DB restore is complete, the following message should be shown: Restoring: - Files - Engine database 'engine' - DWH database 'ovir­t_eng­ine_h­istor­y' - Reports database 'ovir­t_eng­ine_r­eport­s' Rewriting /etc/­ovirt­-engi­ne/en­gine.­conf.­d/10-­setup­-data­base.­conf Rewriting /etc/­ovirt­-engi­ne-dw­h/ovi­rt-en­gine-­dwhd.­conf.­d/10-­setup­-data­base.­conf Rewriting /var/­lib/o­virt-­engin­e-rep­orts/­build­-conf­/mast­er.pr­opert­ies You should now run engine-setup. <======= [As mentioned here, you should run it after doing the DB restore.] Done. After DB restore is complete, run engine-setup again: # engine-setup Finally, check and start the following services: # service ovirt-engine start # service ovirt-engine-dwhd start # service httpd restart Link to Red Hat Enterprise Virtualization 3.5 Administration Guide - Backups and Migrations. Link to Red Hat Enterprise Virtualization 3.6 Administration Guide - Backups and Migrations. Link to Red Hat Virtualization 4.0 Administration Guide - Backups and Migrations. Backing up and restoring RHEV with engine-backup

Why does `podman login` succeed but `podman push` to the Ansible Automation Platform container registry fail with "requested access to the resource is denied" for SSO users?

VerifiedUpdated on Dec 5, 2026Subscription required

Why does `podman login` succeed but `podman push` to the Ansible Automation Platform container registry fail with "requested access to the resource is denied" for SSO users? Red Hat Ansible Automation Platform 2.5 - 2.7 Components: platform gateway, automation hub Deployment: Operator deployment, Containerized deployment, RPM deployment External identity provider using SAML or OIDC single sign-on Pushing an execution environment image to the Ansible Automation Platform container registry fails for a user that authenticates through an external identity provider (SAML or OIDC single sign-on), even though podman login reports success: Getting image source signatures Error: trying to reuse blob sha256: at destination: checking whether a blob sha256: exists in /: requested access to the resource is denied. The same failure occurs whether the password supplied to podman login is the SSO user password or an API token. The push succeeds when using credentials of a user backed by a password-verifiable authenticator, such as the Local authenticator or LDAP. The issue typically appears when disabling or planning to disable the Local authenticator so that all users authenticate through single sign-on. The following steps provide a workaround for the issue. Registry clients such as podman cannot authenticate through a browser-based single sign-on flow, so image publishing must use either a password-verifiable user account or a registry sync. Option 1: Push directly with a password-verifiable service account Use a dedicated machine account backed by a password-verifiable authenticator for registry operations. Retain a local service account, or use an LDAP- or RADIUS-backed user, and grant it permission to push to the target container namespace, for example by assigning the owner role for the execution environment through Automation Content -> Execution Environments -> -> User Access -> Assign users in the web interface. Log in and push the image with that account. podman login --tls-verify=true -u -p podman push --tls-verify=true //: Expected result: Writing manifest to image destination appears and the push completes. Option 2: Publish through an intermediate registry and sync Push the image to an intermediate registry that is reachable by the automation hub. Configure a remote registry pointing at the intermediate registry. In the web interface, navigate to Automation Content -> Remote Registries and create a remote registry with the intermediate registry URL, adding the upstream repositories and tags to include. Trigger the registry sync for the remote registry and wait for the sync task to complete. Verify that the image is served from the automation hub registry. podman login --tls-verify=true -u -p podman pull --tls-verify=true /: Expected result: The image is pulled from the automation hub registry. Note that repositories created by a registry remote sync are private by default, so pulling them requires an authenticated user with permission on the container namespace. Registry clients such as podman authenticate to the platform registry endpoints using HTTP Basic authentication only. Single sign-on authenticators (SAML, OIDC) are browser-redirect based and cannot validate a password, and platform personal access tokens are Bearer tokens that the registry token endpoint does not accept as a basic-authentication password. As a result, the credentials are not validated, an anonymous registry token is issued, podman login incorrectly reports success, and the subsequent image push is denied. Log in and attempt a push with the SSO user credentials. podman login --tls-verify=true -u -p podman push --tls-verify=true /: Expected evidence: Login Succeeded! appears, but the push fails with checking whether a blob ... exists in /: requested access to the resource is denied. Confirm that the same flow succeeds for a local user, which rules out namespace permissions and registry configuration as the cause. podman login --tls-verify=true -u -p podman push --tls-verify=true /: Expected result: Writing manifest to image destination appears and the push completes. Why does `podman login` succeed but `podman push` to the Ansible Automation Platform container registry fail with "requested access to the resource is denied" for SSO users?

Server Fails to Boot with Red Screen "Invalid Opcode Exception" using grub2­-2.02­-162.­el8_1­0 or grub2­-2.02­-164.­el8_1­0

VerifiedUpdated on Dec 5, 2026Subscription required

Server Fails to Boot with Red Screen "Invalid Opcode Exception" using grub2­-2.02­-162.­el8_1­0 or grub2­-2.02­-164.­el8_1­0 Red Hat Enterprise Linux 8 grub2­-2.02­-162.­el8_1­0 and grub2­-2.02­-164.­el8_1­0 Boot partition with ext4 filesystem Server fails to boot with "Invalid Opcode Exception" after updating the grub2 packages to version 2.02-162.el8_10 Update: This issue should be fixed with up-to-date repositories as of errata RHBA-2025:4024 for grub2­-comm­on-2.­02-16­5.el8­_10. After updating the packages, need to use grub2-install so that the contents of /boot are updated: # grub2-install /dev/ Workaround 1 - Do older kernels boot? Try booting into an older kernel from the GRUB menu. Older kernel and initramfs files are often unaffected, and if the system boots successfully with one of them, you can then downgrade grub2 packages from within that environment. # yum downgrade grub2­-comm­on-2.­02-16­0.el8­_10 To prevent the issue from reoccurring, apply a version lock on the grub2 packages. # yum install pytho­n3-dn­f-plu­gin-v­ersio­nlock # yum versionlock grub2\* # yum versionlock list If you need to clear the version lock in the future (once the bug has been addressed and your local repositories are updated), you can simply remove the lock to allow updates to the grub2 packages again. # yum versionlock clear Workaround 2 - If all kernels impacted If all kernels are impacted and the system fails to boot, you can start the system in rescue mode using the Red Hat Enterprise Linux 8.10 Binary DVD. This allows you to access the installed system and perform necessary recovery actions. When booting choose Troubleshooting > Rescue a Red Hat Enterprise Linux System Press 1 to continue to mount the filesystems Press enter to get a shell chroot, mount the DVD ISO # chroot /mnt/sysimage # mount /dev/sr0 /mnt Then create a repo for the DVD repositories # vi /etc/­yum.r­epos.­d/loc­aldvd­.repo ###Add following [localdvd-baseos] name=localdvd-baseos enabled=1 baseu­rl=fi­le://­/mnt/­BaseO­S/ [localdvd-appstream] name=­local­dvd-a­ppstr­eam enabled=1 baseu­rl=fi­le://­/mnt/­AppSt­ream/ Disable any other BaseOS/Appstream repos in `/etc­/yum.­repos­.d/*.­repo files and check repolist # yum repolist Downgrade grub2 packages (grub2-common will pull in the other grub2 packages) # yum downgrade grub2­-comm­on-2.­02-16­0.el8­_10 --disablerepo=* --ena­blere­po=lo­caldv­d-bas­eos,l­ocald­vd-ap­pstre­am To prevent the issue from reoccurring, apply a version lock on the grub2 packages. # yum install pytho­n3-dn­f-plu­gin-v­ersio­nlock # yum versionlock grub2\* # yum versionlock list If you need to clear the version lock in the future (once the bug has been addressed and your local repositories are updated), you can simply remove the lock to allow updates to the grub2 packages again. # yum versionlock clear Test a reboot If the system continues to fail to boot, then do not hesitate to engage your respective support vendor for further assistance. Issue seems to be related to Server fails to boot with "Initramfs unpacking failed" however, defragging the initramfs files doesn't fix the Invalid Opcode message in some cases. Check fragmentation of initramfs files (>2 can lead to this issue) # filefrag /boot­/init­ramfs­-*.im­g Check if /boot is on an ext4 filesystem # lsblk -f Check version of grub2 packages - 2.02-162.el8_10 or 2.02-164.el8_10 can be impacted # rpm -qa | grep grub2 Check if the files in /boot are older than the grub2 packages: # ls -l /boot/grub2/i386-pc/ If so, need to run grub2-install to update these (and this also updates the bootstrap files) ~~~ # grub2-install /dev/ ~~~ Server Fails to Boot with Red Screen "Invalid Opcode Exception" using grub2­-2.02­-162.­el8_1­0 or grub2­-2.02­-164.­el8_1­0

OCS/ODF Upgrade Not Progressing

VerifiedUpdated on Dec 5, 2026Subscription required

OCS/ODF Upgrade Not Progressing Red Hat OpenShift Container Platform (RHOCP) 4 and 5 Red Hat OpenShift Data Foundations (RHODF) 4 and 5 Red Hat OpenShift Container Storage (RHOCS) 4 and 5 RHODF/RHOCS Upgrade Not Progressing during version updates RELATED ARTICLES: Standalone MCG Deployed via Quay Documentation Fails ODF v4.19 Upgrade OpenShift Data Foundation consists of multiple components managed by multiple operators. Installed Operators Please note that this process is completely safe and undestructive to the data residing on your ODF cluster Collect the jobs and configmaps: $ for OPERATOR in ocs-operator mcg-operator odf-operator odf-c­si-ad­dons-­opera­tor cephcsi-operator ocs-client-operator odf-p­romet­heus-­opera­tor rook-ceph-operator recipe odf-dependencies odf-e­xtern­al-sn­apsho­tter-­opera­tor ocs-tls-profiles; do export OPERATOR; oc get job -n opens­hift-­marke­tplac­e -o json | jq -r '.items[] | selec­t(.sp­ec.te­mplat­e.spe­c.con­taine­rs[].­env[]­.valu­e|con­tains (env.OPERATOR)) | .metadata.name' >> /tmp/jobs; done $ cat /tmp/jobs ( example, could be many more in customer env.) 6d97d­fcfa4­d148a­76663­2d834­e1ebb­d6fa2­45631­f49e8­243eb­42ff5­96722­969 6f70c­8b65e­5a693­e1161­3dd96­6e9a3­7bb81­e3324­323c2­dfe14­badc9­9e710­77e If a /tmp/jobs collected no jobs then skip the following step: Delete the jobs and configMaps collected in the prior step: $ for i in `cat /tmp/jobs`; do oc delete job $i -n opens­hift-­marke­tplac­e; oc delete configmap $i -n opens­hift-­marke­tplac­e; done Delete the installplans: $ oc delete installplans -n openshift-storage --all Delete the subscriptions for all OCS/ODF references. NOTE: Expect the csi drivers resources to be gone after this process. This will temporarily prevent any new pvc mounts for cephf fs/block until they are back online. Caution: On some clusters, lvms-operator's Subscription also resides in the openshift-storage namespace despite being unrelated to ODF/OCS. Do not bulk-delete all Subscriptions in the namespace (e.g. oc delete subs --all -n openshift-storage) — explicitly list and delete only the OCS/ODF-related Subscription names to avoid removing lvms-operator. Start with the odf-operator sub as this typically cleans up all others, but verify and cleanup any reference.: $ oc delete subs odf-operator -n openshift-storage Check that all the subs are gone. $ oc get subs -n openshift-storage **OCS v4.9** will only have ocs-operator + mcg-operator + odf-operator **ODF v4.16 ** will have 8 total: ocs-operator mcg-operator odf-operator odf-c­si-ad­dons-­opera­tor ocs-client-operator odf-p­romet­heus-­opera­tor rook-ceph-operator recipe **ODF v4.17 ** will have 9 total: ocs-operator mcg-operator odf-operator odf-c­si-ad­dons-­opera­tor cephcsi-operator ocs-client-operator odf-p­romet­heus-­opera­tor rook-ceph-operator recipe **ODF v4.18 + v4.19 ** will have 10 total ocs-operator mcg-operator odf-operator odf-c­si-ad­dons-­opera­tor cephcsi-operator ocs-client-operator odf-p­romet­heus-­opera­tor rook-ceph-operator recipe odf-dependencies **ODF v4.20 + ** will have 11 total ocs-operator mcg-operator odf-operator odf-c­si-ad­dons-­opera­tor cephcsi-operator ocs-client-operator odf-p­romet­heus-­opera­tor rook-ceph-operator recipe odf-dependencies odf-e­xtern­al-sn­apsho­tter-­opera­tor **ODF v4.22 + 5.0 + ** will have 12 total ocs-operator mcg-operator odf-operator odf-c­si-ad­dons-­opera­tor cephcsi-operator ocs-client-operator odf-p­romet­heus-­opera­tor rook-ceph-operator recipe odf-dependencies odf-e­xtern­al-sn­apsho­tter-­opera­tor ocs-tls-profiles Delete the clust­erser­vicev­ersio­n for all OCS/ODF references: $ for i in $(oc get csv -n openshift-storage -o name | grep rhodf); do oc delete $i -n openshift-storage; done Ensure the catalogsource "redhat-operators" exists $ oc get catalogsource -n opens­hift-­marke­tplac­e|gre­p redhat-operators NAME DISPLAY TYPE PUBLISHER AGE redhat-operators Red Hat Operators grpc Red Hat 33h If no catalogsource exists redhat-operators create one matching your Openshift version. $ oc project opens­hift-­marke­tplac­e Create and save catalogSource: $ vi catalogSource.yaml apiVersion: opera­tors.­coreo­s.com­/v1al­pha1 kind: CatalogSource metadata: name: redhat-operators namespace: opens­hift-­marke­tplac­e spec: sourceType: grpc image: regis­try.r­edhat­.io/r­edhat­/redh­at-op­erato­r-ind­ex:v4­.x # x= desired version ex. .18 .19 .20 .21, etc. displayName: Red Hat Operators publisher: Red Hat updateStrategy: registryPoll: interval: 10m $ oc apply -f catalogSource.yaml For .spec.image, if a customer is using a disconnected cluster, this needs to point to their internal mirror-registry. Restart the catalog-operator and olm-operator pods: $ oc delete pods -l 'app in (catalog-operator, olm-operator)' -n opens­hift-­opera­tor-l­ifecy­cle-m­anage­r Then, in the OCP web console re-install the OCS/ODF operator from Opera­torHu­b/Eco­syste­m Software Catalog. The alternative to installing ODF again via the OCP web console would be to create the subscription via yaml in the openshift-storage namespace: Create and save subscription in project openshift-storage: $ vi subscription.yaml apiVersion: opera­tors.­coreo­s.com­/v1al­pha1 kind: Subscription metadata: name: odf-operator namespace: openshift-storage spec: channel: "stable-4.19" # <-- Channel should be modified depending on the OCS version installed. Please ensure to maintain compatibility with OCP version installPlanApproval: Automatic name: odf-operator source: redhat-operators # <-- Modify the name of the redhat-operators catalogsource if not default sourceNamespace: opens­hift-­marke­tplac­e $ oc apply -f subscription.yaml Note: Do not create a new storagesystem or "Configure Operator" when install completes, the cluster already has one. Verify all the pods in the openshift-storage namespace restart: $ oc get pods -n openshift-storage ( AGE should be seconds or minutes for every pod ) Verify the cluster has completed upgrade: ### Storage $ oc get storagecluster -o yaml | grep -A12 conditions conditions: - lastHeartbeatTime: "2023­-06-2­2T19:­13:49­Z" lastTransitionTime: "2023­-05-1­7T17:­42:16­Z" message: Reconcile completed successfully reason: ReconcileCompleted status: "True" type: ReconcileComplete ### Verify the CSV: $ oc get csv NAME DISPLAY VERSION REPLACES PHASE mcg-o­perat­or.v4­.13.0­-rhod­f NooBaa Operator 4.13.0-rhodf mcg-o­perat­or.v4­.12.4­-rhod­f Succeeded ocs-o­perat­or.v4­.13.0­-rhod­f OpenShift Container Storage 4.13.0-rhodf ocs-o­perat­or.v4­.12.4­-rhod­f Succeeded odf-c­si-ad­dons-­opera­tor.v­4.13.­0-rho­df CSI Addons 4.13.0-rhodf odf-c­si-ad­dons-­opera­tor.v­4.12.­4-rho­df Succeeded odf-o­perat­or.v4­.13.0­-rhod­f OpenShift Data Foundation 4.13.0-rhodf odf-o­perat­or.v4­.12.4­-rhod­f Succeeded ODF operator upgrade in Disconnected cluster. For disconnected environment, see the details OpenShift Data Foundation upgrade in disconnected environment with oc-mirror. Feature vs version: Version Features ODF 4.16 Added more operators due to feature enhancements (the ODF will behave as an umbrella Operator) ODF 4.18 Added odf-dependencies package due to feature enhancements - this will be listed as another operator OLM creates a job to make the image contents available on the cluster. The installPlan is updated to include the list of resources contained in the configMap. If the job created by OLM fails to create the configMap for any reason, the installPlan (IP) will fail. Potential causes for this issue include: The image that is supposed to contain the list of resources that define the operator is unavailable. This can be caused if the image was deleted from the repository, the image is no longer public, the pull request was denied due to an authentication issue, etc... The job failed to complete in time, possibly due to bad network or the job exceeding its deadline. Another Operator is impacting the OLM scanning cycles. The Catalog Source (CS) is stuck in some capacity, which is the

How to solve Red Hat build of Keycloak Operator upgrade blocked by OLM with warning "risk of data loss updating "keyc­loaks­.k8s.­keycl­oak.o­rg"

VerifiedUpdated on Dec 5, 2026Subscription required

How to solve Red Hat build of Keycloak Operator upgrade blocked by OLM with warning "risk of data loss updating "keyc­loaks­.k8s.­keycl­oak.o­rg" Red Hat build of Keycloak (RHBK) Operator 26.4.x / 26.6.x OpenShift Container Platform Operator Lifecycle Manager (OLM) Multi-namespace operator deployments RHBK operator upgrade The OpenShift cluster upgrade is blocked because the Red Hat build of Keycloak (RHBK) operator is stuck in a Replacing/Pending state during an upgrade. After installing Red Hat build of Keycloak Operator 26.6.x, any attempt to install a previous version(e.g 26.4.x) fails with the messages: risk of data loss updating "keyc­loaks­.k8s.­keycl­oak.o­rg": new CRD removes version v2beta1 that is listed as a stored version on the existing CRD risk of data loss updating "keyc­loakr­ealmi­mport­s.k8s­.keyc­loak.­org": new CRD removes version v2beta1 that is listed as a stored version on the existing CRD To resolve the wedged OLM state, safely tear down the stuck OLM resources in the affected namespace and reinstall/upgrade the operator directly to the newer version already used in the other namespace (e.g., 26.6.x). step 1: Export the existing Keycloak Custom Resources (CRs) as YAML for safety: oc get keycl­oaks.­k8s.k­eyclo­ak.or­g -n -o yaml > keycl­oaks-­backu­p.yam­l oc get keycl­oakre­almim­ports­.k8s.­keycl­oak.o­rg -n -o yaml > realm­impor­ts-ba­ckup.­yaml step 2: Delete the stuck Subscription: oc delete subscription rhbk-operator -n step 3: Delete the replacing and pending Clust­erSer­viceV­ersio­ns (CSVs) to clean up the OLM state: oc delete csv -n step 4: Delete any blocked or failed InstallPlans in the namespace: oc get installplan -n oc delete installplan -n step 5: Identify the exact CSV version deployed in the other upgraded namespace. oc get csv -n step 6.: Create a new Subscription YAML matching the exact CSV from the upgraded namespace (adjust the channel and startingCSV to match): apiVersion: opera­tors.­coreo­s.com­/v1al­pha1 kind: Subscription metadata: name: rhbk-operator namespace: rhbk-prod spec: channel: stable-v26.6 installPlanApproval: Manual name: rhbk-operator source: redhat-operators sourceNamespace: opens­hift-­marke­tplac­e startingCSV: Note: is the CSV value obtained at step 5 step 7: Apply the Subscription and approve the new InstallPlan if manual approval is configured: oc apply -f subsc­ripti­on-pr­od.ya­ml oc get installplan -n oc patch installplan -n --type merge --patch '{"sp­ec":{­"appr­oved"­:true­}}' The RHBK operator is ClusterScope. It is not fully supported for the operator to watch multiple or all namespaces. To watch multiple namespaces, you install multiple operators. Red Hat Operator need to be installed in each namespace separately. The last installed CRDs become the ones that are used. This rule also applies to OLM installations; the last installed Operator version also installs and overrides the CRDs if they already exist in the cluster. Running different Operator versions in different namespaces on the same cluster is not a supported configuration. When Red Hat build of Keycloak Operator 26.6. is installed, it adds the 'v2beta1' api version as a stored version to the cluster-wide CRD. Meanwhile, the Red Hat build of Keycloak Operator 26.4 doesn't include the 'v2beta1', so the OpenShift Lifecycle Manager(OLM) blocks the installation to prevent potential data loss. How to solve Red Hat build of Keycloak Operator upgrade blocked by OLM with warning "risk of data loss updating "keyc­loaks­.k8s.­keycl­oak.o­rg"

Known behavioral, syntax, and parameter differences in the centralized ansible.platform collection

Updated on Dec 5, 2026Subscription required

Known behavioral, syntax, and parameter differences in the centralized ansible.platform collection This article provides technical reference detailing key behavioral, syntax, and parameter differences when migrating to the centralized ansible.platform collection in Ansible Automation Platform 2.7 and 2.8+. It covers return value dual-packing, standardized output filtering, Controller named URL syntax, ad_hoc_command execution patterns, and gateway_api queries. Overview When migrating playbooks from ansible.controller and ansible.eda to the centralized ansible.platform collection, most common module operations (such as creating projects, inventories, credentials, and job templates) transfer smoothly. However, ansible.platform introduces structural, architectural, and behavioral changes designed for the Automation Gateway and consistent action-plugin foundations. This technical reference details the key behavioral, syntax, and parameter differences across six critical areas and provides concrete code examples, comparison tables, and recommended workarounds. Summary of Key Differences Architectural Area Legacy Collection (ansible.controller / ansible.eda) Centralized Collection (ansible.platform) Migration Action Return Value Structure Top-level flat dictionary (result.id, result.name) Dual-packed: returned both flat (result.id) and nested (result..id) Test registered variable references in existing playbooks. While flat result fields are preserved for many resource operations via dual-packing, some modules and states return different structures. Update new and modified tasks to use nested access (result..). Return Value Filtering Returned raw API JSON fields unconditionally Argspec-filtered: Action plugins validate and filter return values through the module schema; shape remains consistent regardless of change status Rely on documented module return values; do not write playbooks that depend on undocumented raw API fields. Named URL Syntax (name++) Supported inline name resolution using name++ URL syntax Supported for Controller resources: Handled by shared resource lookup logic (such as job_t­empla­te.in­vento­ry) Existing Controller playbooks using name++organization syntax continue to work where the parameter path uses shared lookups. Ad Hoc Command Execution Inherited standard CRUD parameters in some contexts Execution trigger: No state parameter; supports immediate return or synchronous wait via wait: true Remove state: present; configure wait: true or wait: false based on whether the playbook needs to block for completion. no_log & Check Mode Inconsistent across component modules Strict parity: all action plugins enforce check_mode and mask secrets Verify check mode runs cleanly; no playbook rewrite needed. EDA Information Queries Provided batch *_info modules (e.g. credential_info) Removed: no *_info modules exist in ansible.platform Use state: exists for single assets or gateway_api lookup plugin for batch queries. 1. Return Value Dual-Packing Mechanism Background & Implementation In ansible.controller and AWX, modules typically returned flat dictionaries containing {changed, id, name} or the raw object fields at the root of the task's registered output. Conversely, modern ansible.platform modules standardize on structured dictionaries namespaced under the module's resource key. To prevent breaking existing enterprise playbooks that inspect result.id or result.name, the underlying action plugin base class (plug­ins/a­ction­/base­_acti­on.py­) implements a dual-packing return pattern: # plugi­ns/ac­tion/­base_­actio­n.py (return payload assembly) result.update({ "changed": manag­er_re­sult.­get("­chang­ed", False), self.MODULE_NAME: validated_output, # Nested: result.job_template = {id: 10, name: "Deploy"} **validated_output, # Flat: result.id = 10, result.name = "Deploy" **extra_flat, # Module-specific flat extras (e.g., client_secret) }) IMPORTANT: Do not assume blanket backward compatibility across all modules and states. While dual-packing preserves flat result fields for many common resource operations, return structures can vary across certain modules and states (such as deletion tasks, error paths, or non-CRUD operations). Always test playbooks that evaluate registered results before deploying in production, and transition to nested access (result..) for long-term stability. Registered Variable Comparison - name: Create Controller Job Template ansib­le.pl­atfor­m.job­_temp­late: name: "Production Web Deployment" project: "Production SCM" playbook: "deploy.yml" inventory: "Web Servers" state: present register: jt_result # Access Pattern 1: Legacy Flat Access (Supported for many operations via dual-packing, but verify per module and state) - name: Inspect Flat Return Key ansib­le.bu­iltin­.debu­g: msg: "Job Template ID is: {{ jt_result.id }}" # Access Pattern 2: New Namespaced Access (Recommended Best Practice) - name: Inspect Namespaced Return Key ansib­le.bu­iltin­.debu­g: msg: "Job Template ID is: {{ jt_re­sult.­job_t­empla­te.id }}" Module Return Keys for Migrated Resources Module Name Nested Return Key Primary Lookup Identifier contr­oller­_cred­entia­l resul­t.con­troll­er_cr­edent­ial name eda_credential resul­t.eda­_cred­entia­l name controller_project resul­t.con­troll­er_pr­oject name eda_project result.eda_project name controller_settings resul­t.con­troll­er_se­tting­s (custom) job_template result.job_template name workf­low_j­ob_te­mplat­e resul­t.wor­kflow­_job_­templ­ate name inventory result.inventory name host result.host name execu­tion_­envir­onmen­t resul­t.exe­cutio­n_env­ironm­ent name rulebook_activation resul­t.rul­ebook­_acti­vatio­n name decision_environment resul­t.dec­ision­_envi­ronme­nt name 2. Standardized Output Filtering Consistent Return Structures In legacy ansible.controller, modules often passed through raw JSON payloads directly from underlying API endpoints into registered task variables, exposing backend internal metadata, database timestamps, and unmarshaled API details. In ansible.platform, action plugins standardize and validate return dictionaries against the module's defined schema. The shape of the returned dictionary remains consistent regardless of whether the task modified the resource (changed: true) or found it already in the desired state (changed: false): Standardized Attributes: Modules return documented configuration fields, resource identifiers (id), names, and state attributes. Consistent Return Shape: Return dictionaries do not change structure simply because a task resulted in changed: false vs changed: true. Filtering of Internal Noise: Action plugins filter out transient directives and internal API noise, providing a predictable data contract across playbook runs. Recommended Playbook Design When writing playbooks that inspect registered task output: - name: Ensure Controller Project Exists ansib­le.pl­atfor­m.con­troll­er_pr­oject­: name: "Application SCM" scm_type: git scm_url: "http­s://e­xampl­e.com­/git/­app.g­it" organization: "Default" state: present register: proj_out # Recommended: Reference stable, documented configuration attributes - name: Display Project Details ansib­le.bu­iltin­.debu­g:

How to migrate Configuration as Code playbooks from ansible.controller and ansible.eda to ansible.platform in Ansible Automation Platform 2.7+

Updated on Dec 5, 2026Subscription required

How to migrate Configuration as Code playbooks from ansible.controller and ansible.eda to ansible.platform in Ansible Automation Platform 2.7+ This article provides a step-by-step guide to migrating Ansible Configuration as Code (CaC) playbooks from the standalone ansible.controller and ansible.eda collections to the centralized ansible.platform collection in Ansible Automation Platform 2.7 and 2.8+. Issue When upgrading to Red Hat Ansible Automation Platform 2.7+ or preparing automation for AAP 2.8+, existing Configuration as Code (CaC) playbooks that target the legacy ansible.controller or ansible.eda collections fail during execution. Symptoms include: The task fails with a module resolution error: ERROR! couldn't resolve module/action 'ansi­ble.c­ontro­ller.­job_t­empla­te'. This often indicates a misspelling, missing collection, or missing module dependency. or ERROR! couldn't resolve module/action 'ansi­ble.e­da.ru­leboo­k_act­ivati­on'. Playbooks fail with connection or authentication errors against individual component endpoints: Failed to connect to Automation Controller: HTTP 401 Unauthorized / Cannot authenticate directly to component API Deprecation notices and platform migration guidance indicate that standalone component collections are deprecated for Configuration as Code in favor of the centralized ansible.platform collection (see Considerations in adopting AAP Confi­gurat­ion-a­s-Cod­e and the AAP 2.7 Upgrade - API and Configuration as Code Migration Guide). Environment Red Hat Ansible Automation Platform (AAP) 2.7+ and AAP 2.8+ ansible.platform collection version >= 2026.12.0 (uses date-based versioning YYYY.MM., versioned independently from AAP 2.X releases) ansible-core >= 2.16 Execution Environments (EE) built with ansible-builder >= 3.0 Legacy collections being replaced: ansible.controller (<= 4.7.x) ansible.eda (Configuration as Code modules <= 2.2.x) Cause In Ansible Automation Platform 2.7+ and 2.8+, Red Hat consolidates Configuration as Code capabilities into the single, centralized ansible.platform collection (ANSTRAT-1874). Previously, administrators used up to four separate collections to automate one platform: ansible.controller for Automation Controller assets (projects, credentials, job templates). ansible.eda for Event-Driven Ansible controller assets (rulebook activations, decision environments). ansible.hub for Automation Hub assets. ansible.platform for Gateway and system-level configuration. This separation caused redundant authentication implementations, inconsistent parameter naming, and separate connection overhead. Centralization moves Controller and EDA configuration modules into ansible.platform under unified action plugins backed by the Automation Gateway. Because ansible.platform enforces a single namespace: No automatic legacy redirects: Legacy Fully Qualified Collection Names (FQCNs) such as ansible.controller. are not aliased in ansible.platform. Playbooks must explicitly reference ansible.platform.. Component-specific module renames: Some Controller and EDA modules with overlapping names use component-specific names to eliminate collisions, such as contr­oller­_cred­entia­l and eda_credential, or controller_project and eda_project. Naming varies by resource: Controller settings use controller_settings to distinguish them from Gateway settings, while non-colliding Controller modules (such as crede­ntial­_inpu­t_sou­rce) retain their original names without a prefix. Gateway-first authentication: All authentication and connection parameters are standardized on aap_* and gateway_* variables. Legacy controller_* connection variables are not supported by the centralized collection. Resolution Follow the six-step procedure below to migrate your CaC playbooks to ansible.platform. Step 1: Update Collection Dependencies in requirements.yml Update your collection dependency definitions to require the latest compatible ansible.platform release. Remove direct dependencies on ansible.controller and ansible.eda for configuration tasks. NOTE: Centralized Configuration as Code modules are introduced in ansible.platform starting with the 2026.12. release stream (available for AAP 2.8+ and backported to AAP 2.7+). Ensure this release is available in your private automation hub or execution environment before upgrading production playbooks. --- # colle­ction­s/req­uirem­ents.­yml collections: - name: ansible.platform version: ">=2026.12.0" # Optional: Retain ansible.eda only if using event-driven rulebook source plugins # (rulebook activation configuration modules have moved to ansible.platform) # - name: ansible.eda # version: ">=2.2.0" NOTE: The ansible.platform collection versioning is independent of Ansible Automation Platform product releases and uses date-based versioning (such as 2026.12.). Check Automation Hub for the latest compatible collection build. Install the updated collection: ansible-galaxy collection install -r colle­ction­s/req­uirem­ents.­yml --upgrade Step 2: Rebuild Execution Environments (EEs) If your organization executes playbooks through Automation Controller or Automation Mesh using containerized Execution Environments, rebuild your EE using ansible-builder. 1) Ensure your execu­tion-­envir­onmen­t.yml references the updated requirements.yml: --- version: 3 images: base_image: name: regis­try.r­edhat­.io/a­nsibl­e-aut­omati­on-pl­atfor­m-27/­ee-su­pport­ed-rh­el9:l­atest # Or ansib­le-au­tomat­ion-p­latfo­rm-28 for AAP 2.8+ dependencies: galaxy: colle­ction­s/req­uirem­ents.­yml options: packa­ge_ma­nager­_path­: /usr/bin/microdnf 2) Build and push the Execution Environment image: ansible-builder build --tag my-re­gistr­y.exa­mple.­com/a­ap/cu­stom-­cac-e­e:2.8 --container-runtime podman podman push my-re­gistr­y.exa­mple.­com/a­ap/cu­stom-­cac-e­e:2.8 3) Register and Assign the Execution Environment in Automation Platform: After pushing the image, complete the EE rollout in the Automation Platform user interface: - Navigate to Automation Execution > Execution Environments. - Create a new Execution Environment definition (or edit your existing CaC definition) pointing to the new image URL (my-r­egist­ry.ex­ample­.com/­aap/c­ustom­-cac-­ee:2.­8). - Configure the Pull policy (for example, Always pull or Only pull if not present). - Select the updated Execution Environment on the Organization, Job Templates, or Workflow Job Templates that execute your CaC playbooks. NOTE: If you do not update the Execution Environment definition and reassign it to your job templates, Automation Platform will continue executing tasks using the previous container image, causing module resolution errors. Step 3: Update Playbook FQCNs and Resolve Module Collisions Update all task definitions in your playbooks and roles to replace legacy FQCNs with ansible.platform. A. Direct 1:1 Controller Module Mappings The following 32 Controller modules migrate directly to the same module name under ansible.platform: Legacy Module (ansi­ble.c­ontro­ller.­*) Centralized Module (ansible.platform.*) ad_hoc_command ansib­le.pl­atfor­m.ad_­hoc_c­omman­d ad_ho­c_com­mand_­cance­l ansib­le.pl­atfor­m.ad_­hoc_c­omman­d_can­cel ad_hoc_command_wait ansib­le.pl­atfor­m.ad_­hoc_c­omman­d_wai­t bulk_host_create ansib­le.pl­atfor­m.bul­k_hos­t_cre­ate bulk_host_delete ansib­le.pl­atfor­m.bul­k_hos­t_del­ete bulk_job_launch ansib­le.pl­atfor­m.bul­k_job­_laun­ch crede­ntial­_inpu­t_sou­rce ansib­le.pl­atfor­m.cre­denti­al_in­put_s­ource execu­tion_­envir­onmen­t ansib­le.pl­atfor­m.exe­cutio­n_env­ironm­ent export ansib­le.pl­atfor­m.exp­ort group ansib­le.pl­atfor­m.gro­up host ansib­le.pl­atfor­m.hos­t import ansib­le.pl­atfor­m.imp­ort instance ansib­le.pl­atfor­m.ins­tance instance_group ansib­le.pl­atfor­m.ins­tance­_grou­p inventory ansib­le.pl­atfor­m.inv­entor­y inventory_source ansib­le.pl­atfor­m.inv­entor­y_sou­rce inven­tory_­sourc­e_upd­ate ansib­le.pl­atfor­m.inv­entor­y_sou­rce_u­pdate job_cancel ansib­le.pl­atfor­m.job­_canc­el job_launch ansib­le.pl­atfor­m.job­_laun­ch job_list ansib­le.pl­atfor­m.job­_list job_template ansib­le.pl­atfor­m.job­_temp­late job_wait ansib­le.pl­atfor­m.job­_wait label ansib­le.pl­atfor­m.lab­el license ansib­le.pl­atfor­m.lic­ense notif­icati­on_te­mplat­e ansib­le.pl­atfor­m.not­ifica­tion_­templ­ate project_update ansib­le.pl­atfor­m.pro­ject_­updat­e schedule ansib­le.pl­atfor­m.sch­edule subscriptions ansib­le.pl­atfor­m.sub­scrip­tions workflow_approval ansib­le.pl­atfor­m.wor­kflow­_appr­oval workf­low_j­ob_te­mplat­e ansib­le.pl­atfor­m.wor­kflow­_job_­templ­ate workf­low_j­ob_te­mplat­e_nod­e ansib­le.pl­atfor­m.wor­kflow­_job_­templ­ate_n­ode workflow_launch ansib­le.pl­atfor­m.wor­kflow­_laun­ch workflow_node_wait ansib­le.pl­atfor­m.wor­kflow­_node­_wait B.

Latest discussions in the Red Hat Community

can't renew developer license

Started Thursday, December 3, 2026 at 4:38:03 PM
Red Hat Developer Hub

Memory snooper detection needs OS developer to change the OS

Started Wednesday, November 25, 2026 at 10:36:26 PM
Red Hat Enterprise Linux

Memory snooper detection needs OS developer to change the OS

Started Wednesday, November 25, 2026 at 10:34:25 PM
Red Hat Enterprise Linux
Meet with other Red Hat users, ask questions, collaborate to solve problems, and connect with our very own Red Hat engineers and moderators - the experts behind our products. Visit our community
Visit our community

Get support

Support cases

Get answers quickly by opening a support case with us.

Live chat

Directly access our support engineers during weekday business hours.

Call or email

Speak directly with a Red Hat Support expert by phone or through email.

Explore the entire customer portal for other resources

Search the entire customer portal