Bug 1086807 - Incorrect PostgreSQL Version in Cron on Scalable Apps
Summary: Incorrect PostgreSQL Version in Cron on Scalable Apps
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Image
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Michal Fojtik
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks: 1105107
TreeView+ depends on / blocked
 
Reported: 2014-04-11 14:33 UTC by Chris Ryan
Modified: 2015-05-15 00:41 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1105107 (view as bug list)
Environment:
Last Closed: 2014-07-15 10:28:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Chris Ryan 2014-04-11 14:33:04 UTC
Description of problem:
When checking the version number of postgresql via cron, an incorrect version is shown for scalable apps. This does not appear to affect non-scalable apps, and works correctly there.

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


How reproducible:
Always

Steps to Reproduce:
1. Create a scalable application
rhc create-app testapp1 php-5.4 -s
2. Embed postgresql-9.2 and cron-1.4
rhc cartridge add cron-1.4 -a testapp1
rhc cartridge add postgresql-9.2 -a testapp1
3. Create a script to run in cron
cd testapp1
touch .openshift/cron/minutely/version.sh
echo "psql --version" >> .openshift/cron/minutely/version.sh
git add . && git commit -m "Test." && git push
4. Check the cron log after a few minutes
rhc ssh testapp1
cat $OPENSHIFT_LOG_DIR/cron_minutely.log


Actual results:
the log shows:
psql (PostgreSQL) 8.4.20

Expected results:
psql (PostgreSQL) 9.2

Additional info:
This may be related to: https://bugzilla.redhat.com/show_bug.cgi?id=1076626

Comment 1 Ma xiaoqiang 2014-04-22 06:26:37 UTC
This issue exists on puddle [2.1/2014-04-17.2]

Comment 2 Michal Fojtik 2014-06-04 08:30:29 UTC
https://github.com/openshift/origin-server/pull/5256

Comment 3 openshift-github-bot 2014-06-04 22:36:17 UTC
Commit pushed to master at https://github.com/openshift/origin-server

https://github.com/openshift/origin-server/commit/603f44698df3a65d40be5d529611617edbbfd08e
Bug 1086807 - Advertise $PATH for scaled SCL based cartridges


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