Ticket #764 (closed defect: worksforme)
bcfg2 client YUMng will no longer install missing packages.
| Reported by: | Chris Stankaitis <cstankaitis@…> | Owned by: | desai |
|---|---|---|---|
| Priority: | major | Milestone: | Bcfg2 1.0.0 Release |
| Component: | bcfg2-client | Version: | 1.0 |
| Keywords: | Cc: |
Description
I upgraded my Bcfg2 install to SVN revision 5481 and my client will no longer install packages which are missing on a server.
I am using YUMng and the Packages plugin.
a few weeks ago you gave me a patch for YUMng.py since I was having the same issue. the patch did the following.
[root@… conf.d]# diff -u -w ~chris/YUMng.py /usr/lib/python2.4/site-packages/Bcfg2/Client/Tools/YUMng.py --- /home/chris/YUMng.py 2009-10-19 09:39:08.000000000 -0400 +++ /usr/lib/python2.4/site-packages/Bcfg2/Client/Tools/YUMng.py 2009-10-14 10:00:26.000000000 -0400 @@ -227,7 +227,7 @@
cmdrc, output = self.cmd.run(pkgtool % " ".join(install_args)) if cmdrc == 0:
# The yum command succeeded. All packages installed.
- self.logger.info("Single Pass for Install Succeded") + self.logger.info("Single Pass for Install Succeeded")
self.RefreshPackages?()
else:
# The yum command failed. No packages installed.
@@ -263,7 +263,7 @@
cmdrc, output = self.cmd.run(pkgtool % " ".join(upgrade_args)) if cmdrc == 0:
# The yum command succeeded. All packages installed.
- self.logger.info("Single Pass for Install Succeded") + self.logger.info("Single Pass for Install Succeeded")
self.RefreshPackages?()
else:
# The yum command failed. No packages installed.
@@ -338,7 +338,7 @@
for inst in pkg:
if pkg.get('name') != 'gpg-pubkey':
pkg_arg = pkg.get('name') + '-'
- if inst.haskey('epoch'): + if inst.attrib.has_key('epoch'):
pkg_arg = pkg_arg + inst.get('epoch') + ':'
pkg_arg = pkg_arg + inst.get('version') + '-' + inst.get('release') if 'arch' in inst.attrib:
Note. I used this new YUMng.py and it is still unable to install packages so it appears to be something new. Please let me know how I can help track this down and fix it.