Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cobbler 2.4.0 - centos 6.4 - No signature matched #423

Closed
mkrakowitzer opened this issue Mar 18, 2013 · 3 comments
Closed

cobbler 2.4.0 - centos 6.4 - No signature matched #423

mkrakowitzer opened this issue Mar 18, 2013 · 3 comments

Comments

@mkrakowitzer
Copy link

cobbler 2.4.0

cobbler import --path=/mnt/centos64 --name=centos-server-6.4
task started: 2013-03-18_120054_import
task started (id=Media import, time=Mon Mar 18 12:00:54 2013)
Found a candidate signature: breed=redhat, version=rhel6
Found a candidate signature: breed=redhat, version=fedora16
Found a candidate signature: breed=redhat, version=fedora17
Found a candidate signature: breed=redhat, version=fedora18
No signature matched in /var/www/cobbler/ks_mirror/centos-server-6.4
!!! TASK FAILED !!!

I am getting the above error when trying to import the centos 6.4 ISO. All prior versions of centos import properly.

I attempted to to replace the /var/lib/cobbler/distro_signatures.json with the latest on github but that does not seem to work. I can not run a cobbler signature update as my environment is heavily firewalled.

Any suggestions?

@jimi-c
Copy link
Member

jimi-c commented Mar 18, 2013

The signature update just grabs the latest one from the web. Downloading it manually and copying it into place serves the same purpose, however you must restart cobblerd after doing so.

Can you verify whether you restarted cobblerd after updating the signature or not?

If so, you can still attempt to manually fix the json to search for the proper files. For RHEL/CentOS, it looks first for the "Packages" directory in the root of the ISO. In your case, it is finding that as it is identifying candidates for import. Next, it uses the version_file string (which is a regex pattern) to identify a file that will give the appropriate version - this is where it is failing. The name of the file should be something like centos-release-6-4-... Looking at a public mirror, it looks like that should work fine:

$ python 
>>> import re
>>> fname="centos-release-6-4.el6.centos.10.x86_64.rpm"
>>> re.compile("(redhat|sl|centos)-release-(?!notes)([\\w]*-)*6[\\.-]+(.*)\\.rpm").match(fname).groups()
('centos', None, '4.el6.centos.10.x86_64')

Can you verify that the centos-release RPM is in your packages directory, and that it works with the above code snippet?

@mkrakowitzer
Copy link
Author

Thanks

restarting cobblerd did the trick. Sorry for wasting your time :/

@jimi-c
Copy link
Member

jimi-c commented Mar 18, 2013

No problem at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants