2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-11 15:50:11 +00:00
Commit Graph

1057 Commits

Author SHA1 Message Date
c45a6808d5 minor fix
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7264 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-26 15:46:11 +00:00
1c1d272a02 -Modify kvm_nodedata table to allow empty xml column
-Implement chvm for offline modifications


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7252 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-26 13:16:24 +00:00
d0bf81f213 two new attributes "netdrivers" and "kernelver" are added to "linuximage" table,
the two attributes and the node's installnic and primarynic attributes will be used for creating the stateless/statelite image


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7250 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-26 07:44:10 +00:00
acdcdee52d Changed starting MAC address to be FFFFF0.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7245 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-25 23:26:12 +00:00
0395679e36 -Try to honor the now prefered nicmodel/storagemodel columns in vm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7231 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-25 15:42:36 +00:00
9c156d42a0 -Lay groundwork for kvm/esx plugins to have a bit more saner configuration tables
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7228 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-25 15:19:06 +00:00
f2fb69f021 add support for array of file names in get_filelist
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7227 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-25 15:18:04 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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