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

Fuse Online: Installation fails for user-name having comma in between.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • fuse-7.5-ER1
    • fuse-7.3
    • Fuse Online
    • None
    • % %
    • +
    • Workaround Exists
    • Hide
      • Steps to reproduce
        oc create user "Lau, Alex KS"
        sudo htpasswd -b /etc/origin/master/htpasswd "Lau, Alex KS" password123
        bash install_ocp.sh --grant "Lau, Alex KS" --cluster
        oc whoami
        > system:admin
        oc login -u " "Lau, Alex KS" -p password123
        oc new-project syndesis1
        bash install_ocp.sh
        > 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.
        
      • If we check output of following, we find that there are extra comma "," in user-name.
      [quicklab@master-0 ~]$ oc get clusterrolebindings|grep Lau
      syndesis-extra-permissions-0                                               /syndesis-extra-permissions                                             Lau,, Alex, KS                                 
      
      • Workaround is to delete this entry first. Than add correct user for syndesis-extra-permission.
        [quicklab@master-0 fuse-online-install-1.6]$ oc adm policy remove-cluster-role-from-user syndesis-extra-permissions Lau,, Alex, KS
        cluster role "syndesis-extra-permissions" removed: ["Lau,," "Alex," "KS"]
        [quicklab@master-0 fuse-online-install-1.6]$ oc adm policy remove-cluster-role-from-user syndesis-extra-permissions Lau,, Alex
        cluster role "syndesis-extra-permissions" removed: ["Lau,," "Alex"]
        [quicklab@master-0 fuse-online-install-1.6]$ oc adm policy remove-cluster-role-from-user syndesis-extra-permissions Lau,
        cluster role "syndesis-extra-permissions" removed: "Lau,"
        # Add correct user to syndesis-extra-permissions.
        [quicklab@master-0 ~]$ oc adm policy add-cluster-role-to-user syndesis-extra-permissions "Lau, Alex KS"
        cluster role "syndesis-extra-permissions" added: "Lau, Alex KS"
        
        # verify using command.
        [quicklab@master-0 ~]$ oc get clusterrolebindings|grep Lau
        syndesis-extra-permissions-0                                               /syndesis-extra-permissions                                             Lau, Alex KS                                                                                                                                                       
        [quicklab@master-0 ~]$ 
        
      Show
      Steps to reproduce oc create user "Lau, Alex KS" sudo htpasswd -b /etc/origin/master/htpasswd "Lau, Alex KS" password123 bash install_ocp.sh --grant "Lau, Alex KS" --cluster oc whoami > system:admin oc login -u " " Lau, Alex KS" -p password123 oc new -project syndesis1 bash install_ocp.sh > 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. If we check output of following, we find that there are extra comma "," in user-name. [quicklab@master-0 ~]$ oc get clusterrolebindings|grep Lau syndesis-extra-permissions-0 /syndesis-extra-permissions Lau,, Alex, KS Workaround is to delete this entry first. Than add correct user for syndesis-extra-permission. [quicklab@master-0 fuse-online-install-1.6]$ oc adm policy remove-cluster-role-from-user syndesis-extra-permissions Lau,, Alex, KS cluster role "syndesis-extra-permissions" removed: [ "Lau,," "Alex," "KS" ] [quicklab@master-0 fuse-online-install-1.6]$ oc adm policy remove-cluster-role-from-user syndesis-extra-permissions Lau,, Alex cluster role "syndesis-extra-permissions" removed: [ "Lau,," "Alex" ] [quicklab@master-0 fuse-online-install-1.6]$ oc adm policy remove-cluster-role-from-user syndesis-extra-permissions Lau, cluster role "syndesis-extra-permissions" removed: "Lau," # Add correct user to syndesis-extra-permissions. [quicklab@master-0 ~]$ oc adm policy add-cluster-role-to-user syndesis-extra-permissions "Lau, Alex KS" cluster role "syndesis-extra-permissions" added: "Lau, Alex KS" # verify using command. [quicklab@master-0 ~]$ oc get clusterrolebindings|grep Lau syndesis-extra-permissions-0 /syndesis-extra-permissions Lau, Alex KS [quicklab@master-0 ~]$
    • Fuse 7.5 Sprint 52 - Bug fix

          rnetuka@redhat.com Radovan Netuka
          rhn-support-cpandey Chandra Shekhar Pandey (Inactive)
          Michael Cada Michael Cada
          Votes:
          0 Vote for this issue
          Watchers:
          3 Start watching this issue

            Created:
            Updated:
            Resolved: