summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Plugin.py: Add configurable metadata settings to bcfg2.conf (ticket #680)Sol Jerome2009-07-012-7/+38
| | | | | | | | | | The default settings for ConfigFile metadata were previously hardcoded in Plugin.py. This change enables setting global user-specified defaults in the [mdata] section of bcfg2.conf. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5308 ce84e21b-d406-0410-9b95-82705330c041
* Options.py: Remove unused variableSol Jerome2009-07-011-1/+0
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5307 ce84e21b-d406-0410-9b95-82705330c041
* Changed how bcfg2-admin init handles plugins and added update_client to ↵James Yang2009-06-303-15/+86
| | | | | | metadata for changes in 5305 git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5306 ce84e21b-d406-0410-9b95-82705330c041
* Added additional list and update options to bcfg2-admin clientJames Yang2009-06-301-4/+25
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5305 ce84e21b-d406-0410-9b95-82705330c041
* Metadata - Fix method referenceNarayan Desai2009-06-301-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5304 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Fix file architecture tagging for YumSources (patch from slack)Narayan Desai2009-06-291-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5303 ce84e21b-d406-0410-9b95-82705330c041
* Metadata: implement get_clients/get_groups interfaceNarayan Desai2009-06-291-3/+8
| | | | | | Add method to get list of all group names, change all client interface to match. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5302 ce84e21b-d406-0410-9b95-82705330c041
* APT/Client: Suppress known warningsSol Jerome2009-06-262-1/+15
| | | | | | | | | APT: Suppress APT api warning Client/Tools/__init__.py: Suppress popen2 deprecation warning Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5301 ce84e21b-d406-0410-9b95-82705330c041
* update to new Connector APIRick Bradshow2009-06-251-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5300 ce84e21b-d406-0410-9b95-82705330c041
* SSL: Implement protocol selection in bcfg2.confNarayan Desai2009-06-244-8/+27
| | | | | | | Add explicit knob to select encryption for client/server connections. The default value is xmlrpc/ssl, but xmlrpc/tlsv1 is also supported (needed to use DOE grid certs) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5297 ce84e21b-d406-0410-9b95-82705330c041
* Fix Fam supportNarayan Desai2009-06-242-49/+134
| | | | | | | There is some weird issue in Fam where fam stops giving events. The previous code did not tickle this condition but the new refactored code did, so we're going back to the old code for the moment. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5296 ce84e21b-d406-0410-9b95-82705330c041
* SSHBase: Make SSHBase aware of aliasesSol Jerome2009-06-232-4/+34
| | | | | | | | | | | SSHBase is now aware of aliases listed in the clients.xml file. ClientMetadata now includes `addresses` which are a mapping from an alias to an (ip, name) tuple. The ip addresses can be specified either in clients.xml as an address attribute to the Alias or in DNS. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5295 ce84e21b-d406-0410-9b95-82705330c041
* Improve server error handlingNarayan Desai2009-06-232-6/+28
| | | | | | | | Issues - Log bind failures properly - Log ssl key/cert/ca key existence problems git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5294 ce84e21b-d406-0410-9b95-82705330c041
* Core: Fix statistics related server tracebackNarayan Desai2009-06-231-4/+1
| | | | | | Remove call to deepcopy, fixing a traceback and improving performance git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5293 ce84e21b-d406-0410-9b95-82705330c041
* Packages: fix handling of architectures for RawURL YumSourcesNarayan Desai2009-06-231-17/+23
| | | | | | Add dictionary tracking YumSource architecture mappings for cache files git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5292 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2-info: add complete profiling supportNarayan Desai2009-06-212-26/+30
| | | | | | | | | | Build uniform profiling support for both core startup and individual commands. Also ensure that single shot commands (from argv) work properly. Core profiling (for startup) can be enabled with -p, and individual commands can be profiled by prefixing the profile command, a la: > profile build ubik3 /tmp/ubik3.xml git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5290 ce84e21b-d406-0410-9b95-82705330c041
* Metadata: Fix traceback from imd updatesSol Jerome2009-06-201-2/+2
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5289 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2-admin: Migrate query to new Metadata query interfaceSol Jerome2009-06-202-13/+3
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5288 ce84e21b-d406-0410-9b95-82705330c041
* Metadata: improve resolution performanceNarayan Desai2009-06-191-2/+0
| | | | | | | | | | | Remove vestiages of the old .all interface; previously we needed to use copy.deepcopy to ensure that ClientMetadata consumers could not modify data structures from templates, etc. This also has the nice side effect of speeding up metadata resolution by a factor of 50 (0.5s -> 0.01s) in my repository. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5287 ce84e21b-d406-0410-9b95-82705330c041
* Metadata: Implement query interfaceNarayan Desai2009-06-192-38/+39
| | | | | | | | | | | | | | Clean up all of the ad-hoc interface to global metadata, replacing it with a consistent interface. ClientMetadata instances now have a query attribute which has the following methods: - by_name -- resolve client metadata by primary name - by_groups -- resolve client metadata for clients belonging to multiple groups - by_profiles -- resolve client metadata for clients with given profiles - names_by_groups -- return names of clients belonging to multiple groups - names_by_profiles -- return names of clients using given profiles - all_names -- return names of all clients git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5286 ce84e21b-d406-0410-9b95-82705330c041
* Packages: add parse-caching support for YumSourcesNarayan Desai2009-06-191-3/+4
| | | | | | | This commit caches the result of startup parsing, reducing startup time for YumSources. bcfg2-info startup time on my repo was reduced by 60%. git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5285 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Improve YumSource performance dramaticallyNarayan Desai2009-06-181-6/+13
| | | | | | | Track needed file paths so that the contents of all packages do not need to be tracked. This reduces memory consumption ~60% on my test repository (360MB -> 60MB for bcfg2-info). woo! git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5283 ce84e21b-d406-0410-9b95-82705330c041
* Implement zultron's inter-client metadata stuffNarayan Desai2009-06-182-3/+8
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5282 ce84e21b-d406-0410-9b95-82705330c041
* Implement -z (for Independent entries only, a la -b) (Resolves Ticket #616)Narayan Desai2009-06-143-2/+8
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5281 ce84e21b-d406-0410-9b95-82705330c041
* Cfg: Fix hardwired filename ignores (Fixes Ticket #619)Narayan Desai2009-06-142-3/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5280 ce84e21b-d406-0410-9b95-82705330c041
* APT: Force cache reload to get data from source updatesNarayan Desai2009-06-141-5/+3
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5278 ce84e21b-d406-0410-9b95-82705330c041
* Improve error message for attempted directory unlinks (Patch from Torsten ↵Narayan Desai2009-06-141-0/+3
| | | | | | Rehn) (Resolves Ticket #657) git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5277 ce84e21b-d406-0410-9b95-82705330c041
* APT: fix cache invalidationNarayan Desai2009-06-141-0/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5276 ce84e21b-d406-0410-9b95-82705330c041
* Packages: implement caching for APTNarayan Desai2009-06-141-26/+60
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5275 ce84e21b-d406-0410-9b95-82705330c041
* Packages: implement repomd support for yum sourcesNarayan Desai2009-06-141-16/+45
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5274 ce84e21b-d406-0410-9b95-82705330c041
* Fix Yum URL sourcesNarayan Desai2009-06-111-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5273 ce84e21b-d406-0410-9b95-82705330c041
* Improve bundler error handling for .genshi filesNarayan Desai2009-06-111-2/+2
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5272 ce84e21b-d406-0410-9b95-82705330c041
* Implement RawURL supportNarayan Desai2009-06-111-7/+16
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5271 ce84e21b-d406-0410-9b95-82705330c041
* Fixed bug in Init.py with setting up Bcfg2-admin for the first time.James Yang2009-06-091-1/+1
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5269 ce84e21b-d406-0410-9b95-82705330c041
* Fix yum api use for centos 4 compatibility (Resolves Ticket #670)Narayan Desai2009-06-051-6/+20
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5268 ce84e21b-d406-0410-9b95-82705330c041
* bcfg2.conf updates for 1.0pre3Sol Jerome2009-06-031-3/+1
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5267 ce84e21b-d406-0410-9b95-82705330c041
* Snapshots: Add --date for detailed view for a particular dateSol Jerome2009-06-012-0/+30
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5266 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Fix cases where arch group mappings are unexpectedNarayan Desai2009-05-291-3/+8
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5265 ce84e21b-d406-0410-9b95-82705330c041
* SSLServer: SimpleXMLRPCServer patch for python 2.4 (Patch from Jack Neely)Sol Jerome2009-05-291-44/+46
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5264 ce84e21b-d406-0410-9b95-82705330c041
* Send messages to loggerSol Jerome2009-05-291-2/+2
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5263 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Fix traceback with missing config.xml (Reported by Jack Neely)Sol Jerome2009-05-291-1/+6
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5262 ce84e21b-d406-0410-9b95-82705330c041
* Packages: Make cache directory creation recursiveSol Jerome2009-05-291-1/+1
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5261 ce84e21b-d406-0410-9b95-82705330c041
* Fall back to previous XMLRPCDispatcher calling convention (Resolves Ticket #669)Narayan Desai2009-05-291-1/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5260 ce84e21b-d406-0410-9b95-82705330c041
* Pull out hashlib for the momentNarayan Desai2009-05-291-8/+0
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5259 ce84e21b-d406-0410-9b95-82705330c041
* Add back python 2.3 fixes for {RPM,YUM}ngSol Jerome2009-05-272-0/+12
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5258 ce84e21b-d406-0410-9b95-82705330c041
* Revert "Remove last traces of popen2 from client code"Sol Jerome2009-05-271-12/+38
| | | | | | | | | | | This reverts commit 5167. We are still supporting python2.3 on the client. This can be redone once we start supporting 2.4 or greater. Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5257 ce84e21b-d406-0410-9b95-82705330c041
* Make pseudofam work on systems without GaminNarayan Desai2009-05-241-11/+6
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5256 ce84e21b-d406-0410-9b95-82705330c041
* APT.Remove: Split up package names properlySol Jerome2009-05-221-1/+1
| | | | | | Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5252 ce84e21b-d406-0410-9b95-82705330c041
* Fix fd leak caused by our use of the subprocess APINarayan Desai2009-05-221-5/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5251 ce84e21b-d406-0410-9b95-82705330c041
* Packages: improve terseness of resolver debug messagesNarayan Desai2009-05-201-5/+4
| | | | git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5249 ce84e21b-d406-0410-9b95-82705330c041