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 1201021

Summary: Incremental update of errata with --content-view-version-environments failed
Product: Red Hat Satellite Reporter: sthirugn <sthirugn>
Component: Content ManagementAssignee: Eric Helms <ehelms>
Status: CLOSED CURRENTRELEASE QA Contact: sthirugn <sthirugn>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: bkearney, walden
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-12 14:00:15 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 sthirugn@redhat.com 2015-03-11 20:51:26 UTC
Description of problem:
Incremental update of errata with --content-view-version-environments failed

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 --errata-ids='b34c7e36-f904-4098-b097-1c33011b78e8' --environment-ids='2' --ids='be822e60-c59c-4a19-aabe-ad5c8785ab56' --id='3' --content-view-version-environments=2
An error occurred incrementally updating the content view:
  can't convert Symbol into Integer

Actual results:
Error as shown above

Expected results:
No error

Additional info:

Comment 4 Eric Helms 2015-04-21 16:20:06 UTC
Based on a variety of recent updates in this area, I'd ask that this be retested.

Comment 7 sthirugn@redhat.com 2015-05-04 21:35:46 UTC
Failed again.  
- But the problem is not with --content-view-version-environments.  Earlier I used the environment ids vs. environment names. See Test 1 and 2.
- Then I used names in --content-view-version-environments.  See Test 3 - It worked.
- Then I totally removed --content-view-version-environments. See Test 4 - It worked.
- So I am concluding that --content-view-version-environments is useless in this command and created a bz to remove that https://bugzilla.redhat.com/show_bug.cgi?id=1218431.
- Marking this bug verified and will track the other issue in BZ 1218431

Test 1:
# hammer -u admin -p changeme content-view version incremental-update --puppet-module-ids=ae007b64-68ca-4919-a811-ea6fc8c81199,9b7ffccb-c236-4c90-9133-b1da28bd8034 --content-view-version-environments=2,3   --id=9
An error occurred incrementally updating the content view:
  Error: option '--environment-ids' is required
  
  See: 'hammer content-view version incremental-update --help'

Test 2:
# 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 --content-view-version-environments=2,3   --id=9
An error occurred incrementally updating the content view:
  can't convert Symbol into Integer

Test 3:
# 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 --content-view-version-environments=QE,PROD --id=9
[..................................................................] [100%]
Content View: rhel7partialcv version 1.7
Added Content:
  Puppet Modules:
        jeffmccune-motd-1.0.3
        jhoblitt-selenium-0.3.0

Test 4:
# 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=10
[..................................................................] [100%]
Content View: rhel7partialcv version 1.8
Added Content:
  Puppet Modules:
        jeffmccune-motd-1.0.3
        jhoblitt-selenium-0.3.0

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

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