Description of problem: The node web proxy's configuration file, /etc/openshift/web-proxy-config.json, is overwritten upon updating the rpm. The configuration file is not marked as a configuration file in the openshift-origin-node-proxy rpm spec file.
This bug was resolved upstream in the following PR: https://github.com/openshift/origin-server/pull/6349
The web-proxy-config.json was still overwritten. the web-proxy-config.json was pull in by openshift-origin-node-proxy. while this bug fixed in openshift-origin-node-util-1.38.6.1-1.el6op.
There isn't web-proxy-config.json.rpmnew file after upgrade.
This is working for me. You can see in the yum output that upgrading after modifying the web-proxy-config.json file results in an rpmnew file being created: -------------------------------------------------------------- # yum localinstall /tmp/openshift-origin-node-proxy-1.26.2.1-1.el6op.noarch.rpm Loaded plugins: priorities, security Setting up Local Package Process Examining /tmp/openshift-origin-node-proxy-1.26.2.1-1.el6op.noarch.rpm: openshift-origin-node-proxy-1.26.2.1-1.el6op.noarch Marking /tmp/openshift-origin-node-proxy-1.26.2.1-1.el6op.noarch.rpm as an update to openshift-origin-node-proxy-1.26.1-1.git.1103.c6cf7cf.el6.noarch --> Running transaction check ---> Package openshift-origin-node-proxy.noarch 0:1.26.1-1.git.1103.c6cf7cf.el6 will be updated ---> Package openshift-origin-node-proxy.noarch 0:1.26.2.1-1.el6op will be an update --> Finished Dependency Resolution Dependencies Resolved ======================================================================================================================= Package Arch Version Repository Size ======================================================================================================================= Updating: openshift-origin-node-proxy noarch 1.26.2.1-1.el6op /openshift-origin-node-proxy-1.26.2.1-1.el6op.noarch 100 k Transaction Summary ======================================================================================================================= Upgrade 1 Package(s) Total size: 100 k Is this ok [y/N]: y Downloading Packages: Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Warning: RPMDB altered outside of yum. Updating : openshift-origin-node-proxy-1.26.2.1-1.el6op.noarch 1/2 warning: /etc/openshift/web-proxy-config.json created as /etc/openshift/web-proxy-config.json.rpmnew [ OK ] node-web-proxy: [ OK ] Starting node-web-proxy: [ OK ] Cleanup : openshift-origin-node-proxy-1.26.1-1.git.1103.c6cf7cf.el6.noarch 2/2 Verifying : openshift-origin-node-proxy-1.26.2.1-1.el6op.noarch 1/2 Verifying : openshift-origin-node-proxy-1.26.1-1.git.1103.c6cf7cf.el6.noarch 2/2 Updated: openshift-origin-node-proxy.noarch 0:1.26.2.1-1.el6op Complete! -------------------------------------------------------------- # ls /etc/openshift | grep web-proxy web-proxy-config.json web-proxy-config.json.rpmnew Could you re-test please? If this fails again, please provide the old version, the new version, and the modification you made to the web-proxy-config.json so we can investigate.
It work well now. ---> Package openshift-origin-node-proxy.noarch 0:1.25.1.1-1.el6op will be updated ---> Package openshift-origin-node-proxy.noarch 0:1.26.2.1-1.el6op will be an update ls -1 /etc/openshift/web-proxy-config.json* /etc/openshift/web-proxy-config.json /etc/openshift/web-proxy-config.json.rpmnew
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. https://rhn.redhat.com/errata/RHSA-2016-0489.html