Commit Graph

20 Commits

Author SHA1 Message Date
jbjohnso
09c9b1110f -Revert expression modification to Table for now
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2151 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-09-12 13:47:09 +00:00
jbjohnso
98aa5626fd Correct the scope of ''
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2139 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-09-11 01:57:01 +00:00
jbjohnso
7be4bcfbd8 -Specify scope of 'out' variable
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2138 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-09-11 01:53:44 +00:00
sikorsky
14600652bf Added special expressions for database table columns. Currently supported are "{hostname}", "{xcatmaster}". Any expression in braces is evaluated and replaced with some interpolated value. If expression is not defined, it's replaces by itself (ie. braces are deleted).
This feature helps keep database very clean and allows easier move of xCAT master from one host to another (define xcatmaster hostname on as few places as possible). Also will help HA setup.
Backwards compatible if not used. Has to be tested if used with service nodes.
In our environment we wanted to make xCAT highly available. Instead of some cluster solution we decided to install two independent xCAT masters. Using this feature we can have exactly the same xCAT database on two dirrefent nodes, so it's possible do backup on on node and restore on other node.
Usage example is in HA cookbook (TBD).


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2135 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-09-10 21:19:02 +00:00
jbjohnso
d97bf616bc -Fix problem in Table caching where nodelist table tramples it's own cache
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2094 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-09-07 21:08:13 +00:00
jbjohnso
2066d2619a -Fix SQLite functionality to work with new MySQL friendly Table schema syntax
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2073 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-09-04 19:40:01 +00:00
jbjohnso
31da9cc399 -Fix problem where invalid SQL was generated in previous Table update
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2063 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-08-27 21:19:18 +00:00
lissav
e3f2a2df37 Change to support MySQL
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2060 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-08-26 13:43:31 +00:00
jbjohnso
6636fb1fca -Fix regular expression without arithmetic expansion in |||
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2046 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-08-20 16:47:39 +00:00
lissav
347eff6788 Remove incorrect comment about supporting only SQLite
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1962 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-07-30 12:55:42 +00:00
jbjohnso
0cc1c7f198 -Fix Table bug where things that weren't a regex were treated as such
-Add columns to track serial console pointer and rvid pointer in VM table
-Clean up Xen rpower, store system serial and video information


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1961 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-07-30 03:10:08 +00:00
jbjohnso
8da81ece39 -Fix syntax error in Table.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1878 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-07-14 14:35:54 +00:00
jbjohnso
6a158c171a -Check in a stub setNodesAttribs. It's as slow as setNodeAttribs, but the intent is to have it speed up with some attention later
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1869 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-07-11 19:12:05 +00:00
jbjohnso
15409f472c -Optimize Table 'getAllNodeAttribs' function. makeconservercf now takes 1 second on 500 nodes, and less than 10 for 10,0000 on my test system
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1860 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-07-10 13:40:32 +00:00
jbjohnso
08f3fb3ac5 -Table performance enhancements, makeconservercf, for example, a table set that induced a 10 second makeconservercf runtime is down to 3 seconds. (Now makeconservercf for this data set is an order of magnitude faster than 2.0, which was about 30 seconds for this test).
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1850 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-07-09 12:43:57 +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
dea60262d8 -Modify getNodesAttribs to have a listref per node instead of one hashref
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1845 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-07-07 19:08:26 +00:00
jbjohnso
c178d3937c -Implement a cached table lookup via getNodesAttribs, change xcatd to use that cached method for en-masse queries
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1812 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-06-30 20:51:41 +00:00
jbjohnso
9dec80d60b -Check in unoptimized getNodesAttribs function for Table.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1809 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2008-06-30 13:51:44 +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