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.

Bug 1097209

Summary: Missing content_upload hammer command from cli
Product: Red Hat Satellite Reporter: Sachin Ghai <sghai>
Component: HammerAssignee: David Davis <daviddavis>
Status: CLOSED CURRENTRELEASE QA Contact: Sachin Ghai <sghai>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.3CC: bbuckingham, daviddavis, jmontleo, mmccune
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/5813
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-02 14:07:07 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: 1103311    
Bug Blocks: 1028395    

Description Sachin Ghai 2014-05-13 11:51:55 UTC
Description of problem:
I was trying to verify a bug where I've to upload puppet modules from cli but I didn't find content_upload command under any of the subcommands like repository.

Not sure If I'm missing something. But If it is missing in hammer then I think we should add it back since the same feature is available from UI.

Version-Release number of selected component (if applicable):
Satellite 6 Beta Snap 4

Satellite-6.0.3-RHEL-6-20140508.1

How reproducible:
always

Steps to Reproduce:
1.
2.
3.

Actual results:
missing content_upload command to upload repo and puppet modules

Expected results:
command should be in hammer

Additional info:
Didn't find under repository subcommands:
[root@dhcp201-170 ~]# hammer repository --help
Usage:
    hammer repository [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
    SUBCOMMAND                    subcommand
    [ARG] ...                     subcommand arguments

Subcommands:
    create                        Create a custom repository
    delete                        Destroy a custom repository
    info                          Show a custom repository
    list                          List of enabled repositories
    synchronize                   Sync a repository
    update                        Update a custom repository

Options:
    -h, --help                    print help
[root@dhcp201-170 ~]# hammer repository update --help
Usage:
    hammer repository update [OPTIONS]

Options:
    --gpg-key-id GPG_KEY_ID       ID of a gpg key that will be assigned to this repository
    --id ID                       repository ID
    --name NAME                   Name to search by
    --new-name NEW_NAME            
    --organization ORGANIZATION_NAME  
    --organization-id ORGANIZATION_ID  
    --organization-label ORGANIZATION_LABEL  
    --publish-via-http ENABLE     Publish Via HTTP
                                  One of true/false, yes/no, 1/0.
    --url URL                     the feed url of the original repository
    -h, --help                    print help

Comment 1 RHEL Program Management 2014-05-13 11:55:25 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 3 David Davis 2014-05-28 17:37:41 UTC
*** Bug 1102260 has been marked as a duplicate of this bug. ***

Comment 5 Bryan Kearney 2014-06-13 17:03:19 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/5813 has been closed

Comment 6 David Davis 2014-06-17 13:05:56 UTC
KATELLO:

a1275a17fa1b36a7f471c55c3129b389661d3d90

Refs #5813 - Content uploads BZ1102260
Implement content uploads (packages, puppet modules) in the UI and API.


HAMMER-CLI-KATELLO:

3a0ca2f943d47a911c69fb3803890c3653ecb9bc

Fixes #5813 - CLI content uploads BZ1102260

Comment 9 Sachin Ghai 2014-06-19 05:29:56 UTC
Verified with sat6 beta snap10(Satellite-6.0.3-RHEL-6-20140618.0)


I can see upload-content command under cli. Will test it later and file separate bz if find any issue.

[root@dhcp201-126 ~]# hammer repository upload-content --help
Usage:
    hammer repository upload-content [OPTIONS]

Options:
    --id ID                       repository ID
    --name NAME                   Name to search by
    --organization ORGANIZATION_NAME  
    --organization-id ORGANIZATION_ID  
    --organization-label ORGANIZATION_LABEL  
    --path PATH                   Upload file or directory of files as content for a repository
    -h, --help                    print help
[root@dhcp201-126 ~]# hammer repository update --help

Comment 10 Bryan Kearney 2014-07-02 14:07:07 UTC
This was delivered with 6.0.3, which is the Satellite 6 Beta.