Red Hat Bugzilla – Bug 949260
resource_limits.template should be replaced as resource_limits.conf and mark it as config file in rpm spec file.
Last modified: 2017-03-08 12:34 EST
Description of problem: According to rubygem-openshift-origin-node.spec, <--snip--> # copy this file only if it doesn't already exist if ! [ -f /etc/openshift/resource_limits.conf ]; then cp -f /etc/openshift/resource_limits.template /etc/openshift/resource_limits.conf fi <--snip--> Refer to BZ#949072, once resource_limits.template is updated in latest package, yum update will not update resource_limits.conf itself. And resource_limits.template is not necessary to exist, maybe this file could be renamed to resource_limits.conf, and mark this file as a config file in spec file, so when yum update and run oo-diagnostic, could notice user some conf file has been updated. Version-Release number of selected component (if applicable): rubygem-openshift-origin-node-1.0.13-1.el6op.noarch How reproducible: Always Steps to Reproduce: 1.Install a old rubygem-openshift-origin-node on a fresh system, resource_limits.conf is copied there. 2.Update a new rubygem-openshift-origin-node package, e.g: some values in resource_limits.template are updated. 3. Actual results: resource_limits.conf is not updated, user can not notice some update already happened. Expected results: No resource_limits.template is installed, only resource_limits.conf is installed, once update happened, either of two choice could be met: 1. new conf file is applied, old conf file is saved to .rpmsave 2. old conf file is still used, new conf file is saved to .rpmnew Then run oo-dignostic will warn user resource_limits config file is changed, need user to check update and merge them. Additional info:
Fixed with commit e8dd0794fcbb1e6b3e4fbe470bee7f69655c7d38 Built in rubygem-openshift-origin-node-1.0.14-1
Verified this bug with rubygem-openshift-origin-node-1.0.14-1, and PASS. # yum update rubygem-openshift-origin-node-1.0.14-1.el6op.noarch.rpm # ll /etc/openshift/ total 184 drwxr-xr-x. 2 root root 4096 Mar 24 22:44 cartridges -rw-r--r--. 1 root root 2564 Jan 14 21:44 node.conf -rw-r--r--. 1 root root 1986 Mar 27 04:39 port-proxy.cfg -rw-r--r--. 1 root root 2551 Apr 11 08:36 resource_limits.conf # rpm -qf /etc/openshift/resource_limits.conf rubygem-openshift-origin-node-1.0.14-1.el6op.noarch # rpm -qc rubygem-openshift-origin-node-1.0.14-1.el6op /etc/httpd/conf.d/000001_openshift_origin_node.conf /etc/httpd/conf.d/000001_openshift_origin_node_servername.conf /etc/openshift/node.conf /etc/openshift/resource_limits.conf
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHEA-2013-1032.html