summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugins/Metadata.py
Commit message (Collapse)AuthorAgeFilesLines
* Metadata: reread client list from databaseChris St. Pierre2014-02-231-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 testChris St. Pierre2014-02-071-3/+4
|
* bcfg2-admin: Restored missing "bcfg2-admin client add ... attrib=val" ↵Chris St. Pierre2013-11-251-0/+5
| | | | functionality
* Metadata: read in clients.xml on every writeChris St. Pierre2013-10-041-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 CompatChris St. Pierre2013-10-031-1/+3
|
* Metadata: better logging when updating XML data failsChris St. Pierre2013-09-261-5/+6
|
* bcfg2-lint: Fixed Metadata check for duplicate groupsChris St. Pierre2013-09-171-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_* fixesChris St. Pierre2013-08-291-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 Kincl2013-08-271-5/+5
| | | | of just self.clients
* Metadata: removed stray blank lineChris St. Pierre2013-08-151-1/+0
|
* Metadata: search groups breadth-first when building metadataChris St. Pierre2013-08-151-25/+37
| | | | | This makes category negation consistent, and also makes it work like it did in Bcfg2 1.2
* Metadata: metadata generation improvementsChris St. Pierre2013-08-141-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 profileChris St. Pierre2013-08-121-0/+4
|
* Viz: include clients that should be included, not vice-versaChris St. Pierre2013-08-091-1/+1
|
* Viz: exclude duplicate bundles for a given hostChris St. Pierre2013-08-091-3/+4
|
* Viz: distinguish categories from hostsChris St. Pierre2013-08-091-1/+1
|
* Metadata: Fix bundle visualizationSol Jerome2013-08-091-1/+1
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Metadata: catch dns lookup errors betterChris St. Pierre2013-08-081-1/+1
|
* Plugin: added new Caching interfaceChris St. Pierre2013-08-071-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 guessingMichael Fenn2013-08-061-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 changingMichael Fenn2013-08-051-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 caseMichael Fenn2013-08-051-2/+2
|
* Make pylint happyMichael Fenn2013-08-051-1/+1
|
* Metadata: Don't update XML on gratuitous profile updateMichael Fenn2013-08-051-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 lineChris St. Pierre2013-07-091-2/+2
|
* Core: Gracefully handle failure to add client without default groupChris St. Pierre2013-07-091-5/+4
|
* Metadata: fixed docstring typoChris St. Pierre2013-07-031-1/+1
|
* Metadata: Make pylint happySol Jerome2013-06-271-1/+2
| | | | Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
* Plugins/Metadata: fix resolution for ipv4-in-ipv6 addresses like ↵Alexander Sulfrian2013-06-271-1/+1
| | | | ::ffff:127.0.0.1
* do not create data directories for plugins that don't need themChris St. Pierre2013-06-131-0/+2
|
* added multiprocessing server coreChris St. Pierre2013-05-201-0/+6
|
* doc: added devel docs for bcfg2-lint pluginsChris St. Pierre2013-05-141-31/+45
|
* fixed pylint testChris St. Pierre2013-05-011-1/+2
|
* Metadata: don't require all profile groups to be public when using metadata dbChris St. Pierre2013-05-011-3/+4
|
* Metadata: create clients when version is declared (if necessary)Chris St. Pierre2013-03-271-20/+14
|
* testsuite: more text fixesChris St. Pierre2013-03-261-0/+1
|
* testsuite: fixed more unit test stuffChris St. Pierre2013-03-261-1/+1
|
* testsuite: fixed issues found by latest version of pylintChris St. Pierre2013-03-261-0/+1
|
* testsuite: fixed issues found by latest version of pep8Chris St. Pierre2013-03-261-6/+6
|
* Metadata: fixed setting default group when appropriateChris St. Pierre2013-03-261-32/+36
|
* Metadata: apply default group consistently on first and subsequent client runsChris St. Pierre2013-03-261-0/+5
|
* bcfg2-lint: only check clients.xml things if clients.xml is in useChris St. Pierre2013-03-261-0/+9
|
* bcfg2-lint: added check to ensure that default group is a profile groupChris St. Pierre2013-03-261-1/+13
|
* Metadata: better stringification of ClientMetadata objects for debuggingChris St. Pierre2013-03-261-0/+5
|
* Handle FAM monitor failures more gracefully:Chris St. Pierre2013-03-251-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 classesChris St. Pierre2013-03-221-11/+104
|
* Merge branch '1.3.2' into maintChris St. Pierre2013-03-211-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 typoChris St. Pierre2013-03-081-1/+1
| |
| * Metadata: process default client bootstrap mode properlyChris St. Pierre2013-02-141-8/+7
| |
| * Metadata: allowed setting global default authentication typeChris St. Pierre2013-02-141-20/+12
| |