Bug 881830 - KickstartFileSyncTask won't re-create content of /var/lib/rhn/kickstarts/wizzard directory
Summary: KickstartFileSyncTask won't re-create content of /var/lib/rhn/kickstarts/wizz...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Provisioning
Version: 550
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tomas Lestach
QA Contact: Pavel Studeník
URL:
Whiteboard:
Depends On:
Blocks: 819027
TreeView+ depends on / blocked
 
Reported: 2012-11-29 16:23 UTC by Milan Zázrivec
Modified: 2013-03-04 12:57 UTC (History)
2 users (show)

Fixed In Version: spacewalk-java-1.7.54-113
Doc Type: Bug Fix
Doc Text:
Consequence: If content of /var/lib/rhn/kickstarts/wizzard directory gets deleted, taskomatic fails to re-create it. Result: Possibly deleted content of /var/lib/rhn/kickstarts/wizzard directory will be correctly re-created by taskomatic.
Clone Of:
Environment:
Last Closed: 2013-03-04 12:57:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0583 0 normal SHIPPED_LIVE Red Hat Network Satellite server bug fix and enhancement update 2013-03-04 17:55:59 UTC

Description Milan Zázrivec 2012-11-29 16:23:25 UTC
Description of problem:
The following directory on RHN Satellite:

    /var/lib/rhn/kickstarts/wizzard

contains kickstart files for every kickstart profile defined on RHN Satellite.
Should the content of this directory be deleted (which happens for example
automatically during RHN Satellite upgrade), KickstartFileSyncTask will
not re-create its content as it should (i.e. the task which should
be syncing the kickstart files to disk will not sync anything).

Version-Release number of selected component (if applicable):
spacewalk-java-1.7.54-103

How reproducible:
Deterministic

Steps to Reproduce:
1. Satellite 5.5, create a kickstart profile
2. Check /var/lib/rhn/kickstarts/wizzard directory, a kickstart file
for the profile should be created by tomcat.
3. Delete the kickstart file from the step 2.
4. Manually execute KickstartFileSyncTask from:
    rhn/admin/BunchDetail.do?label=kickstartfile-sync-bunch
5. See whether taskomatic re-created the deleted file.
  
Actual results:
The deleted kickstart file will never be re-created by taskomatic.

Expected results:
The deleted file is re-created by taskomatic

Additional info:
Change in behavior was introduced by bug #863479 and the following commit:

http://git.fedorahosted.org/cgit/spacewalk.git/commit/?id=1c7490e39d859179573e2c735e82bc3acb8e3f05

Comment 2 Tomas Lestach 2012-12-03 13:35:20 UTC
create /var/lib/rhn/kickstarts/wizard/*.cfg files if missing by the KickstartFileSyncTask ...
+ bonus: fix the query returning all kickstart data to contain only unique entries

spacewalk.git: f8559ee73b52ba4959828459b8c68ed10ef27b2e

Comment 7 errata-xmlrpc 2013-03-04 12:57:39 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-2013-0583.html


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