6093 Commits

Author SHA1 Message Date
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
lissav
29b7564732 fix example
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7130 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-18 16:24:07 +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
nott
0d946169c0 pass additional resource attrs to the service node when replicating
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7128 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-18 15:08:41 +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
lissav
752cbd0f1a fix generating keys for user wipes out credentials for root
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7125 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-18 11:35:47 +00:00
jjhua
fe60641a64 HPC integration RH6 support for diskless cluster(rsct)
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7124 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-18 08:59:05 +00:00
daniceexi
6c3c56e53b defect 2990570: add the part that using the /install/<os>/<arch> as the repository of management node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7123 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-18 07:04:17 +00:00
sjing
0b1d176e98 support lslite command.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7122 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-18 03:22:35 +00:00
daniceexi
a0e5597593 fix the error that handle the return code when initiate the syncfile
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7121 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-18 03:21:19 +00:00
sjing
f3537cda29 support lslite command.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7120 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-18 03:19:54 +00:00
daniceexi
d29130d67d defect 3038654,3045969: fixed the example of synclist file; add the description of syncing files to SN before starting the installation of compute node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7119 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-18 03:16:05 +00:00
sjing
9e181a4ff9 support lslite command.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7118 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-18 03:15:38 +00:00
sjing
226bb0d06d support lslite command.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7117 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-18 03:13:29 +00:00
daniceexi
b7054d0545 defect 3041747: IO::Socket::INET->new has problem to handle the hostname, use the IP to replace. And added the retry for update state
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7116 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-18 01:34:22 +00:00
phamt
aaa6317e03 Handle case where the Linux distro copied is sles[xxx]sp[yyy] (e.g. sles11sp1), where xxx is the version and yyy is the service pack. In the case above, the genimage command will not recognize the Linux distro and give an error.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7115 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-17 23:35:09 +00:00
phamt
4ca5b1d2a5 Handle case where the Linux distro copied is sles[xxx]sp[yyy], where xxx is the version and yyy is the service pack.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7114 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-17 20:57:18 +00:00
phamt
7fa844ccf1 Updated Customizing Autoyast and Kickstart section.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7113 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-17 18:03:55 +00:00
lissav
79b21e0b73 fix foreign key example
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7112 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-17 16:30:56 +00:00
jbjohnso
d2e7821be3 -Be more picky about the nature of the https server when thinking about credential authorization
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7111 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-17 14:01:14 +00:00
jbjohnso
cb0fefce56 -Add capability to check by https server on a callback_https_port
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7110 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-17 13:57:56 +00:00
daniceexi
ea7365e317 add the part of how to use the driver update disk
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7109 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-17 13:06:01 +00:00
daniceexi
5f96bcb105 add the part of how to use the driver update disk
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7108 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-17 11:55:36 +00:00
ligc
147284c129 fix for bug 3043019: remove the hardcoded tftpboot in ananconda.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7107 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-17 08:56:31 +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
mxi1
021457531b from now on, the entries in "litetree" table are no longer restricted to use different mnt point name; for example,
The "litetree" table has the following entries:

"1","ALL","192.168.11.107:/test/$node",,
"2","ALL","192.168.11.108:/test/$node",,

before the code is checked in, if you run "litetree <nodename>", you should get one message like this:

<nodename>: 192.168.11.107:/test/<nodename>
# 192.168.11.107 and 192.168.11.108 both mount /test. This not supported.

After the code is checked in, there will be no any error/warning message about the entries in litetree table.
Accordingly, the naming of mount points on the compute nodes are updated to "/.statelite/mnt/<nfs server ip>/<nfs directory>/" from "/.statelite/mnt/<nfs directory>/".



git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7105 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-17 02:57:52 +00:00
ligc
dac2795b0c fix for bug 3042443: node status is booting after installation finished
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7104 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-17 02:53:16 +00:00
lissav
fb2648f066 add foreign key stanza
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7103 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-16 20:08:47 +00:00
jbjohnso
6b88d50446 -Have xCAT only attempt to change user privilege if not currently accurate
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7102 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-16 19:47:05 +00:00
phamt
7df54c0078 Updated Customizing Autoyast and Kickstart section.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7100 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-16 18:06:18 +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
mxi1
cd97708182 for defect 3039222, remove "litefile <imagename>" command from the document.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7097 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-16 06:04:32 +00:00
phamt
26249034a3 Cleaned up documentation.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7096 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-16 02:36:00 +00:00
mxi1
e5296f6d57 one bug is fixed for handling subdirectories
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7095 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-15 16:15:58 +00:00
mxi1
92b99d0a9d fix one bug for "FindFile()" function in rc.statelite
now, "ls -A ${path}|wc -l" is used to judge whether one directory is empty or not


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7094 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-15 16:06:23 +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
phamt
096339dc5b Changed $propVals to $propVals->{'mac'} because in the if conditional, $propVals can have a value while $propVals->{'mac'} can be null.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7092 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-13 23:14:00 +00:00
lissav
7a1f81f66c more good commands
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7091 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-13 18:47:07 +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
nott
08d565036d bnd file changes and chkosimage
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7088 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-13 16:50:55 +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
jbjohnso
94ba8aedbc -Implement kvm plugin lsvm command
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7086 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-13 13:23:19 +00:00
jbjohnso
d85478a0aa -Preserve and use saved XML in more contexts
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7085 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-13 12:34:32 +00:00
jbjohnso
936e79a63d -Fix problem where last change was trying to write a processed data structure instead of unprocessed xml to db
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7084 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-13 12:26:17 +00:00
mxi1
359f69fbc4 fix one bug for /.statebackup directory
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7082 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-13 10:27:29 +00:00
mxi1
c9f074bb4d in order to support diskless SLES11 on P7, all the file in /lib64/ will be copied to /tmp/initrd.$$/lib64/
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7080 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-13 09:09:06 +00:00
jjhua
858940b6af fixed defect 3043952
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7079 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-13 04:24:47 +00:00
mxi1
a58b3eee52 bug 3042361 is fixed;
And also, added the code to retry if the "litefile" or "litetree" command gets nothing  from xCATd on MN/SN;
use "tcp" as the default nfs option instead of "udp"


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7078 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-13 02:42:39 +00:00
vallard
5b395ae747 added a hook for the custom mod.tgz that if its already there not to update it, because it may have other updates in it already
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7077 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-08-12 22:31:31 +00:00