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 1152237 - sync status for repositories via hammer returns no information
Summary: sync status for repositories via hammer returns no information
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hammer
Version: Nightly
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: Unspecified
Assignee: Eric Helms
QA Contact: Og Maciel
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-10-13 16:34 UTC by Og Maciel
Modified: 2019-09-26 15:43 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-27 11:23:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 7941 0 None None None 2016-04-22 15:01:40 UTC

Description Og Maciel 2014-10-13 16:34:11 UTC
Description of problem:

For a YUM custom repository, hammer repository info will show the following information for its sync status:

Sync:               
    Status: Not Synced

However, for a Docker custom repository hammer returns no information:

Sync:
    Status:

Version-Release number of selected component (if applicable):

* apr-util-ldap-1.3.9-3.el6_0.1.x86_64
* candlepin-0.9.32-1.el6.noarch
* candlepin-common-1.0.8-1.el6.noarch
* candlepin-selinux-0.9.32-1.el6.noarch
* candlepin-tomcat6-0.9.32-1.el6.noarch
* elasticsearch-0.90.10-7.el6.noarch
* foreman-1.7.0-0.develop.201410101505git9645d89.el6.noarch
* foreman-compute-1.7.0-0.develop.201410101505git9645d89.el6.noarch
* foreman-gce-1.7.0-0.develop.201410101505git9645d89.el6.noarch
* foreman-libvirt-1.7.0-0.develop.201410101505git9645d89.el6.noarch
* foreman-ovirt-1.7.0-0.develop.201410101505git9645d89.el6.noarch
* foreman-postgresql-1.7.0-0.develop.201410101505git9645d89.el6.noarch
* foreman-proxy-1.7.0-0.develop.201410101404git7961640.el6.noarch
* foreman-release-1.7.0-0.develop.201410101505git9645d89.el6.noarch
* foreman-selinux-1.7.0-0.develop.201409301113git2f345de.el6.noarch
* foreman-vmware-1.7.0-0.develop.201410101505git9645d89.el6.noarch
* katello-2.1.0-1.201410121115giteabe757.el6.noarch
* katello-certs-tools-2.0.1-1.el6.noarch
* katello-default-ca-1.0-1.noarch
* katello-installer-2.1.0-1.201410021645git304e036.el6.noarch
* katello-repos-2.1.1-1.el6.noarch
* katello-server-ca-1.0-1.noarch
* openldap-2.4.23-32.el6_4.1.x86_64
* pulp-docker-plugins-0.2.1-0.2.beta.el6.noarch
* pulp-katello-0.3-3.el6.noarch
* pulp-nodes-common-2.5.0-0.7.beta.el6.noarch
* pulp-nodes-parent-2.5.0-0.7.beta.el6.noarch
* pulp-puppet-plugins-2.5.0-0.7.beta.el6.noarch
* pulp-puppet-tools-2.5.0-0.7.beta.el6.noarch
* pulp-rpm-plugins-2.5.0-0.7.beta.el6.noarch
* pulp-selinux-2.5.0-0.7.beta.el6.noarch
* pulp-server-2.5.0-0.7.beta.el6.noarch
* python-ldap-2.3.10-1.el6.x86_64
* ruby193-rubygem-ldap_fluff-0.3.1-1.el6.noarch
* ruby193-rubygem-net-ldap-0.3.1-2.el6.noarch
* ruby193-rubygem-runcible-1.2.0-1.el6.noarch
* rubygem-hammer_cli-0.1.3-1.201409240954gitf3c47c7.el6.noarch
* rubygem-hammer_cli_foreman-0.1.3-1.201409191432gitc38f9c8.el6.noarch
* rubygem-hammer_cli_foreman_tasks-0.0.3-2.201409091410gitc96619d.git.0.37f3704.el6.noarch
* rubygem-hammer_cli_import-0.10.4-1.el6.noarch
* rubygem-hammer_cli_katello-0.0.6-1.201410121136gitdad4d95.git.0.a8e17a4.el6.noarch

How reproducible:


Steps to Reproduce:

LANG=en_US.UTF-8 hammer -v -u admin -p changeme  organization create --name='nHIdvt'
LANG=en_US.UTF-8 hammer -v -u admin -p changeme  product create --description='RKDGfkfOQkjyMAhepEmb' --label='jDfsTULkxZLmSkVrOfVi' --organization-id='12' --name='pAYjeFHpokkcSGFpJIyA'
LANG=en_US.UTF-8 hammer -v -u admin -p changeme  repository create --product-id='197' --name='wordpress' --publish-via-http='true' --url='https://registry.hub.docker.com/' --content-type='docker'
LANG=en_US.UTF-8 hammer -v -u admin -p changeme  repository info --id='34'

Actual results:

hammer repository info shows

Sync:               
    Status:

Expected results:

Sync:               
    Status: Not Synced

Additional info:

2014-10-13 12:05:07 - robottelo.common.ssh - DEBUG - >>> [qe-foreman-rhel65.usersys.redhat.com] LANG=en_US.UTF-8 hammer -v -u admin -p changeme  --output csv organization create --name='nHIdvt'
2014-10-13 12:05:07 - robottelo.common.ssh - INFO - Instantiated Paramiko client 0x1058838d0
2014-10-13 12:05:10 - robottelo.common.ssh - INFO - Destroying Paramiko client 0x1058838d0
2014-10-13 12:05:10 - robottelo.common.ssh - INFO - Destroyed Paramiko client 0x1058838d0
2014-10-13 12:05:10 - robottelo.common.ssh - DEBUG - <<<
Message,Id,Name
Organization created,12,nHIdvt
2014-10-13 12:05:10 - robottelo.common.ssh - DEBUG - >>> [qe-foreman-rhel65.usersys.redhat.com] LANG=en_US.UTF-8 hammer -v -u admin -p changeme  organization info --id='12'
2014-10-13 12:05:10 - robottelo.common.ssh - INFO - Instantiated Paramiko client 0x105883e10
2014-10-13 12:05:12 - robottelo.common.ssh - INFO - Destroying Paramiko client 0x105883e10
2014-10-13 12:05:12 - robottelo.common.ssh - INFO - Destroyed Paramiko client 0x105883e10
2014-10-13 12:05:12 - robottelo.common.ssh - DEBUG - <<<
Id:                     12
Name:                   nHIdvt
Users:

Smart proxies:
    qe-foreman-rhel65.usersys.redhat.com
Subnets:

Compute resources:

Installation media:

Templates:
    Boot disk iPXE - generic host (Bootdisk)
    Boot disk iPXE - host (Bootdisk)
    freeipa_register ()
    Katello Kickstart Default (provision)
    Katello Kickstart Default Finish (finish)
    Katello Kickstart Default User Data (user_data)
    Kickstart default iPXE (iPXE)
    Kickstart default PXELinux (PXELinux)
    puppet.conf ()
    PXELinux global default (PXELinux)
    subscription_manager_registration ()
Domains:

Environments:

Hostgroups:

Parameters:

Created at:             2014/10/13 16:04:53
Updated at:             2014/10/13 16:04:53
Label:                  nHIdvt
Description:
Red Hat Repository URL: https://cdn.redhat.com

2014-10-13 12:05:18 - robottelo.common.ssh - DEBUG - >>> [qe-foreman-rhel65.usersys.redhat.com] LANG=en_US.UTF-8 hammer -v -u admin -p changeme  --output csv product create --description='RKDGfkfOQkjyMAhepEmb' --label='jDfsTULkxZLmSkVrOfVi' --organization-id='12' --name='pAYjeFHpokkcSGFpJIyA'
2014-10-13 12:05:18 - robottelo.common.ssh - INFO - Instantiated Paramiko client 0x10588ac10
2014-10-13 12:05:21 - robottelo.common.ssh - INFO - Destroying Paramiko client 0x10588ac10
2014-10-13 12:05:21 - robottelo.common.ssh - INFO - Destroyed Paramiko client 0x10588ac10
2014-10-13 12:05:21 - robottelo.common.ssh - DEBUG - <<<
Message,Id,Name
Product created,197,pAYjeFHpokkcSGFpJIyA
2014-10-13 12:05:21 - robottelo.common.ssh - DEBUG - >>> [qe-foreman-rhel65.usersys.redhat.com] LANG=en_US.UTF-8 hammer -v -u admin -p changeme  product info --id='197' --organization-id='12'
2014-10-13 12:05:21 - robottelo.common.ssh - INFO - Instantiated Paramiko client 0x105883b50
2014-10-13 12:05:23 - robottelo.common.ssh - INFO - Destroying Paramiko client 0x105883b50
2014-10-13 12:05:23 - robottelo.common.ssh - INFO - Destroyed Paramiko client 0x105883b50
2014-10-13 12:05:23 - robottelo.common.ssh - DEBUG - <<<
ID:           197
Name:         pAYjeFHpokkcSGFpJIyA
Label:        jDfsTULkxZLmSkVrOfVi
Description:  RKDGfkfOQkjyMAhepEmb
Sync State:   not_synced
Sync Plan ID:
GPG:
    GPG Key ID:
    GPG Key:
Organization: nHIdvt
Readonly:     false
Deletable:
Content:

2014-10-13 12:05:28 - root - INFO - Bugzilla bug 1129617 not in cache. Fetching.
2014-10-13 12:05:28 - robottelo.common.ssh - DEBUG - >>> [qe-foreman-rhel65.usersys.redhat.com] LANG=en_US.UTF-8 hammer -v -u admin -p changeme  --output csv repository create --product-id='197' --name='wordpress' --publish-via-http='true' --url='https://registry.hub.docker.com/' --content-type='docker'
2014-10-13 12:05:29 - robottelo.common.ssh - INFO - Instantiated Paramiko client 0x10588de50
2014-10-13 12:05:34 - robottelo.common.ssh - INFO - Destroying Paramiko client 0x10588de50
2014-10-13 12:05:34 - robottelo.common.ssh - INFO - Destroyed Paramiko client 0x10588de50
2014-10-13 12:05:34 - robottelo.common.ssh - DEBUG - <<<
Message,Id,Name
Repository created,34,wordpress
2014-10-13 12:05:34 - robottelo.common.ssh - DEBUG - >>> [qe-foreman-rhel65.usersys.redhat.com] LANG=en_US.UTF-8 hammer -v -u admin -p changeme  repository info --id='34'
2014-10-13 12:05:34 - robottelo.common.ssh - INFO - Instantiated Paramiko client 0x10588ad90
2014-10-13 12:05:36 - robottelo.common.ssh - INFO - Destroying Paramiko client 0x10588ad90
2014-10-13 12:05:36 - robottelo.common.ssh - INFO - Destroyed Paramiko client 0x10588ad90
2014-10-13 12:05:36 - robottelo.common.ssh - DEBUG - <<<
ID:                 34
Name:               wordpress
Label:              wordpress
Organization:       nHIdvt
Red Hat Repository: no
Content Type:       docker
URL:                https://registry.hub.docker.com/
Publish Via HTTP:   yes
Published At:       http://qe-foreman-rhel65.usersys.redhat.com/pulp/repos/nHIdvt/Library/custom/jDfsTULkxZLmSkVrOfVi/wordpress
Product:
    ID:   197
    Name: pAYjeFHpokkcSGFpJIyA
GPG Key:

Sync:
    Status:
Created:            2014/10/13 16:05:15
Updated:            2014/10/13 16:05:17
Content Counts:

2014-10-13 12:05:41 - robottelo.common.ssh - DEBUG - >>> [qe-foreman-rhel65.usersys.redhat.com] LANG=en_US.UTF-8 hammer -v -u admin -p changeme  repository info --id='34'
2014-10-13 12:05:41 - robottelo.common.ssh - INFO - Instantiated Paramiko client 0x10588df10
2014-10-13 12:05:43 - robottelo.common.ssh - INFO - Destroying Paramiko client 0x10588df10
2014-10-13 12:05:43 - robottelo.common.ssh - INFO - Destroyed Paramiko client 0x10588df10
2014-10-13 12:05:43 - robottelo.common.ssh - DEBUG - <<<
ID:                 34
Name:               wordpress
Label:              wordpress
Organization:       nHIdvt
Red Hat Repository: no
Content Type:       docker
URL:                https://registry.hub.docker.com/
Publish Via HTTP:   yes
Published At:       http://qe-foreman-rhel65.usersys.redhat.com/pulp/repos/nHIdvt/Library/custom/jDfsTULkxZLmSkVrOfVi/wordpress
Product:
    ID:   197
    Name: pAYjeFHpokkcSGFpJIyA
GPG Key:

Sync:
    Status:
Created:            2014/10/13 16:05:15
Updated:            2014/10/13 16:05:17
Content Counts:

Comment 1 RHEL Program Management 2014-10-13 16:43:05 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 Og Maciel 2014-10-13 17:02:41 UTC
UPDATE: turns out that the same is happening with YUM custom repos as well:

2014-10-13 13:00:00 - robottelo.common.ssh - DEBUG - >>> [qe-foreman-rhel65.usersys.redhat.com] LANG=en_US.UTF-8 hammer -v -u admin -p changeme  --output csv repository create --product-id='484' --name='SEXSfPrIKTjdRgP' --publish-via-http='true' --url='http://inecas.fedorapeople.org/fakerepos/zoo3/' --content-type='yum'
2014-10-13 13:00:00 - robottelo.common.ssh - INFO - Instantiated Paramiko client 0x105350490
2014-10-13 13:00:06 - robottelo.common.ssh - INFO - Destroying Paramiko client 0x105350490
2014-10-13 13:00:06 - robottelo.common.ssh - INFO - Destroyed Paramiko client 0x105350490
2014-10-13 13:00:06 - robottelo.common.ssh - DEBUG - <<<
Message,Id,Name
Repository created,91,SEXSfPrIKTjdRgP
2014-10-13 13:00:06 - robottelo.common.ssh - DEBUG - >>> [qe-foreman-rhel65.usersys.redhat.com] LANG=en_US.UTF-8 hammer -v -u admin -p changeme  repository info --id='91'
2014-10-13 13:00:06 - robottelo.common.ssh - INFO - Instantiated Paramiko client 0x10534da90
2014-10-13 13:00:08 - robottelo.common.ssh - INFO - Destroying Paramiko client 0x10534da90
2014-10-13 13:00:08 - robottelo.common.ssh - INFO - Destroyed Paramiko client 0x10534da90
2014-10-13 13:00:08 - robottelo.common.ssh - DEBUG - <<<
ID:                 91
Name:               SEXSfPrIKTjdRgP
Label:              SEXSfPrIKTjdRgP
Organization:       7SHwV0
Red Hat Repository: no
Content Type:       yum
URL:                http://inecas.fedorapeople.org/fakerepos/zoo3/
Publish Via HTTP:   yes
Published At:       http://qe-foreman-rhel65.usersys.redhat.com/pulp/repos/7SHwV0/Library/custom/xSledNffwxbuBGvRzabg/SEXSfPrIKTjdRgP
Product:
    ID:   484
    Name: WEyxAnrjWypoPmrisZIi
GPG Key:

Sync:
    Status:
Created:            2014/10/13 16:59:47
Updated:            2014/10/13 16:59:51
Content Counts:

Comment 5 Og Maciel 2014-10-14 15:16:59 UTC
Upstream issue is http://projects.theforeman.org/issues/7941

Comment 6 Og Maciel 2014-10-14 15:38:34 UTC
Connecting redmine issue http://projects.theforeman.org/issues/7941 from this bug

Comment 7 Bryan Kearney 2015-01-09 14:44:11 UTC
Upstream bug assigned to paji

Comment 8 Bryan Kearney 2015-08-14 16:59:56 UTC
Upstream bug assigned to ehelms

Comment 10 Bryan Kearney 2015-12-11 17:04:38 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/7941 has been closed
-------------
Eric Helms
Applied in changeset commit:hammer-cli-katello|9a739879db522689aed22e04ea1ce10cdddc3b15.

Comment 12 Og Maciel 2016-03-18 20:08:22 UTC
Verified that both RHEL (yum) and Docker based repositories show the proper information under the "Sync" property.


[root@ibm-x3250m4-01 ~]# LANG=en_US.UTF-8 hammer -v -u admin -p changeme  repository info --id 14
ID:                        14
Name:                      Ubuntu
Label:                     Ubuntu
Organization:              Default Organization
Red Hat Repository:        no
Content Type:              docker
URL:                       https://registry-1.docker.io
Publish Via HTTP:          yes
Published At:              SERVER:5000/default_organization-docker-ubuntu
Relative Path:             default_organization-docker-ubuntu
Upstream Repository Name:  ubuntu
Container Repository Name: default_organization-docker-ubuntu
Product:
    ID:   14
    Name: Docker
GPG Key:

Sync:
    Status:
    Last Sync Date: less than a minute
Created:                   2016/03/02 08:02:12
Updated:                   2016/03/02 08:02:13
Content Counts:
    Docker Manifests: 102
    Docker Tags:      102

[root@ibm-x3250m4-01 ~]# LANG=en_US.UTF-8 hammer -v -u admin -p changeme  repository info --id 1
ID:                 1
Name:               Red Hat Enterprise Linux 7 Server RPMs x86_64 7Server
Label:              Red_Hat_Enterprise_Linux_7_Server_RPMs_x86_64_7Server
Organization:       Default Organization
Red Hat Repository: yes
Content Type:       yum
Checksum Type:      sha1
URL:                https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os
Publish Via HTTP:   no
Published At:       https://SERVER/pulp/repos/Default_Organization/Library/content/dist/rhel/server/7/7Server/x86_64/os
Relative Path:      Default_Organization/Library/content/dist/rhel/server/7/7Server/x86_64/os
Download Policy:    immediate
Product:
    ID:   9
    Name: Red Hat Enterprise Linux Server
GPG Key:

Sync:
    Status:         Success
    Last Sync Date: 19 days
Created:            2016/02/28 16:56:40
Updated:            2016/02/28 17:38:28
Content Counts:
    Packages:       10330
    Package Groups: 71
    Errata:         1094


This also works for unsynchronized repositories:

[root@ibm-x3250m4-01 ~]# LANG=en_US.UTF-8 hammer -v -u admin -p changeme  repository info --id 15
ID:                        15
Name:                      newrepo
Label:                     newrepo
Organization:              Default Organization
Red Hat Repository:        no
Content Type:              docker
URL:                       https://registry-1.docker.io/
Publish Via HTTP:          yes
Published At:              SERVER:5000/default_organization-docker-newrepo
Relative Path:             default_organization-docker-newrepo
Upstream Repository Name:  mysql
Container Repository Name: default_organization-docker-newrepo
Product:
    ID:   14
    Name: Docker
GPG Key:

Sync:
    Status: Not Synced
Created:                   2016/03/18 20:06:16
Updated:                   2016/03/18 20:06:17
Content Counts:
    Docker Manifests: 0
    Docker Tags:      0


Verified on Satellite 6.2.0 SNAP 4.0

Comment 15 Bryan Kearney 2016-07-27 11:23:38 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1501


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