Ask Your Question
0

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/
/mnt/sysimage/var/cache/yum/:
anaconda-CentOS-201107091641.x86_64  source-1

/mnt/sysimage/var/cache/yum/anaconda-CentOS-201107091641.x86_64:
8fa85f9f49e38a8607566f402f7b1cce63427661-2a7e0c1da38a40e2961c0cec6acca8b8446d974b1fc055216ebde88bb4a19eb9-c6-x86_64-comps.xml
cachecookie
packages
repomd.xml

/mnt/sysimage/var/cache/yum/anaconda-CentOS-201107091641.x86_64/packages:

/mnt/sysimage/var/cache/yum/source-1:
15e391ebee579435eae835cd0aefff94a74e7773-primary.sqlite.gz
8fa85f9f49e38a8607566f402f7b1cce63427661-2a7e0c1da38a40e2961c0cec6acca8b8446d974b1fc055216ebde88bb4a19eb9-c6-x86_64-comps.xml
cachecookie
packages
repomd.xml

/mnt/sysimage/var/cache/yum/source-1/packages:

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
0

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

goozbach gravatar image

I finally found the bug responsible.

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

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

or

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
0

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

Stats

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

Seen: 685 times

Last updated: Dec 12 '11