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

Debug option for openshift-maven-plugin to log executed oc commands with resources used

XMLWordPrintable

    • False
    • None
    • False
    • 0
    • 0% 0%
    • Todo
    • Very Likely

      Currently it's hard to debug the issue relating with openshift-maven-plugin because we can not exactly trace what kind of oc commands with resource data were executed.
      For example, this is a sample ERROR log.

      [INFO] oc: Using OpenShift at https://xxx.xxx.xxx.xxx in namespace sample with manifest xxx\target\classes\META-INF\jkube\openshift.yml
      [INFO] oc: OpenShift platform detected
      [INFO] oc: Updating Service from openshift.yml
      [ERROR] oc: Failed to update Service from openshift.yml. io.fabric8.kubernetes.client.KubernetesClientException: Failure executing: PATCH at: https://xxx.xxx.xxx.xxx:xxx/api/v1/namespaces/demo/services/demo. Message: the server rejected our request due to an error in our request. Received status: Status -skip-
      

      If there is an option to log executed oc commands with resources used, we can compare the OK/NG jsondata quickly and also openshift support engineer can understand what is going on easily.

      Openshift-maven-plugin is still used by other full-support product(ex. CSB), so please consider about this feature request.

              ldemasi Luigi De Masi
              rhn-support-hfuruich Hisao Furuichi
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: