Ticket #6 (closed defect: fixed)

Opened 9 years ago

Last modified 9 years ago

createrepo from 0.9.7 problem when generating repositories for fc9 and earlier

Reported by: pablom Assigned to: skvidal
Priority: blocker Milestone:
Component: createrepo Version:
Keywords: 0.9.7 fc9 Cc:

Description

Hi all,

I don't know if this is a problem of createrepo, or repoview, or the new yum version. Here is my issue.

I was using a fedora core 10 x86 machine to create repositories (using createrepo 0.9.6) for fedora core 8, 9 & 10. Everything was working fine, repositories created, and installations from those repositories succeeding.

..up to the moment I did a 'yum update' and had the new createrepo 0.9.7 in my fedora core 10 machine. At that time, the problem started. createrepo/repoview shows no warning nor error. But at the time of installing a machine (for example a fedora core 9) using that repository....it stops at the time of accessing the repository, with an error message that I attach as a PNG graphic file.

Same thing creating a repository in fc11 to install an fc9 machine, because fc11 has the createrepo 0.9.7 also as the first version, and not as an update like it is in fc10.

So to sum up, createrepo 0.9.6 works fine to create repositories for all fedora core versions, but starting from createrepo 0.9.7 (I tried 0.9.8) those repositories fail to install from.

I attach the error shown for example by a fedora core 9 installation (I used createrepo 0.9.7 to create his repository).

I whish I knew from whom this problem comes. new createrepo? new yum? Shouldn't be wise to show somewhere that this new version is not backward compatible (in the case this was expected).

Thank you very much Pablo

Attachments

error_createrepo (6.4 kB) - added by pablom on 09/10/09 14:25:18.
0.9.6-repomd.xml (2.1 kB) - added by pablom on 09/10/09 15:08:24.
from working createrepo/repoview 0.9.6
0.9.7-repomd.xml (2.9 kB) - added by pablom on 09/10/09 15:08:57.
from not working 0.9.7 createrepo/repoview
ks.cfg (0.6 kB) - added by pablom on 09/10/09 15:12:17.

Change History

09/10/09 14:25:18 changed by pablom

  • attachment error_createrepo added.

(follow-up: ↓ 2 ) 09/10/09 14:44:07 changed by skvidal

When you created the repo to install from - did you add the comps.xml (createrepo -g) file as well?

(in reply to: ↑ 1 ) 09/10/09 14:48:23 changed by pablom

Replying to skvidal:

When you created the repo to install from - did you add the comps.xml (createrepo -g) file as well?

Yes. I tried with -g Fedora-9-comps.xml and also with -p -d -o . .

I tried combinations. Every time the same message. I guess there might be an issue in the sqllite generation which is missing a column or something. Just a wild guess.....

If you want I can attach all the xml, gz and bz2 files generated for the same repository with the 0.9.6 and with the 0.9.7. There are 9 files each, total 18 files.

(follow-up: ↓ 4 ) 09/10/09 15:01:05 changed by skvidal

the sqlite generation is: 1. not done by createrepo itself - it is called out to it 2. not changed in like 2 yrs.

Attach the repomd.xml and tell me what url you're pointing the installer to when you try to do your install.

09/10/09 15:08:24 changed by pablom

  • attachment 0.9.6-repomd.xml added.

from working createrepo/repoview 0.9.6

09/10/09 15:08:57 changed by pablom

  • attachment 0.9.7-repomd.xml added.

from not working 0.9.7 createrepo/repoview

(in reply to: ↑ 3 ) 09/10/09 15:11:51 changed by pablom

Replying to skvidal:

the sqlite generation is: 1. not done by createrepo itself - it is called out to it 2. not changed in like 2 yrs. Attach the repomd.xml and tell me what url you're pointing the installer to when you try to do your install.

I know that part of the repodata is not done by createrepo, that is why I say in my original ticket that I don't know exactly who to talk about this, so I started with createrepo site.

The url I use is a local nfs in my machine, because the machine I am trying to install is on a vmware that runs in my machine and access an nfs share in my own machine where the repository is. The anaconda kickstart file says "nfs --server=172.16.120.1 --dir=/root/uss/WKS/BetaWorkspace/distrotools/createimage/vm9/tmp/image --opts=ro,noatime,async,vers=3"

I can attach the kickstart.cfg file. But it is the same file I use to install correctly using createrepo 0.9.6.

09/10/09 15:12:17 changed by pablom

  • attachment ks.cfg added.

(follow-up: ↓ 6 ) 09/10/09 16:27:27 changed by skvidal

  • status changed from new to closed.
  • resolution set to fixed.

ah - it's because the new yum and createrepo is defaulting to sha256 checksums which anaconda (the installer) in f9 doesn't know anything about.

to make a compatible repo you just need to specify:

createrepo -s sha

and that should take care of things.

give it a try.

(in reply to: ↑ 5 ) 09/10/09 18:22:10 changed by pablom

Replying to skvidal:

ah - it's because the new yum and createrepo is defaulting to sha256 checksums which anaconda (the installer) in f9 doesn't know anything about. to make a compatible repo you just need to specify: createrepo -s sha and that should take care of things. give it a try.

thank you very much. i can confirm that fixes the issue. thanks