Bug 841405 - Cloud9 integration: getting "Permission denied" errors on Cloud9 console when trying to add remote OpenShift git repo
Summary: Cloud9 integration: getting "Permission denied" errors on Cloud9 console whe...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: OKD
Classification: Red Hat
Component: Website
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: ---
Assignee: Mrunal Patel
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-18 21:58 UTC by Nam Duong
Modified: 2015-05-15 01:12 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-02-14 18:22:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Nam Duong 2012-07-18 21:58:44 UTC
Description of problem:
This was reported as a comment on our Blog:  https://openshift.redhat.com/community/blogs/look-ma-no-hands-developing-for-the-cloud-in-the-cloud-with-cloud9-ide

Steps to reproduce:
Follow the blog to step 6

Expected:  we should be able to add the remote OpenShift git repo to our Cloud9 workspace
Actual:  We get a permission denied

NOTE that I also tried removing/re-adding the Cloud9 ssh key to my account (also validated that I'm on the correct OpenShift account). 


Cloud9 also has a bug open: https://github.com/ajaxorg/cloud9/issues/1763

I suggest combining efforts.

Comment 1 Nam Duong 2012-07-20 00:47:32 UTC
This is hitting people.  Take a look at some of the comments on that blog.

Comment 2 Ram Ranganathan 2012-07-20 21:39:38 UTC
Added workaround to the github issue: 

Got a workaround for this -- looks to be some parsing issue on the command interpreter -- since running a git command gives a permission denied error but putting it into a script worked. 
Here's what I did:
In the cloud9 ide created a file called addrepo.py and added these commands into the file:
 
        import os
        os.system("git remote add openshift ssh://e318b598bee247698df28a49315e0fee.com:~/git/pytest.git")
        os.system("git remote -v")

And then just ran `python addrepo.py`

And it worked just dandy (you could use an equivalent ruby/js(with node)/php script as well).

Comment 3 Mrunal Patel 2012-07-20 21:42:38 UTC
Lowering severity since we have a workaround. The fix will have to come from 
c9.

Comment 4 Mrunal Patel 2013-02-14 18:22:17 UTC
Closing since issue has been closed upstream - https://github.com/ajaxorg/cloud9/issues/1763#issuecomment-10264312


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