Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 827527

Summary: SE doesn't provide a way how to refresh imported repositories
Product: Red Hat Satellite Reporter: Chris Pelland <cpelland>
Component: Content ManagementAssignee: Katello Bug Bin <katello-bugs>
Status: CLOSED ERRATA QA Contact: Kedar Bidarkar <kbidarka>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: cpelland, inecas, kbidarka, mmccune, omaciel, sachua
Target Milestone: UnspecifiedKeywords: Triaged, ZStream
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
User is unable to access new repositories from CDN through System Engine. This update allows users to refresh product repositories with the command: katello provider refresh_products --name "Provider" --org "Organization" A cron script is also written to alert System Engine when there is new content available.
Story Points: ---
Clone Of: 805956 Environment:
Last Closed: 2012-07-10 07:24:37 UTC Type: ---
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: 805956    
Bug Blocks:    
Attachments:
Description Flags
detailed steps followed for verification and pulp.log during it's execution none

Comment 3 Kedar Bidarkar 2012-06-11 09:24:03 UTC
I could update the provider url for "Red Hat" successfully and could fetch version 16 and also sync it properly.

[root@xxddd ~]# katello --user admin --password admin provider --help
Usage: katello <options> provider <action> <options>
Supported Actions:
	create         create a provider
	info           list information about a provider
	list           list all known providers
	update         update a provider
	delete         delete a provider
	synchronize    synchronize a provider
	cancel_sync    cancel currently running synchronization
	status         status of provider's synchronization
	import_manifest import a manifest file
	refresh_products refresh provider's products repositories

Options:
  -h, --help  show this help message and exit


[root@xxddd ~]# katello --user admin --password admin provider update --name "Red Hat" --url "http://inecas.fedorapeople.org/fakerepos/cds_fast_old/" --org ACME_Corporation
Successfully updated provider [ Red Hat ]

[root@xxddd ~]# katello --user admin --password admin provider import_manifest --name "Red Hat" --file fake-manifest-syncable.zip --org ACME_Corporation
Manifest imported  
                   
[root@xxddd ~]# katello --user admin --password admin provider update --name "Red Hat" --url "http://inecas.fedorapeople.org/fakerepos/cds_fast/" --org ACME_Corporation
Successfully updated provider [ Red Hat ]

[root@xxddd ~]# katello --user admin --password admin provider refresh_products --name "Red Hat" --org "ACME_Corporation"
Provider successfully refreshed [ Red Hat ]


[root@xxddd ~]# katello --user admin --password admin provider info --name "Red Hat" --org ACME_Corporation
---------------------------------------------------------------------------------------------------------------------------------
                                                      Provider Information
---------------------------------------------------------------------------------------------------------------------------------

Id:          1
Name:        Red Hat
Type:        Red Hat
Url:         http://inecas.fedorapeople.org/fakerepos/cds_fast/
Org Id:      1
Description:
    None

Comment 4 Kedar Bidarkar 2012-06-11 09:29:04 UTC
Also we have the mentioned cron script for refreshing content from cdn.

[root@xxddd cron.daily]# cat katello-refresh-cdn 
#!/bin/env bash
# script for refreshing the newest content from CDN. It doesn't synchronize the
# repositories but lets Katello know there is new content available.

# running the script from rails root
RAILS_DIR=/usr/share/katello
pushd $RAILS_DIR &> /dev/null

rake katello:refresh_cdn RAILS_ENV=production

popd &> /dev/null

Comment 5 Kedar Bidarkar 2012-06-11 09:30:45 UTC
Created attachment 590871 [details]
detailed steps followed for verification and pulp.log during it's execution

Comment 6 sachua 2012-06-12 06:50:10 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
User is unable to access new repositories from CDN through System Engine. This update allows users to refresh product repositories with the command:
katello provider refresh_products --name "Provider" --org "Organization"
A cron script is also written to alert System Engine when there is new content available.

Comment 8 errata-xmlrpc 2012-07-10 07:24:37 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.

http://rhn.redhat.com/errata/RHBA-2012-1062.html