Bug 1988299
Summary: | foreman-maintain failed to cancel or resume the task after the satellite upgrade. | |||
---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Devendra Singh <desingh> | |
Component: | Repositories | Assignee: | Justin Sherrill <jsherril> | |
Status: | CLOSED ERRATA | QA Contact: | Danny Synk <dsynk> | |
Severity: | high | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 6.10.0 | CC: | apatel, dsynk, ehelms, jsherril, kgaikwad, pcreech | |
Target Milestone: | 6.10.0 | Keywords: | AutomationBlocker, Regression, Triaged, Upgrades | |
Target Release: | Unused | |||
Hardware: | x86_64 | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | tfm-rubygem-katello-4.1.1.8-1 | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1998224 (view as bug list) | Environment: | ||
Last Closed: | 2021-11-16 14:12:53 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
Devendra Singh
2021-07-30 09:54:25 UTC
Here's the error from the refresh distribution tasks: 2021-07-30T04:22:16 [E|bac|] undefined method `new' for nil:NilClass (NoMethodError) | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.1.29/app/services/katello/pulp3/repository.rb:90:in `instance_for_type' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.1.29/app/models/katello/repository.rb:188:in `backend_service' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.1.29/app/lib/actions/pulp3/repository/refresh_distribution.rb:27:in `invoke_external_task' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/action/polling.rb:84:in `initiate_external_action' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/action/polling.rb:19:in `run' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/action/cancellable.rb:14:in `run' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.1.29/app/lib/actions/pulp3/abstract_async_task.rb:10:in `run' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/action.rb:571:in `block (3 levels) in execute_run' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware/stack.rb:27:in `pass' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware.rb:19:in `pass' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.18.1.29/app/lib/actions/middleware/execute_if_contents_changed.rb:5:in `run' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware/stack.rb:23:in `call' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware/stack.rb:27:in `pass' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware.rb:19:in `pass' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware.rb:32:in `run' | /opt/theforeman/tfm/root/usr/share/gems/gems/dynflow-1.4.7/lib/dynflow/middleware/stack.rb:23:in `call' I suspect it may be hitting some ostree/puppet repos? Created redmine issue https://projects.theforeman.org/issues/33206 from this bug One workaround for this is to remove any ostree or puppet repos prior to upgrade Verified on Satellite 6.10, snap 14. Steps to Test: 1. Deploy Satellite 6.9.5, snap 2. 2. Create a new product. 3. Create a Puppet repository in the new product. 4. Upload a Puppet module to the repository. 5. Enable and synchronize the rhel-atomic-host-ostree repository. 6. Migrate from Pulp 2 to Pulp 3: # satellite-maintain prep-6.10-upgrade # satellite-maintain content prepare 7. Upgrade the Satellite from 6.9 to 6.10. Expected Results: The upgrade completes successfully with no errors on RefreshDistribution tasks. Actual Results: The upgrade completes successfully with no errors on RefreshDistribution tasks. *** Bug 1995717 has been marked as a duplicate of this bug. *** *** Bug 1995717 has been marked as a duplicate of this bug. *** 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 (Moderate: Satellite 6.10 Release), 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/RHSA-2021:4702 |