[Spacewalk-list] Error when creating kickstart tree

Justin Sherrill jsherril at redhat.com
Wed Jul 2 21:33:39 UTC 2008


Hey Anoop,

That error is actually expected and we really need to rework kickstarts 
to be more forgiving of other distro's.  It should work fine even with 
that error, so for now you can ignore it.

Glad you got it kstree creation working! :}

-Justin

Anoop Bhat wrote:
> Ok.
>
> I was able to successfully create a kickstart tree and a kickstart profile.
>
> However, I'm seeing this error within the UI when editing the kickstart profile I created.
>
> This kickstart profile uses a base channel that is missing packages. In order for all kickstart functionality to work correctly, the following packages should be present in this kickstart's base channel: pyOpenSSL, rhnlib, libxml2-python, rhn-kickstart*.
>
> I'm just starting to search on this but I'm glad that progress is being made. Now I have more to play with on spacewalk.
>
> Thanks a lot!
>
> Anoop
>
>
>
> On 7/2/08 2:17 PM, "Anoop Bhat" <ABhat at trustwave.com> wrote:
>
> Sounds good. I'll copy them to the server and then try pushing them to the channel.
>
> I might just try pushing straight off the dvd iso to the channel as well.
>
> Thanks. I'll report back shortly.
>
>
> Anoop
>
>
> On 7/2/08 2:08 PM, "Justin Sherrill" <jsherril at redhat.com> wrote:
>
> Annop,
>
> Yes, try the DVD packages, as that may be the issue.  I'd just try
> pushing the packages to the exact same centos-5.1 channel as before.
>
> -Justin
>
> Anoop Bhat wrote:
>   
>> Justin,
>>
>> The reposync also downloaded the yum-updatesd-0.9-2.el5.noarch from what I can see.
>>
>> That means it pushed everything just fine.
>>
>> I just think there is some descrepancy between the rpm's on the dvd (filename: CentOS-5.1-i386-bin-DVD.iso) and the rpms that were reposync'd.
>>
>> This page https://fedorahosted.org/spacewalk/wiki/UploadFedoraContent suggests wget or reposync to download the content.
>>
>> Do you think I should simply copy them from the DVD iso and then use rhnpush and try again to create a kickstart tree?
>>
>> Thanks
>>
>> Anoop
>>
>>
>> On 7/2/08 1:24 PM, "Anoop Bhat" <ABhat at trustwave.com> wrote:
>>
>> Hi Justin,
>>
>> The exact package it is complaining about is not in the CentOS 5.1 channel.
>>
>> Like the example below, the channel also only shows yum-updatesd-0.9-2.el5.noarch within the UI.
>>
>> Where as the DVD iso has yum-updatesd-3.0.5-1.el5.centos.5.noarch.rpm
>>
>> So it is correct in not finding the rpm on the DVD and displaying the error message appropriately.
>>
>> Do you think I should use rhnpush to push the rpms from the mounted DVD iso as opposed to the result of reposync -repoid=base?
>>
>> Thank you very much for your help in troubleshooting this.
>>
>> Anoop
>>
>>
>> On 7/2/08 12:12 PM, "Justin Sherrill" <jsherril at redhat.com> wrote:
>>
>> Hrm,
>>
>> It looks like you did it right.  Can you check and make sure that the
>> exact packages that it is complaining about are in your CentOS-5.1
>> channel within the UI?  I'm not sure I asked you to specifically check
>> one of those packages previously.
>>
>> I'm pretty sure you get that error message when it finds a package in
>> the directory you point it to that isn't in the channel.
>>
>> It's possible that it pushed all the packages except for a small set.
>> Also, when I did my testing, I used the rpms from the install DVD, and
>> pushed all of them.  Shouldn't make a difference, but may be something
>> to try.
>>
>>
>> -Justin
>>
>>
>> Anoop Bhat wrote:
>>
>>     
>>> So perhaps I pushed the wrong tree?
>>>
>>> I used reposync to simply sync the "base" repo in /etc/yum.repos.d/CentOS-Base.repo
>>>
>>> And then pushed that
>>>
>>> Should I have reposync'd another repo and if so, which repo should I have created?
>>>
>>> Thanks
>>>
>>> Anoop
>>>
>>> [base]
>>> name=CentOS-$releasever - Base
>>> mirrorlist=http://mirrorlist.centos.org/?release=$releasever=$basearch=os
>>> #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
>>> gpgcheck=1
>>> gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
>>>
>>>
>>>
>>> On 7/2/08 11:33 AM, "Anoop Bhat" <ABhat at trustwave.com> wrote:
>>>
>>> I added -verbose to the make-ks-tree.sh call to kickstart-lint.pl
>>>
>>> And here is a blurb of the results
>>>
>>> Not found: /media/CentOS/yum-skip-broken-1.0.4-3.el5.centos.2.noarch.rpm
>>> Not found: /media/CentOS/yum-tsflags-1.0.4-3.el5.centos.2.noarch.rpm
>>> Not found: /media/CentOS/yum-updateonboot-1.0.4-3.el5.centos.2.noarch.rpm
>>> Not found: /media/CentOS/yum-updatesd-3.0.5-1.el5.centos.5.noarch.rpm
>>> Not found: /media/CentOS/yum-utils-1.0.4-3.el5.centos.2.noarch.rpm
>>> Not found: /media/CentOS/yum-versionlock-1.0.4-3.el5.centos.2.noarch.rpm
>>> Found: /var/satellite/redhat/1/zenity/2.16.0-2.el5/i386/zenity-2.16.0-2.el5.i386.rpm (package id 1469)
>>> Found: /var/satellite/redhat/1/zip/2.31-1.2.2/i386/zip-2.31-1.2.2.i386.rpm (package id 226)
>>> Found: /var/satellite/redhat/1/zisofs-tools/1.0.6-3.2.2/i386/zisofs-tools-1.0.6-3.2.2.i386.rpm (package id 2342)
>>> Found: /var/satellite/redhat/1/zlib/1.2.3-3/i386/zlib-1.2.3-3.i386.rpm (package id 743)
>>> Found: /var/satellite/redhat/1/zlib-devel/1.2.3-3/i386/zlib-devel-1.2.3-3.i386.rpm (package id 369)
>>> Found: /var/satellite/redhat/1/zsh/4.2.6-1/i386/zsh-4.2.6-1.i386.rpm (package id 1096)
>>> Found: /var/satellite/redhat/1/zsh-html/4.2.6-1/i386/zsh-html-4.2.6-1.i386.rpm (package id 624)
>>> === LINT_RESULTS END ===
>>> ... done
>>> packages not complete in channel centos51...  requires manual intervention...
>>>
>>> So it does find a fair amount of the packages.
>>>
>>> For example: it can't find  /media/CentOS/yum-updatesd-3.0.5-1.el5.centos.5.noarch.rpm as mentioned above
>>>
>>> But that makes sense because
>>>
>>> yum-updatesd-0.9-2.el5.noarch.rpm is the only file in /var/satellite/redhat/1/yum-updatesd/0.9-2.el5/noarch/
>>>
>>> Any thoughts on this?
>>>
>>> Thanks again
>>>
>>> Anoop
>>>
>>>
>>>
>>> On 7/2/08 9:01 AM, "Anoop Bhat" <ABhat at trustwave.com> wrote:
>>>
>>> Sorry,
>>>
>>> Forgot to add this as well.
>>>
>>> Because of the errors below, I did not -commit the make-ks-tree command.
>>>
>>> Should I do so anyway?
>>>
>>> Thanks
>>>
>>> Anoop
>>>
>>>
>>> On 7/1/08 4:29 PM, "Anoop Bhat" <ABhat at trustwave.com> wrote:
>>>
>>> In addition to this, the gui shows that no trees are available for creating a kickstart profile.
>>>
>>>
>>> On 7/1/08 3:04 PM, "Anoop Bhat" <ABhat at trustwave.com> wrote:
>>>
>>> Justin,
>>>
>>> Yes. I'm still seeing that error.
>>>
>>> The results are the same
>>>
>>> Not found: /media/CentOS/yum-utils-1.0.4-3.el5.centos.2.noarch.rpm
>>> Not found: /media/CentOS/yum-versionlock-1.0.4-3.el5.centos.2.noarch.rpm
>>> === LINT_RESULTS END ===
>>> ... done
>>> packages not complete in channel centos51...  requires manual intervention...
>>> /media/CentOS/a2ps-4.13b-57.1.el5.i386.rpm
>>> /media/CentOS/acl-2.2.39-2.1.el5.i386.rpm
>>>
>>> Thanks
>>>
>>> Anoop
>>>
>>> On 7/1/08 2:05 PM, "Justin Sherrill" <jsherril at redhat.com> wrote:
>>>
>>> Everything should be in order, but you are still getting the
>>>
>>> Not found: /media/CentOS/yum-versionlock-1.0.4-3.el5.centos.2.noarch.rpm
>>>
>>> error messages?
>>>
>>> -Justin
>>>
>>>
>>> Anoop Bhat wrote:
>>>
>>>
>>>       
>>>> Hi Justin,
>>>>
>>>> Then yes. They're there. ;)
>>>>
>>>> I can browse the packages via the channel page so that's working.
>>>>
>>>> I guess everything is in order then?
>>>>
>>>> Anoop
>>>>
>>>>
>>>> On 7/1/08 1:28 PM, "Justin Sherrill" <jsherril at redhat.com> wrote:
>>>>
>>>> Hi Anoop,
>>>>
>>>> Comment inline.
>>>>
>>>> Anoop Bhat wrote:
>>>>
>>>>
>>>>
>>>>         
>>>>> Justin,
>>>>>
>>>>> Thanks for the prompt reply.
>>>>>
>>>>> Yes. /var/satellite existed as I created it to run rhnpush as per https://bugzilla.redhat.com/show_bug.cgi?id=451721
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>           
>>>> Interesting, I had not seen that issue before.
>>>>
>>>>
>>>>
>>>>         
>>>>> The rpm's exist but not in /var/satellite/redhat/.
>>>>>
>>>>> /var/satellite/redhat/1/yum-skip-broken/1.1.10-9.el5.centos/noarch
>>>>>
>>>>>  is where I found yum-skip-broken-1.1.10-9.el5.centos.noarch.rpm
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>           
>>>> Correct.  I just meant somewhere within /var/satellite/redhat/.  :}
>>>>
>>>>
>>>>
>>>>
>>>>         
>>>>> I should also note that the list of "Not Found" rpms isn't just what was included below. It was virtually all rpms but I didn't count them to get the exact number.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>           
>>>> And if you browse the WebUI, are all the rpms shown within the centos51
>>>> channel?
>>>>
>>>> -Justin
>>>>
>>>>
>>>>
>>>>         
>>>>> Thanks again
>>>>>
>>>>> Anoop
>>>>>
>>>>>
>>>>> On 7/1/08 1:15 PM, "Justin Sherrill" <jsherril at redhat.com> wrote:
>>>>>
>>>>> Anoop Bhat wrote:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>           
>>>>>> In addition to this, there was also
>>>>>>
>>>>>> Not found: /media/CentOS/yum-tsflags-1.0.4-3.el5.centos.2.noarch.rpm
>>>>>> Not found: /media/CentOS/yum-updateonboot-1.0.4-3.el5.centos.2.noarch.rpm
>>>>>> Not found: /media/CentOS/yum-updatesd-3.0.5-1.el5.centos.5.noarch.rpm
>>>>>> Not found: /media/CentOS/yum-utils-1.0.4-3.el5.centos.2.noarch.rpm
>>>>>> Not found: /media/CentOS/yum-versionlock-1.0.4-3.el5.centos.2.noarch.rpm
>>>>>> === LINT_RESULTS END ===
>>>>>> ... done
>>>>>> packages not complete in channel centos51...  requires manual intervention...
>>>>>>
>>>>>>
>>>>>>
>>>>>> /media/CentOS/a2ps-4.13b-57.1.el5.i386.rpm
>>>>>> /media/CentOS/acl-2.2.39-2.1.el5.i386.rpm
>>>>>> /media/CentOS/alsa-utils-1.0.14-2.rc4.el5.i386.rpm
>>>>>> /media/CentOS/amtu-1.0.4-4.i386.rpm
>>>>>> /media/CentOS/anaconda-11.1.2.87-1.el5.centos.i386.rpm
>>>>>>
>>>>>>
>>>>>> >From the make-ks-tree command.
>>>>>>
>>>>>> /var/satellite/rhn/kickstart/ks-centos51-u1/CentOS only has TRANS.TBL in it as opposed to the rpms.
>>>>>>
>>>>>> Did I miss something?
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> Anoop
>>>>>>
>>>>>>
>>>>>> On 7/1/08 12:31 PM, "Anoop Bhat" <ABhat at trustwave.com> wrote:
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I couldn't find a bug id for this specific error. Wondering if I missed another step somewhere
>>>>>>
>>>>>> # ./make-ks-tree.sh --channel centos51 --source /media --dsn spacewalk/spacewalk at xe --install-type rhel_5 --variant centos --update u1
>>>>>> Creating remote kickstart tree directory
>>>>>> mkdir: cannot create directory `/var/satellite/rhn/kickstart/ks-centos51-u1': No such file or directory
>>>>>>
>>>>>>
>>>>>> I simply created the directory above and ran the command again and it worked.
>>>>>>
>>>>>>
>>>>>> Just mkdir -p /var/satellite/rhn/kickstart-ks-centos51-u1 did the trick.
>>>>>>
>>>>>> If there a bug id involved with this, can someone pass that info my way?
>>>>>>
>>>>>> By the way, how long does this process take?
>>>>>>
>>>>>> ...repodata/repomd.xml
>>>>>>         1140 100%    2.01kB/s    0:00:00 (xfer#106, to-check=0/114)
>>>>>>
>>>>>> sent 188506357 bytes  received 2400 bytes  7113538.00 bytes/sec
>>>>>> total size is 188476341  speedup is 1.00
>>>>>> ... done
>>>>>> Linting kickstart tree
>>>>>>
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> Anoop
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Spacewalk-list mailing list
>>>>>> Spacewalk-list at redhat.com
>>>>>> https://www.redhat.com/mailman/listinfo/spacewalk-list
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Spacewalk-list mailing list
>>>>>> Spacewalk-list at redhat.com
>>>>>> https://www.redhat.com/mailman/listinfo/spacewalk-list
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>             
>>>>> Hi Anoop,
>>>>>
>>>>> Do you know if /var/satellite existed before you ran the 'mkdir -p' command?
>>>>>
>>>>>
>>>>> As for your other error,
>>>>> /var/satellite/rhn/kickstart/ks-centos51-u1/CentOS should not contain
>>>>> any rpms.  All of those are pulled from their locations in
>>>>> /var/satellite/redhat/.
>>>>>
>>>>> Not found: /media/CentOS/yum-tsflags-1.0.4-3.el5.centos.2.noarch.rpm
>>>>> Not found: /media/CentOS/yum-updateonboot-1.0.4-3.el5.centos.2.noarch.rpm
>>>>> Not found: /media/CentOS/yum-updatesd-3.0.5-1.el5.centos.5.noarch.rpm
>>>>> Not found: /media/CentOS/yum-utils-1.0.4-3.el5.centos.2.noarch.rpm
>>>>> Not found: /media/CentOS/yum-versionlock-1.0.4-3.el5.centos.2.noarch.rpm
>>>>>
>>>>>
>>>>>
>>>>> Are those packages contained within your CentOs 5.1 channel?  If they
>>>>> are not, push them to that channel and run the make-ks-tree command again.
>>>>>
>>>>> -Justin
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Spacewalk-list mailing list
>>>>> Spacewalk-list at redhat.com
>>>>> https://www.redhat.com/mailman/listinfo/spacewalk-list
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>           
>>>> _______________________________________________
>>>> Spacewalk-list mailing list
>>>> Spacewalk-list at redhat.com
>>>> https://www.redhat.com/mailman/listinfo/spacewalk-list
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>         
>>>
>>> _______________________________________________
>>> Spacewalk-list mailing list
>>> Spacewalk-list at redhat.com
>>> https://www.redhat.com/mailman/listinfo/spacewalk-list
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>       
>>
>>
>>
>> _______________________________________________
>> Spacewalk-list mailing list
>> Spacewalk-list at redhat.com
>> https://www.redhat.com/mailman/listinfo/spacewalk-list
>>
>>
>>
>>
>>     
>
>
>
>
>
> _______________________________________________
> Spacewalk-list mailing list
> Spacewalk-list at redhat.com
> https://www.redhat.com/mailman/listinfo/spacewalk-list
>
>
>
>   




More information about the Spacewalk-list mailing list