Ask Your Question

Cobbler/koan missing file problem.

asked 2011-12-05 09:12:34 -0500

goozbach gravatar image

I have a cobbler server (Cobbler 2.3.1) running on a Fedora16 box.

This cobbler server has an rsync mirror of Centos-6.0(x86_64)

When I do an install using koan I get this error in anaconda:

IOError: [Errno 2] No such file or directory: '/mnt/sysimage/var/cache/yum/anaconda-CentOS-201107091641.x86_64/15e391ebee579435eae835cd0aefff94a74e7773-primary.sqlite.gz'

I jumped into the shell on the installing guest and found these files in /var/cache/yum/

-bash-4.1# ls -R /mnt/sysimage/var/cache/yum/
anaconda-CentOS-201107091641.x86_64  source-1





When I run the same koan command against a Centos6 based cobbler server(Cobbler 2.3.1) the install finishes without issue.

The only differences between cobbler servers are the following:

  • Centos6.0 running the working cobbler server
  • Centos6 repo imported via iso image loopback mounted on working server
  • Centos6 repo imported via rsync mirror on non-working server

Any ideas?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2011-12-12 12:30:39 -0500

goozbach gravatar image

I finally found the bug responsible.

It's likely not to be fixed.

There are two things you can do to fix if if you run into the same problem:

1) upgrade the version of yum on your centos6.0 box to the version which ships with centos6.1


2) manually generate an appropriate repomod.xml and comps.xml after running createrepo

  • run createrepo with --compress-type=bz2 flag (and maybe also -s sha)

  • copy the non-compressed comps.xml to a temp file

    cp repodata/<SHA>-comps.xml repodata/temp-comps.xml
  • gzip the temp comps.xml file

    gzip repodata/temp-comps.xml
  • move the temp-comps.xml.gz file to it's proper location by first figuring out it's sha1 sum

    sha1sum repodata/temp-comps.xml.gz
    mv repodata/temp-comps.xml.gz repodata/<SHA1SUM from above>-comps.xml.gz
  • modify the parts of the file repodata/repomd.xml which reference the broken file ('group_gz' section) to match the newly created file from the last step.

edit flag offensive delete link more

answered 2011-12-06 14:51:43 -0500

SoumyaC gravatar image

I guess you can go with filling a bug in bugzilla regarding this.

edit flag offensive delete link more

Question Tools


Asked: 2011-12-05 09:12:34 -0500

Seen: 685 times

Last updated: Dec 12 '11