Bug 1030748

Summary: resource_limits.conf.rpmnew file is not generated when update rubygem-openshift-origin-node package.
Product: OpenShift Container Platform Reporter: Ma xiaoqiang <xiama>
Component: ContainersAssignee: Brenton Leanhardt <bleanhar>
Status: CLOSED NOTABUG QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.0.0CC: jialiu, libra-onpremise-devel, xiama, xtian
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-20 00:29:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Ma xiaoqiang 2013-11-15 04:24:39 UTC
Description of problem:
After updating the "rubygem-openshift-origin-node" package, resource_limits.conf.rpmnew file is not generated.

Version-Release number of selected component (if applicable):
puddle[2.0/2013-10-14.3]
rubygem-openshift-origin-node-1.17.4-1.git.0.5f8f113.el6op.noarch.rpm

How reproducible:
always

Steps to Reproduce:
1. Launch old_instance
2. modify the resource configuration file, e.g: change node_profile
# vim resource_limits.conf 
<--snip-->
node_profile=xxxx
<--snip-->
quota_files=80000
# 1GB.  1 block = 1024byte
quota_blocks=2048576
<--snip-->
3. Update packages to latest

Actual results:
resource_limits.conf is not updated, but .rpmnew file is not generated. User can not notice some change if new new config file has some change.

Expected results:
old conf file is still used, new conf file is saved to .rpmnew

Additional info:

Comment 2 Brenton Leanhardt 2013-11-15 22:04:38 UTC
I'm a little confused.  Was the a change in the resource_limits.conf between the previous package and the new package?   It's labeled as a configuration file in the spec so RPM should do the right thing.  If there was no change then an .rpnnew won't be created.

Comment 3 Johnny Liu 2013-11-18 03:09:46 UTC
(In reply to Brenton Leanhardt from comment #2)
> I'm a little confused.  Was the a change in the resource_limits.conf between
> the previous package and the new package?   It's labeled as a configuration
> file in the spec so RPM should do the right thing.  If there was no change
> then an .rpnnew won't be created.

Yes, user did a change in the resource_limits.conf installed by previous package, then yum update the package to the latest version. The new package does not create .rpmnew file.