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 1083256 - hammer cli always returns 'no' for a repository's publish-via-http
Summary: hammer cli always returns 'no' for a repository's publish-via-http
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: API
Version: 6.0.3
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Bryan Kearney
QA Contact: Elyézer Rezende
URL:
Whiteboard:
Depends On: 1083236
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-01 18:43 UTC by Og Maciel
Modified: 2017-04-24 14:26 UTC (History)
3 users (show)

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


Attachments (Terms of Use)

Comment 2 Brad Buckingham 2014-05-27 12:58:25 UTC
Are you still seeing this issue?  From a quick test, it is working for me on the latest code.

hammer> repository create --product-id 9 --name zoo --publish-via-http true --content-type yum
Repository created

hammer> repository list --organization ACME_Corporation
---|-------------------------------------------------------|-------------
ID | NAME                                                  | CONTENT TYPE
---|-------------------------------------------------------|-------------
1  | kickstart                                             | yum         
7  | Red Hat Enterprise Linux 6 Server RPMs x86_64 6Server | yum         
2  | rpms                                                  | yum         
9  | zoo                                                   | yum         
---|-------------------------------------------------------|-------------

hammer> repository info --id 9
ID:                 9
Name:               zoo
Label:              zoo
Organization:       ACME_Corporation
Red Hat Repository: no
Content Type:       yum
URL:                
Publish Via HTTP:   yes
Published At:       http://fortello.devel/pulp/repos/ACME_Corporation/Library/custom/zoo/zoo
Product:            
    ID:   9
    Name: zoo
GPG Key:            

Sync:               
    Status: Not Synced
Created:            2014/05/27 12:53:03
Updated:            2014/05/27 12:53:06
Content Counts:

Comment 3 Bryan Kearney 2014-06-04 20:58:56 UTC
please retest.

Comment 4 Elyézer Rezende 2014-06-06 17:49:42 UTC
Verified:

# LANG=en_US hammer -v -u admin -p changeme  --output csv repository create --product-id='188' --name='bAiQrAfsIDJnRCF' --publish-via-http='true' --url='http://omaciel.fedorapeople.org/fakerepo01/' --content-type='yum'
Message,Id,Name
Repository created,172,bAiQrAfsIDJnRCF

# LANG=en_US hammer -v -u admin -p changeme  repository info --id='172'
ID:                 172
Name:               bAiQrAfsIDJnRCF
Label:              bAiQrAfsIDJnRCF
Organization:       rj9gzobf
Red Hat Repository: no
Content Type:       yum
URL:                http://omaciel.fedorapeople.org/fakerepo01/
Publish Via HTTP:   yes
Published At:       http://qetello02.usersys.redhat.com/pulp/repos/rj9gzobf/Library/custom/FyqcksomqFQlLlHNuhxc/bAiQrAfsIDJnRCF
Product:
    ID:   188
    Name: vAfYllHYKfoSxJJLNWSO
GPG Key:

Sync:
    Status: Not Synced
Created:            2014/06/06 17:42:36
Updated:            2014/06/06 17:42:40
Content Counts:

# LANG=en_US hammer -v -u admin -p changeme  --output csv repository create --product-id='188' --name='gJpOgcdKDytPYCV' --publish-via-http='yes' --url='http://omaciel.fedorapeople.org/fakerepo01/' --content-type='yum'
Message,Id,Name
Repository created,173,gJpOgcdKDytPYCV

# LANG=en_US hammer -v -u admin -p changeme  repository info --id='173'
ID:                 173
Name:               gJpOgcdKDytPYCV
Label:              gJpOgcdKDytPYCV
Organization:       rj9gzobf
Red Hat Repository: no
Content Type:       yum
URL:                http://omaciel.fedorapeople.org/fakerepo01/
Publish Via HTTP:   yes
Published At:       http://qetello02.usersys.redhat.com/pulp/repos/rj9gzobf/Library/custom/FyqcksomqFQlLlHNuhxc/gJpOgcdKDytPYCV
Product:
    ID:   188
    Name: vAfYllHYKfoSxJJLNWSO
GPG Key:

Sync:
    Status: Not Synced
Created:            2014/06/06 17:43:00
Updated:            2014/06/06 17:43:02
Content Counts:

# LANG=en_US hammer -v -u admin -p changeme  --output csv repository create --product-id='188' --name='qegQfNWHVGAAzJx' --publish-via-http='1' --url='http://omaciel.fedorapeople.org/fakerepo01/' --content-type='yum'
Message,Id,Name
Repository created,174,qegQfNWHVGAAzJx

# LANG=en_US hammer -v -u admin -p changeme  repository info --id='174'
ID:                 174
Name:               qegQfNWHVGAAzJx
Label:              qegQfNWHVGAAzJx
Organization:       rj9gzobf
Red Hat Repository: no
Content Type:       yum
URL:                http://omaciel.fedorapeople.org/fakerepo01/
Publish Via HTTP:   yes
Published At:       http://qetello02.usersys.redhat.com/pulp/repos/rj9gzobf/Library/custom/FyqcksomqFQlLlHNuhxc/qegQfNWHVGAAzJx
Product:
    ID:   188
    Name: vAfYllHYKfoSxJJLNWSO
GPG Key:

Sync:
    Status: Not Synced
Created:            2014/06/06 17:43:22
Updated:            2014/06/06 17:43:24
Content Counts:


Environment:

* apr-util-ldap-1.3.9-3.el6_0.1.x86_64
* candlepin-0.9.7-1.el6_5.noarch
* candlepin-scl-1-5.el6_4.noarch
* candlepin-scl-quartz-2.1.5-5.el6_4.noarch
* candlepin-scl-rhino-1.7R3-1.el6_4.noarch
* candlepin-scl-runtime-1-5.el6_4.noarch
* candlepin-selinux-0.9.7-1.el6_5.noarch
* candlepin-tomcat6-0.9.7-1.el6_5.noarch
* elasticsearch-0.90.10-4.el6sat.noarch
* foreman-1.6.0.14-1.el6sat.noarch
* foreman-compute-1.6.0.14-1.el6sat.noarch
* foreman-gce-1.6.0.14-1.el6sat.noarch
* foreman-libvirt-1.6.0.14-1.el6sat.noarch
* foreman-ovirt-1.6.0.14-1.el6sat.noarch
* foreman-postgresql-1.6.0.14-1.el6sat.noarch
* foreman-proxy-1.6.0.6-1.el6sat.noarch
* foreman-selinux-1.6.0-4.el6sat.noarch
* foreman-vmware-1.6.0.14-1.el6sat.noarch
* katello-1.5.0-25.el6sat.noarch
* katello-ca-1.0-1.noarch
* katello-certs-tools-1.5.5-1.el6sat.noarch
* katello-installer-0.0.45-1.el6sat.noarch
* openldap-2.4.23-31.el6.x86_64
* pulp-katello-0.3-3.el6sat.noarch
* pulp-nodes-common-2.4.0-0.18.beta.el6sat.noarch
* pulp-nodes-parent-2.4.0-0.18.beta.el6sat.noarch
* pulp-puppet-plugins-2.4.0-0.18.beta.el6sat.noarch
* pulp-puppet-tools-2.4.0-0.18.beta.el6sat.noarch
* pulp-rpm-plugins-2.4.0-0.18.beta.el6sat.noarch
* pulp-selinux-2.4.0-0.18.beta.el6sat.noarch
* pulp-server-2.4.0-0.18.beta.el6sat.noarch
* python-ldap-2.3.10-1.el6.x86_64
* ruby193-rubygem-net-ldap-0.3.1-3.el6sat.noarch
* ruby193-rubygem-runcible-1.1.0-2.el6sat.noarch
* rubygem-hammer_cli-0.1.1-3.el6sat.noarch
* rubygem-hammer_cli_foreman-0.1.1-8.el6sat.noarch
* rubygem-hammer_cli_foreman_tasks-0.0.3-2.el6sat.noarch
* rubygem-hammer_cli_katello-0.0.4-5.el6sat.noarch

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

Comment 6 Bryan Kearney 2014-07-02 14:10:26 UTC
This was delivered in 6.0.3, the Beta version of Satellite 6.0

Comment 7 Bryan Kearney 2014-07-02 14:14:56 UTC
This was delivered in the Satellite 6 Beta (6.0.3)


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