Sha256: 94d62a2c516737d88ee81aab6c05329f01dffbbfdb101afb8717d56cc805a9a7

Contents?: true

Size: 800 Bytes

Versions: 149

Compression:

Stored size: 800 Bytes

Contents

namespace :katello do
  task :upgrade_check => ['environment'] do
    desc "Task that can be run before upgrading Katello to check if system is upgrade ready"

    puts "This script makes no modifications and can be re-run multiple times for the most up to date results."
    puts "Checking upgradeability...\n\n"

    # check for any running tasks
    task_count = ::ForemanTasks::Task.active.where("state != 'scheduled'").count
    task_status = task_count > 0 ? "FAIL" : "SUCCESS"
    puts "Checking for running tasks..."
    puts "[#{task_status}] - There are #{task_count} active tasks. "
    if task_count > 0
      puts "         Please wait for these to complete or cancel them from the Monitor tab.\n\n"
    else
      puts "         You may proceed with the upgrade.\n\n"
    end
  end
end

Version data entries

149 entries across 149 versions & 1 rubygems

Version Path
katello-4.10.0 lib/katello/tasks/upgrade_check.rake
katello-4.9.2 lib/katello/tasks/upgrade_check.rake
katello-4.10.0.rc2 lib/katello/tasks/upgrade_check.rake
katello-4.10.0.rc1 lib/katello/tasks/upgrade_check.rake
katello-4.8.4 lib/katello/tasks/upgrade_check.rake
katello-4.9.1 lib/katello/tasks/upgrade_check.rake
katello-4.8.3 lib/katello/tasks/upgrade_check.rake
katello-4.9.0 lib/katello/tasks/upgrade_check.rake
katello-4.7.6 lib/katello/tasks/upgrade_check.rake
katello-4.8.2 lib/katello/tasks/upgrade_check.rake
katello-4.9.0.rc2 lib/katello/tasks/upgrade_check.rake
katello-4.9.0.rc1 lib/katello/tasks/upgrade_check.rake
katello-4.8.1 lib/katello/tasks/upgrade_check.rake
katello-4.7.5 lib/katello/tasks/upgrade_check.rake
katello-4.8.0 lib/katello/tasks/upgrade_check.rake
katello-4.8.0.rc2 lib/katello/tasks/upgrade_check.rake
katello-4.7.4 lib/katello/tasks/upgrade_check.rake
katello-4.8.0.rc1 lib/katello/tasks/upgrade_check.rake
katello-4.7.3 lib/katello/tasks/upgrade_check.rake
katello-4.7.2 lib/katello/tasks/upgrade_check.rake