Project

General

Profile

Bug #7941

sync status for repositories via hammer returns no information

Added by Og Maciel over 7 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hammer
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

This is related to https://bugzilla.redhat.com/show_bug.cgi?id=1152237

Description of problem:

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

Sync:               
    Status: Not Synced

However, nightly build for hammer repository info 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:

Associated revisions

Revision 9a739879 (diff)
Added by Eric Helms about 6 years ago

Fixes #7941: Display sync status correctly on repository info.

Revision a339c425
Added by Eric D Helms about 6 years ago

Merge pull request #309 from ehelms/fixes-7941

Fixes #7941: Display sync status correctly on repository info.

History

#1 Updated by Og Maciel over 7 years ago

  • Bugzilla link set to 1152237

#2 Updated by Eric Helms over 7 years ago

  • Legacy Backlogs Release (now unused) set to 14
  • Triaged changed from No to Yes

#3 Updated by Partha Aji over 7 years ago

  • Assignee set to Partha Aji

#4 Updated by Eric Helms about 7 years ago

  • Legacy Backlogs Release (now unused) changed from 14 to 23

#5 Updated by Eric Helms almost 7 years ago

  • Target version set to 67

#6 Updated by Eric Helms almost 7 years ago

  • Target version changed from 67 to 68

#7 Updated by Eric Helms almost 7 years ago

  • Legacy Backlogs Release (now unused) changed from 23 to 31

#8 Updated by Eric Helms almost 7 years ago

  • Target version deleted (68)

#9 Updated by Eric Helms over 6 years ago

  • Assignee changed from Partha Aji to Eric Helms
  • Legacy Backlogs Release (now unused) changed from 31 to 70

#10 Updated by The Foreman Bot over 6 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/hammer-cli-katello/pull/309 added
  • Pull request deleted ()

#11 Updated by Justin Sherrill about 6 years ago

  • Legacy Backlogs Release (now unused) changed from 70 to 86

#12 Updated by Eric Helms about 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF