Bug 1456446
Summary: | Capsule sync failed w/ error: undefined local variable or method `capsule' for #<Class:0x0000000f0b18a0> (NameError) | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Sachin Ghai <sghai> |
Component: | Upgrades | Assignee: | Justin Sherrill <jsherril> |
Status: | CLOSED ERRATA | QA Contact: | Lukas Pramuk <lpramuk> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.2.10 | CC: | bbuckingham, dlezzoum, egolov, inecas, jsherril, lpramuk, mbacovsk, zhunting |
Target Milestone: | Unspecified | Keywords: | Regression, Triaged |
Target Release: | Unused | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | rubygem-katello-3.0.0.137-1 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-06-20 17:24:19 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
Sachin Ghai
2017-05-29 12:19:28 UTC
Okay, Just confirmed.. issue is not specific to n-1 capsule. If both satellite and capsule are installed w/ same 6.2.10 snap2, still it appears. The following (untested) patch should fix it: diff --git a/app/models/katello/glue/pulp/repo.rb b/app/models/katello/glue/pulp/repo.rb index d6ff19d..1f2c71b 100644 --- a/app/models/katello/glue/pulp/repo.rb +++ b/app/models/katello/glue/pulp/repo.rb @@ -61,7 +61,7 @@ module Katello def self.needs_importer_updates(repos, capsule_content) repos.select do |repo| - repo_details = capsule.pulp_repo_facts(repo.pulp_id) + repo_details = capsule_content.pulp_repo_facts(repo.pulp_id) next unless repo_details capsule_importer = repo_details["importers"][0] !repo.importer_matches?(capsule_importer, capsule_content.capsule) This is not really upgrade bug as I hit it with not upgraded 6.2.9. edit: I hit it with not upgraded 6.2.10 snap2 Satellite and external 6.2.9 Capsule VERIFIED. @satellite-6.2.10-3.0.el7sat.noarch tfm-rubygem-katello-3.0.0.137-1.el7sat.noarch # hammer capsule list ---|-----------------|------------------------------|-------------------------- ID | NAME | URL | FEATURES ---|-----------------|------------------------------|-------------------------- 2 | cap.example.com | https://cap.example.com:9090 | Templates, Pulp Node, ... 1 | sat.example.com | https://sat.example.com:9090 | Pulp, Puppet, Puppet C... ---|-----------------|------------------------------|-------------------------- # hammer capsule content synchronize --id=2 [......................................................................] [100%] >>> capsule synced just fine (both UI/CLI) 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-2017:1553 |