Project

General

Profile

Actions

Bug #22945

closed

[regression] health/upgrade check failed if services stopped

Added by Nikhil Kathole about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
High
Category:
-
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

# ./bin/foreman-maintain health check
/usr/share/ruby/csv.rb:1854:in `block (2 levels) in shift': Illegal quoting in line 2. (CSV::MalformedCSVError)
        from /usr/share/ruby/csv.rb:1816:in `each'
        from /usr/share/ruby/csv.rb:1816:in `block in shift'
        from /usr/share/ruby/csv.rb:1776:in `loop'
        from /usr/share/ruby/csv.rb:1776:in `shift'
        from /usr/share/ruby/csv.rb:1718:in `each'
        from /usr/share/ruby/csv.rb:1732:in `to_a'
        from /usr/share/ruby/csv.rb:1732:in `read'
        from /usr/share/ruby/csv.rb:1291:in `parse'
        from /root/foreman_maintain/lib/foreman_maintain/concerns/system_helpers.rb:119:in `parse_csv'
        from /root/foreman_maintain/lib/foreman_maintain/concerns/base_database.rb:9:in `query'
        from /root/foreman_maintain/lib/foreman_maintain/concerns/base_database.rb:52:in `table_exist?'
        from /root/foreman_maintain/definitions/procedures/candlepin/delete_orphaned_records_from_env_content.rb:11:in `block (2 levels) in <class:DeleteOrphanedRecordsFromEnvContent>'
        from /root/foreman_maintain/lib/foreman_maintain/concerns/metadata.rb:224:in `instance_exec'
        from /root/foreman_maintain/lib/foreman_maintain/concerns/metadata.rb:224:in `block in evaluate_confines'
        from /root/foreman_maintain/lib/foreman_maintain/concerns/metadata.rb:223:in `each'
        from /root/foreman_maintain/lib/foreman_maintain/concerns/metadata.rb:223:in `all?'
        from /root/foreman_maintain/lib/foreman_maintain/concerns/metadata.rb:223:in `evaluate_confines'
        from /root/foreman_maintain/lib/foreman_maintain/concerns/metadata.rb:200:in `present?'
        from /root/foreman_maintain/lib/foreman_maintain/detector.rb:53:in `block in find_present_classes'
        from /root/foreman_maintain/lib/foreman_maintain/detector.rb:52:in `each'
        from /root/foreman_maintain/lib/foreman_maintain/detector.rb:52:in `reduce'
        from /root/foreman_maintain/lib/foreman_maintain/detector.rb:52:in `find_present_classes'
        from /root/foreman_maintain/lib/foreman_maintain/detector.rb:46:in `available_procedures'
        from /root/foreman_maintain/lib/foreman_maintain.rb:96:in `allowed_available_procedures'
        from /root/foreman_maintain/lib/foreman_maintain/cli/advanced/procedure/run_command.rb:7:in `<class:RunCommand>'
        from /root/foreman_maintain/lib/foreman_maintain/cli/advanced/procedure/run_command.rb:6:in `<module:Procedure>'
        from /root/foreman_maintain/lib/foreman_maintain/cli/advanced/procedure/run_command.rb:5:in `<module:Cli>'
        from /root/foreman_maintain/lib/foreman_maintain/cli/advanced/procedure/run_command.rb:4:in `<module:ForemanMaintain>'
        from /root/foreman_maintain/lib/foreman_maintain/cli/advanced/procedure/run_command.rb:3:in `<top (required)>'
        from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /root/foreman_maintain/lib/foreman_maintain/cli/advanced/procedure_command.rb:1:in `<top (required)>'
        from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /root/foreman_maintain/lib/foreman_maintain/cli/advanced_command.rb:1:in `<top (required)>'
        from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /root/foreman_maintain/lib/foreman_maintain/cli.rb:7:in `<top (required)>'
        from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
        from ./bin/foreman-maintain:11:in `<main>'

Steps:
1. Katello-service stop
2. foreman-maintain health check

Expected output: Check should perform.

Additional info:
Reproducible on satellite 6.2 only.
Looks like regression from https://github.com/theforeman/foreman_maintain/pull/155

Actions #1

Updated by Kavita Gaikwad about 6 years ago

  • Assignee set to Kavita Gaikwad
Actions #2

Updated by The Foreman Bot about 6 years ago

  • Pull request https://github.com/theforeman/foreman_maintain/pull/160 added
Actions #3

Updated by Kavita Gaikwad about 6 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF