Hide Forgot
Description of problem: In several cases I detected problem with attribute --content-view. We get this error: Error: Could not find organization. Some search options were missing, please see --help. Version-Release number of selected component (if applicable): tfm-rubygem-hammer_cli-0.8.0-1 How reproducible: 100% Steps to Reproduce: 1. We have got content view (in my case test view) > hammer content-view list ----------------|---------------------------|---------------------------|-----------|---------------------|--------------- CONTENT VIEW ID | NAME | LABEL | COMPOSITE | LAST PUBLISHED | REPOSITORY IDS ----------------|---------------------------|---------------------------|-----------|---------------------|--------------- 2 | test view | test_view | | 2016/10/19 12:35:48 | 2 1 | Default Organization View | Default_Organization_View | | 2016/10/17 10:02:42 | ----------------|---------------------------|---------------------------|-----------|---------------------|--------------- 2. Create filter > hammer content-view filter create --content-view "test view" --name "test" --inclusion=false --type=rpm --organization="Default Organization" Filter created 3. list rules > hammer content-view filter rule list --content-view "test view" --content-view-filter "test" Error: Could not find organization. Some search options were missing, please see --help. > hammer content-view filter rule list --content-view-id 2 --content-view-filter "test" --------|-----------|------|---------|-----------------|-----------------|-----------|------------|--------- RULE ID | FILTER ID | NAME | VERSION | MINIMUM VERSION | MAXIMUM VERSION | ERRATA ID | START DATE | END DATE --------|-----------|------|---------|-----------------|-----------------|-----------|------------|--------- 4. the same error we get for creating or deleting rule. > hammer content-view filter rule create --content-view "test view" --content-view-filter "test" --name="c" > hammer content-view filter rule delete --content-view "test view" --content-view-filter "test" --name "c"
Created redmine issue http://projects.theforeman.org/issues/17127 from this bug
Upstream bug component is Content Management
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/17127 has been resolved.
Verified with Satellite 6.3 SNAP 14: satellite-6.3.0-17.0.beta.el7sat.noarch, tfm-rubygem-katello-3.4.5-1.el7sat.noarch hammer> content-view list ----------------|---------------------------|---------------------------|-----------|---------------------|--------------- CONTENT VIEW ID | NAME | LABEL | COMPOSITE | LAST PUBLISHED | REPOSITORY IDS ----------------|---------------------------|---------------------------|-----------|---------------------|--------------- 1 | Default Organization View | Default_Organization_View | | 2017/09/05 21:36:28 | 2 | rhel7 | rhel7 | | 2017/09/06 15:22:47 | 1 3 | rhel7_filtered | rhel7_filtered | | | 1 ----------------|---------------------------|---------------------------|-----------|---------------------|--------------- hammer> content-view filter create --content-view rhel7_filtered --name test --inclusion false --type rpm --organization "Default Organization" Filter created hammer> content-view filter rule list --content-view-id 3 --content-view-filter test --------|-----------|------|---------|-----------------|-----------------|-----------|------------|--------- RULE ID | FILTER ID | NAME | VERSION | MINIMUM VERSION | MAXIMUM VERSION | ERRATA ID | START DATE | END DATE --------|-----------|------|---------|-----------------|-----------------|-----------|------------|--------- hammer> content-view filter rule create --content-view rhel7_filtered --content-view-filter test --name c --organization "Default Organization" Filter rule created hammer> content-view filter rule list --content-view-id 3 --content-view-filter test --------|-----------|------|---------|-----------------|-----------------|-----------|------------|--------- RULE ID | FILTER ID | NAME | VERSION | MINIMUM VERSION | MAXIMUM VERSION | ERRATA ID | START DATE | END DATE --------|-----------|------|---------|-----------------|-----------------|-----------|------------|--------- 1 | 1 | c | | | | | | --------|-----------|------|---------|-----------------|-----------------|-----------|------------|--------- hammer> content-view filter rule info --content-view rhel7_filtered --content-view-filter test --name c --organization "Default Organization" Rule ID: 1 Filter ID: 1 Name: c Created: 2017/09/06 19:10:29 Updated: 2017/09/06 19:10:29 hammer> content-view filter rule delete --content-view rhel7_filtered --content-view-filter test --name c --organization "Default Organization" Filter rule deleted hammer> content-view filter rule list --content-view-id 3 --content-view-filter test --------|-----------|------|---------|-----------------|-----------------|-----------|------------|--------- RULE ID | FILTER ID | NAME | VERSION | MINIMUM VERSION | MAXIMUM VERSION | ERRATA ID | START DATE | END DATE --------|-----------|------|---------|-----------------|-----------------|-----------|------------|---------
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-2018:0336