Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-510

When not using TLS, Openshift plugin does not allow login via UI (but does work via console login)

XMLWordPrintable

    • Workaround Exists
    • Hide

      Workarounds for UI that doesn't work in CRW 2.0.0.GA as of build 2.0-12 of plugin-openshift-rhel8 due to error

      "Access to clipboard is denied. Check your browser's permission.":

      Log in:

      • CTRL-`, CTRL-` then type "openshift" and hit enter
      • log in via console, eg.,
        OPENSHIFT_URL=https://api.your.cluster.com:6443
        OPENSHIFT_USERNAME=kubeadmin
        OPENSHIFT_PASSWORD=************
        OPENSHIFT_CONSOLE_URL=console-openshift-console.apps.your.cluster.com
        oc login --server=${OPENSHIFT_URL} -u=${OPENSHIFT_USERNAME} -p=${OPENSHIFT_PASSWORD} --insecure-skip-tls-verify
        

      Log out:

      • CTRL-`, CTRL-` then type "openshift" and hit enter
      • log out via console:
        oc logout

      Note that the same message appears in Che 7, but as as a warning which doesn't prevent logging in. Unclear at this time why it's an error in CRW 2 but a warning in Che 7.

      Show
      Workarounds for UI that doesn't work in CRW 2.0.0.GA as of build 2.0-12 of plugin-openshift-rhel8 due to error " Access to clipboard is denied. Check your browser's permission. ": Log in: CTRL-`, CTRL-` then type " openshift " and hit enter log in via console, eg., OPENSHIFT_URL=https: //api.your.cluster.com:6443 OPENSHIFT_USERNAME=kubeadmin OPENSHIFT_PASSWORD=************ OPENSHIFT_CONSOLE_URL=console-openshift-console.apps.your.cluster.com oc login --server=${OPENSHIFT_URL} -u=${OPENSHIFT_USERNAME} -p=${OPENSHIFT_PASSWORD} --insecure-skip-tls-verify Log out: CTRL-`, CTRL-` then type " openshift " and hit enter log out via console: oc logout Note that the same message appears in Che 7, but as as a warning which doesn't prevent logging in. Unclear at this time why it's an error in CRW 2 but a warning in Che 7.

      ODO cannot work, if there is no record of the user in /etc/passwd (according to https://github.com/openshift/odo/issues/2380)

      There is something fishy in our dockerfile.
      I suspect, that on this line http://pkgs.devel.redhat.com/cgit/containers/codeready-workspaces-plugin-openshift/tree/Dockerfile?h=crw-2.0-rhel-8&id=b7557b99956f3fc7858c64658a65cb92d756cc82#n35 we are replacing "theia" with some placeholders, but I think there is no "theia" record in /etc/passwd in the first place, that's why entrypoint fails to replace those placeholders (as they are not there).

        1. OpenShift-connector-crw-2.1.0.RC6-no-tls.gif
          497 kB
          Dmytro Nochevnov
        2. Screenshot_2019-12-10_09-28-21.png
          186 kB
          Nick Boldt
        3. screenshot-1.png
          139 kB
          Nick Boldt
        4. screenshot-2.png
          141 kB
          Nick Boldt
        5. Screenshot from 2020-04-13 23-59-51.png
          204 kB
          Dmytro Nochevnov

              ericwill@redhat.com Eric Williams
              rhopp@redhat.com Radim Hopp
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: