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
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.
Andrew... the beta has not yet been certified for upgrades. We will, however, take this bug and make sure it works before GA.
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
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
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
Adding KCS https://access.redhat.com/solutions/1575593
Connecting redmine issue http://projects.theforeman.org/issues/11339 from this bug
Can someone add instructions on how to check this data? I don't know how to start the interface to this DB.
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.
*** Bug 1253673 has been marked as a duplicate of this bug. ***
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!
Hello, Is there any prevision for this errata? Our customer is asking about it.
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