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.
Description of problem:
repository delete --help doesn't show any option --organization or organization-id
~]# hammer -u admin -p changeme repository delete --help
Usage:
hammer repository delete [OPTIONS]
Options:
--id ID
--name NAME Repository name to search by
--product PRODUCT_NAME Product name to search by
--product-id PRODUCT_ID product numeric identifier
-h, --help print help
atomic_f23 repo is already there
~]# hammer -u admin -p changeme repository list --organization-id=1 | grep atomic_f23
4 | atomic_f23 | atomic | ostree | https://kojipkgs.fedoraproject.org/atomic/23/
If we don't pass --organization, hammer raises error couldn't find org
~]# hammer -u admin -p changeme repository delete --name atomic_f23 --product atomic
Could not delete the Repository:
Error: Could not find organization. Some search options were missing, please see --help.
if we pass org, it says unrecognized option
~]# hammer -u admin -p changeme repository delete --name atomic_f23 --product atomic --organization-ids=1
Could not delete the Repository:
Error: Unrecognised option '--organization-ids'
~]# hammer -u admin -p changeme repository delete --name atomic_f23 --product atomic --organization-id=1
Could not delete the Repository:
Error: Unrecognised option '--organization-id'
~]# hammer -u admin -p changeme repository delete --name atomic_f23 --product atomic --organization='Default Organization'
Could not delete the Repository:
Error: Unrecognised option '--organization'
Version-Release number of selected component (if applicable):
sat6.3 snap2
How reproducible:
Steps to Reproduce:
1. delete a repository with repo name and product name
2.
3.
Actual results:
repository delete by name neither allows to delete repo w/o org nor accepts the org
Expected results:
help should list the --organization/--organization-id parameter if its required otherwise repo should be deleted successfully w/o org
Additional info:
Verified in 6.3.0 Snap 9:
# hammer -p changeme repository delete --name zoo --product product --organization=Default\ Organization
Repository deleted
# hammer -p changeme repository delete --name zoo
Could not delete the Repository:
Error: At least one of options --product, --product-id is required
# hammer -p changeme repository delete --name zoo --product product
Could not delete the Repository:
Error: Could not find organization. Some search options were missing, please see --help.
# hammer -p changeme repository delete --help
Usage:
hammer repository delete [OPTIONS]
Options:
--id ID
--name NAME Repository name to search by
--organization ORGANIZATION_NAME Organization name to search by
--organization-id ORGANIZATION_ID Organization ID to search by
--organization-label ORGANIZATION_LABEL Organization label to search by
--product PRODUCT_NAME Product name to search by
--product-id PRODUCT_ID product numeric identifier
-h, --help print help
Comment 5Satellite Program
2018-02-21 16:49:54 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-2018:0336
Description of problem: repository delete --help doesn't show any option --organization or organization-id ~]# hammer -u admin -p changeme repository delete --help Usage: hammer repository delete [OPTIONS] Options: --id ID --name NAME Repository name to search by --product PRODUCT_NAME Product name to search by --product-id PRODUCT_ID product numeric identifier -h, --help print help atomic_f23 repo is already there ~]# hammer -u admin -p changeme repository list --organization-id=1 | grep atomic_f23 4 | atomic_f23 | atomic | ostree | https://kojipkgs.fedoraproject.org/atomic/23/ If we don't pass --organization, hammer raises error couldn't find org ~]# hammer -u admin -p changeme repository delete --name atomic_f23 --product atomic Could not delete the Repository: Error: Could not find organization. Some search options were missing, please see --help. if we pass org, it says unrecognized option ~]# hammer -u admin -p changeme repository delete --name atomic_f23 --product atomic --organization-ids=1 Could not delete the Repository: Error: Unrecognised option '--organization-ids' ~]# hammer -u admin -p changeme repository delete --name atomic_f23 --product atomic --organization-id=1 Could not delete the Repository: Error: Unrecognised option '--organization-id' ~]# hammer -u admin -p changeme repository delete --name atomic_f23 --product atomic --organization='Default Organization' Could not delete the Repository: Error: Unrecognised option '--organization' Version-Release number of selected component (if applicable): sat6.3 snap2 How reproducible: Steps to Reproduce: 1. delete a repository with repo name and product name 2. 3. Actual results: repository delete by name neither allows to delete repo w/o org nor accepts the org Expected results: help should list the --organization/--organization-id parameter if its required otherwise repo should be deleted successfully w/o org Additional info: