Bug 785518 - "Primary SSH key" info from rhc-domain-info is not updated after alter ssh key via rhc-create-domain
Summary: "Primary SSH key" info from rhc-domain-info is not updated after alter ssh ke...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Containers
Version: 1.x
Hardware: All
OS: All
medium
medium
Target Milestone: ---
: ---
Assignee: Dan McPherson
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-01-29 09:59 UTC by Linqing Lu
Modified: 2013-04-30 22:46 UTC (History)
3 users (show)

Fixed In Version: devenv_1567
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-02 23:55:59 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Linqing Lu 2012-01-29 09:59:53 UTC
Description of problem:


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


How reproducible:


Steps to Reproduce:
1. create a domain
2. regenerate a new pair of ssh keys
3. alter ssh key via `rhc-create-domain -a`
4. check "Primary SSH key" from `rhc-domain-info -i`, and compare to ~/.ssh/libra_id_rsa.pub
  
Actual results:
the keys are not the same, "Primary SSH key" still shows the old one.

Expected results:
the keys should be the same

Additional info:
[root@intel-q8200novt-8-6 test]# cat ~/.ssh/libra_id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDQD3ZvsVH15qqsMjReQ81dG4V+2SrLwJj+Nx8ejVjTJx9zpU5VoI64wiKoXt34/JsRHWFG+H2bDOlx9tXLrUKGdSmfE80HrW4DS+teHmZdsVTSWj0yKa899KF63c4CS5Q4TBJvC6wfInp//kIxrxuQdclFt7hM5+TmjfSQ0JLSRtpBlb575b1lqlMgzPgvHLQUlBAA3R8N7cDlz0iCmNFB1AiBnm9KNPANqGzx8rQHRg5R/z8eQLiiDEhXPF9GIXaXIMeIFMEp30ehFvPkoQN+TMNWd8r0cyfzf3DDiSVaPQCQS2od2gSV1s1XBvSCZVi/bqupDw+Aum1cufk2A2aH root.nay.redhat.com
[root@intel-q8200novt-8-6 test]# rhc-domain-info -ipp
Submitting form:
debug: true
rhlogin: lilu+6
Contacting https://ec2-50-17-132-84.compute-1.amazonaws.com
Response from server:
DEBUG:


Exit Code: 0
broker_c: namespacerhloginsshapp_uuiddebugaltercartridgecart_typeactionapp_nameapi
api_c: placeholder
API version:    1.1.2
Broker version: 1.1.1
Submitting form:
action: list-keys
debug: true
rhlogin: lilu+6
Contacting https://ec2-50-17-132-84.compute-1.amazonaws.com
User Info
=========
Namespace: lilu6
  RHLogin: lilu+6
Primary SSH key: AAAAB3NzaC1yc2EAAAADAQABAAABAQDSv44aEPcObZkAN5VI8XHW23b7JL0wBftkPwtXwHF6ppxnvpIhQNyBy5crHWGrigEOGLsJWH7hmo/rfkELuhfpdaGIB582AAJ5Eeug+Fv7yQFQodCafALhh/piXXnJ7xsnFpy6Pz5OVuxC2nRoew8oqSIjKaHTdjzuSPNRviEKLTypcREtnQp7nCCTDm3NFjaM40tDA3/i9m708qViQHv5tqkdyrfLMu5Lq+oJMrzP911aCn3F0GTc+T/cUC/R2ay5wLhv9FT+eTrDSOsMFt9BZYFT+mfSyIJhaGuxB7OUQ3qf4RRMo+0hGINRSLldFtRaZiQUyqw6nKPR460MfgMN
Primary SSH key type: ssh-rsa

Additional SSH keys
===================
Use rhc-ctl-domain for managing additional ssh keys

[root@intel-q8200novt-8-6 test]# rhc-create-domain -a -nlilu6 -pp -d
OpenShift Express key found at /root/.ssh/libra_id_rsa.  Reusing...
Submitting form:
debug: true
rhlogin: lilu+6
Contacting https://ec2-50-17-132-84.compute-1.amazonaws.com
Response from server:
DEBUG:


Exit Code: 0
broker_c: namespacerhloginsshapp_uuiddebugaltercartridgecart_typeactionapp_nameapi
api_c: placeholder
API version:    1.1.2
Broker version: 1.1.1
Submitting form:
namespace: lilu6
key_type: ssh-rsa
debug: true
ssh: AAAAB3NzaC1yc2EAAAADAQABAAABAQDQD3ZvsVH15qqsMjReQ81dG4V+2SrLwJj+Nx8ejVjTJx9zpU5VoI64wiKoXt34/JsRHWFG+H2bDOlx9tXLrUKGdSmfE80HrW4DS+teHmZdsVTSWj0yKa899KF63c4CS5Q4TBJvC6wfInp//kIxrxuQdclFt7hM5+TmjfSQ0JLSRtpBlb575b1lqlMgzPgvHLQUlBAA3R8N7cDlz0iCmNFB1AiBnm9KNPANqGzx8rQHRg5R/z8eQLiiDEhXPF9GIXaXIMeIFMEp30ehFvPkoQN+TMNWd8r0cyfzf3DDiSVaPQCQS2od2gSV1s1XBvSCZVi/bqupDw+Aum1cufk2A2aH
alter: true
rhlogin: lilu+6
Contacting https://ec2-50-17-132-84.compute-1.amazonaws.com
Response from server:
DEBUG:


Exit Code: 0
broker_c: namespacerhloginsshapp_uuiddebugaltercartridgecart_typeactionapp_nameapi
api_c: placeholder
API version:    1.1.2
Broker version: 1.1.1
Checking ~/.ssh/config
Found dev.rhcloud.com in ~/.ssh/config... No need to adjust
Alteration successful.

[root@intel-q8200novt-8-6 test]# rhc-domain-info -ipp
Submitting form:
debug: true
rhlogin: lilu+6
Contacting https://ec2-50-17-132-84.compute-1.amazonaws.com
Response from server:
DEBUG:


Exit Code: 0
broker_c: namespacerhloginsshapp_uuiddebugaltercartridgecart_typeactionapp_nameapi
api_c: placeholder
API version:    1.1.2
Broker version: 1.1.1
Submitting form:
action: list-keys
debug: true
rhlogin: lilu+6
Contacting https://ec2-50-17-132-84.compute-1.amazonaws.com
User Info
=========
Namespace: lilu6
  RHLogin: lilu+6
Primary SSH key: AAAAB3NzaC1yc2EAAAADAQABAAABAQDSv44aEPcObZkAN5VI8XHW23b7JL0wBftkPwtXwHF6ppxnvpIhQNyBy5crHWGrigEOGLsJWH7hmo/rfkELuhfpdaGIB582AAJ5Eeug+Fv7yQFQodCafALhh/piXXnJ7xsnFpy6Pz5OVuxC2nRoew8oqSIjKaHTdjzuSPNRviEKLTypcREtnQp7nCCTDm3NFjaM40tDA3/i9m708qViQHv5tqkdyrfLMu5Lq+oJMrzP911aCn3F0GTc+T/cUC/R2ay5wLhv9FT+eTrDSOsMFt9BZYFT+mfSyIJhaGuxB7OUQ3qf4RRMo+0hGINRSLldFtRaZiQUyqw6nKPR460MfgMN
Primary SSH key type: ssh-rsa

Additional SSH keys
===================
Use rhc-ctl-domain for managing additional ssh keys

Comment 1 Meng Bo 2012-01-30 08:43:39 UTC
verified with devenv_1567,
bug has been fixed.

Comment 2 Mrunal Patel 2012-02-02 23:55:59 UTC
Closing verified bugs.


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