Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 630595

Summary: after channel sync from hosted I do not see any available Kickstartable distributions
Product: Red Hat Satellite 5 Reporter: Jan Hutař <jhutar>
Component: WebUIAssignee: Justin Sherrill <jsherril>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: high Docs Contact:
Priority: high    
Version: 540CC: atodorov, benl, cperry, gkhachik, mmraka, psklenar, slukasik
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: spacewalk-java-1.2.40-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-10-28 14:49:20 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:    
Bug Blocks: 487678, 625708    

Description Jan Hutař 2010-09-06 11:08:12 UTC
Description of problem:
I have synced rhel-i386-as-4 channel (from Errata.stage and then re-synced from Prod to be sure), but I still can not create a Kickstart on WebUI. There are no "Kickstartable Tree"s in the menu.


Version-Release number of selected component (if applicable):
Galactica: Satellite-5.4.0-RHEL5-re20100827.0-x86_64-embedded-oracle.iso
spacewalk-backend-tools-1.2.8-1.el5sat


How reproducible:
on 1 satellite, always


Steps to Reproduce:
1. # satellite-sync -c rhel-i386-as-4
   [...]
   05:05:59 Downloading kickstartable trees metadata
   05:05:59    Retrieving / parsing kickstart data: rhel-i386-as-4 (9)
               ________________________________________
   Downloading:######################################## - complete
   05:06:27
   05:06:27 Downloading kickstartable trees files
   05:06:27    Retrieving / parsing kickstart tree files: rhel-i386-as-4 (NONE RELEVANT)
   [...]
2. On WebUI go to Systems -> Kickstart -> create new kickstart profile
3. Select that channel in "Base Channel" drop down list


Actual results:
There is still "Kickstartable Tree: No trees were found for the selected channel"


Expected results:
There should be various (GA, -U1, ... -U8) "Kickstartable Tree"s offered

Comment 1 Jan Hutař 2010-09-06 11:13:53 UTC
Kickstarts seems to be correctly synced:

# du -hs /var/satellite/rhn/kickstart/*
322M    /var/satellite/rhn/kickstart/ks-rhel-i386-as-4
162M    /var/satellite/rhn/kickstart/ks-rhel-i386-as-4-u1
164M    /var/satellite/rhn/kickstart/ks-rhel-i386-as-4-u2
168M    /var/satellite/rhn/kickstart/ks-rhel-i386-as-4-u3
174M    /var/satellite/rhn/kickstart/ks-rhel-i386-as-4-u4
179M    /var/satellite/rhn/kickstart/ks-rhel-i386-as-4-u5
181M    /var/satellite/rhn/kickstart/ks-rhel-i386-as-4-u6
184M    /var/satellite/rhn/kickstart/ks-rhel-i386-as-4-u7
192M    /var/satellite/rhn/kickstart/ks-rhel-i386-as-4-u8

Also I see them using XMLRPC API client.kickstart.tree.list(key, CHANNEL) call.

Comment 2 Jan Hutař 2010-09-07 11:32:58 UTC
As psklenar discovered, this appears in /var/log/rhn/rhn_taskomatic_daemon.log on latest Galactica (Satellite-5.4.0-RHEL5-re20100903.1):

INFO   | jvm 2    | 2010/09/07 06:10:00 | 2010-09-07 06:10:00,903 [DefaultQuartzScheduler_Worker-10] WARN  com.redhat.rhn.manager.kickstart.cobbler.CobblerDistroSyncCommand - Could not sync tree ks-rhel-x86_64-server-5-u2

Comment 3 Petr Sklenar 2010-09-07 11:35:40 UTC
*** Bug 630843 has been marked as a duplicate of this bug. ***

Comment 4 Justin Sherrill 2010-09-08 15:13:39 UTC
Hey Jan,   Can you point me to a reproducer for this?

Thanks,

-Justin

Comment 6 Justin Sherrill 2010-09-09 15:00:28 UTC
It looks like if you restart Taskomatic, the distros get synced.  Which makes this really hard to debug....

Comment 7 Justin Sherrill 2010-09-09 16:59:06 UTC
should be fixed now:

cc27591d44f60ec1dca516e92eab215485404a3c

Comment 8 Partha Aji 2010-09-09 17:08:34 UTC
*** Bug 627895 has been marked as a duplicate of this bug. ***

Comment 9 Partha Aji 2010-09-09 17:09:34 UTC
*** Bug 629924 has been marked as a duplicate of this bug. ***

Comment 10 Jan Hutař 2010-09-14 09:05:25 UTC
Hello, shouldn't this be ON_QA?

Comment 11 Jan Hutař 2010-09-15 12:23:12 UTC
OK, I have tested this on re20100910.2 and it still do not work.

Also running `cobbler sync` did not helped.

# satellite-sync -c rhel-i386-as-4
03:06:38 Red Hat Network Satellite - live synchronization
03:06:38    url: https://satellite.rhn.errata.stage.redhat.com
[...]
07:59:08 Downloading kickstartable trees metadata
07:59:08    Retrieving / parsing kickstart data: rhel-i386-as-4 (9)
            ________________________________________
Downloading:######################################## - complete
07:59:47 
07:59:47 Downloading kickstartable trees files
07:59:47    Retrieving / parsing kickstart tree files: rhel-i386-as-4 (NONE RELEVANT)
07:59:47 
07:59:47 Importing channel errata
07:59:47    Importing *relevant* errata: rhel-i386-as-4 (2)
            ________________________________________
Downloading:######################################## - complete
07:59:49 Importing kickstartable trees (9)
07:59:50 Imported kickstartable trees (9)
    Import complete:
        Begin time: Wed Sep 15 03:06:37 2010
        End time:   Wed Sep 15 07:59:50 2010
        Elapsed:    4 hours, 53 minutes, 12 seconds
# cobbler sync
task started: 2010-09-15_081736_sync
task started (id=Sync, time=Wed Sep 15 08:17:36 2010)
running pre-sync triggers
cleaning trees
removing: /var/www/cobbler/pub
mkdir: /tftpboot/pxelinux.cfg
mkdir: /tftpboot/images
mkdir: /tftpboot/s390x
mkdir: /var/www/cobbler/rendered
mkdir: /tftpboot/ppc
mkdir: /tftpboot/etc
copying bootloaders
copying: /usr/lib/syslinux/pxelinux.0 -> /tftpboot/pxelinux.0
copying: /usr/lib/syslinux/menu.c32 -> /tftpboot/menu.c32
copying: /usr/lib/syslinux/memdisk -> /tftpboot/memdisk
copying distros
copying images
generating PXE configuration files
rendering Rsync files
generating PXE menu structure
running post-sync triggers
*** TASK COMPLETE ***
# echo $?
0
# rpm -q spacewalk-java
spacewalk-java-1.2.35-1.el5sat

My fault, I have OLD version.

Comment 12 Jan Hutař 2010-09-17 06:35:27 UTC
I was not able to test fixed package on OLD iso, as newest package in Brew is spacewalk-java-1.2.35-1.el5sat.

https://brewweb.devel.redhat.com/packageinfo?buildOrder=-nvr&packageID=9736&tagOrder=name&tagStart=0#buildlist

Comment 13 Jan Hutař 2010-09-23 15:19:51 UTC
OK, I now have latest iso installed with spacewalk-java-1.2.39-9.el5sat and sync is in progress. Will report back tomorrow.

Comment 14 Jan Hutař 2010-09-24 06:17:55 UTC
OK, VERIFIED with spacewalk-java-1.2.39-9.el5sat. Will try once again with next iso to be 100% sure.

Comment 15 Michael Mráka 2010-10-20 08:57:03 UTC
Verified in stage.

[root@hp-bl685cg6-01 ~]# grep kickstart /var/log/rhn/rhn_server_satellite.log 
...
2010/10/19 08:37:15 -04:00 Downloading kickstartable trees files
2010/10/19 08:37:15 -04:00    Retrieving / parsing kickstart tree files: rhel-i386-server-5 (746)
2010/10/19 08:57:43 -04:00 Importing kickstartable trees (6)
2010/10/19 08:57:45 -04:00 Imported kickstartable trees (6)


https://hp-bl685cg6-01.rhts.eng.bos.redhat.com/rhn/kickstart/CreateProfileWizard.do:
ks-rhel-i386-server-5
ks-rhel-i386-server-5-u1
ks-rhel-i386-server-5-u2
ks-rhel-i386-server-5-u3
ks-rhel-i386-server-5-u4
ks-rhel-i386-server-5-u5

Comment 16 Clifford Perry 2010-10-28 14:44:38 UTC
The 5.4.0 RHN Satellite and RHN Proxy release has occurred. This issue has been resolved with this release. 


RHEA-2010:0801 - RHN Satellite Server 5.4.0 Upgrade
https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10332

RHEA-2010:0803 - RHN Tools enhancement update
https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10333

RHEA-2010:0802 - RHN Proxy Server 5.4.0 bug fix update
https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10334

RHEA-2010:0800 - RHN Satellite Server 5.4.0
https://rhn.redhat.com/rhn/errata/details/Details.do?eid=10335

Docs are available:

http://docs.redhat.com/docs/en-US/Red_Hat_Network_Satellite/index.html 

Regards,
Clifford