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 1190890 - hammer capsule content synchronization needs --help to indicate which fields are required and/or optional
Summary: hammer capsule content synchronization needs --help to indicate which fields ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: 6.0.7
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: Unspecified
Assignee: Zach Huntington-Meath
QA Contact: Kedar Bidarkar
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-09 21:40 UTC by Dave Sullivan
Modified: 2019-11-14 06:37 UTC (History)
10 users (show)

Fixed In Version: rubygem-hammer_cli_katello-0.0.22.11-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-27 11:35:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 14656 0 None None None 2016-04-26 16:58:46 UTC

Comment 2 Dave Sullivan 2015-09-11 14:14:02 UTC
Description of problem:

When using hammer cli to synchronize content to the capsule we need to know which fields are required versus optional.

e.g. we have found that we can synchronize by --environment-id but not by --environment

[root@lonlxt90001 script]# hammer -u admin -p changeme capsule content synchronize --environment 'development' --name 'lonlxt90002.acme.com'
Could not synchronize capsule content:
  Error: environment not found
[root@lonlxt90001 script]#
 
 
[root@lonlxt90001 script]# hammer -u admin -p changeme lifecycle-environment list --organization ACME
---|-------------|------------
ID | NAME        | PRIOR
---|-------------|------------
2  | Library     |
5  | production  | stage
8  | STG         | Library
4  | stage       | development
7  | Dev         | Library
3  | development | Library
9  | PROD        | Library
---|-------------|------------
[root@lonlxt90001 script]#
 
This one works ""[root@lonlxt90001 script]# hammer -u admin -p changeme capsule content synchronize --environment-id 3 --id 2""
 


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

6.0.7


How reproducible:


see above

Actual results:


Expected results:


Additional info:

Comment 4 Zach Huntington-Meath 2016-04-14 21:10:57 UTC
Created redmine issue http://projects.theforeman.org/issues/14656 from this bug

Comment 5 Kedar Bidarkar 2016-05-24 11:18:33 UTC
[root@xyz ~]# hammer -u admin -p changeme capsule content synchronize --environment DEV --name abc.redhat.com
Could not synchronize capsule content:
  Error: Missing options to search organization
[root@xyz ~]# hammer -u admin -p changeme capsule content synchronize --environment DEV --name abc.redhat.com --help 
Usage:
    hammer capsule content synchronize [OPTIONS]

Options:
 --async                         Do not wait for the task
 --environment ENVIRONMENT_NAME  Name to search by
 --environment-id ENVIRONMENT_ID  
 --id ID                         Id of the capsule
 --name NAME                     Name to search by
 --organization NAME             Organization name
 --organization-id ID            Organization ID

[root@xyz ~]# hammer -u admin -p changeme capsule content synchronize --environment DEV --name abc.redhat.com --organization "Default Organization"
[............................................................................................................................................                                               ] [75%]


VERIFIED with sat62-snap12.1

Comment 6 Bryan Kearney 2016-07-27 11:35:30 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/RHBA-2016:1501


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