Bug 1038533 - Fail to git push for ruby-1.8 app after upgrade ose from 1.2 to 2.0
Summary: Fail to git push for ruby-1.8 app after upgrade ose from 1.2 to 2.0
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Cluster Version Operator
Version: 2.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Jason DeTiberus
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-05 09:50 UTC by Johnny Liu
Modified: 2017-03-08 17:35 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-17 16:20:38 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Johnny Liu 2013-12-05 09:50:52 UTC
Description of problem:
After upgrade ose from 1.2 to 2.0, ruby-1.8 app fail to do git push with the following error:
remote: /var/lib/openshift/529812ecf16d95099e0001fb/ruby//lib/util: line 36: /var/lib/openshift/529812ecf16d95099e0001fb/ruby//env/OPENSHIFT_RUBY_PATH_ELEMENT: Permission denied

After upgrade, create a new ruby-1.8 app, OPENSHIFT_RUBY_PATH_ELEMENT is generated in gear dir, so obviously ose-upgrade does not generate this ENV file during upgrade process.

Version-Release number of selected component (if applicable):
http://etherpad.corp.redhat.com/ose-2-0-upgrade-2013-12-04

How reproducible:
Always

Steps to Reproduce:
1. Setup ose-1.2 env
2. Create ruby-1.8 app on the node.
3. Upgrade env from 1.2 to 2.0
4. Git push for this app

Actual results:
Fail to git push.
$ git push
remote: Waiting for stop to finish
remote: Syncing git content to other proxy gears
remote: Saving away previously bundled RubyGems
remote: Building git ref 'master', commit 2d9d411
remote: /var/lib/openshift/529812ecf16d95099e0001fb/ruby//lib/util: line 36: /var/lib/openshift/529812ecf16d95099e0001fb/ruby//env/OPENSHIFT_RUBY_PATH_ELEMENT: Permission denied
remote: An error occurred executing 'gear postreceive' (exit code: 1)
remote: Error message: Failed to execute: 'control update-configuration' for /var/lib/openshift/529812ecf16d95099e0001fb/ruby
remote: 
remote: For more details about the problem, try running the command again with the '--trace' option.
To ssh://529812ecf16d95099e0001fb.com.cn/~/git/ruby18scal.git/
   9609dc1..2d9d411  master -> master


Expected results:
Git push succeed.

Additional info:
ruby-1.9 is working well.

Comment 2 Jason DeTiberus 2013-12-06 18:55:20 UTC
Fixed as of the December 5th pad (http://etherpad.corp.redhat.com/ose-2-0-upgrade-2013-12-05)

https://github.com/openshift/enterprise/pull/55

Comment 3 Johnny Liu 2013-12-09 07:03:05 UTC
Verified this bug following http://etherpad.corp.redhat.com/ose-2-0-upgrade-2013-12-05, and PASS.


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