Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Metadata: reread client list from database | Chris St. Pierre | 2014-02-23 | 1 | -5/+36 |
| | | | | | | | | This fixes two related bugs: One causes Metadata to use an out-of-date cached list of clients when a client is deleted or added with bcfg2-admin; the other causes child worker processes to use an out-of-date cached list of clients when a client is added with a Bcfg2 run when the multiprocessing core is in use. | ||||
* | Metadata: fix check for Groups with options in duplicate groups test | Chris St. Pierre | 2014-02-07 | 1 | -3/+4 |
| | |||||
* | bcfg2-admin: Restored missing "bcfg2-admin client add ... attrib=val" ↵ | Chris St. Pierre | 2013-11-25 | 1 | -0/+5 |
| | | | | functionality | ||||
* | Metadata: read in clients.xml on every write | Chris St. Pierre | 2013-10-04 | 1 | -0/+1 |
| | | | | | | | | | This ensures consistency between the in-memory representation of clients.xml and the representation on disk. If we don't read our writes immediately, there's a race condition when creating a new client: If it asserts its profile or version before the FAM event from the clients.xml edit is processed, then the clients doesn't appear to exist yet, and Bcfg2 complains. | ||||
* | Metadata: import any() from Compat | Chris St. Pierre | 2013-10-03 | 1 | -1/+3 |
| | |||||
* | Metadata: better logging when updating XML data fails | Chris St. Pierre | 2013-09-26 | 1 | -5/+6 |
| | |||||
* | bcfg2-lint: Fixed Metadata check for duplicate groups | Chris St. Pierre | 2013-09-17 | 1 | -9/+29 |
| | | | | | | | | | The duplicate group check parsed groups differently from the actual groups.xml parsing routines; the latter followed the documentation, while the duplicate group check did now. This fixes the duplicate group check to parse groups.xml correctly when looking for duplicates. Fixes #140 | ||||
* | Metadata: get_client_names_by_* fixes | Chris St. Pierre | 2013-08-29 | 1 | -5/+13 |
| | | | | | | Fixed long lines. Improved efficiency by avoiding multiple loops over the same data. | ||||
* | Metadata: Fix client list calls use list_clients() which is DB-aware instead ↵ | Jason Kincl | 2013-08-27 | 1 | -5/+5 |
| | | | | of just self.clients | ||||
* | Metadata: removed stray blank line | Chris St. Pierre | 2013-08-15 | 1 | -1/+0 |
| | |||||
* | Metadata: search groups breadth-first when building metadata | Chris St. Pierre | 2013-08-15 | 1 | -25/+37 |
| | | | | | This makes category negation consistent, and also makes it work like it did in Bcfg2 1.2 | ||||
* | Metadata: metadata generation improvements | Chris St. Pierre | 2013-08-14 | 1 | -70/+97 |
| | | | | | | | | | Primarily, this fixes a few potential bugs in initial metadata, which may result in inconsistent ordering of groups, which can be a problem when relying on category suppression. This also deduplicates some category suppression code, and moves some nested functions to top-level methods, which are surprisingly faster. | ||||
* | Metadata: log now client creation with profile | Chris St. Pierre | 2013-08-12 | 1 | -0/+4 |
| | |||||
* | Viz: include clients that should be included, not vice-versa | Chris St. Pierre | 2013-08-09 | 1 | -1/+1 |
| | |||||
* | Viz: exclude duplicate bundles for a given host | Chris St. Pierre | 2013-08-09 | 1 | -3/+4 |
| | |||||
* | Viz: distinguish categories from hosts | Chris St. Pierre | 2013-08-09 | 1 | -1/+1 |
| | |||||
* | Metadata: Fix bundle visualization | Sol Jerome | 2013-08-09 | 1 | -1/+1 |
| | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> | ||||
* | Metadata: catch dns lookup errors better | Chris St. Pierre | 2013-08-08 | 1 | -1/+1 |
| | |||||
* | Plugin: added new Caching interface | Chris St. Pierre | 2013-08-07 | 1 | -1/+6 |
| | | | | | | | This gives a single unified interface for expiring caches, no matter the plugin. This will be particularly useful with the MultiprocessingCore, as certain calls must be dispatched to child processes to expire their caches. | ||||
* | Get profile by building metadata instead of guessing | Michael Fenn | 2013-08-06 | 1 | -6/+9 |
| | | | | | | Rather than doing some ad-hoc lookups of internal data structures stpierre suggested that it'd be better to use the normal metadata build procedures. This implements that and adjusts the tests. | ||||
* | Make updating the structures conditional on profile changing | Michael Fenn | 2013-08-05 | 1 | -6/+6 |
| | | | | | | Based on the expectations of the tests, I am reasonably confident that updating the in memory structures is logically part of changing the client's profile so I put it in the if block | ||||
* | Found a stray write that should be part of the new client case | Michael Fenn | 2013-08-05 | 1 | -2/+2 |
| | |||||
* | Make pylint happy | Michael Fenn | 2013-08-05 | 1 | -1/+1 |
| | |||||
* | Metadata: Don't update XML on gratuitous profile update | Michael Fenn | 2013-08-05 | 1 | -2/+3 |
| | | | | | | | | | Check to see if the profile that is being set by set_profile exactly matches the existing profile list. If it does, then avoid writing out a new clients.xml. This simple optimization reduces the amount of clients.xml rewriting that occurs if you have a bunch of clients running bcfg2 -p at the same time (for example, during a cluster rebuild). | ||||
* | Metadata: fixed long line | Chris St. Pierre | 2013-07-09 | 1 | -2/+2 |
| | |||||
* | Core: Gracefully handle failure to add client without default group | Chris St. Pierre | 2013-07-09 | 1 | -5/+4 |
| | |||||
* | Metadata: fixed docstring typo | Chris St. Pierre | 2013-07-03 | 1 | -1/+1 |
| | |||||
* | Metadata: Make pylint happy | Sol Jerome | 2013-06-27 | 1 | -1/+2 |
| | | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com> | ||||
* | Plugins/Metadata: fix resolution for ipv4-in-ipv6 addresses like ↵ | Alexander Sulfrian | 2013-06-27 | 1 | -1/+1 |
| | | | | ::ffff:127.0.0.1 | ||||
* | do not create data directories for plugins that don't need them | Chris St. Pierre | 2013-06-13 | 1 | -0/+2 |
| | |||||
* | added multiprocessing server core | Chris St. Pierre | 2013-05-20 | 1 | -0/+6 |
| | |||||
* | doc: added devel docs for bcfg2-lint plugins | Chris St. Pierre | 2013-05-14 | 1 | -31/+45 |
| | |||||
* | fixed pylint test | Chris St. Pierre | 2013-05-01 | 1 | -1/+2 |
| | |||||
* | Metadata: don't require all profile groups to be public when using metadata db | Chris St. Pierre | 2013-05-01 | 1 | -3/+4 |
| | |||||
* | Metadata: create clients when version is declared (if necessary) | Chris St. Pierre | 2013-03-27 | 1 | -20/+14 |
| | |||||
* | testsuite: more text fixes | Chris St. Pierre | 2013-03-26 | 1 | -0/+1 |
| | |||||
* | testsuite: fixed more unit test stuff | Chris St. Pierre | 2013-03-26 | 1 | -1/+1 |
| | |||||
* | testsuite: fixed issues found by latest version of pylint | Chris St. Pierre | 2013-03-26 | 1 | -0/+1 |
| | |||||
* | testsuite: fixed issues found by latest version of pep8 | Chris St. Pierre | 2013-03-26 | 1 | -6/+6 |
| | |||||
* | Metadata: fixed setting default group when appropriate | Chris St. Pierre | 2013-03-26 | 1 | -32/+36 |
| | |||||
* | Metadata: apply default group consistently on first and subsequent client runs | Chris St. Pierre | 2013-03-26 | 1 | -0/+5 |
| | |||||
* | bcfg2-lint: only check clients.xml things if clients.xml is in use | Chris St. Pierre | 2013-03-26 | 1 | -0/+9 |
| | |||||
* | bcfg2-lint: added check to ensure that default group is a profile group | Chris St. Pierre | 2013-03-26 | 1 | -1/+13 |
| | |||||
* | Metadata: better stringification of ClientMetadata objects for debugging | Chris St. Pierre | 2013-03-26 | 1 | -0/+5 |
| | |||||
* | Handle FAM monitor failures more gracefully: | Chris St. Pierre | 2013-03-25 | 1 | -1/+3 |
| | | | | | | | | | * Where possible, create the file or directory that is about to be monitored. This ensures that content can be added later without need to restart Bcfg2. (Otherwise, adding the monitor would fail, and so when you did create the file in question, bcfg2-server would never be notified of it.) * When not possible, give better error messages. | ||||
* | doc: write and use proper sphinx docs for MetadataQuery/ClientMetadata classes | Chris St. Pierre | 2013-03-22 | 1 | -11/+104 |
| | |||||
* | Merge branch '1.3.2' into maint | Chris St. Pierre | 2013-03-21 | 1 | -38/+21 |
|\ | | | | | | | | | | | | | | | | | Conflicts: src/lib/Bcfg2/Client/Tools/__init__.py src/sbin/bcfg2-test testsuite/Testsrc/Testlib/TestClient/TestTools/TestPOSIX/Test__init.py testsuite/Testsrc/Testlib/TestClient/TestTools/TestPOSIXUsers.py testsuite/Testsrc/test_code_checks.py | ||||
| * | Metadata: fixed typo | Chris St. Pierre | 2013-03-08 | 1 | -1/+1 |
| | | |||||
| * | Metadata: process default client bootstrap mode properly | Chris St. Pierre | 2013-02-14 | 1 | -8/+7 |
| | | |||||
| * | Metadata: allowed setting global default authentication type | Chris St. Pierre | 2013-02-14 | 1 | -20/+12 |
| | |