Hide Forgot
Description of problem: Installation of beah on provisioned RHEL 6 system fails due to missing pyton-setuptools package in the harness repo. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1.Add RHEL 6 repo to cobbler 2.Just add RedHatEnterpriseLinux6Server harness repo using beaker-repo-update 3.Provision a system Actual results: 21:17:12,895 ERROR : Error: Package: beah-0.6.27.1-1.el6eso.noarch (beaker-harness) 21:17:12,895 INFO : You could try using --skip-broken to work around the problem 21:17:12,899 ERROR : Requires: python-setuptools 21:17:14,262 INFO : You could try running: rpm -Va --nofiles --nodigest Expected results: beah to install Additional info:
We recently stopped shipping python-setuptools (and other similar dependencies) in the Beaker repos because these packages are available in the distro itself and should be installed from there. What this has revealed is that very often distros are not being imported correctly and the system ends up with wrong/missing yum configuration after install. I suspect that is the case again here. Can you please link to the job where you saw this and we can investigate further.
Sorry, it just occurred to me that this problem is probably occurring on a non-Red Hat instance of Beaker, so I guess you won't be able to link to the job in question. Nevertheless I think the problem is with the distro. To verify, check the ks.cfg file which is uploaded to Beaker after the system is provisioned. This is the kickstart file which was generated by Cobbler. You should find a section that looks like this: # Add Distro Repos cat << EOF > /etc/yum.repos.d/beaker-Server.repo [beaker-Server] name=beaker-Server baseurl=http://example/RHEL/6/Server/x86_64/os/Server enabled=1 gpgcheck=0 skip_if_unavailable=1 EOF ... These correspond to the 'tree_repos' kickstart variable defined in cobbler. If that variable is not set, these distro repos will not be created and beah will fail to be installed.
tree_repos variable is not defined as you suspected. Modifying the documentation to suggest users to define tree_repos variable in ks_meta will solve this issue.
The tree_repos variable in Cobbler is supposed to be set by this script: /var/lib/cobbler/triggers/sync/post/osversion.trigger which should be run by Cobbler after new distros have been imported. It uses some heuristics to find the yum repos in a distro, but it's not perfect. Something must have gone wrong with it in this case.
Is this sorted out? Can we close the bug?
My issue has been addressed. It can be closed.
(In reply to comment #4) > The tree_repos variable in Cobbler is supposed to be set by this script: > > /var/lib/cobbler/triggers/sync/post/osversion.trigger > > which should be run by Cobbler after new distros have been imported. It uses > some heuristics to find the yum repos in a distro, but it's not perfect. > Something must have gone wrong with it in this case. Dan, is this problem in (LC|Cobbler) something to act on?
Let's assume for now that this was caused by a configuration error. Prudhvi, if you have more information indicating that there is a bug in the osversion.trigger script or that the documentation should be changed, please re-open or file a new bug.