Custom Query (894 matches)


Show under each result:

Results (61 - 63 of 894)

Ticket Owner Reporter Resolution Summary
#884 solj Jack Neely <[email protected]…> fixed Traceback with Path tag in Rules Plugin

I'm setting up some directories with the Path tag and getting tracebacks. Bcfg2 1.0.1:

Unexpected failure of verification method for entry type Path
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/Bcfg2/Client/Tools/", line 126, in Inventory
    states[entry] = func(entry, mods)
  File "/usr/lib/python2.6/site-packages/Bcfg2/Client/Tools/", line 732, in VerifyPath
    return ret(entry, _)
  File "/usr/lib/python2.6/site-packages/Bcfg2/Client/Tools/", line 688, in Verifydirectory
    return ret(entry, _)
  File "/usr/lib/python2.6/site-packages/Bcfg2/Client/Tools/", line 200, in VerifyDirectory
    pTrue = ((owner == str(normUid(entry))) and
  File "/usr/lib/python2.6/site-packages/Bcfg2/Client/Tools/", line 55, in normUid
    return int(pwd.getpwnam(entry.get('owner'))[f5e4281313ff9004be488e420f90d5fe413bb5c1] (SVN r2))
TypeError: getpwnam() argument 1 must be string, not None

My line in my rules XML that matches this is:

  <Path type='directory' name='/afs'/>

If I had the "owner" argument the traceback goes away and I get

GID normalization failed for /afs

So, Bcfg2 client side isn't catching this error condition properly.

#955 jjneely Jack Neely <[email protected]…> fixed Yum tracebacks
YUMng.Install() call failed:
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/Bcfg2/Client/", line 303, in DispatchInstallCalls
    tool.Install(handled, self.states)
  File "/usr/lib/python2.4/site-packages/Bcfg2/Client/Tools/", line 792, in Install
  File "/usr/lib/python2.4/site-packages/Bcfg2/Client/Tools/", line 639, in _runYumTransaction
    rescode, restring = self.yb.buildTransaction()
  File "/usr/lib/python2.4/site-packages/yum/", line 732, in buildTransaction
    (rescode, restring) = self.resolveDeps()
  File "/usr/lib/python2.4/site-packages/yum/", line 699, in resolveDeps
    CheckDeps, checkinstalls, checkremoves, missing = self._resolveRequires(errors)
  File "/usr/lib/python2.4/site-packages/yum/", line 784, in _resolveRequires
    thisneeds = self._checkInstall(txmbr)
  File "/usr/lib/python2.4/site-packages/yum/", line 856, in _checkInstall
    provs = self.tsInfo.getProvides(*req)
  File "/usr/lib/python2.4/site-packages/yum/", line 476, in getProvides
    result.update(self.getNewProvides(name, flag, version))
  File "/usr/lib/python2.4/site-packages/yum/", line 458, in getNewProvides
    for pkg, hits in self.pkgSack.getProvides(name, flag, version).iteritems():
  File "/usr/lib/python2.4/site-packages/yum/", line 327, in getProvides
    return self._computeAggregateDictResult("getProvides", name, flags, version)
  File "/usr/lib/python2.4/site-packages/yum/", line 497, in _computeAggregateDictResult
    sackResult = apply(method, args)
  File "/usr/lib/python2.4/site-packages/yum/", line 883, in getProvides
    return self._search("provides", name, flags, version)
  File "/usr/lib/python2.4/site-packages/yum/", line 44, in newFunc
    return func(*args, **kwargs)
  File "/usr/lib/python2.4/site-packages/yum/", line 859, in _search
    for pkg in self.searchFiles(name, strict=True):
  File "/usr/lib/python2.4/site-packages/yum/", line 44, in newFunc
    return func(*args, **kwargs)
  File "/usr/lib/python2.4/site-packages/yum/", line 560, in searchFiles
    self.populate(repo, mdtype='filelists')
  File "/usr/lib/python2.4/site-packages/yum/", line 187, in populate
    xml = repo_get_function()
  File "/usr/lib/python2.4/site-packages/yum/", line 1550, in getFileListsXML
    return self.retrieveMD('filelists')
  File "/usr/lib/python2.4/site-packages/yum/", line 1484, in retrieveMD
    return self._retrieveMD(mdtype)
  File "/usr/lib/python2.4/site-packages/yum/", line 1524, in _retrieveMD
    cache=self.http_caching == 'all')
  File "/usr/lib/python2.4/site-packages/yum/", line 827, in _getFile
    raise Errors.NoMoreMirrorsRepoError, errstr
NoMoreMirrorsRepoError: failure: repodata/filelists.xml.gz from local: [Errno 256] No more mirrors to try.

Some additional Yum errors we need to catch

#1087 Jake Davis <[email protected]…> fixed Problems with 1.2.0 RPM build from git

While attempting to build rpms from a git checkout of the v1.2.0 tag following these instructions:

After "cd redhat; make" I get this error:

 error: File
 /root/VCS/git/bcfg2.davisj/redhat/build/bcfg2-1.2.0.tar.gz: No such
 file or directory
    make: *** [buildrpmdist] Error 1

And this one:

    RPM build errors:
        Installed (but unpackaged) file(s) found:
    make: *** [buildrpmdist] Error 1

The following patch seems to resolve both errors.

index 7533b98..f8f7795 100644
--- a/redhat/Makefile
+++ b/redhat/Makefile
@@ -22,7 +22,7 @@ VERSION := $(shell cat VERSION)
 RELEASE := $(shell cat RELEASE)
 DIRNAME := $(shell echo $${PWD})
 DIRBASE := $(shell basename $${PWD})
diff --git a/redhat/ b/redhat/
index be2375c..92593a5 100644
--- a/redhat/
+++ b/redhat/
@@ -205,6 +205,7 @@ fi
 %dir %{python_sitelib}/Bcfg2

Not that in later revisions of HEAD I also had to add "%{_sbindir}/bcfg2-test" to redhat/

Note: See TracQuery for help on using queries.