Bug 1097209 - Missing content_upload hammer command from cli
Summary: Missing content_upload hammer command from cli
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: 6.0.3
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: David Davis
QA Contact: Sachin Ghai
URL: http://projects.theforeman.org/issues...
Whiteboard:
: 1102260 (view as bug list)
Depends On: 1103311
Blocks: 1028395
TreeView+ depends on / blocked
 
Reported: 2014-05-13 11:51 UTC by Sachin Ghai
Modified: 2019-09-26 17:40 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-07-02 14:07:07 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 5813 0 None None None 2016-04-22 15:50:45 UTC

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.


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