Bug 863479 - KickstartFileSyncTask will be repeated endlessly for kickstart profiles renamed before upgrade to Satellite 5.5
Summary: KickstartFileSyncTask will be repeated endlessly for kickstart profiles renam...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite 5
Classification: Red Hat
Component: Upgrades
Version: 550
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tomas Lestach
QA Contact: Pavel Studeník
URL:
Whiteboard:
: 862144 (view as bug list)
Depends On:
Blocks: 819027
TreeView+ depends on / blocked
 
Reported: 2012-10-05 14:59 UTC by Milan Zázrivec
Modified: 2018-11-29 19:55 UTC (History)
7 users (show)

Fixed In Version: spacewalk-java-1.7.54-103
Doc Type: Bug Fix
Doc Text:
Consequence: Any kickstart profile rename on RHN Satellite 5.4 causes issues after Satellite upgrade to 5.5. The profile is unusable and any tries to sync the profile fail with a 'kickstart not found' exception and get repeated endlessly Result: Renamed kickstart profiles get properly synced to cobbler.
Clone Of:
Environment:
Last Closed: 2012-10-23 06:38:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 225913 0 None None None 2018-11-28 19:07:27 UTC
Red Hat Product Errata RHBA-2012:1398 0 normal SHIPPED_LIVE Red Hat Network Satellite server spacewalk-java bug fix update 2012-10-23 10:36:32 UTC

Description Milan Zázrivec 2012-10-05 14:59:01 UTC
Description of problem:
A taskomatic task "KickstartFileSyncTask" will be repeated endlessly for
kickstart profiles renamed before upgrade to Satellite 5.5.

Version-Release number of selected component (if applicable):
spacewalk-taskomatic-1.7.54-100

How reproducible:
Deterministic

Steps to Reproduce:
1. Have a 5.4 Satellite, kickstart profile "profile01"
2. Rename "profile01" to "profile02"
2. Upgrade to Satellite 5.5
3. Check taskomatic & cobbler logs after upgrade
  
Actual results:
1. Taskomatic will endlessly try to run KickstartFileSyncTask for kickstart
profile "profile02", leaving messages like:

com.redhat.rhn.taskomatic.task.KickstartFileSyncTask - Syncing profile02

in /var/log/rhn/rhn_taskomatic_daemon.log

2. kickstart path for the "profile02" profile will not be updated in
cobbler's records.


Expected results:
1. Kickstart profile "profile02" will be synced only once.
2. kickstart path for the "profile02" profile will be updated in
cobbler's records.

Additional info:
On Satellite before the upgrade:
1. Kickstart file for "profile01" is at

      /var/lib/rhn/kickstarts/wizzard/profile01.cfg

2. cobbler's record for "profile01" points to the above file.
3. "profile01" will be renamed to "profile02"
4. Kickstart file for "profile02" will still be

      /var/lib/rhn/kickstarts/wizzard/profile01.cfg

5. cobbler's record will remain unchanged

During the upgrade to Satellite 5.5, content of

    /var/lib/rhn/kickstarts/wizzard/

will be deleted.

After the upgrade to Satellite 5.5, "KickstartFileSyncTask" will wake up.

The taskomatic task "KickstartFileSyncTask" does the following:
1. Lists all available kickstart profiles
2. For every kickstart profile, it contacts cobbler and asks for the path to
the kickstart file for the kickstart profile. Next, it checks whether
the kickstart file is present on the filesystem. If not, it creates this
file.

In case of "profile02", KickstartFileSyncTask will create the following file:

      /var/lib/rhn/kickstarts/wizzard/profile02.cfg

but will never tell cobbler back that the path to the kickstart file has
changed.

Next time KickstartFileSyncTask will run, it will do the same procedure
for "profile02" again.

Comment 1 Tomas Lestach 2012-10-08 12:00:12 UTC
There's a need to update also cobbler profile configuration ... enhancing ks file sync ...

spacewalk.git: 1c7490e39d859179573e2c735e82bc3acb8e3f05

Comment 6 errata-xmlrpc 2012-10-23 06:38:31 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-1398.html

Comment 7 Pavel Studeník 2012-10-24 13:37:26 UTC
*** Bug 862144 has been marked as a duplicate of this bug. ***


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