Coder Social home page Coder Social logo

bcfg2-accounts's People

Contributors

weiss avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

bcfg2-accounts's Issues

The "extra_groups" attribute in <UnixGroup .../> not required?

Hi,

I found that the "extra_groups" attribute in <UnixGroup ... /> is not necessary and it may be a trouble because when I ran "bcfg2-repo-validate" with the "extra_groups" groups in <UnixGroup ... />, I got the following error.

[root@leopard share]# bcfg2-repo-validate
ERROR: /var/lib/bcfg2/Properties/accounts.xml fails to verify:
/var/lib/bcfg2/Properties/accounts.xml:80: element UnixGroup: Schemas validity error : Element 'UnixGroup', attribute 'extra_groups': The attribute 'extra_groups' is not allowed.
/var/lib/bcfg2/Properties/accounts.xml fails to validate
Serverless plugins encountered errors, skipping server plugins
1 errors
0 warnings
[root@leopard share]#

But I did not have any errors of interpreting the accounts.xml data in the client side when I ran "bcfg2 -qvn" with this attribute.
The bottom line is that it generates all the groups properly whether the "extra_groups" attribute is there or not.

I think that this is not really an issue but I had to follow the instruction of bcfg2-repo-validate whether it fails with "bcfg2 -qv" or not.

Issue using this with bcfg2-server 1.2.0

Having the following issue using bcfg2-accounts on bcfg2-server 1.2.0:

Bundler: Unexpected bundler error for accounts
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/Bcfg2/Server/Plugins/Bundler.py", line 85, in BuildStructures
    bundleset.append(entries[0].get_xml_value(metadata))
  File "/usr/lib/python2.6/site-packages/Bcfg2/Server/Plugins/SGenshi.py", line 32, in get_xml_value
    data = lxml.etree.XML(stream.render('xml', strip_whitespace=False))
  File "/usr/lib64/python2.6/site-packages/genshi/core.py", line 179, in render
    return encode(generator, method=method, encoding=encoding, out=out)
  File "/usr/lib64/python2.6/site-packages/genshi/output.py", line 60, in encode
    return _encode(u''.join(list(iterator)))
  File "/usr/lib64/python2.6/site-packages/genshi/output.py", line 210, in __call__
    for kind, data, pos in stream:
  File "/usr/lib64/python2.6/site-packages/genshi/output.py", line 592, in __call__
    for kind, data, pos in stream:
  File "/usr/lib64/python2.6/site-packages/genshi/output.py", line 532, in __call__
    for ev in stream:
  File "/usr/lib64/python2.6/site-packages/genshi/core.py", line 267, in _ensure
    event = stream.next()
  File "/usr/lib64/python2.6/site-packages/genshi/core.py", line 267, in _ensure
    event = stream.next()
  File "/usr/lib/python2.6/site-packages/Bcfg2/Server/Plugins/TGenshi.py", line 31, in removecomment
    for kind, data, pos in stream:
  File "/usr/lib64/python2.6/site-packages/genshi/template/base.py", line 569, in _include
    for event in stream:
  File "/usr/lib64/python2.6/site-packages/genshi/template/markup.py", line 245, in _match
    for event in stream:
  File "/usr/lib64/python2.6/site-packages/genshi/template/base.py", line 545, in _exec
    _exec_suite(event[1], ctxt, **vars)
  File "/usr/lib64/python2.6/site-packages/genshi/template/base.py", line 302, in _exec_suite
    suite.execute(_ctxt2dict(ctxt))
  File "/usr/lib64/python2.6/site-packages/genshi/template/eval.py", line 201, in execute
    exec self.code in _globals, data
  File "/var/lib/bcfg2/Bundler/accounts.genshi", line 113, in <Suite u'from genshi.template import TemplateError ...'>
    except AttributeError: # We're running on Bcfg2 1.1.x or earlier.
AttributeError: 'ClientMetadata' object has no attribute 'Properties'
Client bcfg2.beanfield.com configuration missing bundles: accounts

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.