Bug 1207305 - Incremental update with packages throws error
Summary: Incremental update with packages throws error
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: API
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Justin Sherrill
QA Contact: sthirugn@redhat.com
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-30 16:14 UTC by Justin Sherrill
Modified: 2017-02-23 20:13 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-12 14:01:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 9951 0 None None None 2016-04-22 15:47:48 UTC

Description Justin Sherrill 2015-03-30 16:14:46 UTC
Description of problem:

Performing an incremental update via hammer or the api and specifying package ids throws an error:


undefined local variable or method `resolve_dependencies' for #<Actions::Katello::ContentViewVersion::IncrementalUpdate:0x0000000f2abd68> (NameError)
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.30/app/lib/actions/katello/content_view_version/incremental_update.rb:176:in `copy_yum_content'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.0.30/app/lib/actions/katello/content_view_version/incremental_update.rb:71:in `block in copy_repo'

Comment 1 Justin Sherrill 2015-03-30 16:15:00 UTC
Created redmine issue http://projects.theforeman.org/issues/9951 from this bug

Comment 2 RHEL Program Management 2015-03-30 16:23:54 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 4 Bryan Kearney 2015-04-12 08:05:37 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/9951 has been closed
-------------
Justin Sherrill
Applied in changeset commit:katello|e0661bd7e992b55a2490486501c84ae5a35c9808.

Comment 6 Tazim Kolhar 2015-04-29 07:08:15 UTC
hi

please provide verification steps

thanks

Comment 7 Justin Sherrill 2015-04-29 14:13:55 UTC
1. Publish a content view with a repository and a package exclude filter filtering out at least one package
2. hammer content-view version incremental-update --package-ids 82ba8ede-9f7-4029-82b7-0a1e2057f6b8  --environment-ids=1 --id=23

where --id=23 is the content view version id, and 82ba8ede-99f7-4029-82b7-0a1e2057f6b8 is the package id

It should perform an incremental update on that content view version, pushing it to Library (environment with id 1).  If you need to find the package id you can use

 hammer -u admin -p changeme package list --search="name:kernel AND version:2.6.32"  --per-page=10

for example.

Comment 9 sthirugn@redhat.com 2015-05-04 17:44:02 UTC
Verified.

Version Tested: Satellite-6.1.0-RHEL-7-20150429.2

# hammer -u admin -p changeme content-view version incremental-update --package-ids 5b4f1c13-9d1e-4da5-9c0a-69dda761aae3 --environment-ids=2   --id=3
[..........................................................] [100%]
Content View: rhel7partialcv version 1.1
Added Content:
  Packages:
        unzip-6.0-15.el7.x86_64


# hammer -u admin -p changeme content-view version incremental-update --package-ids 7f8a229b-c7cc-4fe6-8954-fde2b2fc3304,0fe142e8-122a-4cab-b6c8-49dab9a65c92 --environment-ids=2,3   --id=4
[..........................................................] [100%]
Content View: rhel7partialcv version 1.2
Added Content:
  Packages:
        freetype-2.4.11-10.el7_1.1.x86_64
        freetype-devel-2.4.11-10.el7_1.1.x86_64

Comment 10 Bryan Kearney 2015-08-11 13:27:20 UTC
This bug is slated to be released with Satellite 6.1.

Comment 11 Bryan Kearney 2015-08-12 14:01:36 UTC
This bug was fixed in version 6.1.1 of Satellite which was released on 12 August, 2015.


Note You need to log in before you can comment on or make changes to this bug.