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 1213000 - Upgrade from 6.0.8 fails due to duplicate parameters
Summary: Upgrade from 6.0.8 fails due to duplicate parameters
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Upgrades
Version: 6.1.0
Hardware: Unspecified
OS: Linux
urgent
high
Target Milestone: Unspecified
Assignee: Stephen Benjamin
QA Contact: Jitendra Yejare
URL: http://projects.theforeman.org/issues...
Whiteboard:
: 1253673 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-17 21:18 UTC by Andrew Schofield
Modified: 2021-03-11 14:20 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-26 19:47:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 1575593 0 None None None Never
Red Hat Product Errata RHBA-2015:1688 0 normal SHIPPED_LIVE Satellite 6.1 bug fix update 2015-08-26 23:46:50 UTC

Description Andrew Schofield 2015-04-17 21:18:48 UTC
Description of problem:

Upgrade from 6.0.8 to 6.1 beta fails:

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

How reproducible:
Repeated runs on katello-installer --upgrade gives the same output

Steps to Reproduce:
1. yum -y update on satellite master
2. katello-installer --upgrade
3.

Actual results:

# katello-installer --upgrade
Upgrading...
Upgrade Step: migrate_pulp...
Upgrade Step: migrate_candlepin...
Upgrade Step: migrate_foreman...
Upgrade Step: Running installer...
Preparing installation Done
  Something went wrong! Check the log for ERROR-level output
  The full log is at /var/log/katello-installer/katello-installer.log
Upgrade Step: Restarting services...
Upgrade Step: db:seed...
Upgrade Step: Running errata import task (this may take a while)...
/usr/lib/ruby/gems/1.8/gems/kafo-0.6.5/lib/kafo/logger.rb:104:in `error': wrong number of arguments (7 for 1) (ArgumentError)
        from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.5/lib/kafo/logger.rb:104:in `send'
        from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.5/lib/kafo/logger.rb:104:in `dump_buffer'
        from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.5/lib/kafo/logger.rb:104:in `each'
        from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.5/lib/kafo/logger.rb:104:in `dump_buffer'
        from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.5/lib/kafo/logger.rb:103:in `each'
        from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.5/lib/kafo/logger.rb:103:in `dump_buffer'
        from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.5/lib/kafo/logger.rb:94:in `dump_errors'
        from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.5/lib/kafo/logger.rb:99:in `dump_errors'
        from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.5/lib/kafo/exit_handler.rb:26:in `exit'
        from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.5/lib/kafo/kafo_configure.rb:122:in `exit'
        from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.5/lib/kafo/kafo_configure.rb:338:in `run_installation'
        from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.5/lib/kafo/kafo_configure.rb:109:in `execute'
        from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:67:in `run'
        from /usr/lib/ruby/gems/1.8/gems/clamp-0.6.2/lib/clamp/command.rb:125:in `run'
        from /usr/lib/ruby/gems/1.8/gems/kafo-0.6.5/lib/kafo/kafo_configure.rb:116:in `run'
        from /usr/sbin/katello-installer:9
 
Tail of katello-installer.log
 
[ INFO 2015-04-17 16:19:30 main] Upgrade Step: Running errata import task (this may take a while)...
[ERROR 2015-04-17 16:22:15 main] rake aborted!
wrong number of arguments
 
Tasks: TOP => katello:upgrades:2.1:import_errata
(See full trace by running task with --trace)
Importing Errata
Updating Content Host Repositories usl10149339.am.hedani.net
 
[DEBUG 2015-04-17 16:22:15 main] Hook /usr/share/katello-installer/hooks/post/30-upgrade.rb returned nil
[ INFO 2015-04-17 16:22:15 main] All hooks in group post finished
[DEBUG 2015-04-17 16:22:15 main] Exit with status code: 1 (signal was 1)
[ERROR 2015-04-17 16:22:15 main] Repeating errors encountered during run:
[ERROR 2015-04-17 16:22:15 main] <NilClass> nil
[ERROR 2015-04-17 16:22:15 main]  does not exist at /usr/share/katello-installer/modules/certs/manifests/init.pp:115 on node usl10149335.am.hedani.net

Expected results:

Command completed successfully or provides useful 'you must do x, y or z'

Additional info:

The satellite master has one capsule (usl10149339) and has been continually upgraded from 6.0

Comment 1 RHEL Program Management 2015-04-17 21:20:30 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 3 Bryan Kearney 2015-04-21 13:15:07 UTC
Andrew... the beta has not yet been certified for upgrades. We will, however, take this bug and make sure it works before GA.

Comment 4 Andrew Schofield 2015-04-21 13:33:14 UTC
Thanks Bryan, we found this out yesterday too. However, this is in direct contradiction of the ‘Upgrade’ instructions in the ‘Red Hat Satellite 6.1 Beta
Installation Guide’ (Chapter 6) - https://access.redhat.com/sites/default/files/attachments/red_hat_satellite-6.1-installation_guide-en-us.pdf

Comment 5 Andrew Schofield 2015-04-21 13:40:09 UTC
Raised : https://bugzilla.redhat.com/show_bug.cgi?id=1213887

(In reply to Andrew Schofield from comment #4)
> Thanks Bryan, we found this out yesterday too. However, this is in direct
> contradiction of the ‘Upgrade’ instructions in the ‘Red Hat Satellite 6.1
> Beta
> Installation Guide’ (Chapter 6) -
> https://access.redhat.com/sites/default/files/attachments/red_hat_satellite-
> 6.1-installation_guide-en-us.pdf

Comment 6 Justin Sherrill 2015-08-12 22:49:19 UTC
From a reproducer:

foreman=> select id, type, reference_id, name, value from parameters;
 id |      type       | reference_id |          name          |           value            
----+-----------------+--------------+------------------------+----------------------------
  1 | CommonParameter |              | default_activation_key | RHEL-default
  2 | CommonParameter |              | time-zone              | America/New_York --isUtc
  5 | GroupParameter  |            2 | kt_cv                  | content_view_case_01476902
  4 | GroupParameter  |            2 | kt_env                 | Library
  3 | GroupParameter  |            2 | kt_org                 | Default_Organization
  6 | GroupParameter  |            2 | kt_cv                  | content_view_case_01476902
  7 | GroupParameter  |            2 | kt_env                 | Library
  8 | GroupParameter  |            2 | kt_org                 | Default_Organization

Comment 7 Marcelo Moreira de Mello 2015-08-12 23:19:52 UTC
 Adding KCS https://access.redhat.com/solutions/1575593

Comment 8 Justin Sherrill 2015-08-13 01:41:33 UTC
Connecting redmine issue http://projects.theforeman.org/issues/11339 from this bug

Comment 9 mertensb 2015-08-13 10:23:15 UTC
Can someone add instructions on how to check this data?
I don't know how to start the interface to this DB.

Comment 10 Justin Sherrill 2015-08-13 11:49:21 UTC

To detect duplicates a similar command can be used:

run

# foreman-rake console

and copy these two lines into it:


found = Parameter.all.map { |param|  {:name => param.name, :type => param.type, :reference_id => param.reference_id} }
puts (found.uniq.count == found.count ? "No Duplicates Found, proceed with upgrade." : "Duplicates Found, Upgrade will fail!")


If it prints:

No Duplicates Found, proceed with upgrade.
irb(main):003:0>

there is no issue. If instead it prints:

Duplicates Found, Upgrade will fail!
irb(main):003:0>

You will need to run the command from https://access.redhat.com/solutions/1575593 to delete the duplicated data.

Comment 11 Stephen Benjamin 2015-08-14 15:21:02 UTC
*** Bug 1253673 has been marked as a duplicate of this bug. ***

Comment 14 Jitendra Yejare 2015-08-19 09:23:42 UTC
Verified this bug with latest Satellite 6.1 GA Snap 17.
And the bug is no more reproducible. Hence changing the status to Verified.


The upgrade is successful.

[root.redhat.com] run: katello-installer --upgrade
[root.redhat.com] out: Upgrading...
[root.redhat.com] out: Upgrade Step: stop_services...
[root.redhat.com] out: Upgrade Step: start_mongo...
[root.redhat.com] out: Upgrade Step: migrate_pulp...
[root.redhat.com] out: Upgrade Step: start_httpd...
[root.redhat.com] out: Upgrade Step: migrate_candlepin...
[root.redhat.com] out: Upgrade Step: migrate_foreman...
[root.redhat.com] out: Upgrade Step: Running installer...
Installing             --- /etc/httpd/conf.d/05-foreman-ssl.conf.yaml]  2015-04- [93%] [................................................................................................................................................      Installing             Done                                               [100%] [..........................................................................................................................................................]
[root.redhat.com] out:   The full log is at /var/log/katello-installer/katello-installer.log
[root.redhat.com] out: Upgrade Step: restart_services...
[root.redhat.com] out: Upgrade Step: db_seed...
[root.redhat.com] out: Upgrade Step: errata_import (this may take a while) ...
[root.redhat.com] out: Upgrade Step: update_gpg_urls (this may take a while) ...
[root.redhat.com] out: Upgrade Step: update_repository_metadata (this may take a while) ...
[root.redhat.com] out: Katello upgrade completed!

Comment 15 Alessandro Silva 2015-08-25 18:41:55 UTC
Hello,

Is  there any prevision for this errata? Our customer is asking about it.

Comment 17 errata-xmlrpc 2015-08-26 19:47:05 UTC
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://access.redhat.com/errata/RHBA-2015:1688


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