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 1746108

Summary: Getting error of foreman-tasks-cleanup while performing yum update to upgrade capsule server from 6.5 to 6.6 Beta
Product: Red Hat Satellite Reporter: Ganesh Payelkar <gpayelka>
Component: InstallationAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact: Devendra Singh <desingh>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.6.0   
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: 2019-08-28 08:51:04 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 Ganesh Payelkar 2019-08-27 16:39:48 UTC
Description of problem:

Getting error of foreman-tasks-cleanup while performing  yum update to upgrade capsule server from 6.5 to 6.6 Beta

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

tfm-rubygem-foreman-tasks-core-0.3.2-1.el7sat.noarch
satellite-common-6.6.0-5.beta.el7sat.noarch
satellite-capsule-6.6.0-5.beta.el7sat.noarch
satellite-maintain-0.0.1-1.el7sat.noarch
satellite-installer-6.6.0.19-1.beta.el7sat.noarch


How reproducible:

Upgrade


Steps to Reproduce:

Upgrading capsule from 6.5 to 6.6 Beta 

# subscription-manager repos --disable "*"

# subscription-manager repos \
--disable rhel-7-server-satellite-capsule-6.5-rpms \
--disable rhel-7-server-satellite-tools-6.5-rpms

# subscription-manager repos \
--enable rhel-server-7-satellite-capsule-6-beta-rpms \
--enable rhel-server-rhscl-7-rpms \
--enable rhel-7-server-satellite-tools-6-beta-rpms \
--enable rhel-7-server-satellite-maintenance-6-beta-rpms \
--enable rhel-7-server-ansible-2.8-rpms

# yum clean all
# foreman-maintain service stop
# yum update -y
# satellite-installer --scenario capsule --upgrade




Actual results:

  Erasing    : python-twisted-core-12.2.0-4.el7.x86_64                                                                                                                                                     181/183
  Cleanup    : mod_xsendfile-0.12-10.el7sat.x86_64                                                                                                                                                         182/183
  Erasing    : python-pycurl-7.19.0-19.el7.x86_64                                                                                                                                                          183/183
Loaded plugins: product-id, subscription-manager
/etc/foreman-installer/scenarios.d/satellite.migrations/190426093500-foreman-tasks-cleanup.rb:3:in `block (2 levels) in load_migrations': undefined method `[]=' for true:TrueClass (NoMethodError)
        from /usr/share/gems/gems/kafo-3.0.0/lib/kafo/migrations.rb:25:in `instance_eval'
        from /usr/share/gems/gems/kafo-3.0.0/lib/kafo/migrations.rb:25:in `block (2 levels) in load_migrations'
        from /usr/share/gems/gems/kafo-3.0.0/lib/kafo/migration_context.rb:10:in `instance_eval'
        from /usr/share/gems/gems/kafo-3.0.0/lib/kafo/migration_context.rb:10:in `execute'
        from /usr/share/gems/gems/kafo-3.0.0/lib/kafo/migrations.rb:38:in `block in run'
        from /usr/share/gems/gems/kafo-3.0.0/lib/kafo/migrations.rb:35:in `each'
        from /usr/share/gems/gems/kafo-3.0.0/lib/kafo/migrations.rb:35:in `run'
        from /usr/share/gems/gems/kafo-3.0.0/lib/kafo/configuration.rb:281:in `run_migrations'
        from /usr/share/gems/gems/kafo-3.0.0/lib/kafo/kafo_configure.rb:65:in `initialize'
        from /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `new'
        from /usr/share/gems/gems/clamp-1.1.2/lib/clamp/command.rb:132:in `run'
        from /usr/share/gems/gems/kafo-3.0.0/lib/kafo/kafo_configure.rb:163:in `run'
        from /sbin/foreman-installer:8:in `<main>'


Expected results:




Additional info:

]# ls -l /etc/foreman-installer/scenarios.d/satellite.migrations/190426093500-foreman-tasks-cleanup.rb 
-rw-r--r--. 1 root root 212 Jul 15 13:13 /etc/foreman-installer/scenarios.d/satellite.migrations/190426093500-foreman-tasks-cleanup.rb

]# cat /etc/foreman-installer/scenarios.d/satellite.migrations/190426093500-foreman-tasks-cleanup.rb 
# add cleanup if not defined
if !answers['foreman::plugin::tasks'].is_a?(Hash)
  answers['foreman::plugin::tasks']['automatic_cleanup'] = true
  answers['foreman::plugin::tasks']['cron_line'] = "45 19 * * *"
end

Comment 3 Devendra Singh 2019-08-28 08:48:29 UTC
marking this bug as a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1737488

Comment 4 Devendra Singh 2019-08-28 08:51:04 UTC

*** This bug has been marked as a duplicate of bug 1737488 ***