Bug 1196156
Summary: | Activation key connected to update composite content view includes non-existing repositories | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Peter Vreman <peter.vreman> | ||||
Component: | Content Management | Assignee: | Justin Sherrill <jsherril> | ||||
Status: | CLOSED ERRATA | QA Contact: | Tazim Kolhar <tkolhar> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 6.0.8 | CC: | bbuckingham, bkearney, cwelton, jmontleo, jsherril, tkolhar | ||||
Target Milestone: | Unspecified | Keywords: | Triaged | ||||
Target Release: | Unused | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
URL: | http://projects.theforeman.org/issues/9566 | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | |||||||
: | 1197169 (view as bug list) | Environment: | |||||
Last Closed: | 2015-08-12 05:27:22 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: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1122832, 1197169 | ||||||
Attachments: |
|
Description
Peter Vreman
2015-02-25 11:57:39 UTC
Created attachment 995522 [details]
Dynflow planning output
The dynflow output shows:
- 1 component is added with repo HOICI-1.0.0-sp17
- 1 component is removed with repo HOICI-1.0.0-ci
- Candlepin update is still including 2 content_ids:
content_ids:
- '1421224072547'
- '1424770949654'
Analyzing the sourcecode of the publish action it comes from the following scenario:
- repo HOICI-1.0.0-sp17 is already added during the planning to the environment
- repo HOICI-1.0.0-ci is still kept in the environment, it will be removed later in the run
- in the next steps of the planning phase the repos associated with the environment contains both HOICI-1.0.0-sp17 and HOICI-1.0.0-ci
- later in the planning phase Candlepin SetContent gathering the repos to publish, it contains therefor both HOICI-1.0.0-sp17 and HOICI-1.0.0-ci
Important to reproduce is to update the Composite ContentView with both an Add and Remove of repos.
Another thing that can be seen is the action Actions::Katello::ContentView::UpdateEnvironment is called twice: - from the Actions::Katello::Repository::Destroy that is called for each repo - directly from Actions::Katello::ContentView::Publish after finishing all actions The call from Actions::Katello::Repository::Destroy shall be prevented as the single finalization call from Publish will take care of it. Created redmine issue http://projects.theforeman.org/issues/9566 from this bug Upstream bug assigned to jsherril Confirmed that the patch works Moving to POST since upstream bug http://projects.theforeman.org/issues/9566 has been closed ------------- Justin Sherrill Applied in changeset commit:katello|dc0eff9c88866ea3f5acc2677086aecb3399e63d. VERIFIED : # rpm -qa | grep foreman foreman-postgresql-1.7.2.14-1.el6_6sat.noarch rubygem-hammer_cli_foreman_bootdisk-0.1.2.5-1.el6_6sat.noarch foreman-gce-1.7.2.14-1.el6_6sat.noarch ruby193-rubygem-foreman-tasks-0.6.12.3-1.el6_6sat.noarch rubygem-hammer_cli_foreman-0.1.4.7-1.el6_6sat.noarch foreman-compute-1.7.2.14-1.el6_6sat.noarch ruby193-rubygem-foreman-redhat_access-0.1.0-1.el6_6sat.noarch rubygem-hammer_cli_foreman_discovery-0.0.1.4-1.el6_6sat.noarch foreman-selinux-1.7.2.13-1.el6_6sat.noarch foreman-libvirt-1.7.2.14-1.el6_6sat.noarch foreman-ovirt-1.7.2.14-1.el6_6sat.noarch ruby193-rubygem-foreman_bootdisk-4.0.2.10-1.el6_6sat.noarch ruby193-rubygem-foreman_gutterball-0.0.1.9-1.el6_6sat.noarch foreman-debug-1.7.2.14-1.el6_6sat.noarch rubygem-hammer_cli_foreman_tasks-0.0.3.3-1.el6_6sat.noarch qe-sat6-rhel66.usersys.redhat.com-foreman-proxy-1.0-2.noarch foreman-vmware-1.7.2.14-1.el6_6sat.noarch ruby193-rubygem-foreman_discovery-2.0.0.9-1.el6_6sat.noarch foreman-proxy-1.7.2.4-1.el6_6sat.noarch qe-sat6-rhel66.usersys.redhat.com-foreman-client-1.0-1.noarch qe-sat6-rhel66.usersys.redhat.com-foreman-proxy-client-1.0-1.noarch foreman-1.7.2.14-1.el6_6sat.noarch ruby193-rubygem-foreman_hooks-0.3.7-2.el6_6sat.noarch ruby193-rubygem-foreman_docker-1.2.0.7-1.el6_6sat.noarch This bug is slated to be released with Satellite 6.1. 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/RHSA-2015:1592 |