Bug 1201021 - Incremental update of errata with --content-view-version-environments failed
Summary: Incremental update of errata with --content-view-version-environments failed
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Eric Helms
QA Contact: sthirugn@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-11 20:51 UTC by sthirugn@redhat.com
Modified: 2017-02-23 20:20 UTC (History)
2 users (show)

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


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1218431 0 unspecified CLOSED Remove unused options from hammer content-view version incremental-update 2021-02-22 00:41:40 UTC

Internal Links: 1218431

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.


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