[Spacewalk-list] Spacewalk 0.5, CentOS 5.3, cobbler+kickstart: "Unable to read metadata"

Mike McCune mmccune at redhat.com
Wed Apr 22 16:56:59 UTC 2009


William Leese wrote:
> Hi,
> 
> I've setup Spacewalk 0.5 on CentOS 5.3. After having run into several 
> bugs and reading the mailinglist, I've stalled on solving the following:
> 
> - After a client has updated it's packages, it still reports that it 
> requires updates.
> I read that this would be solved in a future update to spacewalk-backend 
> and spacewalk-java. I have however found no later package than that of 
> the 13th of april.

This is still OPEN in bugzilla:

https://bugzilla.redhat.com/show_bug.cgi?id=496655

> 
> - cobbler+kickstart don't work when installing from bare metal. I've 
> setup a channel, a distro using that channel and a kickstart file using 
> both. To create the channel I downloaded all the packages from the 
> centos base repository. Because this doesn't include the pxe vmlinuz and 
> initrd.img files, I copied them from CD and pointed spacewalk to those 
> files (when creating the distro? I can't remember).
> 

glad to hear you cleared this one up.

> Anyhow, after the installer boots and anaconda starts, I get the 
> following error
> "Unable to read metadata. This may be due to a missing repodata 
> directory................. can't find repository: anaconda-......."
> 
> So I'm missing the repodata directory. That's right, I just downloaded 
> the packages. So I createrepo-ed the directory containing the RPMs, but 
> to no avail.
> 
> Any idea what's going wrong here?
> 

Couple questions:

* What does the "Tree Path" field say on the Kickstart -> Distribution 
page in your GUI?

* Does that path have underneath it a tree-path/repodata directory?  So 
if your Tree Path is:

/var/lib/repo/centos-53/

you would want to see:

/var/lib/repo/centos-53/repodata

The above sounds like you ran createrepo from within the RPMs directory. 
  Try running from the same dir as your 'Tree Path'.

Mike
-- 
Mike McCune
mmccune AT redhat.com
Engineering               | Portland, OR
RHN Satellite             | 650.567.9039x79248




More information about the Spacewalk-list mailing list