Commit Graph

49 Commits

Author SHA1 Message Date
jbjohnso
a5913583ef Fix problem where group membership at startup hounded xCAT commands eternally
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12741 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-16 16:48:15 +00:00
jbjohnso
bdce8a8eb4 Since use_cache is a bit weird, NodeRange will instead force a build_cache(1) instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12736 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-16 15:18:55 +00:00
jbjohnso
43d4ca3b8f Have NodeRange make more assurances that it will not be caching data upon explicit request
xcatd explicitly has noderange redo cache if client has a <noderange> element.  This distinguishes it from 'getpostscript' type commands.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12734 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-16 15:11:26 +00:00
jbjohnso
4b81110bf7 Fix problem where nodegroup enumerated groups could last forever, also eliminate calls to retain_cache with (0)
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12649 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-12 11:54:58 +00:00
jbjohnso
ef27e8e45e More aggressively retain cache
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12641 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-11 18:42:47 +00:00
jbjohnso
c7f18f612d Fix problem where group mapping may get stuck under certain circumstances
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12630 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-11 14:15:06 +00:00
jbjohnso
9861a35e00 Make sure nodelist never retains a nodelist cache longer than 5 seconds under any condition
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12629 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-11 14:14:56 +00:00
jbjohnso
dad755c521 Have NodeRange.pm not flip out in the face of excessive quotes.
Also, just in case, bail out after 4,096 recursions, just in case something else tortuous is being missed.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11731 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-02 23:59:39 +00:00
jbjohnso
c269fa50b6 Third fix for nodelist.status
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9405 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-04-26 16:54:41 +00:00
jbjohnso
8041eae6c8 -fix stab at nodelist criteria in noderange
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9404 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-04-26 16:49:41 +00:00
jbjohnso
2c8f399598 -Second stab at nodelist criteria in noderange
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9403 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-04-26 16:48:35 +00:00
jbjohnso
834e146918 It's 5:00 and the last checkin broke, so revert
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9398 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-04-25 21:06:16 +00:00
jbjohnso
6d025582d2 Try to fix criteria matching for nodelist columns
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9397 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-04-25 21:02:23 +00:00
jbjohnso
1175706f14 Speed up noderange by using %::XCATSITEVALS hash instead of expensive DB calls
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9298 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-04-13 13:59:10 +00:00
lissav
8ddf863e48 Comment out use/require Data:Dumper
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9270 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-04-11 13:49:13 +00:00
ligc
879480fef7 noderange exclusion through site attribute excludenodes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9267 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-04-11 07:08:42 +00:00
jbjohnso
0552dd32b3 Try to resolve the noderange bug, haven't produced it myself, so this is just a guess
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8786 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-02-02 20:51:58 +00:00
lissav
5ca2668846 fix for defect 3167038, we lose the noderange table handle ( goes stale) on the service node when using DB2
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8782 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-02-01 18:52:34 +00:00
bp-sawyers
87f3d02381 Support noderange of form: f[1-2]n[1-10]
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7796 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-10-09 01:32:07 +00:00
ligc
564a40bc9c clean when retain_cache
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5787 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-04-16 02:55:36 +00:00
ligc
f34733564c nodels ^/node/range/file,node1,node2 does not work, the ',' is passed to expandatom
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4992 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-01-20 08:15:09 +00:00
jbjohnso
687bb27418 -Fix problem where a '0' in a bracketed expression would break noderange expansion
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4755 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-12-10 20:22:40 +00:00
jbjohnso
3ef7062195 -Speed up large noderange expansion
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4685 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-11-28 13:06:40 +00:00
jbjohnso
24a4d7b1d6 -More efficiently organize the noderange cache of nodes to speed up large noderange lookups
-Only require one iteration to build group->member hash.  This speeds up:
    -nodeadd when a lot of nodes already exist
    -any noderange with a lot of 'atoms' that aren't nodes


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4377 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-10-13 20:47:55 +00:00
jbjohnso
80f27be71b -Improve caching algorithms to fix performance regressions on large noderanges incurred by DB worker
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4372 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-10-13 16:52:16 +00:00
jbjohnso
8fe6b85410 -Fix for bug 2873054
-Request to noderange to stop actively preserving cache now also has noderange to actively drop any current cache


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4341 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-10-10 14:50:06 +00:00
ligc
66c9273207 fix for bug 2866597
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4257 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-09-29 09:49:54 +00:00
jbjohnso
1570da4d20 -Workaround the known place where 2.3 can leak memory, put notes in on how
to produce the memleak for future fix instead of workaround


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4112 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-09-09 20:08:51 +00:00
jbjohnso
95c0a1000d -Fix sf bug 2845378, stale cache data being returned in noderange expansions
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4057 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-08-27 19:57:41 +00:00
jbjohnso
f688e3f09f -Fix BUG on empty criteria searches
-Accept '=' as a delimeter for convenience (NodeRange will never support assignment of table values, it makes no sense)


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3981 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-08-10 21:09:00 +00:00
jbjohnso
82dc8fa9ca -Implement noderange table lookup atoms
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3980 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-08-10 21:01:08 +00:00
jbjohnso
b7986e057c -Document some TODOs to improve noderange resolution performance and add a feature
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3973 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-08-09 16:14:56 +00:00
jbjohnso
f8702e980d -Fix noderange to correctly enable cache for table for db worker and non-db worker modes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3972 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-08-09 16:02:28 +00:00
lissav
6bcd2f46c9 fix defect 2823133 noderange expansion incorrect, for example node19+2
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3828 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-07-19 13:27:33 +00:00
ligc
9ddf4569e3 fix for bug 2821739: check the whether the grptab is null before using it.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3799 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-07-15 18:20:16 +00:00
lissav
06ec99b808 comment out print Dumper although it shows up in XCATBYPASS mode and since the 390 group always run in bypass mode they will see it
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3721 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-07-07 16:17:45 +00:00
lissav
9496d87cc1 fix syntax error line 93 used wrong pointer to open table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3624 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-06-23 15:16:31 +00:00
cridye
87fbe622ce allow empty groups in node ranges, provided they are defined in nodegroup table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3615 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-06-22 23:31:53 +00:00
jbjohnso
312c810085 -Succeed when no nodegroup table exists
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3459 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-05-29 19:21:29 +00:00
ligc
c9f45e190d dynamic node group support: Noderange.pm->expandatom, DBobjectdefs.pm->defmk and defch, DBobjUtils.pm->getGroupMembers
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3389 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-05-15 02:29:28 +00:00
jbjohnso
863888a7ab -Skip abbreviating single nodes to one-sized groups
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3254 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-04-24 12:45:06 +00:00
jbjohnso
2d53a1e841 -Prefer rightmost number when using the + operator
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3248 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-04-23 14:53:56 +00:00
jbjohnso
be121bafb2 -Add xcoll abbreviation support by popular demand
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3194 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-04-14 18:27:43 +00:00
jbjohnso
e8f67622e6 Tweak extnoderange function to be consistent with other commands, export it as client callable method
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2238 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-09-26 22:57:55 +00:00
jbjohnso
8d9567ff2b -Add an extended noderange, implementing subgroup mechanism
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2237 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-09-26 22:29:02 +00:00
jbjohnso
cde3cf828e -Change noderange to make , lower precedence operator than @
-Have xCAT metapackage ensure the expected permissions on ssh public key on the postscripts section.


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1884 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-07-17 13:44:56 +00:00
jbjohnso
99828e0309 -Fix problem where file inclusion or parenthetical noderanges could induce a failure
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1876 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-07-14 14:24:05 +00:00
jbjohnso
ce8ee250d1 -Speed up noderange expansion
-Have Table calls that utilize noderange extend noderange's optimizations lifetime
-Rework conserver to use the at-scale Table access methods, overall about 3 times faster so far


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1847 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-07-07 22:47:38 +00:00
jbjohnso
77d55609c0 -Move perl-xCAT to not have version in trunk name
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1562 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-06-03 15:00:37 +00:00