Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: 7.0.0.GA
    • Fix Version/s: None
    • Component/s: Business Central
    • Environment:

      OCP container created with image:
      registry.access.redhat.com/rhdm-7/rhdm70-decisioncentral-openshift:1.0

    • Steps to Reproduce:
      Hide

      From Stackoverflow question: https://stackoverflow.com/questions/50167011/how-to-access-a-rhdm-7-0-git-repository-in-ocp-environment

      Trying to access RHDM7 git repository hosted in an OCP environment.
      This is what I have tryied so far:

      1. Create a project in my OCP instance with :

      oc new-project demo-rhdm7-dtf
      oc create -f https://raw.githubusercontent.com/gpe-mw-training/bxms_decision_mgmt_foundations_lab/master/resources/rhdm7-only.yaml
      oc new-app --name=dm-demo -n demo-rhdm7-dtf --template=rhdm7-only -p RHT_IMAGE_STREAM_NAMESPACE=openshift -p KIE_ADMIN_PWD=test1234! -p MAVEN_REPO_PASSWORD=test1234! -p APPLICATION_NAME=demo
      

      *Notes:*

      2. Create an space using Decision Central. In my case I am creating the `Acme` space.
      3. In the created space create a new project, in my case `demoinsurance` project.
      4. Do a `port-forward` for the nio git ssh port: 8001. I am following this tutorial example: http://www.schabell.org/2017/03/how-to-access-jboss-brms-internal-git-repo-in-container.html

      oc new-project demo-rhdm7-dtf
      oc port-forward $(oc get pod -l=deploymentconfig=gpte-rhdmcentr --template='{{ range .items }} {{ .metadata.name }} {{ end }}') 8001:8001
      

      5. Try to use your favorite git client and clone:

      When trying to clone as in the example (using git protocol through the ssh port) I get:

      git clone git://127.0.0.1:8001/Acme-myrepo
      ...
      fatal: protocol error: bad line length character: SSH-
      

      When trying with ssh protocol:

      git clone ssh://adminUser@127.0.0.1:8001/Acme-myrepo
      ...
      ssh_dispatch_run_fatal: Connection to 127.0.0.1 port 8001: incorrect signature
      fatal: Could not read from remote repository.
      

      When forwarding and using git port (9418)

      git clone git://127.0.0.1:9418/Acme-myrepo
      fatal: Could not read from remote repository.
      Please make sure you have the correct access rights
      and the repository exists. 
      

      And by the way, by checking the pod's .niogit repository you can see Acme-myrepo.git repository:

      $ oc rsh $(oc get pod -l=deploymentconfig=gpte-rhdmcentr --template='{{ range .items }} {{ .metadata.name }} {{ end }}')
      $ ls $JBOSS_HOME/standalone/data/bpmsuite/.niogit
      Acme-myrepo.git  datasets.git  datasources.git	myrepo.git  plugins.git  preferences.git  security.git	system.git  system_ou
      
      Show
      From Stackoverflow question: https://stackoverflow.com/questions/50167011/how-to-access-a-rhdm-7-0-git-repository-in-ocp-environment Trying to access RHDM7 git repository hosted in an OCP environment. This is what I have tryied so far: 1. Create a project in my OCP instance with : oc new -project demo-rhdm7-dtf oc create -f https: //raw.githubusercontent.com/gpe-mw-training/bxms_decision_mgmt_foundations_lab/master/resources/rhdm7-only.yaml oc new -app --name=dm-demo -n demo-rhdm7-dtf --template=rhdm7-only -p RHT_IMAGE_STREAM_NAMESPACE=openshift -p KIE_ADMIN_PWD=test1234! -p MAVEN_REPO_PASSWORD=test1234! -p APPLICATION_NAME=demo * Notes: * rhdm7-only is a template created from github repository the openshift namespace should include the imagestreams from https://raw.githubusercontent.com/jboss-container-images/rhdm-7-openshift-image/rhdm70-dev/rhdm70-image-streams.yaml The Deployment configs are paused by default, please take a moment to resume the rollout. 2. Create an space using Decision Central. In my case I am creating the `Acme` space. 3. In the created space create a new project, in my case `demoinsurance` project. 4. Do a `port-forward` for the nio git ssh port: 8001. I am following this tutorial example: http://www.schabell.org/2017/03/how-to-access-jboss-brms-internal-git-repo-in-container.html oc new -project demo-rhdm7-dtf oc port-forward $(oc get pod -l=deploymentconfig=gpte-rhdmcentr --template= '{{ range .items }} {{ .metadata.name }} {{ end }}' ) 8001:8001 5. Try to use your favorite git client and clone: When trying to clone as in the example (using git protocol through the ssh port) I get: git clone git: //127.0.0.1:8001/Acme-myrepo ... fatal: protocol error: bad line length character: SSH- When trying with ssh protocol: git clone ssh: //adminUser@127.0.0.1:8001/Acme-myrepo ... ssh_dispatch_run_fatal: Connection to 127.0.0.1 port 8001: incorrect signature fatal: Could not read from remote repository. When forwarding and using git port (9418) git clone git: //127.0.0.1:9418/Acme-myrepo fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. And by the way, by checking the pod's .niogit repository you can see Acme-myrepo.git repository: $ oc rsh $(oc get pod -l=deploymentconfig=gpte-rhdmcentr --template= '{{ range .items }} {{ .metadata.name }} {{ end }}' ) $ ls $JBOSS_HOME/standalone/data/bpmsuite/.niogit Acme-myrepo.git datasets.git datasources.git myrepo.git plugins.git preferences.git security.git system.git system_ou
    • Affects:
      Interactive Demo/Tutorial, Compatibility/Configuration, User Experience

      Description

      Using `port-forward` for accessing the git repositories from Openshift does not allow either git protocol nor ssh protocol to access remotelly the internal git repositories for Decision Central:
      Thus avoiding the use of external tools to push changes in rules using JBoss Developer Studio or any preferred editor by the developer.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                manstis Michael Anstis
                Reporter:
                diego-torres Diego Alejandro Torres Fuerte
                Tester:
                Jan Hrcek
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: