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.
DescriptionStephen Wadeley
2021-02-01 15:04:59 UTC
Description of problem:
hammer content-view filter delete fails
See line 76
delefind_filterte
https://github.com/Katello/katello/pull/9003/files
Version-Release number of selected component (if applicable):
snap 11
How reproducible:
Steps to Reproduce:
1. Create CV
2. Create filter and apply to CV
3. Use hammer command to delete filter (see example below)
Actual results:
2021-01-22 10:56:13 - robottelo - INFO - >>> b'LANG=en_US.UTF-8 hammer -v -u admin -p <redacted> content-view filter delete --content-view-id="402" --name="ZjEkKTaWxnwFWMIbyFztgkXrxfnrpjCYiJkXrKpUewifXMNRCCSVkHFMgZtzIpsqPVokKbvQtnGtQYPpuVhRbTdsZPrldLcPzFiMgBUpGuPhywSmasZFwXxIJAVuiczlRosAQOhNEJDTpaYqwYKQQzYVnaRJCxjQeTlpevUGtAGSWKPMvrniPxlLgVPtiTiFecSMNdbHhXAXVPXHGzMNsErUUQgyxKUfnfhqsDXAI"'
2021-01-22 10:56:16 - robottelo - INFO - <<< stderr
Could not delete the filter:
Error: undefined method `delefind_filterte' for #RestClient::Resource:0x0000000003b7e3c0
Expected results:
filter is deleted
Steps to test:
1. Deploy a Satellite 6.9, snap 14.
2. Create a content view.
3. Create a content filter on the content view and add a rule to the filter.
4. Publish a new version of the content view.
5. Attempt to delete the filter using the command from the problem description:
~~~
# hammer content-view filter delete --content-view-id 2
Could not delete the filter:
Error: At least one of options --id, --name is required.
See: 'hammer content-view filter <delete|destroy> --help'.
~~~
6. Per the error message in the output, specify the ID of the content filter:
~~~
# hammer content-view filter delete --content-view-id 2 --id 1
Filter deleted.
~~~
Expected results:
Content filter is deleted successfully with all required options passed to hammer.
Actual results:
Content filter is deleted successfully with all required options passed to hammer.
Verified on Satellite 6.9, snap 14 (tfm-rubygem-katello-3.18.1.5-1.el7sat.noarch).
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 (Moderate: Satellite 6.9 Release), 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-2021:1313