Commit Graph

1084 Commits

Author SHA1 Message Date
mxi1
18ba59ac23 rollback the Schema.pm, xcatroot and genimage to r7384
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7392 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-09-09 08:54:48 +00:00
mxi1
cd9ad4b94f nodebootif, otherifce, permission are added into Schema.pm;
change the code to mkinitrd() and mkinitrd_dracut()

what to do next is to update the linuximage table in genimage code

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7385 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-09-09 08:16:58 +00:00
lissav
9a7b4ff7ff allow underscore in user defined tables and sql file names, note more work needed if want to allow test_x_mysql.pm for a name
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7383 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-09-08 18:58:59 +00:00
daniceexi
430511e226 The code drop for the changing object name by chdef command
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7376 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-09-08 10:38:25 +00:00
ligc
e130863d82 fix for bug 3060242: chvm supports "cat vmdef | chvm nodename"
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7368 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-09-07 07:38:03 +00:00
lissav
32c4db2c46 in updateschema, tabdump and create backup *.csv file before starting to change keys
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7362 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-09-06 12:01:59 +00:00
lissav
1f522d2968 fix help with -i interface change
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7346 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-09-02 13:25:43 +00:00
lissav
52e779d464 change xdsh -i to use xcatchroot on AIX
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7344 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-09-02 13:17:24 +00:00
lissav
76e8c2b6cf fix example
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7338 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-09-01 18:10:23 +00:00
lissav
d3295bc15e move updateschema from Table->new to xcatd
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7335 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-09-01 14:09:38 +00:00
ligc
d3cb329822 fix for bug 3056449: call MsgUtils::message with callback
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7332 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-09-01 08:17:57 +00:00
jjhua
d7ab261bc7 add the enableASMI related documentation to the Schema.pm for the site table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7329 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-09-01 05:41:58 +00:00
phamt
45dc77072e Add cloning support for FBA (9336) volumes.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7326 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-31 19:51:06 +00:00
lissav
8216a254ad for db2 add logic to move to larger tablespace on add columns in updateschema
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7325 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-31 19:18:47 +00:00
lissav
1eeae6603c add DB2 support for adding keys to tables
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7323 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-31 17:23:28 +00:00
jbjohnso
149e7eeae6 -Chase down master storage prereqs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7321 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-31 15:01:24 +00:00
lissav
b76b8f87a5 fix add columns for db2
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7320 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-31 13:57:24 +00:00
lissav
2487d58bd7 remove type = TEXT from firmware table, it is the default and is incompatible with DB2
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7319 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-31 12:24:22 +00:00
ligc
367f2cd295 make the message better if any table can not be opened
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7315 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-31 02:41:48 +00:00
lissav
9bea5c5075 honor type statement on keys
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7313 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-30 20:04:27 +00:00
lissav
cca60c35b1 fix ExtTab.pm so it will build on machine with no xCAT installed
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7310 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-30 18:05:21 +00:00
ligc
b6d64ce682 fix for bug 3039320: commit all the changes for one non-node object in one invocation, this is also a performance enhancement
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7301 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-30 06:25:34 +00:00
jbjohnso
0986f98b4b -Add node col to kvm_masterdata to let me use setNodesAttribs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7291 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-28 01:36:41 +00:00
jbjohnso
99c824e2f9 -Starting the clonevm implementation in earnest
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7288 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-27 23:46:06 +00:00
jbjohnso
2c317d6841 Add column to vmmaster table to indicate plugin that manages its lifecycle
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7286 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-27 20:51:38 +00:00
jbjohnso
8f33e8da82 -Table infrastructure to track VM masters
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7285 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-27 20:16:52 +00:00
lissav
e37c9268ab add restart of xcatd on AIX per defect 3039684
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7281 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-27 15:41:42 +00:00
linggao
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
jbjohnso
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
mxi1
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
phamt
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
jbjohnso
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
jbjohnso
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
lissav
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
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