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.
Bug 1416857 - `hammer content-view [add-version|remove-version|copy|update|delete]` missing organization options
Summary: `hammer content-view [add-version|remove-version|copy|update|delete]` missing...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Views
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: Unspecified
Assignee: Andrew Kofink
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-01-26 15:44 UTC by Andrew Kofink
Modified: 2019-04-01 20:27 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-21 16:49:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 18351 0 High Closed `hammer content-view [add-version|remove-version|copy|update|delete]` missing organization options 2020-06-08 19:17:45 UTC

Description Andrew Kofink 2017-01-26 15:44:41 UTC
Description of problem:
`hammer content-view [add-version|remove-version|copy|update|delete]` are all missing organization options (--organization-id, --organization, --organization-label)

Version-Release number of selected component (if applicable):
6.3.0

How reproducible:
Always

Steps to Reproduce:
1.`hammer content-view [add-version|remove-version|copy|update|delete] -h`

Actual results:
No organization options listed or accepted

Expected results:
Organization options listed and accepted

Additional info:
This is caused by a fix for BZ1356906

Comment 3 Andrew Kofink 2017-02-01 18:52:50 UTC
Created redmine issue http://projects.theforeman.org/issues/18351 from this bug

Comment 4 Oleksandr Shtaier 2017-07-18 13:10:53 UTC
Verified both manually and through automation:
-----------------------------------------------------------------------
hammer content-view copy -h
Usage:
    hammer content-view copy [OPTIONS]

Options:
 --id ID                                 Content view numeric identifier
 --name NAME                             Content view name to search by
 --new-name NEW_NAME                     New content view name
 --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

hammer -v -u admin -p changeme --output=csv content-view copy --new-name="lHYayIIoYu" --name="kvpeuLKRoW" --organization-id="8"

Content view copied,9,lHYayIIoYu

-----------------------------------------------------------------------
hammer content-view delete -h
Usage:
    hammer content-view delete [OPTIONS]

Options:
 --async                                 Do not wait for the task
 --id ID                                 content view numeric identifier
 --name NAME                             Content view 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

hammer -v -u admin -p changeme  content-view delete --organization="acVKqh" --name="PiNzMezYPY"

Task d3b33a6b-da68-4f02-95fc-a18dd155ca60 success: 1.0/1, 100%, elapsed: 00:00:00

------------------------------------------------------------------------
hammer content-view update -h
Usage:
    hammer content-view update [OPTIONS]

Options:
 --component-ids COMPONENT_IDS           List of component content view version ids for composite views
                                         Comma separated list of values. Values containing comma should be double quoted
 --description DESCRIPTION               Description for the content view
 --id ID                                 Content view identifier
 --name NAME                             Content view name to search by
 --new-name NEW_NAME                     New name for the content view
 --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
....

hammer -v -u admin -p changeme --output=csv content-view update --new-name="aHEbdMNzpa" --name="tHMtzYiBle" --organization-label="e42L1K"

Message,Id,Name
Content view updated,13,aHEbdMNzpa

--------------------------------------------------------------------
hammer content-view remove-version -h
Usage:
    hammer content-view remove-version [OPTIONS]

Options:
 --content-view CONTENT_VIEW_NAME                    Content view name to search by
 --content-view-id CONTENT_VIEW_ID                   content view numeric identifier
 --content-view-version CONTENT_VIEW_VERSION_VERSION Content view version number
 --content-view-version-id CONTENT_VIEW_VERSION_ID   Content view version identifier
 --id ID                                             content view numeric identifier
 --name NAME                                         Content view 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

hammer -v -u admin -p changeme --output=csv content-view remove-version --content-view-version="1.0" --name="WKiqwTFmUT" --organization-id="11" --content-view="kFdDmQUlqc"

Message,Id,Name
The component version has been removed,16,WKiqwTFmUT

Comment 5 Satellite 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


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