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 1201008

Summary: Unable to perform incremental update of puppet module in CLI
Product: Red Hat Satellite Reporter: sthirugn <sthirugn>
Component: Content ManagementAssignee: Eric Helms <ehelms>
Status: CLOSED ERRATA QA Contact: sthirugn <sthirugn>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: bkearney, jmontleo, mmccune, walden
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/9735
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-12 05:29:46 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: 1130651    
Attachments:
Description Flags
production.log none

Description sthirugn@redhat.com 2015-03-11 19:55:12 UTC
Created attachment 1000648 [details]
production.log

Description of problem:
Unable to perform incremental update of puppet module in CLI

Version-Release number of selected component (if applicable):
Satellite-6.1.0-RHEL-6-20150303.0

How reproducible:
Always

Steps to Reproduce:
hammer> content-view version incremental-update --puppet-module-ids='7e004f56-c4a9-40d0-8792-f19227792cf5' --environment-ids='2' --ids='be822e60-c59c-4a19-aabe-ad5c8785ab56' --id='3'
An error occurred incrementally updating the content view:
  undefined method `any?' for nil:NilClass

Actual results:
Error as shown above (production.log attached)

Expected results:
Puppet module incremental update should work fine

Additional info:

Comment 1 sthirugn@redhat.com 2015-03-11 20:02:09 UTC
Same error happens with incremental update of puppet module name:

hammer> content-view version incremental-update --puppet-modules='motd' --environment-ids='2' --ids='be822e60-c59c-4a19-aabe-ad5c8785ab56' --id='3'
An error occurred incrementally updating the content view:
  undefined method `any?' for nil:NilClass

Comment 3 Eric Helms 2015-03-12 17:44:08 UTC
Created redmine issue http://projects.theforeman.org/issues/9735 from this bug

Comment 4 Bryan Kearney 2015-03-13 12:05:18 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/9735 has been closed
-------------
Eric Helms
Applied in changeset commit:katello|ca29f5912983d6f536b033a514e062d462354ffc.

Comment 7 sthirugn@redhat.com 2015-03-23 20:41:47 UTC
Failed

hammer> content-view version incremental-update --puppet-module-ids='6750ac81-2261-4c08-8650-761a6391ad26' --environment-ids='2' --ids='5a6c99bc-5c1f-4203-a9e0-0802c261319b' --id='3'
An error occurred incrementally updating the content view:
  Error: undefined method `key?' for nil:NilClass

Comment 10 Eric Helms 2015-04-15 00:21:07 UTC
There have been a few fixes in this area that have gone in and as a result this issue should be fixed; moving to post.

Comment 12 sthirugn@redhat.com 2015-05-04 20:56:04 UTC
Verified.

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


Applying 1 puppet module:
# hammer -u admin -p changeme content-view version incremental-update --puppet-module-ids=256b2143-90db-4786-a337-5c5caf14eb42 --environment-ids=2,3   --id=7
[..........................................................] [100%]
Content View: rhel7partialcv version 1.5
Added Content:
  Puppet Modules:
        puppetlabs-apache-1.4.1


Applying two puppet modules:
# hammer -u admin -p changeme content-view version incremental-update --puppet-module-ids=ae007b64-68ca-4919-a811-ea6fc8c81199,9b7ffccb-c236-4c90-9133-b1da28bd8034 --environment-ids=2,3   --id=8
[..........................................................] [100%]
Content View: rhel7partialcv version 1.6
Added Content:
  Puppet Modules:
        jeffmccune-motd-1.0.3
        jhoblitt-selenium-0.3.0

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

Comment 14 errata-xmlrpc 2015-08-12 05:29:46 UTC
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