Bug 800055

Summary: Some authorized_keys files are HUGE
Product: OKD Reporter: Thomas Wiest <twiest>
Component: ContainersAssignee: Krishna Raman <kraman>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 2.xCC: bmeng, kraman, mfisher, xtian
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: 2012-03-19 18:22:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Thomas Wiest 2012-03-05 16:52:36 UTC
Description of problem:
Some apps' authorized keys files are HUGE in STG (like 75M). The file has the key and then tons of blank lines and then the key again a few times.

This causes problems as cdk-authorized-ssh-key-remove bloats to multiple gigs of memory when trying to work with these files (which eventually runs the machine out of memory, which then causes our monitoring to reboot the instance.


Version-Release number of selected component (if applicable):
rhc-node-0.87.14-1.el6_2.x86_64


How reproducible:
Unsure

Steps to Reproduce:
1. Unsure how to get the keys into this state.

  
Actual results:
Huge authorized_keys files

Expected results:
The authorized_keys files should only be as large as the number of keys in them.

Comment 1 Krishna Raman 2012-03-05 17:02:20 UTC
cdk-authorized-ssh-key-remove was doubling the number of newlines every time it was run causing file sizes to grow.

Comment 2 Xiaoli Tian 2012-03-06 10:01:07 UTC
(In reply to comment #1)
> cdk-authorized-ssh-key-remove was doubling the number of newlines every time it
> was run causing file sizes to grow.

Hi,Thomas

For user can not access the authorized_keys files on stage,and QE can not access stage server as well, could not find a better way to verify it, could you please help to verify this on stage,QE will verify this on devenv once there's new build comes.

Thanks

Comment 3 Meng Bo 2012-03-08 09:11:04 UTC
verified on devenv_1654, issue cannot be reproduced.

Since I don't know the exact repro steps, I tried to add and remove ssh keys for many times. And didn't hit this issue.

mark as verified.

Comment 4 Thomas Wiest 2012-03-08 17:52:32 UTC
I think that's reasonable.

Unfortunately we don't have repro steps either, we just noticed the problem in STG and told kraman about it and he fixed it.