Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 972311 - [upgrade] fail to start jbosseap gears when migrating due to tmp ployinstanciation is not enalbed after upgrade.
[upgrade] fail to start jbosseap gears when migrating due to tmp ployinstanci...
Product: OpenShift Container Platform
Classification: Red Hat
Component: Pod (Show other bugs)
Unspecified Unspecified
medium Severity medium
: ---
: ---
Assigned To: Jason DeTiberus
libra bugs
: Reopened
Depends On:
  Show dependency treegraph
Reported: 2013-06-08 06:25 EDT by Johnny Liu
Modified: 2017-03-08 12 EST (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-06-28 11:46:30 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Johnny Liu 2013-06-08 06:25:19 EDT
Description of problem:
According to https://engineering.redhat.com/trac/Libra/wiki/OSOP/ScriptedInstalls, after installed ose-1.1 env, tmp polyinstanciation is missing.

Should add the following line into configure_pam_on_node function of installation script.

  # if the user does not exist on the system an error will show up in
  # /var/log/secure.
  for user in gdm activemq mongodb; do
      id -u "$user" >/dev/null 2>&1
      if [ X"$?" == X"0" ]; then
  echo "/tmp        \$HOME/.tmp/      user:iscript=/usr/sbin/oo-namespace-init ${user_list}" > /etc/security/namespace.d/tmp.conf
  echo "/dev/shm  tmpfs  tmpfs:mntopts=size=5M:iscript=/usr/sbin/oo-namespace-init ${user_list}" > /etc/security/namespace.d/shm.conf

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

How reproducible:

Steps to Reproduce:

Actual results:

Expected results:

Additional info:
Comment 2 Johnny Liu 2013-06-08 06:31:45 EDT
Found this issue when doing upgrade testing to prepare testing data.
Comment 3 Brenton Leanhardt 2013-06-10 07:16:56 EDT
I'll investigate this.  Polyinstanciation for 1.1 should have been handled by the pam_openshift package.
Comment 4 Brenton Leanhardt 2013-06-10 07:47:21 EDT
After running the 1.1 installation script against the latest 1.1 puddle I see the following on my system:

rpm -qf /etc/security/namespace.d/tmp.conf 

I verified that this is indeed the latest package currently available in RHN for 1.1.  I'm going to close this.  I've I've misunderstood something please reopen.
Comment 5 Luke Meyer 2013-06-10 09:56:16 EDT
I think Johnny means that the part of the script he pasted is present in the 1.2 openshift.ks but not in the 1.1 version. Which it never has been. I'm guessing something about pam_openshift changed to make that necessary.
Comment 6 Brenton Leanhardt 2013-06-10 09:59:27 EDT
Yes, sorry, I failed to mention that pam_openshift in 1.2 no longer ships the default configuration.
Comment 7 Johnny Liu 2013-06-17 08:20:10 EDT
Sorry for confuse. I did more dig into this issue.

In the 1.1.z build, /etc/security/namespace.d/tmp.conf is indeed installed by pam_openshift, but after upgrade, the old pam_openshift is removed, so /etc/security/namespace.d/tmp.conf is removed, after new pam_openshift is installed, there is no /etc/security/namespace.d/tmp.conf in this packages, need manually create it. So that means after upgrade, tmp polyinstanciation is not enabled. Here is reproduce steps:
1. create two jbosseap applications in 1.1.z env
2. do upgrade process.
3. When migrate jbosseap gears, it throws the following error:
Starting gear with uuid 'bc9bb8d519a74eeeb0781c2f851bcd69' on node 'node.ose11test.com
Start gear failed with an exception: Failed to execute: 'control start' for /var/lib/openshift/bc9bb8d519a74eeeb0781c2f851bcd69/jbosseap
Marking step start_gear complete
Validating gear bc9bb8d519a74eeeb0781c2f851bcd69 post-migration
Pre-migration state: started
Post-migration response code: 503
Comment 8 Jason DeTiberus 2013-06-19 16:45:17 EDT
Comment 9 Johnny Liu 2013-06-21 07:14:12 EDT
Verified this bug with openshift-enterprise-upgrade-node-1.2-1.git.83.a254045.el6op.noarch in 1.2/2013-06-20.5, and PASS.

tmp ployinstanciation is enabled after migration.
Comment 10 Luke Meyer 2013-06-28 11:46:30 EDT
Closing all bugs introduced, fixed, and verified during 1.2 release work (thus never shipped).

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