Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-23083

[GSS](7.4.z) ImageStream jboss-eap74-openjdk8-openshift's replace times out in OCP4.9

XMLWordPrintable

      If the --force option is given as in documentation 2.4. Import the Latest JBoss EAP for OpenShift Imagestreams and Templates, oc replace command will hang and then timeout in OCP 4.9 as follows:

      $ oc version
      Client Version: 4.9.11
      Server Version: 4.9.11
      $ oc project openshift
      $ oc replace --force -f http://raw.githubusercontent.com/jboss-container-images/jboss-eap-openshift-templates/eap74/eap74-openjdk8-image-stream.json
      W0117 12:32:44.636847   34887 shim_kubectl.go:55] Using non-groupfied API resources is deprecated and will be removed in a future release, update apiVersion to "image.openshift.io/v1" for your resource
      imagestream.image.openshift.io "jboss-eap74-openjdk8-openshift" deleted
      W0117 12:32:44.643928   34887 shim_kubectl.go:55] Using non-groupfied API resources is deprecated and will be removed in a future release, update apiVersion to "image.openshift.io/v1" for your resource
      imagestream.image.openshift.io "jboss-eap74-openjdk8-runtime-openshift" deleted
      W0117 12:32:44.885457   34887 shim_kubectl.go:55] Using non-groupfied API resources is deprecated and will be removed in a future release, update apiVersion to "image.openshift.io/v1" for your resource
      W0117 12:37:44.898751   34887 shim_kubectl.go:55] Using non-groupfied API resources is deprecated and will be removed in a future release, update apiVersion to "image.openshift.io/v1" for your resource
      timed out waiting for the condition   <<<===
      timed out waiting for the condition   <<<===
      

      Hang-up will not occur if the --force option is not enabled:

      $ oc replace -f http://raw.githubusercontent.com/jboss-container-images/jboss-eap-openshift-templates/eap74/eap74-openjdk8-image-stream.json
      W0117 12:43:09.326909   35988 shim_kubectl.go:55] Using non-groupfied API resources is deprecated and will be removed in a future release, update apiVersion to "image.openshift.io/v1" for your resource
      imagestream.image.openshift.io/jboss-eap74-openjdk8-openshift replaced
      W0117 12:43:09.342865   35988 shim_kubectl.go:55] Using non-groupfied API resources is deprecated and will be removed in a future release, update apiVersion to "image.openshift.io/v1" for your resource
      imagestream.image.openshift.io/jboss-eap74-openjdk8-runtime-openshift replaced
      

      I think it is supposed to be an OCP side issue that replace command hangs up if --force option is enabled. However, I assume the EAP document also gives the --force option even if it is not required.

      Checking oc replace --help, it looks like comment with side effects, for this reason, it may be better to disable the --force option in the EAP document:

      $ oc replace --help
      ...
      --force=false: If true, immediately remove resources from API and bypass graceful deletion. Note that immediate
      deletion of some resources may result in inconsistency or data loss and requires confirmation.
      

              dsoni@redhat.com Dhruv Soni
              rhn-support-nagetsum Norito Agetsuma
              Martin Svehla Martin Svehla
              Martin Svehla Martin Svehla
              Gaurav Trivedi
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: