Bug 1343006
Summary: | content view filter cannot be created | ||
---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Oleksandr Shtaier <oshtaier> |
Component: | Hammer | Assignee: | Zach Huntington-Meath <zhunting> |
Status: | CLOSED ERRATA | QA Contact: | Roman Plevka <rplevka> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.2.0 | CC: | bbuckingham, rplevka |
Target Milestone: | Unspecified | Keywords: | Regression, TestBlocker, Triaged |
Target Release: | Unused | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
URL: | http://projects.theforeman.org/issues/15395 | ||
Whiteboard: | |||
Fixed In Version: | rubygem-hammer_cli_katello-0.0.22.18-1 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-07-27 11:01:02 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: | |||
Bug Depends On: | 1353471 | ||
Bug Blocks: | 1228890 |
Description
Oleksandr Shtaier
2016-06-06 10:22:10 UTC
It seems that it is more related to all content view sub-commands hammer -v -u user -p admin --output=csv content-view add-repository --organization-id="1731" --product="dxtZjHsVVJTsFOjCkvBY" --name="cSbGOWdXXf" --repository="xKQRUAyqdpgawck" Gives next error: [ERROR 2016-06-06 06:49:28 Exception] One of parameters [ organization_id ] required but not specified. Could not add repository: One of parameters [ organization_id ] required but not specified. WORKAROUND: use --repository-ids or --product-id instead of --repositories and --product. The error is actually related to these as the names of the ARs are not necessary unique across the orgs so it requires org-id to specify and this option is missing. using the *-id[s] parameter uniquely specifies the AR. There are occurrences of this error in other subcommands too: BZ #1309107 Setting it as related. Yes, it seems these defects are related. Of course, mentioned BZ #1309107 showed its behavior a long time ago, but current one only week ago. There is a chance that it was probably blocked by other defects and was unblocked recently. However, not exactly: hammer -v -u admin -p changeme --output=csv content-view add-repository --organization="lpxKT2" --product="hDcByfFuRzICPjBkcjyR" --name="fDLiyTuHAP" --repository="agJQoVHXmGNCLaB" [ERROR 2016-06-07 05:56:27 Exception] One of parameters [ organization_id ] required but not specified. Could not add repository: One of parameters [ organization_id ] required but not specified. [ERROR 2016-06-07 05:56:27 Exception] RestClient::ResourceNotFound (404 Resource Not Found) Providing organization instead organization-id doesn't resolve the issue Same for upload content: hammer -v -u admin -p changeme --output=csv repository upload-content --organization="L4e1n3" --product-id="784" --name="FeLSCgiipuJArpt" --path="/tmp/which-2.19-6.el6.x86_64.rpm" [ERROR 2016-06-07 06:10:52 Exception] One of parameters [ organization_id ] required but not specified. Could not upload the content: One of parameters [ organization_id ] required but not specified. Created redmine issue http://projects.theforeman.org/issues/15395 from this bug Moving to POST since upstream bug http://projects.theforeman.org/issues/15395 has been closed VERIFIED on sat6.2 snap19.1 The organization-id is correctly being picked up # hammer --csv -u admin -p changeme content-view filter create --name="foo_filter_1" --inclusion="false" --repositories="foo_repo_1" --content-view-id 4 --organization foo_org_2 --type="rpm" Message,Id,Name Filter created,1,foo_filter_1 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/RHBA-2016:1501 |