Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1357217

Summary: [upgrade] Upgrade Step migrate_foreman fails with syntax error
Product: Red Hat Satellite Reporter: Mahesh Taru <mtaru>
Component: UpgradesAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2.0CC: bbuckingham, sghai, xdmoon
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-19 14:38:38 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:
Embargoed:

Description Mahesh Taru 2016-07-16 18:50:43 UTC
Description of problem:
Trying to upgrade satellite 6.1.9 to 6.2 beta but it fails with syntax error at Upgrade Step: migrate_foreman.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Upgrade satellite to version 6.1.9
2. Disable 6.1 repo and try to upgrade to 6.2
3. Upgrade fails

Actual results:
Upgrade Step: migrate_foreman...
/usr/share/ruby/erb.rb:849:in `eval': (erb):3: syntax error, unexpected keyword_for, expecting ')' (SyntaxError)
...fined method `request_uuid' for #<Audited::Adapters::ActiveR...
...                               ^
(erb):4: unknown regexp options - rh
(erb):4: syntax error, unexpected '/', expecting :: or '[' or '.'
/opt/rh/rh-ror41/root/usr/share/gems/...
        ^
(erb):4: no .<digit> floating literal anymore; put 0 before dot
...hare/gems/gems/activemodel-4.1.5/lib/active_model/attribute_...
...                               ^
(erb):4: syntax error, unexpected tINTEGER, expecting '('
...are/gems/gems/activemodel-4.1.5/lib/active_model/attribute_m...
...                               ^
(erb):4: syntax error, unexpected tSYMBEG, expecting ')'
...ive_model/attribute_methods.rb:435:in `method_missing'
...                               ^
(erb):5: syntax error, unexpected tIDENTIFIER, expecting ')'
...thods.rb:208:in `method_missing'
...                               ^
(erb):7: unknown regexp options - rh
(erb):7: no .<digit> floating literal anymore; put 0 before dot
...re/gems/gems/activesupport-4.1.5/lib/active_support/callback...
...                               ^
(erb):7: syntax error, unexpected tINTEGER, expecting '('
...e/gems/gems/activesupport-4.1.5/lib/active_support/callbacks...
...                               ^
(erb):7: syntax error, unexpected tSYMBEG, expecting ')'
...ib/active_support/callbacks.rb:424:in `block in make_lambda'
...                               ^
(erb):8: syntax error, unexpected tIDENTIFIER, expecting ')'
...pport/callbacks.rb:160:in `call'
...                               ^
(erb):10: unknown regexp options - rh
(erb):10: no .<digit> floating literal anymore; put 0 before dot
...re/gems/gems/activesupport-4.1.5/lib/active_support/callback...
...                               ^
(erb):10: syntax error, unexpected tINTEGER, expecting '('
...e/gems/gems/activesupport-4.1.5/lib/active_support/callbacks...
...                               ^
(erb):10: syntax error, unexpected tSYMBEG, expecting ')'
...ib/active_support/callbacks.rb:166:in `call'
...                               ^
(erb):11: syntax error, unexpected tIDENTIFIER, expecting ')'
...port/callbacks.rb:166:in `block in halting'
...                               ^
(erb):13: unknown regexp options - rh
(erb):13: no .<digit> floating literal anymore; put 0 before dot
...re/gems/gems/activesupport-4.1.5/lib/active_support/callback...
...                               ^
(erb):13: syntax error, unexpected tINTEGER, expecting '('
...e/gems/gems/activesupport-4.1.5/lib/active_support/callbacks...
...                               ^
(erb):13: syntax error, unexpected tSYMBEG, expecting ')'
...ib/active_support/callbacks.rb:166:in `block in halting'
...                               ^
(erb):14: syntax error, unexpected tIDENTIFIER, expecting ')'
...upport/callbacks.rb:86:in `call'
...                               ^
(erb):16: unknown regexp options - rh
(erb):16: no .<digit> floating literal anymore; put 0 before dot
...are/gems/gems/activerecord-4.1.5/lib/active_record/callbacks...
...                               ^
(erb):16: syntax error, unexpected tINTEGER, expecting '('
...re/gems/gems/activerecord-4.1.5/lib/active_record/callbacks....
...                               ^
(erb):16: syntax error, unexpected tSYMBEG, expecting ')'
...lib/active_record/callbacks.rb:306:in `_create_record'
...                               ^
(erb):17: syntax error, unexpected tIDENTIFIER, expecting ')'
...estamp.rb:57:in `_create_record'
...                               ^
(erb):19: unknown regexp options - rh
(erb):19: no .<digit> floating literal anymore; put 0 before dot
...are/gems/gems/activerecord-4.1.5/lib/active_record/callbacks...
...                               ^
(erb):19: syntax error, unexpected tINTEGER, expecting '('
...re/gems/gems/activerecord-4.1.5/lib/active_record/callbacks....
...                               ^
(erb):19: syntax error, unexpected tSYMBEG, expecting ')'
...lib/active_record/callbacks.rb:302:in `block in create_or_up...
...                               ^
(erb):20: syntax error, unexpected tIDENTIFIER, expecting ')'
...pport/callbacks.rb:113:in `call'
...                               ^
(erb):22: unknown regexp options - rh
(erb):22: no .<digit> floating literal anymore; put 0 before dot
...re/gems/gems/activesupport-4.1.5/lib/active_support/callback...
...                               ^
(erb):22: syntax error, unexpected tINTEGER, expecting '('
...e/gems/gems/activesupport-4.1.5/lib/active_support/callbacks...
...                               ^
(erb):22: syntax error, unexpected tSYMBEG, expecting ')'
...ib/active_support/callbacks.rb:166:in `block in halting'
...                               ^
(erb):23: syntax error, unexpected tIDENTIFIER, expecting ')'
...pport/callbacks.rb:166:in `call'
...                               ^
(erb):25: unknown regexp options - rh
(erb):25: no .<digit> floating literal anymore; put 0 before dot
...re/gems/gems/activesupport-4.1.5/lib/active_support/callback...
...                               ^
(erb):25: syntax error, unexpected tINTEGER, expecting '('
...e/gems/gems/activesupport-4.1.5/lib/active_support/callbacks...
...                               ^
(erb):25: syntax error, unexpected tSYMBEG, expecting ')'
...ib/active_support/callbacks.rb:166:in `call'
...                               ^
(erb):26: syntax error, unexpected tIDENTIFIER, expecting ')'
...port/callbacks.rb:166:in `block in halting'
...                               ^
(erb):28: unknown regexp options - rh
(erb):28: no .<digit> floating literal anymore; put 0 before dot
...re/gems/gems/activesupport-4.1.5/lib/active_support/callback...
...                               ^
(erb):28: syntax error, unexpected tINTEGER, expecting '('
...e/gems/gems/activesupport-4.1.5/lib/active_support/callbacks...
...                               ^
(erb):28: syntax error, unexpected tSYMBEG, expecting ')'
...ib/active_support/callbacks.rb:166:in `block in halting'
...                               ^
(erb):29: syntax error, unexpected tIDENTIFIER, expecting ')'
...pport/callbacks.rb:166:in `call'
...                               ^
(erb):31: unknown regexp options - rh
(erb):31: no .<digit> floating literal anymore; put 0 before dot
...re/gems/gems/activesupport-4.1.5/lib/active_support/callback...
...                               ^
(erb):31: syntax error, unexpected tINTEGER, expecting '('
...e/gems/gems/activesupport-4.1.5/lib/active_support/callbacks...
...                               ^
(erb):31: syntax error, unexpected tSYMBEG, expecting ')'
...ib/active_support/callbacks.rb:166:in `call'
...                               ^
(erb):32: syntax error, unexpected tIDENTIFIER, expecting ')'
...port/callbacks.rb:166:in `block in halting'
...                               ^
(erb):34: unknown regexp options - rh
(erb):34: no .<digit> floating literal anymore; put 0 before dot
...re/gems/gems/activesupport-4.1.5/lib/active_support/callback...
...                               ^
(erb):34: syntax error, unexpected tINTEGER, expecting '('
...e/gems/gems/activesupport-4.1.5/lib/active_support/callbacks...
...                               ^
(erb):34: syntax error, unexpected tSYMBEG, expecting ')'
...ib/active_support/callbacks.rb:166:in `block in halting'
...                               ^
(erb):35: syntax error, unexpected tIDENTIFIER, expecting ')'
...pport/callbacks.rb:166:in `call'
...                               ^
(erb):37: unknown regexp options - rh
(erb):37: no .<digit> floating literal anymore; put 0 before dot
...re/gems/gems/activesupport-4.1.5/lib/active_support/callback...
...                               ^
(erb):37: syntax error, unexpected tINTEGER, expecting '('
...e/gems/gems/activesupport-4.1.5/lib/active_support/callbacks...
...                               ^
(erb):37: syntax error, unexpected tSYMBEG, expecting ')'
...ib/active_support/callbacks.rb:166:in `call'
...                               ^
(erb):38: syntax error, unexpected tIDENTIFIER, expecting ')'
...port/callbacks.rb:166:in `block in halting'
...                               ^
(erb):40: unknown regexp options - rh
(erb):40: no .<digit> floating literal anymore; put 0 before dot
...re/gems/gems/activesupport-4.1.5/lib/active_support/callback...
...                               ^
(erb):40: syntax error, unexpected tINTEGER, expecting '('
...e/gems/gems/activesupport-4.1.5/lib/active_support/callbacks...
...                               ^
(erb):40: syntax error, unexpected tSYMBEG, expecting ')'
...ib/active_support/callbacks.rb:166:in `block in halting'
...                               ^
(erb):41: syntax error, unexpected tIDENTIFIER, expecting ')'
...pport/callbacks.rb:166:in `call'
...                               ^
(erb):43: unknown regexp options - rh
(erb):43: no .<digit> floating literal anymore; put 0 before dot
...re/gems/gems/activesupport-4.1.5/lib/active_support/callback...
...                               ^
(erb):43: syntax error, unexpected tINTEGER, expecting '('
...e/gems/gems/activesupport-4.1.5/lib/active_support/callbacks...
...                               ^
(erb):43: syntax error, unexpected tSYMBEG, expecting ')'
...ib/active_support/callbacks.rb:166:in `call'
...                               ^
(erb):44: syntax error, unexpected tIDENTIFIER, expecting ')'
...port/callbacks.rb:166:in `block in halting'
...                               ^
(erb):46: unknown regexp options - rh
(erb):46: no .<digit> floating literal anymore; put 0 before dot
...re/gems/gems/activesupport-4.1.5/lib/active_support/callback...
...                               ^
(erb):46: syntax error, unexpected tINTEGER, expecting '('
...e/gems/gems/activesupport-4.1.5/lib/active_support/callbacks...
...                               ^
(erb):46: syntax error, unexpected tSYMBEG, expecting ')'
...ib/active_support/callbacks.rb:86:in `run_callbacks'
...                               ^
(erb):47: syntax error, unexpected tIDENTIFIER, expecting ')'
...cks.rb:302:in `create_or_update'
...                               ^
(erb):49: unknown regexp options - rh
(erb):49: no .<digit> floating literal anymore; put 0 before dot
...are/gems/gems/activerecord-4.1.5/lib/active_record/validatio...
...                               ^
(erb):49: syntax error, unexpected tINTEGER, expecting '('
...re/gems/gems/activerecord-4.1.5/lib/active_record/validation...
...                               ^
(erb):49: syntax error, unexpected tSYMBEG, expecting ')'
...b/active_record/validations.rb:51:in `save'
...                               ^
(erb):50: syntax error, unexpected tIDENTIFIER, expecting ')'
...te_methods/dirty.rb:21:in `save'
...                               ^
(erb):52: unknown regexp options - rh
(erb):52: no .<digit> floating literal anymore; put 0 before dot
...are/gems/gems/activerecord-4.1.5/lib/active_record/transacti...
...                               ^
(erb):52: syntax error, unexpected tINTEGER, expecting '('
...re/gems/gems/activerecord-4.1.5/lib/active_record/transactio...
...                               ^
(erb):52: syntax error, unexpected tSYMBEG, expecting ')'
.../active_record/transactions.rb:329:in `block in with_transac...
...                               ^
(erb):53: syntax error, unexpected tIDENTIFIER, expecting ')'
...atements.rb:199:in `transaction'
...                               ^
(erb):55: unknown regexp options - rh
(erb):55: no .<digit> floating literal anymore; put 0 before dot
...are/gems/gems/activerecord-4.1.5/lib/active_record/transacti...
...                               ^
(erb):55: syntax error, unexpected tINTEGER, expecting '('
...re/gems/gems/activerecord-4.1.5/lib/active_record/transactio...
...                               ^
(erb):55: syntax error, unexpected tSYMBEG, expecting ')'
.../active_record/transactions.rb:326:in `with_transaction_retu...
...                               ^
(erb):56: syntax error, unexpected tIDENTIFIER, expecting ')'
...d/transactions.rb:268:in `block in save'
...                               ^
(erb):58: unknown regexp options - rh
(erb):58: no .<digit> floating literal anymore; put 0 before dot
...are/gems/gems/activerecord-4.1.5/lib/active_record/transacti...
...                               ^
(erb):58: syntax error, unexpected tINTEGER, expecting '('
...re/gems/gems/activerecord-4.1.5/lib/active_record/transactio...
...                               ^
(erb):58: syntax error, unexpected tSYMBEG, expecting ')'
.../active_record/transactions.rb:267:in `save'
...                               ^
(erb):59: syntax error, unexpected tIDENTIFIER, expecting ')'
...ciation.rb:40:in `insert_record'
...                               ^
(erb):61: unknown regexp options - rh
(erb):61: no .<digit> floating literal anymore; put 0 before dot
...are/gems/gems/activerecord-4.1.5/lib/active_record/associati...
...                               ^
(erb):61: syntax error, unexpected tINTEGER, expecting '('
...re/gems/gems/activerecord-4.1.5/lib/active_record/associatio...
...                               ^
(erb):61: syntax error, unexpected tSYMBEG, expecting ')'
...ions/collection_association.rb:389:in `add_to_target'
...                               ^
(erb):62: syntax error, unexpected tIDENTIFIER, expecting ')'
...ty/associations.rb:48:in `block in create_record'
...                               ^
(erb):64: unknown regexp options - rh
(erb):64: no .<digit> floating literal anymore; put 0 before dot
...are/gems/gems/activerecord-4.1.5/lib/active_record/connectio...
...                               ^
(erb):64: syntax error, unexpected tINTEGER, expecting '('
...re/gems/gems/activerecord-4.1.5/lib/active_record/connection...
...                               ^
(erb):64: syntax error, unexpected tSYMBEG, expecting ')'
...bstract/database_statements.rb:199:in `transaction'
...                               ^
(erb):65: syntax error, unexpected tIDENTIFIER, expecting ')'
...sactions.rb:208:in `transaction'
...                               ^
(erb):67: unknown regexp options - thfra
(erb):67: no .<digit> floating literal anymore; put 0 before dot
.../gems/protected_attributes-1.1.3/lib/active_record/mass_assi...
...                               ^
(erb):67: syntax error, unexpected tINTEGER, expecting '('
...gems/protected_attributes-1.1.3/lib/active_record/mass_assig...
...                               ^
(erb):67: syntax error, unexpected tSYMBEG, expecting ')'
...nment_security/associations.rb:47:in `create_record'
...                               ^
(erb):68: syntax error, unexpected tIDENTIFIER, expecting ')'
...y/associations.rb:32:in `create'
...                               ^
(erb):70: unknown regexp options - thfra
(erb):70: no .<digit> floating literal anymore; put 0 before dot
...sr/share/gems/gems/audited-4.2.0/lib/audited/auditor.rb:210:...
...                               ^
(erb):70: syntax error, unexpected tINTEGER, expecting '('
...r/share/gems/gems/audited-4.2.0/lib/audited/auditor.rb:210:i...
...                               ^
(erb):70: syntax error, unexpected tSYMBEG, expecting ')'
...d-4.2.0/lib/audited/auditor.rb:210:in `block in write_audit'
...                               ^
(erb):71: syntax error, unexpected tIDENTIFIER, expecting ')'
...pport/callbacks.rb:113:in `call'
...                               ^
(erb):73: unknown regexp options - rh
(erb):73: no .<digit> floating literal anymore; put 0 before dot
...re/gems/gems/activesupport-4.1.5/lib/active_support/callback...
...                               ^
(erb):73: syntax error, unexpected tINTEGER, expecting '('
...e/gems/gems/activesupport-4.1.5/lib/active_support/callbacks...
...                               ^
(erb):73: syntax error, unexpected tSYMBEG, expecting ')'
...ib/active_support/callbacks.rb:321:in `block in conditional'
...                               ^
(erb):74: syntax error, unexpected tIDENTIFIER, expecting ')'
...pport/callbacks.rb:239:in `call'
...                               ^
(erb):76: unknown regexp options - rh
(erb):76: no .<digit> floating literal anymore; put 0 before dot
...re/gems/gems/activesupport-4.1.5/lib/active_support/callback...
...                               ^
(erb):76: syntax error, unexpected tINTEGER, expecting '('
...e/gems/gems/activesupport-4.1.5/lib/active_support/callbacks...
...                               ^
(erb):76: syntax error, unexpected tSYMBEG, expecting ')'
...ib/active_support/callbacks.rb:86:in `call'
...                               ^
(erb):77: syntax error, unexpected tIDENTIFIER, expecting ')'
...llbacks.rb:86:in `run_callbacks'
...                               ^
(erb):79: unknown regexp options - thfra
(erb):79: no .<digit> floating literal anymore; put 0 before dot
...sr/share/gems/gems/audited-4.2.0/lib/audited/auditor.rb:197:...
...                               ^
(erb):79: syntax error, unexpected tINTEGER, expecting '('
...r/share/gems/gems/audited-4.2.0/lib/audited/auditor.rb:197:i...
...                               ^
(erb):79: syntax error, unexpected tSYMBEG, expecting ')'
...d-4.2.0/lib/audited/auditor.rb:197:in `audit_update'
...                               ^
(erb):80: syntax error, unexpected tIDENTIFIER, expecting ')'
...port/callbacks.rb:424:in `block in make_lambda'
...                               ^
(erb):82: unknown regexp options - rh
(erb):82: no .<digit> floating literal anymore; put 0 before dot
...re/gems/gems/activesupport-4.1.5/lib/active_support/callback...
...                               ^
(erb):82: syntax error, unexpected tINTEGER, expecting '('
...e/gems/gems/activesupport-4.1.5/lib/active_support/callbacks...
...                               ^
(erb):82: syntax error, unexpected tSYMBEG, expecting ')'
...ib/active_support/callbacks.rb:160:in `block in halting'
...                               ^
(erb):83: syntax error, unexpected tIDENTIFIER, expecting ')'
...pport/callbacks.rb:215:in `call'
...                               ^
(erb):85: unknown regexp options - rh
(erb):85: no .<digit> floating literal anymore; put 0 before dot
...re/gems/gems/activesupport-4.1.5/lib/active_support/callback...
...                               ^
(erb):85: syntax error, unexpected tINTEGER, expecting '('
...e/gems/gems/activesupport-4.1.5/lib/active_support/callbacks...
...                               ^
(erb):85: syntax error, unexpected tSYMBEG, expecting ')'
...ib/active_support/callbacks.rb:86:in `call'
...                               ^
(erb):86: syntax error, unexpected tIDENTIFIER, expecting ')'
...llbacks.rb:86:in `run_callbacks'
...                               ^
(erb):88: unknown regexp options - rh
(erb):88: no .<digit> floating literal anymore; put 0 before dot
...are/gems/gems/activerecord-4.1.5/lib/active_record/timestamp...
...                               ^
(erb):88: syntax error, unexpected tINTEGER, expecting '('
...re/gems/gems/activerecord-4.1.5/lib/active_record/timestamp....
...                               ^
(erb):88: syntax error, unexpected tSYMBEG, expecting ')'
...lib/active_record/timestamp.rb:70:in `_update_record'
...                               ^
(erb):89: syntax error, unexpected tIDENTIFIER, expecting ')'
...nce.rb:482:in `create_or_update'
...                               ^
(erb):91: unknown regexp options - rh
(erb):91: no .<digit> floating literal anymore; put 0 before dot
...re/gems/gems/activesupport-4.1.5/lib/active_support/callback...
...                               ^
(erb):91: syntax error, unexpected tINTEGER, expecting '('
...e/gems/gems/activesupport-4.1.5/lib/active_support/callbacks...
...                               ^
(erb):91: syntax error, unexpected tSYMBEG, expecting ')'
...ib/active_support/callbacks.rb:113:in `call'
...                               ^
(erb):92: syntax error, unexpected tIDENTIFIER, expecting ')'
...pport/callbacks.rb:113:in `call'
...                               ^
(erb):94: unknown regexp options - rh
(erb):94: no .<digit> floating literal anymore; put 0 before dot
...re/gems/gems/activesupport-4.1.5/lib/active_support/callback...
...                               ^
(erb):94: syntax error, unexpected tINTEGER, expecting '('
...e/gems/gems/activesupport-4.1.5/lib/active_support/callbacks...
...                               ^
(erb):94: syntax error, unexpected tSYMBEG, expecting ')'
...ib/active_support/callbacks.rb:166:in `call'
...                               ^
(erb):95: syntax error, unexpected tIDENTIFIER, expecting ')'
...port/callbacks.rb:166:in `block in halting'
...                               ^
(erb):97: unknown regexp options - rh
(erb):97: no .<digit> floating literal anymore; put 0 before dot
...re/gems/gems/activesupport-4.1.5/lib/active_support/callback...
...                               ^
(erb):97: syntax error, unexpected tINTEGER, expecting '('
...e/gems/gems/activesupport-4.1.5/lib/active_support/callbacks...
...                               ^
(erb):97: syntax error, unexpected tSYMBEG, expecting ')'
...ib/active_support/callbacks.rb:166:in `block in halting'
...                               ^
(erb):98: syntax error, unexpected tIDENTIFIER, expecting ')'
...upport/callbacks.rb:86:in `call'
...                               ^
(erb):100: unknown regexp options - rh
(erb):100: no .<digit> floating literal anymore; put 0 before dot
...are/gems/gems/activerecord-4.1.5/lib/active_record/callbacks...
...                               ^
(erb):100: syntax error, unexpected tINTEGER, expecting '('
...re/gems/gems/activerecord-4.1.5/lib/active_record/callbacks....
...                               ^
(erb):100: syntax error, unexpected tSYMBEG, expecting ')'
...lib/active_record/callbacks.rb:302:in `create_or_update'
...                               ^
(erb):101: syntax error, unexpected tIDENTIFIER, expecting ')'
...ord/persistence.rb:103:in `save'
...                               ^
(erb):103: unknown regexp options - rh
(erb):103: no .<digit> floating literal anymore; put 0 before dot
...are/gems/gems/activerecord-4.1.5/lib/active_record/attribute...
...                               ^
(erb):103: syntax error, unexpected tINTEGER, expecting '('
...re/gems/gems/activerecord-4.1.5/lib/active_record/attribute_...
...                               ^
(erb):103: syntax error, unexpected tSYMBEG, expecting ')'
...ord/attribute_methods/dirty.rb:21:in `save'
...                               ^
(erb):104: syntax error, unexpected tIDENTIFIER, expecting ')'
...d/transactions.rb:268:in `block (2 levels) in save'
...                               ^
(erb):104: syntax error, unexpected tIDENTIFIER, expecting ')'
...ions.rb:268:in `block (2 levels) in save'
...                               ^
(erb):106: unknown regexp options - rh
(erb):106: no .<digit> floating literal anymore; put 0 before dot
...are/gems/gems/activerecord-4.1.5/lib/active_record/connectio...
...                               ^
(erb):106: syntax error, unexpected tINTEGER, expecting '('
...re/gems/gems/activerecord-4.1.5/lib/active_record/connection...
...                               ^
(erb):106: syntax error, unexpected tSYMBEG, expecting end-of-input
...bstract/database_statements.rb:199:in `transaction'
...                               ^
	from /usr/share/ruby/erb.rb:849:in `result'
	from /usr/share/gems/gems/highline-1.6.21/lib/highline.rb:719:in `format_statement'
	from /usr/share/gems/gems/highline-1.6.21/lib/highline.rb:617:in `say'
	from /usr/share/katello-installer-base/hooks/boot/01-helpers.rb:19:in `log_and_say'
	from /usr/share/katello-installer-base/hooks/boot/01-helpers.rb:38:in `block in execute'
	from /usr/share/katello-installer-base/hooks/boot/01-helpers.rb:31:in `each'
	from /usr/share/katello-installer-base/hooks/boot/01-helpers.rb:31:in `execute'
	from /usr/share/katello-installer-base/hooks/pre/30-upgrade.rb:45:in `migrate_foreman'
	from /usr/share/katello-installer-base/hooks/pre/30-upgrade.rb:81:in `upgrade_step'
	from /usr/share/katello-installer-base/hooks/pre/30-upgrade.rb:116:in `block (4 levels) in load'
	from /usr/share/gems/gems/kafo-0.7.5/lib/kafo/hooking.rb:34:in `instance_eval'
	from /usr/share/gems/gems/kafo-0.7.5/lib/kafo/hooking.rb:34:in `block (4 levels) in load'
	from /usr/share/gems/gems/kafo-0.7.5/lib/kafo/hook_context.rb:13:in `instance_exec'
	from /usr/share/gems/gems/kafo-0.7.5/lib/kafo/hook_context.rb:13:in `execute'
	from /usr/share/gems/gems/kafo-0.7.5/lib/kafo/hooking.rb:51:in `block in execute'
	from /usr/share/gems/gems/kafo-0.7.5/lib/kafo/hooking.rb:49:in `each'
	from /usr/share/gems/gems/kafo-0.7.5/lib/kafo/hooking.rb:49:in `execute'
	from /usr/share/gems/gems/kafo-0.7.5/lib/kafo/kafo_configure.rb:377:in `run_installation'
	from /usr/share/gems/gems/kafo-0.7.5/lib/kafo/kafo_configure.rb:143:in `execute'
	from /usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:67:in `run'
	from /usr/share/gems/gems/clamp-0.6.2/lib/clamp/command.rb:125:in `run'
	from /usr/share/gems/gems/kafo-0.7.5/lib/kafo/kafo_configure.rb:150:in `run'
	from /usr/sbin/satellite-installer:12:in `<main>'
You have new mail in /var/spool/mail/root


Expected results:
Upgrade should complete foreman migration step without error.

Additional info:

Comment 2 Sachin Ghai 2016-07-18 06:14:29 UTC
Looks like duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1356447 and it is fixed in sat62 GA snap20.2