Bug 1033551 - SyntaxError is seen when run ose-upgrade without any option on broker.
Summary: SyntaxError is seen when run ose-upgrade without any option on broker.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Cluster Version Operator
Version: 2.0.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Jason DeTiberus
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-22 11:16 UTC by Johnny Liu
Modified: 2014-02-04 14:41 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-04 14:41:30 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Johnny Liu 2013-11-22 11:16:56 UTC
Description of problem:
SyntaxError is seen when run ose-upgrade without any option on broker.

Version-Release number of selected component (if applicable):
openshift-enterprise-release-2.0.0-2.git.4.f54bb4f.el6op.noarch
openshift-enterprise-upgrade-broker-2.0.0-2.git.4.f54bb4f.el6op.noarch

How reproducible:
Always

Steps to Reproduce:
1. Setup ose-1.2 env
2. Install openshift upgrade package
# yum install http://download.devel.redhat.com/brewroot/work/tasks/7537/6627537/openshift-enterprise-release-2.0.0-2.git.4.f54bb4f.el6op.noarch.rpm http://download.devel.redhat.com/brewroot/work/tasks/7537/6627537/openshift-enterprise-upgrade-broker-2.0.0-2.git.4.f54bb4f.el6op.noarch.rpm 
3. Run ose-upgrade without any option

Actual results:
# ose-upgrade 
INFO: Upgrade number 2 to version 2.0 is available to run.
INFO: OpenShift broker installed.
/opt/rh/ruby193/root/usr/local/share/ruby/site_ruby/ose-upgrade/finder.rb:15:in `load': /opt/rh/ruby193/root/usr/local/share/ruby/site_ruby/ose-upgrade/broker/upgrades/2/upgrader.rb:17: syntax error, unexpected tQWORDS_BEG, expecting ':' (SyntaxError)
          %w[ pre outage rpms conf maintena...
              ^
	from /opt/rh/ruby193/root/usr/local/share/ruby/site_ruby/ose-upgrade/finder.rb:15:in `find_upgrader'
	from /opt/rh/ruby193/root/usr/local/share/ruby/site_ruby/ose-upgrade/main.rb:234:in `try_upgrader'
	from /opt/rh/ruby193/root/usr/local/share/ruby/site_ruby/ose-upgrade/main.rb:249:in `load_upgrader'
	from /opt/rh/ruby193/root/usr/local/share/ruby/site_ruby/ose-upgrade/main.rb:57:in `initialize'
	from /usr/bin/ose-upgrade:63:in `new'
	from /usr/bin/ose-upgrade:63:in `<main>'


Expected results:
No error is seen, and prompt user the upgrade order.

Additional info:
This issue does NOT occurs on node.
# ose-upgrade 
INFO: Upgrade number 2 to version 2.0 is available to run.
INFO: OpenShift node installed.
Current upgrade is number 2 to version 2.0.
Step sequence:
  begin pre outage rpms conf maintenance_mode end_maintenance_mode
Next step is: begin

Comment 2 Jason DeTiberus 2013-11-22 22:05:12 UTC
This has been fixed in the latest build (2.0.0a-1.git.3.908bd88.el6op)

Comment 3 Johnny Liu 2013-11-26 10:59:33 UTC
Verified this bug with openshift-enterprise-release-2.0.0a-1.git.7.8f100ae.el6op.noarch and openshift-enterprise-upgrade-broker-2.0.0a-1.git.7.8f100ae.el6op.noarch and PASS.

# ose-upgrade 
INFO: OpenShift broker installed.
Upgrade number 2 to version 2.0 is complete.


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