Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-17668

After CRD is updated on OCP3, oc get syndesis don't work for a couple of minutes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • fuse-7.10-GA
    • fuse-7.10-GA
    • Fuse Online
    • None
    • False
    • False
    • % %
    • Todo
    • Hide

      During the upgrade process, after the commands were executed

      bash install_ocp.sh --setup
      bash install_ocp.sh --grant developer
      

      wait till `oc get syndesis` starts working (don't show error, ~5-10minutes). After that, continue with upgrade process (run the update script).

      Show
      During the upgrade process, after the commands were executed bash install_ocp.sh --setup bash install_ocp.sh --grant developer wait till `oc get syndesis` starts working (don't show error, ~5-10minutes). After that, continue with upgrade process (run the update script).

    Description

      When I run `bash ./fuse-online-install/update_ocp.sh --skip-pull-secret`, it failed on

      ERROR: No CRD Syndesis installed or no permissions to read them. Please run --setup and/or --grant as cluster-admin. Please use '--help' for more information.
      

      because the `oc get syndesis` in the `check_syndesis` ( https://github.com/syndesisio/fuse-online-install/blob/1.13.0/update_ocp.sh#L115 ) is failing on

      Error from server (NotFound): Unable to list "syndesis.io/v1beta2, Resource=syndesises": the server could not find the requested resource (get syndesises.syndesis.io)
      

      weird is that after some time (~5 minutes), the error is gone and the command oc get syndesis starts working again.

      The same thing happens when I delete syndesis crd and after that, I run `oc get syndesis`. There is an error

      No resources found.
      Error from server (NotFound): Unable to list {"syndesis.io" "v1beta3" "syndesises"}: the server could not find the requested resource (get syndesises.syndesis.io)
      

      and after some time (~10 minutes), there is only

      error: the server doesn't have a resource type "syndesis"
      

      A workaround is just waiting till `oc get syndesis` starts working again after the CRD is updated[1] during the upgrade process.
      [1] -

      bash install_ocp.sh --setup
      bash install_ocp.sh --grant developer
      

      Attachments

        Activity

          People

            mkralik@redhat.com Matej Kralik
            mkralik@redhat.com Matej Kralik
            Matej Kralik Matej Kralik
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: