Bug 1197301 - Meet "Could not parse PKey: no start line" error when using rhc client with net-ssh 2.9.3.beta1
Summary: Meet "Could not parse PKey: no start line" error when using rhc client with n...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: oc
Version: 2.x
Hardware: Unspecified
OS: Linux
medium
low
Target Milestone: ---
: ---
Assignee: Fabiano Franz
QA Contact: Meng Bo
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-28 06:53 UTC by Meng Bo
Modified: 2015-11-23 21:20 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-23 21:20:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Meng Bo 2015-02-28 06:53:40 UTC
Description of problem:
Clean install the rhc client via gem, it will install the latest net-ssh version 2.9.3.beta1 as dependency.

Run rhc setup or rhc app-deploy with the above combine will meet error "Could not parse PKey: no start line".

Revert the net-ssh to 2.9.2 will resolve the issue.

Version-Release number of selected component (if applicable):
rhc-1.35.1
STG (devenv-stage_1138)

How reproducible:
always

Steps to Reproduce:
1. Setup clean fedora 21 env with ruby 2.1 installed
2. Install the latest rhc gem client with default dependencies
3. Use rhc client

Actual results:
Meet "Could not parse PKey: no start line" error in some commands, like rhc setup, rhc deploy-app

[root@bmeng-fedora21 zend61]# rhc deploy-app -a zend61 --ref master 
Deployment of git ref 'master' in progress for application zend61 ...
Error deploying git ref. You can try to deploy manually with:
ssh -t 54f158296af18ebf320002d3.rhcloud.com 'gear deploy master'
Could not parse PKey: no start line
Usage: rhc app-deploy <ref> --app NAME [--namespace NAME]
Pass '--help' to see the full list of options


Expected results:
Should not have such issue.

Additional info:
The issue should be caused by the net-ssh 2.9.3.beta1

Comment 1 Jessica Forrester 2015-03-02 19:18:56 UTC
Locking the net-ssh gem verison to < 2.9.3

Fix in https://github.com/openshift/rhc/pull/675

Comment 2 openshift-github-bot 2015-03-02 20:08:02 UTC
Commit pushed to master at https://github.com/openshift/rhc

https://github.com/openshift/rhc/commit/3166f5a8f3f1be913081befc860b1d40ab414711
Bug 1197301 - need to lock net-ssh and commander versions

Comment 3 Meng Bo 2015-03-04 05:52:23 UTC
Hi Jessica,

I have tried to build the rhc from the latest git repo via "gem build rhc.gemspec". 

And when I clean install the generated rhc gem, it will still use the beta version net-ssh.

Anything wrong in my steps?

Thanks.

Comment 4 Jessica Forrester 2015-03-06 18:59:23 UTC
missed updating the gemspec fixed in https://github.com/openshift/rhc/pull/676

Comment 5 openshift-github-bot 2015-03-06 20:04:43 UTC
Commit pushed to master at https://github.com/openshift/rhc

https://github.com/openshift/rhc/commit/3a0f9f12767cab60bbaf06be1c39620f933202ad
Bug 1197301 - need to update gemspec to lock net-ssh and commander versions

Comment 6 Meng Bo 2015-03-09 09:05:46 UTC
Checked with the latest rhc which built from the rhc repo, the issue still there. rhc gem can be installed with the net-ssh-2.9.3.beta1 installed. And the net-ssh was installed as dependency for net-ssh-multi.

Thought the 2.9.3.beta1 is also less than 2.9.3, to make it excludes the beta version, maybe need a '<= 2.9.2' to work here.

Comment 7 Fabiano Franz 2015-10-02 22:56:09 UTC
Should be fixed in https://github.com/openshift/rhc/pull/703

Comment 8 openshift-github-bot 2015-10-02 23:46:29 UTC
Commit pushed to master at https://github.com/openshift/rhc

https://github.com/openshift/rhc/commit/0f99298f939ef303485e95aaf41a331b30f51831
Bug 1197301 - fixes net-ssh version higher bounds

Comment 9 Meng Bo 2015-10-15 07:40:29 UTC
Issue has been fixed with rhc version 1.38.2

net-ssh-2.9.2 will be installed with rhc.

Fetching: net-ssh-2.9.2.gem (100%)
Successfully installed net-ssh-2.9.2
Fetching: net-scp-1.2.1.gem (100%)
Successfully installed net-scp-1.2.1
Fetching: net-ssh-gateway-1.2.0.gem (100%)
Successfully installed net-ssh-gateway-1.2.0
Fetching: net-ssh-multi-1.2.1.gem (100%)
Successfully installed net-ssh-multi-1.2.1
Fetching: archive-tar-minitar-0.5.2.gem (100%)
Successfully installed archive-tar-minitar-0.5.2
Fetching: highline-1.6.21.gem (100%)
Successfully installed highline-1.6.21
Fetching: commander-4.2.1.gem (100%)
Successfully installed commander-4.2.1
Fetching: httpclient-2.6.0.1.gem (100%)
Successfully installed httpclient-2.6.0.1
Fetching: open4-1.3.4.gem (100%)
Successfully installed open4-1.3.4
===========================================================================

If this is your first time installing the RHC tools, please run 'rhc setup'

===========================================================================
Successfully installed rhc-1.38.2
Parsing documentation for net-ssh-2.9.2
Installing ri documentation for net-ssh-2.9.2
Parsing documentation for net-scp-1.2.1
Installing ri documentation for net-scp-1.2.1
Parsing documentation for net-ssh-gateway-1.2.0
Installing ri documentation for net-ssh-gateway-1.2.0
Parsing documentation for net-ssh-multi-1.2.1
Installing ri documentation for net-ssh-multi-1.2.1
Parsing documentation for archive-tar-minitar-0.5.2
Installing ri documentation for archive-tar-minitar-0.5.2
Parsing documentation for highline-1.6.21
Installing ri documentation for highline-1.6.21
Parsing documentation for commander-4.2.1
Installing ri documentation for commander-4.2.1
Parsing documentation for httpclient-2.6.0.1
Installing ri documentation for httpclient-2.6.0.1
Parsing documentation for open4-1.3.4
Installing ri documentation for open4-1.3.4
Parsing documentation for rhc-1.38.2
Installing ri documentation for rhc-1.38.2
Done installing documentation for net-ssh, net-scp, net-ssh-gateway, net-ssh-multi, archive-tar-minitar, highline, commander, httpclient, open4, rhc after 6 seconds
10 gems installed


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