Chapter 5. Common RHOAR Components

5.1. Fabric8 Maven Plugin

5.1.1. Known Fabric8 Maven Plugin Issues

5.1.1.1. Error pulling image when redeploying an application on OpenShift 3.7

Description

When deploying an application on OpenShift, the initial deployment succeeds, but re-deploying application using the Fabric8 Maven plugin results in the pod becoming stuck in the ImgPullErr state for extended periods of time. After several retries, the re-deployment completes successfully. The issue occurs on OpenShift 3.7.

Workaround

Before applying this workaround, ensure that you are using the latest version of the Fabric8 Maven Plugin. After deploying your application using mvn fabric8:deploy, re-deploy it manually using:

mvn -Dfabric8.openshift.trimImageInContainerSpec=true fabric8:deploy