Bug 823425 - .ssh/config will not be created or updated automatically when creating domain
Summary: .ssh/config will not be created or updated automatically when creating domain
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: oc
Version: 2.x
Hardware: Unspecified
OS: Unspecified
low
high
Target Milestone: ---
: ---
Assignee: John (J5) Palmieri
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-05-21 08:50 UTC by Meng Bo
Modified: 2015-05-15 01:54 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-08 17:59:08 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Meng Bo 2012-05-21 08:50:18 UTC
Description of problem:
'rhc domain create' will not generate .ssh/config file automactically. 

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

How reproducible:
always

Steps to Reproduce:
1.install rhc client
2.create domain for exist user
3.
  
Actual results:
domain create successful but .ssh/config file has not been created automactically.

Expected results:
.ssh/config should be created after domain created.
or 
remove the 'Checking ~/.ssh/config' from the output if the .ssh/config is useless.

Additional info:

[root@localhost ~]# rhc domain create -n bmengint
Password: ******

OpenShift key found at /root/.ssh/id_rsa.  Reusing...
Checking ~/.ssh/config
Creation successful

You may now create an application.

Comment 1 Xiaoli Tian 2012-05-22 02:20:27 UTC
Since before we generate ~/.ssh/libra_id_rsa in default, and the file listed in ~/.ssh/config also has "IdentityFile ~/.ssh/libra_id_rsa", while we  start to use the new client to alter ssh key or alter domain, it will start to use id_rsa in default, but ~/.ssh/config is still using IdentityFile ~/.ssh/libra_id_rsa,  many old users will have problems here if they do not know what changed  or what happened.

Comment 2 John (J5) Palmieri 2012-05-29 18:05:43 UTC
I just did some tests and since ssh defaults to id_rsa even though we have  IdentityFile ~/.ssh/libra_id_rsa in config if you remove that key from your application and add id_rsa.pub you will still be able to download your app using git.

At most this will confuse the user if they go into the ssh directory and don't understand what the extra files are for.  Removing the entries from config would be worse because some of our older users might be using the libra keys on their servers and removing the config will cause it to stop working since they haven't uploaded their id_rsa.pub key yet.

I suggest QE verifies that keeping these files around causes no harm and we lower the priority so this bug does not block this sprint.  I then suggest we write a migration script early next sprint that checks the keys and servers and automates moving the user to using their default keys if their apps are still using the libra key.  It will also allow the user to opt out and we will not touch the config file at all, at which point we assume the user knows what they are doing.

Once you verify the above please switch this back to modified and add a comment.  I will then lower the priority and serverity.

Comment 3 John (J5) Palmieri 2012-05-29 18:25:12 UTC
I have a fix comming down the line that removes all generation or checking for .ssh/config since it is useless now.

Comment 4 John (J5) Palmieri 2012-05-29 19:37:55 UTC
rhc-0.93.12 will have the fix for the first comment.  It removed checking for and generating a .ssh/config file

Comment 5 Meng Bo 2012-05-31 10:56:40 UTC
checked on rhc-0.93.16, the useless messages are removed.

Comment 6 Xiaoli Tian 2012-05-31 11:08:18 UTC
According to comment 5, it's verified.


Note You need to log in before you can comment on or make changes to this bug.