Bug 981774 - PostgreSQL cartridge should not receive 'control force-reload' message
Summary: PostgreSQL cartridge should not receive 'control force-reload' message
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Mrunal Patel
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks: 981780
TreeView+ depends on / blocked
 
Reported: 2013-07-05 19:08 UTC by Hiro Asari
Modified: 2015-05-14 23:23 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-09 20:42:13 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Hiro Asari 2013-07-05 19:08:08 UTC
Description of problem:
When a postgresql cartridge is sent 'reload' from CLI, the actual message sent is 'force-reload', not 'reload'

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

How reproducible:
Always

Steps to Reproduce:
1. create an app with postgres cart 
2. rhc cartridge reload postgresql-9.2 -a APP
3. Check platform-trace.log; it has log such as:

July 05 14:17:30 INFO oo_spawn running /sbin/runuser -s /bin/sh e03003d2e58b11e290f712313d1c8819 -c "exec /usr/bin/runcon 'unconfined_u:system_r:openshift_t:s0:c0,c501' /bin/sh -
c \"set -e; /var/lib/openshift/e03003d2e58b11e290f712313d1c8819/postgresql/bin/control force-reload\"": {:unsetenv_others=>true, :close_others=>true, :in=>"/dev/null", :chdir=>"/
var/lib/openshift/e03003d2e58b11e290f712313d1c8819/postgresql", :out=>#<IO:fd 12>, :err=>#<IO:fd 10>}


Actual results:


Expected results:


Additional info:

Comment 1 Hiro Asari 2013-07-05 19:19:46 UTC
Confirmed with jbossas-7.0.

Comment 2 Mrunal Patel 2013-07-08 23:39:50 UTC
I was unable to reproduce this:

July 08 19:38:03 INFO oo_spawn running cgset -r cpu.cfs_quota_us=30000 /openshift/5ed433dce82711e2b7bc12313d1b85b0: {:unsetenv_others=>false, :close_others=>true, :in=>"/dev/null", :out=>#<IO:fd 12>, :err=>#<IO:fd 10>}
July 08 19:38:58 INFO oo_spawn running /sbin/runuser -s /bin/sh 460152077254854726123520 -c "exec /usr/bin/runcon 'unconfined_u:system_r:openshift_t:s0:c0,c502' /bin/sh -c \"set -e; /var/lib/openshift/460152077254854726123520/postgresql/bin/control reload\"": {:unsetenv_others=>true, :close_others=>true, :in=>"/dev/null", :chdir=>"/var/lib/openshift/460152077254854726123520/postgresql", :out=>#<IO:fd 12>, :err=>#<IO:fd 10>}
July 08 19:38:58 INFO oo_spawn buffer(11/) server signaled


What was the status of the jboss app? I will try this again with jboss once
jboss related fixes are in.

Comment 3 Hiro Asari 2013-07-09 01:56:46 UTC
The postgresql cart should be down. I thought I'd verified the steps, but perhaps I missed it.

Comment 4 Mrunal Patel 2013-07-09 20:30:17 UTC
I wasn't able to reproduce the issue with jbossas-7 w/ postgresql-9.2, either.

Comment 5 Hiro Asari 2013-07-09 20:42:13 UTC
I cannot reproduce this, either. Must have crossed the mental wires. Closing.


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