Bug 1101666 - hammer repository synchronize requires repository-id
Summary: hammer repository synchronize requires repository-id
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: 6.0.3
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: Unspecified
Assignee: Adam Price
QA Contact: Og Maciel
URL:
Whiteboard:
: 1108849 (view as bug list)
Depends On: 1101657
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-27 17:40 UTC by Justin Sherrill
Modified: 2019-09-26 15:45 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-09-11 12:29:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Justin Sherrill 2014-05-27 17:40:25 UTC
Like other things I should be able to reference a repository by its name when synching.  I would have to also specify product and org:

hammer repository  synchronize   --product="RHEL" --repository="Some Repo Name" --organization "ACME_Corp"

Comment 1 RHEL Program Management 2014-05-27 17:53:59 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 Bryan Kearney 2014-05-27 20:24:20 UTC
Probably a dupe of https://bugzilla.redhat.com/show_bug.cgi?id=1099974.

Comment 4 Bryan Kearney 2014-05-27 20:26:59 UTC
I hope this is solved by http://projects.theforeman.org/issues/5747

Comment 5 Bryan Kearney 2014-06-04 13:43:35 UTC
This is fixed by https://bugzilla.redhat.com/show_bug.cgi?id=1101657. I am moving this to ON_QA. Please do not test this until you see that https://bugzilla.redhat.com/show_bug.cgi?id=1101657 has been moved to ON_QA.

Comment 6 Kedar Bidarkar 2014-06-06 19:40:27 UTC
tested with sat6-snap8-c2

still --id is the only way to sync repos

[root@xxxx provision]# hammer repository synchronize --help
Usage:
    hammer repository synchronize [OPTIONS]

Options:
    --async                       Do not wait for the task
    --id ID                       repository ID
    --name NAME                   Name to search by
    --organization ORGANIZATION_NAME  
    --organization-id ORGANIZATION_ID  
    -h, --help                    print help
[root@xxxx provision]# hammer repository synchronize --name capsule --organization ACME_Corporation
Could not synchronize the repository:
  missing param 'id' in parameters
[root@xxxx provision]# hammer repository synchronize --id 8
[....................................................................................................................................................................................] [100%]
Task 9bbabf55-20d4-443a-8996-e6f2fec03468: success
New packages: 1 (62.4 MB)

Comment 7 Adam Price 2014-06-13 16:20:08 UTC
*** Bug 1108849 has been marked as a duplicate of this bug. ***

Comment 8 Og Maciel 2014-08-31 15:25:09 UTC
[root@cloud-qe-10 ~]# hammer -u admin -p changeme repository synchronize -h
Usage:
    hammer repository synchronize [OPTIONS]

Options:
    --async                       Do not wait for the task
    --id ID                       repository ID
    --name NAME                   Repository name to search by
    --organization ORGANIZATION_NAME Organization name to search by
    --organization-id ORGANIZATION_ID
    --organization-label ORGANIZATION_LABEL Organization label to search by
    --product PRODUCT_NAME        Product name to search by
    --product-id PRODUCT_ID       product numeric identifier
    -h, --help                    print help

[root@cloud-qe-10 ~]# hammer -u admin -p changeme repository list --organization=Default_Organization
---|------------------------------------------------------------------------|---------------------------------|--------------|------------------------------------------------------------------------------
ID | NAME                                                                   | PRODUCT                         | CONTENT TYPE | URL
---|------------------------------------------------------------------------|---------------------------------|--------------|------------------------------------------------------------------------------
10 | Puppet Forge                                                           | Forge                           | puppet       | https://forge.puppetlabs.com
38 | Red Hat Enterprise Linux 5 Server Kickstart i386 5Server               | Red Hat Enterprise Linux Server | yum          | https://cdn.redhat.com/content/dist/rhel/server/5/5Server/i386/kickstart
1  | Red Hat Enterprise Linux 5 Server Kickstart x86_64 5Server             | Red Hat Enterprise Linux Server | yum          | https://cdn.redhat.com/content/dist/rhel/server/5/5Server/x86_64/kickstart
40 | Red Hat Enterprise Linux 5 Server - RH Common Beta RPMs i386 5Server   | Red Hat Enterprise Linux Server | yum          | https://cdn.redhat.com/content/beta/rhel/server/5/5Server/i386/rh-common/os

[root@cloud-qe-10 ~]# hammer -u admin -p changeme repository synchronize --name='Puppet Forge' --product='Forge' --organization='Default_Organization' --async
Repository is being synchronized in task f1583937-4958-43a6-b07e-f258ca9bc2e6

Comment 9 Og Maciel 2014-08-31 15:25:46 UTC
VERIFIED:

Browser:
=====
* Firefox 31.0 (MacOS)

Build:  
====
* Satellite-6.0.4-RHEL-6-20140829.0

Packages:
======
* apr-util-ldap-1.3.9-3.el6_0.1.x86_64
* candlepin-0.9.23-1.el6_5.noarch
* candlepin-common-1.0.1-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.23-1.el6_5.noarch
* candlepin-tomcat6-0.9.23-1.el6_5.noarch
* elasticsearch-0.90.10-6.el6sat.noarch
* foreman-1.6.0.42-1.el6sat.noarch
* foreman-compute-1.6.0.42-1.el6sat.noarch
* foreman-gce-1.6.0.42-1.el6sat.noarch
* foreman-libvirt-1.6.0.42-1.el6sat.noarch
* foreman-ovirt-1.6.0.42-1.el6sat.noarch
* foreman-postgresql-1.6.0.42-1.el6sat.noarch
* foreman-proxy-1.6.0.30-1.el6sat.noarch
* foreman-selinux-1.6.0.14-1.el6sat.noarch
* foreman-vmware-1.6.0.42-1.el6sat.noarch
* katello-1.5.0-30.el6sat.noarch
* katello-ca-consumer-cloud-qe-10.idmqe.lab.eng.bos.redhat.com-1.0-1.noarch
* katello-certs-tools-1.5.6-1.el6sat.noarch
* katello-default-ca-1.0-1.noarch
* katello-installer-0.0.64-1.el6sat.noarch
* katello-server-ca-1.0-1.noarch
* openldap-2.4.23-32.el6_4.1.x86_64
* pulp-katello-0.3-4.el6sat.noarch
* pulp-nodes-common-2.4.1-0.5.rc1.el6sat.noarch
* pulp-nodes-parent-2.4.1-0.5.rc1.el6sat.noarch
* pulp-puppet-plugins-2.4.1-0.5.rc1.el6sat.noarch
* pulp-puppet-tools-2.4.1-0.5.rc1.el6sat.noarch
* pulp-rpm-plugins-2.4.1-0.6.beta.el6sat.noarch
* pulp-selinux-2.4.1-0.5.rc1.el6sat.noarch
* pulp-server-2.4.1-0.5.rc1.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-12.el6sat.noarch
* rubygem-hammer_cli_foreman-0.1.1-16.el6sat.noarch
* rubygem-hammer_cli_foreman_tasks-0.0.3-3.el6sat.noarch
* rubygem-hammer_cli_import-0.10.2-1.2.el6sat.noarch
* rubygem-hammer_cli_katello-0.0.4-14.el6sat.noarch

Browser:
=====
* Firefox 31.0 (MacOS)

Build:  
====
* Satellite/Satellite-6.0.4-RHEL-7-20140829.0

Packages:
======
* candlepin-0.9.23-1.el7.noarch
* candlepin-common-1.0.1-1.el7.noarch
* candlepin-guice-3.0-2_redhat_1.el7.noarch
* candlepin-scl-1-5.el7.noarch
* candlepin-scl-quartz-2.1.5-6.el7.noarch
* candlepin-scl-rhino-1.7R3-3.el7.noarch
* candlepin-scl-runtime-1-5.el7.noarch
* candlepin-selinux-0.9.23-1.el7.noarch
* candlepin-tomcat-0.9.23-1.el7.noarch
* elasticsearch-0.90.10-6.el7sat.noarch
* foreman-1.6.0.42-1.el7sat.noarch
* foreman-compute-1.6.0.42-1.el7sat.noarch
* foreman-gce-1.6.0.42-1.el7sat.noarch
* foreman-libvirt-1.6.0.42-1.el7sat.noarch
* foreman-ovirt-1.6.0.42-1.el7sat.noarch
* foreman-postgresql-1.6.0.42-1.el7sat.noarch
* foreman-proxy-1.6.0.30-1.el7sat.noarch
* foreman-selinux-1.6.0.14-1.el7sat.noarch
* foreman-vmware-1.6.0.42-1.el7sat.noarch
* katello-1.5.0-30.el7sat.noarch
* katello-certs-tools-1.5.6-1.el7sat.noarch
* katello-default-ca-1.0-1.noarch
* katello-installer-0.0.64-1.el7sat.noarch
* katello-server-ca-1.0-1.noarch
* openldap-2.4.39-3.el7.x86_64
* pulp-katello-0.3-4.el7sat.noarch
* pulp-nodes-common-2.4.1-0.5.rc1.el7sat.noarch
* pulp-nodes-parent-2.4.1-0.5.rc1.el7sat.noarch
* pulp-puppet-plugins-2.4.1-0.5.rc1.el7sat.noarch
* pulp-puppet-tools-2.4.1-0.5.rc1.el7sat.noarch
* pulp-rpm-plugins-2.4.1-0.6.beta.el7sat.noarch
* pulp-selinux-2.4.1-0.5.rc1.el7sat.noarch
* pulp-server-2.4.1-0.5.rc1.el7sat.noarch
* python-ldap-2.4.6-6.el7.x86_64
* ruby193-rubygem-net-ldap-0.3.1-3.el7sat.noarch
* ruby193-rubygem-runcible-1.1.0-2.el7sat.noarch
* rubygem-hammer_cli-0.1.1-12.el7sat.noarch
* rubygem-hammer_cli_foreman-0.1.1-16.el7sat.noarch
* rubygem-hammer_cli_foreman_tasks-0.0.3-3.el7sat.noarch
* rubygem-hammer_cli_import-0.10.2-1.2.el7sat.noarch
* rubygem-hammer_cli_katello-0.0.4-14.el7sat.noarch

Comment 10 Bryan Kearney 2014-09-11 12:29:05 UTC
This was delivered with Satellite 6.0 which was released on 10 September 2014.


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