Bug 1043088

Summary: gear authorized_keys may have command="/usr/bin/trap-user
Product: OpenShift Online Reporter: Jhon Honce <jhonce>
Component: ContainersAssignee: Jhon Honce <jhonce>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: admiller, agrimm, bmeng
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-16 19:05:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jhon Honce 2013-12-13 22:36:40 UTC
Description of problem:
The incorrect command is blocking people from logging into the gear.

Version-Release number of selected component (if applicable):


How reproducible:
30k gears in production

Steps to Reproduce:
1. (initial cause unknown)
2. create application
3. modify authorized_keys to use /usr/bin/trap-user

Actual results:
authorized_keys may have command="/usr/bin/trap-user

Expected results:
authorized_keys should have command="/usr/bin/oo-trap-user

Additional info:
2.0.37 upgrades will be enhanced to resolve this issue

Comment 1 Jhon Honce 2013-12-13 23:30:50 UTC
Fixed in https://github.com/openshift/li/pull/2236

Comment 2 Jhon Honce 2013-12-16 19:05:19 UTC
Went to production with 2.0.37.2

Comment 3 Meng Bo 2013-12-17 05:44:52 UTC
Checked on latest devenv with the upgrade extension from stage branch.

After modified the gear authorized_keys to "trap-user", it will be repaired after upgrade.

Comment 4 Meng Bo 2013-12-18 03:19:50 UTC
Checked again on devenv-stage_619, after upgrade, the .ssh/authorized_keys file can be repaired for both scale and non-scale apps.