Bug 827527 - SE doesn't provide a way how to refresh imported repositories
Summary: SE doesn't provide a way how to refresh imported repositories
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Content Management
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Katello Bug Bin
QA Contact: Kedar Bidarkar
URL:
Whiteboard:
Depends On: 805956
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-06-01 17:36 UTC by Chris Pelland
Modified: 2014-09-18 15:31 UTC (History)
6 users (show)

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.
Clone Of: 805956
Environment:
Last Closed: 2012-07-10 07:24:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
detailed steps followed for verification and pulp.log during it's execution (43.04 KB, application/octet-stream)
2012-06-11 09:30 UTC, Kedar Bidarkar
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:1062 0 normal SHIPPED_LIVE CloudForms System Engine 1.0.1 bug fix update 2012-07-10 11:18:51 UTC

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


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