Ssh login fails with error "Invalid context" for Openshift gear.

Solution Verified - Updated -

Issue

  • Login to Openshift application fails with below error:
"Invalid context: unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023, expected unconfined_u:system_r:openshift_t:s0:c3,c411".
  • oo-diagnostics command fails at test_pam_openshift module :
FAIL: test_pam_openshift
      References to pam_selinux in /etc/pam.d/sshd should all be changed
      to pam_openshift. User access to gears via ssh or git is likely to
      fail; please refer to the Deployment Guide for proper settings.
  • oo-diagnostics hangs on “test_pam_openshift” module when SELinux is in enforcing mode
  • Unable to Log into Application present in Openshift.
  • Login to gears on one node host failing.

Environment

  • Openshift Enterprise
    • 2.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.