Commit Graph

1050 Commits

Author SHA1 Message Date
jbjohnso
e89dd334f0 -Add 'mknum' directive to nodeattribute expansion
-Try Safe module instead of clunky regexes to protect against bad data


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7213 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-24 20:46:22 +00:00
lissav
950dc26e5d remove path to logger
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7209 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-24 19:17:41 +00:00
lissav
8e646452eb add picking files that are specific to the running database, fix defect 3051710
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7208 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-24 19:12:17 +00:00
lissav
1108a03284 fix defect 3052327
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7206 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-24 15:51:40 +00:00
lissav
d1e30c8f7b fix return structure from get_filelist
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7199 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-24 13:27:45 +00:00
lissav
dc27bd58d5 change for new syntax in CNM support to get_filelist
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7198 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-24 12:24:45 +00:00
daniceexi
f02832a3db fix a non assic character
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7196 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-24 07:33:32 +00:00
lissav
86a1fc10a7 add get_filelist routine for build the appropriate .sql and .pm files to run for the user, needed by xcatd and runsqlfiles
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7191 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-23 18:03:45 +00:00
lissav
cb7022030e add default to powerinterval and fix formatting
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7188 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-23 12:04:56 +00:00
lissav
7b81722d10 remove foreign key logic from buildcreate routine
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7167 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-20 12:53:05 +00:00
daniceexi
ee503ab4de add the support for blade power saving
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7162 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-20 09:51:33 +00:00
ligc
16ab21e6e3 fix for bug 3043788, use non-greedy regular expression, the value can contain "="
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7157 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-20 05:33:50 +00:00
cjhardee
5b4ba54a2d Cross your fingers that this makes the million and a half dependant things happy. Changed the output of getNodeAttributes to merge the data from its different groups and to clone entries from one group for each entry in a folowing group with data in it.
I'm just gonna paste the description Jarrod sent to the group via email:

So if getAttribs ever returns more than one result, then getNodeAttribs will have it's output multiplied by that factor.  I'll draw out a table with changes Chris started adding while he was also trying to flatten the recursion.  Let's say 'n1' is in groups 'g1,g2,g3', and that we request columns 'c1,c2,c3,c4'  Let's also assume the primary key is not simply 'node', allowing the node column to contain duplicates (as in switch table).  I don't expect anyone to actually construct something this convoluted in practice, but:

node    |c1     |c2     |c3     |c4
n1      |v1     |       |       |
g2      |       |V2+=   |       |
g2      |       |v3     |v4     |
g3      |       |v5     |       |v6
g3      |       |v7     |v8     |v9

First, we get n1s record:
[
{ node => 'n1',  c1 => 'v1',}
]
We see that c2-c4 are still unsatisfiad, then we check g1, see there is no record, so no action takes place, then getAttribs node=>'g2' returns two records.  As a result, we clone our results so far and independently populate them:
[
{ node => 'n1', c1=> 'v1', c2 => 'v2+=' },
{ node => 'n1', c1 => 'v1', c2=> 'v3', c3 => 'v4'},
]
Now, in the first record, we are still looking to fill in c3, c4, and we are also still looking at c2 to complete the '+=' operation.
In the second record, we only need c4 now, no other columns will be checked for that record.

Then we hit g3.  We also get two results back (two was easier, but arbitrarily many are possible, btw).  Since both records are still looking to be completed, the two become 4 records (if one of the two records were satisfied before this point, the two would have become three instead):

[
{ node => 'n1', c1=> 'v1', c2 => 'v2v5',c4=>'v6' },
{ node => 'n1', c1 => 'v1', c2=> 'v3', c3 => 'v4',c4=>'v6'},
{ node => 'n1', c1=> 'v1', c2 => 'v2v7',c3=>v8,c4=>'v9' },
{ node => 'n1', c1 => 'v1', c2=> 'v3', c3 => 'v4',c4=>'v9'},
]

And that would be what getNodesAttribs would return in this case.




git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7131 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-18 18:14:48 +00:00
nott
5229862ac3 add get_nim_attrs subroutine
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7129 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-18 15:19:01 +00:00
lissav
34a349cae0 add support for Foreign keys in Schema
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7127 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-18 15:06:17 +00:00
ligc
75cdca63e6 fix for bug 3043788: the node attribut name may contain special characters such as .
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7106 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-17 08:08:58 +00:00
cjhardee
9db0c3a358 added checks for improper colons and newlines in the client xml. XCATXMLWARNING is the env variable to set to enable it
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7098 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-16 15:13:39 +00:00
lissav
ca175714e3 add comments for comment and disable attribute
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7093 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-15 11:10:53 +00:00
lissav
afaacb619f add comment and disable fields to performance table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7090 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-13 17:59:40 +00:00
nott
ac79a6dfdd add to postbootscript description
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7089 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-13 16:59:44 +00:00
cjhardee
f8c12d6285 fixed nodels to include mutliple results from the same group and to return [undef] when there are no results instead of [{}]
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7087 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-13 14:40:26 +00:00
lissav
37640c0498 More DB2/MYSQl fixes to setNodesAttribs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7071 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-12 16:26:20 +00:00
jbjohnso
74f3d9e3cf -Move the kvm_nodedata table to Schema.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7070 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-12 15:55:31 +00:00
nott
d190f1feb8 remove -I option from rnetboot
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7069 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-12 14:31:05 +00:00
wanghuaz
f3e16ec584 fixed defect 3039322, rvitals returned error.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7066 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-12 09:22:12 +00:00
yinle
2a181f2f6c Fix defect 3037117:nodeset -v and -h returns nothing; Add nodeset usage to the usage data structure
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7060 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-12 09:00:31 +00:00
jbjohnso
30553d8b13 -Remove debug output
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7023 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-10 14:08:49 +00:00
lissav
b1c06a86ed fix bad problem in creating tables in db2- I introduces
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7022 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-10 13:29:46 +00:00
jjhua
2376ec6bac move the fsp_api_action from Utils to FSPUtils
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7008 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-09 06:56:45 +00:00
jjhua
536da9df52 modified the comments
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7007 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-09 06:56:18 +00:00
jjhua
72be03e99d use fsp_api_action in FSPUtils
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7006 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-09 06:40:45 +00:00
jjhua
466401693f use fsp_api_action in FSPUtils
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7005 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-09 06:38:27 +00:00
jjhua
ddf9c76601 use fsp_api_action in FSPUtils
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7004 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-09 06:23:36 +00:00
jjhua
7d4ff425ba use fsp_api_action in FSPUtils
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7003 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-09 06:17:58 +00:00
jjhua
9318fb42e3 use fsp_api_action in FSPUtils
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7002 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-09 06:05:35 +00:00
jbjohnso
e82e3f5f8b -Give up after 30 seconds of starvation
-Actually sleep in the retry loop rather than being a busy loop


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6992 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-06 12:54:41 +00:00
jbjohnso
4da5599717 -Avoid calling subprocesses in favor of perl builtins
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6991 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-06 12:36:39 +00:00
jjhua
4279cdb5de support for multiple hcps
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6985 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-05 06:48:09 +00:00
lissav
5f21467bca fix setting of types for attributes to invalid types for DB2 as much as possible for now
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6978 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-04 14:17:31 +00:00
linggao
b646e85284 linuximage.pkglist is used for full install now, comment modified.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6977 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-04 13:45:20 +00:00
jjhua
f98359ae33 rscan for multiple hardware control points
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6969 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-04 07:06:48 +00:00
lissav
9d7014c2ca fix mysql calls in setNodesAtt
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6954 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-03 14:12:05 +00:00
jjhua
fc2d34110e use getAttribs() to instead of getobjdefs()
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6951 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-03 09:32:34 +00:00
lissav
8c74a9fb43 explain AIX in postscripts table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6947 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-02 19:07:41 +00:00
lissav
d1f418d1d7 fix changed code in setNodesAttribs for DB2
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6941 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-02 13:24:53 +00:00
jjhua
3cbf22bdc2 move getTypeOfHcp from Utils.pm to FSPUtils.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6937 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-02 08:25:23 +00:00
jjhua
f5008b1354 move getTypeOfHcp from Utils.pm to FSPUtils.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6936 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-02 08:24:42 +00:00
jjhua
b8088dc328 add the getTypeOfHcp for multipel hcps
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6935 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-02 08:11:46 +00:00
jjhua
eaa2cbbe09 output the error for each node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6934 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-02 08:04:26 +00:00
cjhardee
677a70a760 Just made some areas more readable since I'll be playing in them soon.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6932 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-07-31 02:15:57 +00:00