Bug 1034702

Summary: 09-node-openshift-iptables-port-proxy-conf throw error during update node from ose-1.2 to ose-2.0
Product: OpenShift Container Platform Reporter: Johnny Liu <jialiu>
Component: Cluster Version OperatorAssignee: Jason DeTiberus <jdetiber>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 2.0.0CC: bleanhar, jdetiber, libra-onpremise-devel
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openshift-enterprise-upgrade-node-2.0.0b-1.git.16.a0bff65.el6op Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-04 14:41:46 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 Johnny Liu 2013-11-26 11:08:38 UTC
Description of problem:
On node, run the following command:
# ose-upgrade all
<--snip-->
INFO: running /opt/rh/ruby193/root/usr/local/share/ruby/site_ruby/ose-upgrade/node/upgrades/2/conf/09-node-openshift-iptables-port-proxy-conf
ERROR: run_script
/opt/rh/ruby193/root/usr/local/share/ruby/site_ruby/ose-upgrade/node/upgrades/2/conf/09-node-openshift-iptables-port-proxy-conf had errors:
--BEGIN OUTPUT--
+ conf=/etc/sysctl.conf
++ date +%Y-%m-%d-%H:%M:%S
+ command cp -f /etc/sysctl.conf /etc/sysctl.conf.ugsave.2013-11-26-06:04:07
+ cp -f /etc/sysctl.conf /etc/sysctl.conf.ugsave.2013-11-26-06:04:07
+ grep -q 'net\.ipv4\.ip_forward\s*=\s*1\>' /etc/sysctl.conf
+ cat
+ grep -q 'net\.ipv4\.conf\.all\.route_localnet=\s*1\>' /etc/sysctl.conf
+ cat
+ chkconfig openshift-iptables-port-proxy on
+ chkconfig openshift-port-proxy off
error reading information on service openshift-port-proxy: No such file or directory

--END /opt/rh/ruby193/root/usr/local/share/ruby/site_ruby/ose-upgrade/node/upgrades/2/conf/09-node-openshift-iptables-port-proxy-conf OUTPUT--
INFO: Setting node step 'conf' status to FAILED


Version-Release number of selected component (if applicable):
openshift-enterprise-release-2.0.0a-1.git.7.8f100ae.el6op.noarch
openshift-enterprise-upgrade-node-2.0.0a-1.git.7.8f100ae.el6op.noarch

How reproducible:
Always

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Jason DeTiberus 2013-11-27 01:16:22 UTC
Fix applied in this PR: https://github.com/openshift/enterprise/pull/49

The following etherpad has instructions for the latest build: http://etherpad.corp.redhat.com/ose-2-0-upgrade-2013-11-26

Comment 3 Johnny Liu 2013-11-27 06:10:40 UTC
Verified this bug with openshift-enterprise-upgrade-node-2.0.0b-1.git.16.a0bff65.el6op.noarch and openshift-enterprise-release-2.0.0b-1.git.16.a0bff65.el6op.noarch, and PASS.
ose-upgrade conf
<--snip-->
+ chkconfig openshift-iptables-port-proxy on
+ iptables -L rhc-app-comm
+ iptables -N rhc-app-comm
+ iptables -I INPUT 4 -j rhc-app-comm
+ service iptables save
iptables: Saving firewall rules to /etc/sysconfig/iptables:[  OK  ]
<--snip-->
--END /usr/lib/ruby/site_ruby/1.8/ose-upgrade/node/upgrades/2/conf/09-node-openshift-iptables-port-proxy-conf OUTPUT--
INFO: Setting node step 'conf' status to COMPLETE
INFO: Next step is 'maintenance_mode