Custom Query (894 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (82 - 84 of 894)

Ticket Owner Reporter Resolution Summary
#1071 desai https://www.google.com/accounts/o8/id?id=AItOawmwdKt_YKyLClGGNu0lUuocNy76Mh7Nogw fixed bcfg2-admin pull on a non existent file on client gives false feedback
Description

on server:

#bcfg2-admin pull -vvv -I hostname Path /path/to/file (current entry) => host entry: hostname Use this entry? [yN]: y

on client after above pull:

Incorrect entries: 1

Path: /path/to/file

Shows the entry is incorrect, when in fact it's b/c it was missing on the client when doing the original pulling.

Same behaviour when not using "-vvv or -I", just different message from the server: "Integrate configuration information from clients into the server repository"

The Path is defined in a bundle but b/c of the way this host was brought up and "fixed" I needed to pull all the configs on it into bcfg2, but it was missing a file.

Fringe case but it had me scratching my head b/c of the pull output. If bcfg2-admin pull would return with a no file exists error that would be great.

So this is just when the client file is not present that things get confusing.

Thanks Joe

#1070 solj J davis <[email protected]…> fixed Packages tb and dep resolution broken in rc2
Description

I'm getting a Packages trace back on the server and yum dependancy resolution problems with the latest rc.

bcfg2-server 1.2.0rc2 ubuntu 11.04 x86_64

bcfg2 1.2.0rc2 on CentOS 5.7 x86_64

On the server I see

Plugin Packages: unexpected structure validation failure
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/Bcfg2/Server/Core.py", line 189, in validate_structures
    plugin.validate_structures(metadata, data)
  File "/usr/lib/pymodules/python2.7/Bcfg2/Server/Plugins/Packages/__init__.py", line 115, in validate_structures
    collection=collection)
  File "/usr/lib/pymodules/python2.7/Bcfg2/Server/Plugins/Packages/__init__.py", line 149, in _build_packages
    packages, unknown = collection.complete(base)
  File "/usr/lib/pymodules/python2.7/Bcfg2/Server/Plugins/Packages/Yum.py", line 454, in complete
    return Collection.complete(self, packagelist)
  File "/usr/lib/pymodules/python2.7/Bcfg2/Server/Plugins/Packages/Collection.py", line 150, in complete
    self.virt_pkgs[pgrps] = self.get_vpkgs()
  File "/usr/lib/pymodules/python2.7/Bcfg2/Server/Plugins/Packages/Collection.py", line 109, in get_vpkgs
    s_vpkgs = source.get_vpkgs(self.metadata)
  File "/usr/lib/pymodules/python2.7/Bcfg2/Server/Plugins/Packages/Yum.py", line 751, in get_vpkgs
    rv = Source.get_vpkgs(self, metadata)
  File "/usr/lib/pymodules/python2.7/Bcfg2/Server/Plugins/Packages/Source.py", line 170, in get_vpkgs
    for key, value in list(self.provides[agrp].items()):
KeyError: 'x86_64'

There is no error on the client side.

sources.xml is comprised of several entries like this:

<Source type="yum" rawurl="http://repo/centos5.7-x86_64/RPMS.os">
    <Arch>x86_64</Arch>
    <Arch>i386</Arch>
</Source>

I'm seeing many more unmanaged/extra entries on the yum clients than I did with rc1. For instance, the package bcfg2 is part of the clients config.

# rpm -qR bcfg2
/bin/sh  
/usr/bin/python2.4  
config(bcfg2) = 1.2.0rc2-0.1
python(abi) = 2.4
python-lxml >= 0.9
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1

# rpm -q --whatprovides python
python-2.4.3-44.el5_7.1.x86_64

# rpm -q --whatprovides /bin/sh
bash-3.2-32.el5.x86_64

The bcfg2 package itself shows up as managed/correct, however, both python and bash show up as unmanaged/extra.

#1069 desai J davis <[email protected]…> fixed SSLCA hangs calling openssl.
Description

When generating a client certificate SSLCA calls openssl in such a way that it will not return and causes a read timeout on the server.

The following diff against git commit a6cb404ac205e47210de1fa1f07f11571182c18c seems to fix the issue for me.

diff --git a/src/lib/Server/Plugins/SSLCA.py b/src/lib/Server/Plugins/SSLCA.py
index 6bd4b06..5a517cc 100644
--- a/src/lib/Server/Plugins/SSLCA.py
+++ b/src/lib/Server/Plugins/SSLCA.py
@@ -271,5 +271,5 @@ class SSLCA(Bcfg2.Server.Plugin.GroupSpool):
         key = self.data + key_filename
         cmd = ["openssl", "req", "-new", "-config", req_config,
                "-days", days, "-key", key, "-text", "-out", req]
-        res = Popen(cmd, shell=True, stdout=PIPE).stdout.read()
+        res = Popen(cmd, shell=False, stdout=PIPE).stdout.read()
         return req
Note: See TracQuery for help on using queries.