Bug 1083256

Summary: hammer cli always returns 'no' for a repository's publish-via-http
Product: Red Hat Satellite Reporter: Og Maciel <omaciel>
Component: APIAssignee: Bryan Kearney <bkearney>
Status: CLOSED CURRENTRELEASE QA Contact: Elyézer Rezende <erezende>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.3CC: bbuckingham, erezende, omaciel
Target Milestone: UnspecifiedKeywords: Reopened
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1083236 Environment:
Last Closed: 2014-07-02 14:14:56 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: 1083236    
Bug Blocks:    

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)