Compare commits

..

3664 Commits

Author SHA1 Message Date
arif 2ddfd8c17d Merge branch '2.8.3-ocf' of gitlab.ocf.co.uk:aali/xcat-core into 2.8.3-ocf 2014-04-23 11:17:02 +01:00
arif 9ac4bde2ed defect #4061: fix DSHCLI.pm for append in hierarchy 2014-04-23 11:15:29 +01:00
lissav 8bd63d7f04 defect 4061 2014-04-15 20:25:44 +01:00
arif bf0f8dc26e defect #4061: fix DSHCLI.pm for merge in hierarchy 2014-04-11 14:52:45 +01:00
arif f049a9844d Merge branch '2.8.3-ocf' of gitlab.ocf.co.uk:aali/xcat-core into 2.8.3-ocf 2014-04-11 08:49:42 +01:00
arif 354596f545 Update version to 2.8.3ocf 2014-04-11 08:48:58 +01:00
lissav 036e8d3618 defect 4049 broadcast updatenode -g if sharedtftp=0 2014-04-10 18:18:54 +01:00
ligc c410124610 fix for a typo in confignics, caused ib configuration problems 2014-04-09 19:01:18 +01:00
arif 0fe8154a19 fix bug 3971, trim othernames variable 2014-04-09 18:53:48 +01:00
lissav c547796400 defect 4050 2014-04-09 18:06:30 +01:00
mellor 2727f04b4f defect 4049 change Postage.pm to call my_if_facing if xcatmaster attr not set 2014-04-09 18:05:57 +01:00
ligc 2c34e7a632 fix for bug 4002, configib replaces /etc/sysctl.conf 2014-04-09 17:59:03 +01:00
arif d3a5b1c5fd add vlan support to configeth 2014-04-09 17:58:36 +01:00
arif 23013c30bb fix bug #4027, replace chop with chomp 2014-04-09 17:36:16 +01:00
arif ba9e8cb2e0 add nichostnameprefixes to @nodeattrs 2014-04-09 17:35:00 +01:00
arif f724708689 first commit for prefix hostname feature 2014-04-09 17:34:51 +01:00
arif 4b2274ea26 fix bug 3971, trim othernames variable 2014-04-09 17:34:39 +01:00
arif 90076cd6c1 change comment on path of where the gpfs_updates directory is placed 2014-04-09 17:33:17 +01:00
arif e577d6e80e update Template.pm, so that the partitionfile is grabbed from the master using wget 2014-04-09 17:33:08 +01:00
arif fe7beabb89 add per node consoleondemand 2014-04-09 17:32:37 +01:00
arif 43f5eb623c fix ipv6 0.0.0.0 to ::, the equivalent ip 2014-04-09 17:31:42 +01:00
arif ce21f38cf7 add ifname to arguments for checkConfig_Sles 2014-04-09 17:31:26 +01:00
arif 96b884e5e7 update routeop with device based routing 2014-04-09 17:31:18 +01:00
arif 437bc8e95e update route.pm, and start work on routeop 2014-04-09 17:31:07 +01:00
arif 0a7e140cc8 defect 4033: fix device based routing in makeroutes 2014-04-09 17:30:53 +01:00
arif e2b85da515 fix gpfs_updates to use MASTER instead of SITEMASTER for hierarchical situations 2014-04-09 10:44:47 +01:00
Jarrod Johnson ccb66ff793 Merge branch '2.8' of ssh://git.code.sf.net/p/xcat/xcat-core into 2.8 2013-11-14 15:53:46 -05:00
Jarrod Johnson cfb4a4cbaa Fix problem where bnx2x dependency tree needs special handling in sles 2013-11-14 15:53:12 -05:00
sjing 92692d6939 only try to stop named if restartneeded=1
because on linux, if the named is already stopped, when we tried
to stop named, the return code is 0 with a warning message;
while on AIX, if the named is already stopped, when we tried to
stop named, the return code is 1, it's different with Linux.
2013-11-13 01:58:44 -05:00
jjhua d9e220238d Merge branch '2.8' of ssh://jjhua@git.code.sf.net/p/xcat/xcat-core into 2.8 2013-11-13 11:20:16 -05:00
xq2005 805adea8be cacl broadcast address in configeth 2013-11-12 18:44:14 -08:00
John Simpson e6a4b0d8fb udpate to rflash man page for NeXtScale FPC 2013-11-12 16:47:46 -05:00
jjhua 11e7b02653 create the /install/chef-cookbooks directory in spec file 2013-11-12 15:51:50 -05:00
jjhua 55af05f8a3 update the spec file for chef-cookbooks 2013-11-12 15:43:00 -05:00
jjhua 93a98c256c fixed a minor issue in the cloud template file 2013-11-12 15:37:07 -05:00
jjhua 3b18b981c5 fixed bug3890. When there are two interfaces(pubinterface and mgtinterface) on the controller node,
There are something wrong with the cookbooks. fixed it
2013-11-12 15:31:50 -05:00
jjhua 1bf4253477 the two template files are in ./xCAT-OpenStack/templates/cloud_environment/.
So remove them from the chef-cookbooks directory.
2013-11-12 10:31:48 -05:00
jjhua 467d0873de add the openstack-chef-cookbook for grizzly 2013-11-12 10:24:04 -05:00
Jarrod Johnson 77cea20b24 Fix problem where fsm pulled in mic support 2013-11-12 10:02:42 -05:00
Jarrod Johnson e868887a29 Remove ipmi.pm.legacy removal from fsm/zvm builds 2013-11-12 09:37:45 -05:00
sjing be04c5c896 update perl-Net_SSLeay.pm to 1.55-3 for AIX7.1.3 and above 2013-11-12 09:27:36 -05:00
sjing 369a9e9b1e update perl-Net_SSLeay.pm to 1.55-3 for AIX7.1.3 and above 2013-11-12 09:10:03 -05:00
xq2005 dd9b1b51ba build xcat-openstack on ubuntu 2013-11-12 01:41:23 -08:00
John Simpson 28f0ef85cd updated the rflash man page with the NeXtScale FPC information 2013-11-11 19:17:54 -05:00
John Simpson 367c5a1ec6 update to fix configtfpc problems with running in xcatd 2013-11-11 17:48:14 -05:00
Jarrod Johnson 15061d46a9 Add ability for appliances to forbid 32 bit architectures for RHEL 2013-11-11 15:32:01 -05:00
Jarrod Johnson 102a6bbbf1 Recognize and translate invalid url message 2013-11-11 09:25:58 -05:00
xq2005 eeaf1cdd72 build xcat-openstack on ubuntu 2013-11-11 03:00:38 -08:00
jjhua 10c87ba9b6 include the mypostscript_cloud.tmpl template 2013-11-11 16:22:21 -05:00
jjhua 882d46d0b1 checkin the configgw script 2013-11-11 16:07:59 -05:00
jjhua d247f968fa Merge branch '2.8' of ssh://jjhua@git.code.sf.net/p/xcat/xcat-core into 2.8 2013-11-11 16:04:21 -05:00
jjhua 29dbe8ed09 fixed bug 3888.
initialize the variable uselocalhost;
add new script configgw to configure the public gw
2013-11-11 15:59:45 -05:00
jjhua c2275ad894 remove the -vx flag 2013-11-11 14:54:42 -05:00
jjhua 4e54d58318 clean the chef-server data and stop the chef-server before uninstall the chef-server 2013-11-11 13:42:38 -05:00
xq2005 4afaf438ea build xcat-openstack on ubuntu 2013-11-11 01:47:01 -08:00
xq2005 d654045adc bug 3885: confignics need network name and nic type 2013-11-09 23:56:53 -08:00
Jarrod Johnson b085606352 Merge branch '2.8' of ssh://git.code.sf.net/p/xcat/xcat-core into 2.8 2013-11-08 15:58:20 -05:00
Jarrod Johnson d5893b8ee0 Fix bug with genimage and sles 2013-11-08 15:58:03 -05:00
John Simpson 2f98fffc04 update to rvitals man page to remove summary option 2013-11-08 10:52:11 -05:00
John Simpson 81c3bfd1ff update to rvitals man page to remove lcds from the options for BMC 2013-11-08 10:30:52 -05:00
John Simpson eacb1f7561 update to rinv man page to add descriptions for mprom, deveid, and guid 2013-11-08 10:24:02 -05:00
John Simpson 8d062e9649 update to process firm the same as firmware 2013-11-08 09:58:12 -05:00
John Simpson 61b359fb11 updated messages in ipmi.pm to correct double colon problem with IBM::EnergyManager in the string 2013-11-08 09:27:11 -05:00
Bruce Potter 51f297a6fa remove ipmi.pm.legacy 2013-11-08 08:32:58 -05:00
daniceexi 5068f7999d changed the description for column name powermgt in mic table 2013-11-07 23:02:31 -05:00
Jarrod Johnson 5fce308c49 Merge branch '2.8' of ssh://git.code.sf.net/p/xcat/xcat-core into 2.8 2013-11-07 13:44:26 -05:00
Jarrod Johnson 71cd1093ea Fix problem where SLES11 SP3 SDK disk 3 would overwrite disk 1 2013-11-07 13:44:04 -05:00
Bruce Potter b4fa9ff479 automatically save previous bld 2013-11-07 12:13:50 -05:00
Jarrod Johnson edc62bb346 Add option to xcoll for individual output (-i) 2013-11-07 10:31:38 -05:00
Jarrod Johnson 0b6473f202 Fix problem where reventlog would fail against a management module 2013-11-07 09:59:59 -05:00
xq2005 1f68b5b240 build xcat-openstack on ubuntu 2013-11-07 00:53:21 -08:00
xq2005 f1ee97941e build xcat-openstack on ubuntu 2013-11-07 00:50:29 -08:00
xq2005 57ec0d82b6 build xcat-openstack on ubuntu 2013-11-07 00:12:55 -08:00
Bruce Potter 770f50f9ba fix chgrp problem in build scripts on aix 2013-11-06 10:25:30 -05:00
wanghuaz 2af02291a6 Fixing bug 3876, reutrn with usage if no kitcomponent specified to addkitcomp/rmkitcomp 2013-11-06 18:22:11 +08:00
wanghuaz c9c4bca217 still fixing bug 3815, dhcp.pm process_request with different makedhcp options -n and -a are triggerd by AAsn.pm twice during xcatd restarting on SN. the first -n option is enabled and not get cleanup because it is a global variable. and then second call with -a option conficts with -n option in last makedhcp context. we have to clean up -n before call the second makedhcp. 2013-11-06 17:28:26 +08:00
daniceexi 4ccaef4f22 Xeon Phi support. Support nfs mount to any server which set in statelite table. Support power management setting. 2013-11-06 07:08:10 -05:00
wanghuaz bc7ddd1f35 fixing bug 3815: check options again in process_request to make sure makedhcp options can be processes on service node. 2013-11-06 15:51:49 +08:00
xq2005 6b1b4f2253 bug 3824: systeimager install failed on sles10 golden client 2013-11-04 23:39:47 -08:00
xq2005 f6ea3147a7 bug 3824: systeimager install failed on sles10 golden client 2013-11-04 23:34:59 -08:00
xq2005 107c598a46 bug3872: stay on 'booting' when installing sles10 2013-11-04 22:51:25 -08:00
baiyuan 7de10e0ff5 add test cases for cn installation with sn in x86_64 redhat vm with kvm 2013-11-04 03:49:50 -05:00
baiyuan 3514d539fa add testcase for sn installation in x86_64 redhat vm with kvm 2013-11-04 03:33:48 -05:00
baiyuan 74739ca5b1 add testcase for cn diskfull installation with sn in x86_64 sles vm with kvm 2013-11-04 03:17:53 -05:00
baiyuan b92312d0d2 add testcase for cn installatiion with sn in x86_64 sles vm with kvm 2013-11-04 03:11:46 -05:00
baiyuan 923daaa8ba add testcase for cn installation with sn in x86_64 sles vm with kvm 2013-11-04 03:02:31 -05:00
baiyuan 7e96eb2478 add testcase for sn installation in x86_64 sles vm with kvm 2013-11-04 02:39:25 -05:00
immarvin 475bbf71ac correct a syntax 2013-11-03 22:01:35 -08:00
daniceexi 80ac6ee67d complete comments 2013-11-03 09:39:27 -05:00
daniceexi fcc0f6fa12 code drop for xeon phi (mic) support phase 2. 1. Support mpss 3.1; 2. Support to install software in .filelist, rpm and simple format; 3. Support the hcp software to be installed in .filelist format by genimage command; 4. Support the nfs mount setting for mic node (base on litefile table); 5. Support Internal bridge setting for mic host 2013-11-03 09:36:55 -05:00
Bruce Potter f383337d78 add blding man pages to openstack spec 2013-11-01 19:00:04 -04:00
Bruce Potter 019c780fcd add db2man for blding xCAT-OpenStack man pages 2013-11-01 18:52:05 -04:00
Bruce Potter fdbf81c1cf build openstack db man pages 2013-11-01 18:43:22 -04:00
immarvin 9cb3991fec fix defect #2980 install kernel-source fail in genimage in rh6/centos 2013-11-01 04:09:15 -07:00
xq2005 f85ad98f06 use ip address to find the network name 2013-11-01 03:34:35 -07:00
Bruce Potter 039fac937d add check for git pull success to build script 2013-10-31 13:11:44 -04:00
John Simpson c627c320bf updated message and fixed verbose error msg for runxcmd 2013-10-31 10:24:06 -04:00
jjhua 1e7149a25a copy the template files to the destination 2013-10-31 16:55:56 -04:00
jjhua 710b096765 add the cloud environment template files 2013-10-31 16:45:06 -04:00
immarvin 72a4379087 fix defect #3813 imgexport 2.7 will not imgimport 2.8 2013-10-31 01:30:57 -07:00
yinle 1a48279d68 Fix bug #3712 p6 IH full-disk install fails with no /tftpboot/yaboot 2013-10-31 07:07:37 -07:00
jjhua bbe98da471 fixed some issues about errors and messages found by Linda 2013-10-31 16:06:38 -04:00
ligc bef22ea3d2 backport dhcp.pm code from 2.9 to 2.8.3 2013-10-31 15:22:02 +08:00
wanghuaz d910e66cee fixing bug 2866, create some tmp files to avoid rpmbuild warnings 2013-10-31 13:21:04 +08:00
Jarrod Johnson 735127be0b Merge branch '2.8' of ssh://git.code.sf.net/p/xcat/xcat-core into 2.8 2013-10-30 16:31:54 -04:00
John Simpson 3ca11580ae added static arp setting and cleaned up some messages 2013-10-30 16:03:41 -04:00
immarvin 24948a701d fix defect #3393 xcat 2.8 mgt server(rhels6.4-ppc64) hang on Generating /etc/rndc.key during reboot 2013-10-30 07:14:38 -07:00
xq2005 564abe331c bug 3831: install ubuntu hang 2013-10-30 03:08:48 -07:00
wanghuaz 250258dbb7 fixed bug 3867, 2013-10-30 00:42:53 -07:00
nott e52d129d30 buildkit fixes 3845, 3855, 3857 2013-10-29 14:42:24 -04:00
jwsimpson e3c48f5dbd adding check for -n to 2.8.3 2013-10-29 11:39:53 -04:00
lissav a4ec5d2e92 3865,3864 2013-10-29 11:07:02 -04:00
ligc 1dfb366a1b temp fix for bug 3792: multiple nics in the same subnet, use the first nic that in the subnet for dhcp 2013-10-29 10:46:17 +08:00
John Simpson 4366fd508a update to configfpc to add support for verbose and -i <int_adapter> option and a ping verification 2013-10-28 16:14:27 -04:00
Jarrod Johnson 2aee379b84 Add formatdisk to esx plugin, to be called by mkstorage 2013-10-28 16:07:06 -04:00
John Simpson 7e1b001ea4 configfpc updated to exit when a MAC address cannot be resolved to an FPC node definition 2013-10-28 16:00:56 -04:00
John Simpson fc64737727 configfpc updated to exit when a MAC address cannot be resolved to an FPC node definition 2013-10-28 15:48:43 -04:00
Jarrod Johnson bf79f4ea50 Fix stateless esxi warning about ssh 2013-10-28 10:45:00 -04:00
Jarrod Johnson 06cd041d4c Suppress warnings about ssh/tech support shell 2013-10-28 10:43:49 -04:00
yinle 862c94cbd1 Add AIX check in confignics 2013-10-28 04:46:25 -07:00
jjhua b1c7fda43c move setup_openstack_repo from xCAT/postscripts/ to xCAT-OpenStack/postscripts, and it will be packed into xCAT-OpenStack package 2013-10-28 10:58:45 -04:00
jjhua 2cb204a14a remove the print Dumper() 2013-10-27 16:17:55 -04:00
wanghuaz c1147d3e08 fixing bug 3821 give better description for chkkitcomp 2013-10-26 00:22:08 +08:00
John Simpson 300113c21a update to add the configfpc man page 2013-10-25 12:17:17 -04:00
lissav 0b18242922 defect 3859 2013-10-25 08:27:59 -04:00
immarvin 8c4b0edc52 fix defect #3694 [PCM] Showing booting status always for NGP X node status after power reset: update site.status during normal diskful reboot 2013-10-25 00:23:55 -07:00
jjhua 0a80486708 add a new postscript configbr-ex to configure the external bridge for Cloud 2013-10-25 14:48:59 -04:00
jjhua 63573b4138 Merge branch '2.8' of ssh://jjhua@git.code.sf.net/p/xcat/xcat-core into 2.8 2013-10-25 14:47:00 -04:00
jjhua b21ee18901 add a new postscript configbr-ex to configure the external bridge for Cloud 2013-10-25 14:45:37 -04:00
zhaoertao ecf7b06d5a fix bug 3856: rmvm could remove cec 2013-10-24 23:30:54 -07:00
zhaoertao 0059b61600 fix bug 3850: "chtab key=fsp,username=HMC ..." doesn't work for Powerlinux 2013-10-24 22:57:58 -07:00
yinle 6dd853fc65 Add check in configeth to give message to AIX user. 2013-10-25 05:05:38 -07:00
yinle 59ba6304fd Add lsslp support for IMM2. 2013-10-25 02:34:36 -07:00
lissav 6f1d4d616f defect 3851, further enhancements 2013-10-24 08:07:31 -04:00
Chuck Brazie 736bcf95bb Merge branch '2.8' of ssh://git.code.sf.net/p/xcat/xcat-core into 2.8 2013-10-24 07:29:13 -04:00
lissav 713c85179f defect 3851, further enhancements 2013-10-24 07:15:58 -04:00
lissav 95fff778c2 Merge branch '2.8' of ssh://git.code.sf.net/p/xcat/xcat-core into 2.8 2013-10-24 06:46:06 -04:00
daniceexi bb5c8469c7 defect 3789: fixed the issue that xcatdebug command kill the xcatd ssl listening process. The fix is that just remove the handling debug message from plugin modules since xcatd loads plugin modules for each command run, don't need xcatdebug for plugin any more. 2013-10-24 10:42:39 -04:00
lissav 14331df196 defect 3851, further enhancements 2013-10-24 06:45:23 -04:00
zhaoertao ffe7ccbf3b fix bug 3820: rinv for feihu FPC is producing errors 2013-10-24 02:09:20 -07:00
daniceexi 9b89fdcc07 defect 3588: For rpower reset on kvm, in the case persistkvmguests is enabled, check the domain is inactive before resetting the domain 2013-10-24 08:59:03 -04:00
daniceexi 0c5aa5d8bf defect 3369: to add the flag -g for genimage command like for sles that make rh could handle the case that the kernel version is different with the name of kernel rpm when using -k to specify a new kernel version. 2013-10-24 08:05:29 -04:00
sjing 2ff2cfe4e2 Handle the case where networks.nameservers is a comma delimited list 2013-10-24 04:13:55 -04:00
zhaoertao 07ee30b7bb fix bug 3651: rspconfig with cmm does not execute or provide error when entry found in ipmi table 2013-10-23 23:44:04 -07:00
wanghuaz 14d49836f8 fixing bug 3848: add prerequisite component as dependency of kit component meta rpm 2013-10-24 14:45:38 +08:00
John Simpson 25ab6e5f52 update to configfpc to add support for verbose and -i <int_adapter> option and a ping verification 2013-10-23 17:01:35 -04:00
Chuck Brazie 180ed68679 zVM specific files 2013-10-23 15:40:25 -04:00
daniceexi 969244bbe9 change the position to run localdisk script that put it before killing udev. For stateless only. 2013-10-23 15:07:02 -04:00
jjhua 66ea7851a6 add the ./sbin/makeclouddata command in xCAT-OpenStack package 2013-10-23 22:29:58 -04:00
jjhua 3e71121c3f Merge branch '2.8' of ssh://jjhua@git.code.sf.net/p/xcat/xcat-core into 2.8 2013-10-23 22:10:53 -04:00
jjhua 7057cd4439 change loadchefdata to loadclouddata; move the code related to read from cloud/clouds table from Postage.pm to Cloud.pm in xCAT-OpenStack 2013-10-23 22:08:52 -04:00
daniceexi 78c6150219 add more kernel modules of scsi for localdisk support 2013-10-23 14:00:09 -04:00
lissav 68649e7ee1 defect 3851- handle multiple MN in DB 2013-10-23 13:23:37 -04:00
Jarrod Johnson 93dd1e0e68 Merge branch '2.8' of ssh://git.code.sf.net/p/xcat/xcat-core into 2.8 2013-10-23 11:03:17 -04:00
Jarrod Johnson 46cab0033d Have fsm server build drop seqdiscovery incurred requirements 2013-10-23 11:02:31 -04:00
immarvin a8cbfbff02 correct xcat-yaboot in error message to yaboot-xcat 2013-10-22 05:10:07 -07:00
immarvin 8519f75881 fix defect #3626 yaboot.pm needs to use pkgdir 2013-10-22 04:54:50 -07:00
immarvin 4d4b18ce31 fix defect #3626 yaboot.pm needs to use pkgdir 2013-10-22 00:51:50 -07:00
jjhua 99dba1777a Add the chef-client to invoke the config_chef_client script 2013-10-22 14:33:58 -04:00
jjhua f87877d2fb fixed a minor problem 2013-10-22 13:24:04 -04:00
jjhua bfbb333379 changes for the command makeclouddata 2013-10-22 10:47:28 -04:00
jjhua 3e51471614 Postscripts for OpenStack-Chef-cookbook/xCAT integration 2013-10-22 09:52:58 -04:00
jjhua d659213d9b code for OpenStack-Chef-cookbook/xCAT intergration 2013-10-22 09:42:15 -04:00
lissav 47a29edaf8 defect 3819 2013-10-21 11:27:35 -04:00
Jarrod Johnson daceb8d876 For newer versions of esxi for which we have selected a less vague name, ensure we remake it every time. 2013-10-21 10:44:15 -04:00
zhaoertao 53ba1913c4 fix bug 3774 :getmacs <noderange> -D -V failed 2013-10-21 02:51:36 -07:00
xq2005 ec3d146259 delete 127.0.1.1 from /etc/hosts on ubuntu compute node 2013-10-21 01:10:39 -07:00
John Simpson 0b0c923519 Adding a new plugin confgifpc to support discovery and configuring of NeXtScale FPCs 2013-10-18 16:13:52 -04:00
nott 84c818fbc6 check return from find_latest_pkg 2013-10-18 07:53:38 -04:00
nott 3003110003 Merge branch '2.8' of ssh://git.code.sf.net/p/xcat/xcat-core into 2.8 2013-10-18 07:52:51 -04:00
nott 0b7a707179 check return from find_latest_pkg 2013-10-18 07:51:50 -04:00
lissav 47a5a4c536 defect 3844 2013-10-18 07:42:10 -04:00
lissav 0ea77b281a defect 3841 2013-10-18 07:22:38 -04:00
immarvin 72de3aedfb fix defect #3843 copycds complains Use of uninitialized value in numeric eq (==) at /opt/xcat/lib/perl/xCAT_plugin/esx.pm line 148. 2013-10-18 02:38:17 -07:00
immarvin 92b9ca4b9e fix defect #3843 copycds complains Use of uninitialized value in numeric eq (==) at /opt/xcat/lib/perl/xCAT_plugin/esx.pm line 148. 2013-10-18 02:24:36 -07:00
immarvin 4fc4988238 fix defect #3370 Create osimage definition for the Management Node 2013-10-18 01:55:17 -07:00
ligc 3e8f68fe7f fix for bug 3841: syntax error in remoteshell postscript 2013-10-18 15:57:34 +08:00
ligc b4dce6b70f Update Clouds table for xCAT-OpenStack 2013-10-18 15:54:20 +08:00
nott 59e57a1e84 add -F option to lskit man 2013-10-17 15:19:26 -04:00
nott c6a0e6d4e5 add -F option to lskit 2013-10-17 15:00:19 -04:00
lissav 46c9d5d788 additional flowcontrol error handling defect 3819 2013-10-17 11:43:56 -04:00
lissav cad8c86a6b enhance error reporting 2013-10-17 11:03:19 -04:00
xq2005 f89163a501 add env parameters in runxcatpost 2013-10-17 02:20:12 -07:00
zhaoertao 4a48117c42 fix bug 3835: 'rspconfig blade network=*' result need to be enhanced 2013-10-16 23:49:51 -07:00
xq2005 201427c9de bug 3801: the booted status after syslone reboot 2013-10-16 20:13:44 -07:00
nott d155c8c68a add build_input subdir to complete kit 2013-10-16 15:02:11 -04:00
xq2005 0868963ef6 bug 3801: the booted status after syslone reboot 2013-10-16 08:44:06 -07:00
zhaoertao 56636cf4e8 fix bug 3834: 'lsslp -s CMM -w' write different id for cmm01 with 'rscan cmm01 -u' 2013-10-16 02:31:38 -07:00
zhaoertao e1ba890613 modify the operating for CMM doesn't rely on 'id' attribute 2013-10-16 02:20:54 -07:00
zhaoertao 62f367a8ab modifying 'rscan -u|-w' for working through DFM 2013-10-15 19:38:18 -07:00
Bruce Potter 856b80e2a1 remove xcat.1.pod, it is generated by xpod2man 2013-10-15 21:09:17 -04:00
Bruce Potter 9c14ddc07d require perl-IO-Stty on x86_64 too, in case managing ppc64 nodes 2013-10-15 20:46:16 -04:00
lissav b089d456d7 defect 3819, changes for xcatdsklspost and setuppostbootscripts 2013-10-15 10:19:42 -04:00
lissav 12c91fbc60 defect 3819 enhance -s behavior 2013-10-15 09:03:23 -04:00
lissav e39dbcd055 defect 3819 2013-10-15 08:13:35 -04:00
wanghuaz d65ae4c854 fixing bug 3510 remove useless repos after genimage 2013-10-15 17:53:34 +08:00
ligc a5c16ad171 sequential discovery phase 2: add -n, osimage and -s flags 2013-10-15 15:59:47 +08:00
wanghuaz bd27ca23be fixing bug 3821, use better description for chkkitcomp command 2013-10-15 15:40:10 +08:00
ligc 2486f856c3 fix for bug 3833: if ip forwarding is not enabled, do not use the MN as gateway 2013-10-15 09:50:13 +08:00
nott 3414416d01 change pkgdir description 2013-10-14 10:19:29 -04:00
xq2005 c8fbcc8541 for bug 3817 modification 2013-10-14 04:30:43 -07:00
xq2005 6bb48f05a9 bug 3817: sysclone support rhels 5.9 2013-10-14 03:49:38 -07:00
Sheng Feng Xing f8f872641b Do not import lpar node if FSP network associated with it 2013-10-14 15:02:17 +08:00
jjhua 6c9234df79 fixed bug 3683. In rhels 6.x, the mksquashfs doesn't have the -le and -be options. 2013-10-14 12:30:07 -04:00
nott 82157e991e change kit framework to 2 2013-10-13 10:35:51 -04:00
nott 020a114452 change kit framework to 2 2013-10-13 10:33:57 -04:00
nott c902672c60 add -v and aix note 2013-10-12 12:50:55 -04:00
nott cf42c4e10b add -v and aix note 2013-10-12 12:47:49 -04:00
Bruce Potter bd094db1b4 filter out signing msg in build script 2013-10-11 17:43:08 -04:00
Bruce Potter c85e2b60a4 Merge branch '2.8' of ssh://git.code.sf.net/p/xcat/xcat-core into 2.8 2013-10-11 17:30:57 -04:00
Bruce Potter 9972e77adb set group for files/dirs to root instead of xcat, because the xcat group does not exist on users mn 2013-10-11 17:29:12 -04:00
nott a1179f3018 add framework to -v and check for aix 2013-10-11 16:37:24 -04:00
Jarrod Johnson 0257de0ef2 Rework previous changeset somewhat and add gateway support 2013-10-11 14:58:22 -04:00
Jarrod Johnson e60f695efb Attempt to set ip and netmask remotely 2013-10-11 14:58:17 -04:00
Bruce Potter dc2afed5c1 updated description of useflowcontrol attr 2013-10-11 13:32:53 -04:00
lissav c026a3d7fe defect 3819 2013-10-11 07:16:43 -04:00
lissav 316b58bd88 defect 3819 2013-10-11 06:42:47 -04:00
immarvin 09c4277002 fix defect #3830 [DEV] rinstall complains inappropriate message 2013-10-11 01:11:39 -07:00
lissav 83eb5d2628 defect 3819 2013-10-10 14:52:38 -04:00
lissav b96e107a7c defect 3819 2013-10-10 13:42:47 -04:00
lissav 410217ac31 defect 3819 2013-10-10 11:22:18 -04:00
lissav 56f75cc342 defect 3823 2013-10-10 09:07:45 -04:00
xq2005 47200ff1c8 build ubutnu packages for prega 2013-10-10 02:57:06 -07:00
Jia Zhao 3c5b618ff0 Merge branch '2.8' of ssh://git.code.sf.net/p/xcat/xcat-core into 2.8 2013-10-10 15:27:41 +08:00
Jia Zhao 6a3bdba935 fix nodeimport message problem 2013-10-10 15:26:29 +08:00
Bruce Potter cb77ac92d7 fix setversionvars command not found problem during promote 2013-10-09 19:55:40 -04:00
lissav 09dc9a129e defect 3819 2013-10-09 15:23:47 -04:00
lissav cd79e33f7c defect 3819 2013-10-09 13:43:45 -04:00
lissav ded2be133e defect 3760 2013-10-09 12:17:42 -04:00
lissav 066696686f defect 3816 2013-10-08 15:31:17 -04:00
jjhua 90c24d0ff7 fixed bug 3796. At the end of genimage, remove the repositories of zypper. 2013-10-08 16:38:48 -04:00
xq2005 80deb78f25 bug 3808: error info when running confignics 2013-10-08 01:42:55 -07:00
xq2005 7ec38c7be8 bug 3809: get the dhcp info from lease file 2013-10-07 22:59:22 -07:00
Jarrod Johnson 8d68a17dec Merge branch '2.8' of ssh://git.code.sf.net/p/xcat/xcat-core into 2.8 2013-10-03 15:40:18 -04:00
jbjohnso 8521b46ab2 Add information about IBM backup firmware to rinv
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@17017 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-10-03 15:40:08 -04:00
nott 3790ae7b65 add find_latest_pkg 2013-10-02 14:24:24 -04:00
nott 37d616d5fb pkgdir support 2013-10-02 14:22:02 -04:00
nott b117fb3dbc pkgdir support 2013-10-02 11:50:35 -04:00
nott 57b6ff1af7 add find_latest_pkg 2013-10-02 11:32:00 -04:00
nott fb71204859 support multi pakage dirs 2013-10-02 11:29:07 -04:00
lissav 5392fb7e34 defect 3797 2013-10-02 09:12:29 -04:00
lissav 83308c89e4 defect 3811 2013-10-01 08:22:07 -04:00
John Simpson 6dec17db73 Add support for missing NeXtScale sensors 2013-09-30 17:09:29 -04:00
lissav 1fa9bdb32f temp fix for defect 3797, at least get it working on SLES 2013-09-27 09:56:45 -04:00
xq2005 4dd43607b8 ubuntu 13.04 stateful support 2013-09-27 02:57:55 -07:00
xq2005 daab6a0cde ubuntu 13.04 stateful support 2013-09-27 02:51:23 -07:00
daniceexi efd7d6eadb defect 3803: appending the default drvier list even new driver is specified in netdrivers attr; change the output message of genimage 2013-09-27 01:57:59 -04:00
xq2005 9a9705a1bf bug:3804 2013-09-26 19:31:06 -07:00
daniceexi 9dcd216ac1 check in the code to support the driver injection for stateless: 1. genimage will copy the generated initrd to /tftpboot;2. support nodeset --noupdateinitrd 2013-09-26 03:07:46 -04:00
lissav 6e14118bcd sync back up 2.8.3 and 2.9 2013-09-25 08:13:00 -04:00
lissav 3d31d5f112 defect 3800 2013-09-25 08:07:16 -04:00
lissav 8b6feb6b30 add /install/custom directory 2013-09-25 07:23:16 -04:00
daniceexi f1976a7b99 defect 3783: add the missing driver for sles11.3; fix the bug of adding new drivers with incorrect order 2013-09-25 02:05:39 -04:00
daniceexi 089855bcd2 defect 3779: change the output of driver injection to make it sensible 2013-09-25 01:52:45 -04:00
Jarrod Johnson 239add6be2 Revert "Phase 1 of SVC plugin implementation"
This reverts commit 203d7025ad.
2013-09-24 21:04:02 -04:00
Jarrod Johnson 203d7025ad Phase 1 of SVC plugin implementation
This commit is able to create storage in an existing mdisk grp.

It hardcodes the iogrp to 0 for now.  The next step is to make hosts and vhostmap.
mkhost -name <name> -hbawwpn <wwpn> -force

And then map them together:
mkvdiskhostmap -host <host> -force <vdisk>

If boot, store the wwn into storage.osvolume for future use.

Commands to do:
attachstorage
detachstorage
showstorage
rmstorage

suspect frontending:
lsmdiskgrp to show state of avail space
will be appropriate
2013-09-24 20:58:48 -04:00
lissav 1141e9cd7d defect 3799 2013-09-24 10:24:49 -04:00
xq2005 f4296702e2 bug 3798: confignics -s failed on sles11 sp3 2013-09-24 02:16:39 -07:00
lissav 3583d5b59d defect 3618 2013-09-23 12:01:35 -04:00
xq2005 4934dba5ea confignics modification for syntactics 2013-09-23 02:56:23 -07:00
Sheng Feng Xing e651a540d7 Commit new nodeimport man page into 2.8 branch for Power rack-mount node support 2013-09-23 15:29:30 +08:00
xq2005 8bcf0a8717 bug 3795: node can not boot after cloning sles11.3 with legacy mode 2013-09-23 01:08:58 -07:00
Sheng Feng Xing e342bd876c Merge PowerLinux 7R2 support patches into 2.8 branch 2013-09-23 14:31:43 +08:00
wanghuaz 2b453aea6f Fixing bug 3406, using md5 hash algorithm for centos 5.x during createrepo 2013-09-23 11:02:12 +08:00
wanghuaz 2433281aa5 Fixing bug 3406, using md5 hash algorithm for centos 5.x during createrepo 2013-09-23 10:36:59 +08:00
xq2005 99f1ac8b79 bug 3794 2013-09-22 00:58:55 -07:00
Sheng Feng Xing c9508a7966 Fix #3793: CFMUtils.pm can not sync-up symbolic link directory under cfmdir 2013-09-22 14:29:44 +08:00
Jarrod Johnson 75bb52802e Add support for esxi5.5 2013-09-19 15:57:23 -04:00
lissav 80d3424855 defect 3150, check for errors from DB. We can do itgit diff tabutils.pm 2013-09-19 13:04:40 -04:00
lissav caed010c3d defect 3580 2013-09-19 10:46:36 -04:00
lissav 84b503a443 defect 3785 2013-09-19 07:36:16 -04:00
lissav 39c66d052f document xcatmaxbatchconnections update 2013-09-18 14:25:51 -04:00
lissav 5f0da1b2de document xcatmaxbatchconnections, try 2013-09-18 14:08:34 -04:00
lissav 76edfcf670 defect 3785 2013-09-18 13:41:16 -04:00
lissav 5d02531baa fix extra output on -k interface 2013-09-18 08:20:28 -04:00
lissav a0370be23f update database immediately for defect 3785 2013-09-18 06:53:42 -04:00
ligc f79ec9bdbd fix for bug 3748: lsdef --osimage need to list all osimage attributes 2013-09-18 13:46:34 +08:00
ligc 44f26b478d fix bug 3745: makehosts -d to delete otherinterfaces hosts 2013-09-18 07:56:13 +08:00
Jarrod Johnson 777c00e8d4 Merge branch '2.8' of ssh://git.code.sf.net/p/xcat/xcat-core into 2.8 2013-09-17 17:27:02 -04:00
Jarrod Johnson 7754845c7c Fix pasu with multi-node eX5 systems 2013-09-17 17:26:36 -04:00
lissav 9a64ca9b84 fix defect 3786 2013-09-17 12:19:52 -04:00
lissav 1e3fa1a1e9 Merge branch '2.8' of ssh://git.code.sf.net/p/xcat/xcat-core into 2.8 2013-09-17 12:14:37 -04:00
lissav 5e728c73a1 fix for defect 3785(PCM) requirement 2013-09-17 10:36:12 -04:00
zhaoertao 74d5d437d5 enhancement of supporting partition on IBM power 7R1/7R2 machines. 2013-09-17 07:18:22 -07:00
xq2005 af6b21edb0 bug 3763:write install nics's configuration file 2013-09-17 00:48:22 -07:00
litingt 4bbda3998f confignics test case part one 2013-09-16 23:31:20 -04:00
Sheng Feng Xing de3184b24a Fix #3784: CFMUtils.pm reports error messages in Verbose model if osimage.cfmdir is not set 2013-09-17 10:23:38 +08:00
lissav 219badd6f2 defect 3781 2013-09-16 09:27:45 -04:00
xq2005 77ea7d4e41 bug 3776: post install script hung when deploy rhels5.9 2013-09-16 01:50:23 -07:00
zhaoertao 431470e035 Enhancement of fixing for bug 3780: Incorrect password selected for blade 2013-09-15 23:15:34 -07:00
immarvin 1ca9533e61 add fedora19 diskful install support 2013-09-14 07:36:58 -07:00
lissav 7db86eedff add support for -a (addrows) flag 2013-09-13 14:13:44 -04:00
lissav d8e840bafd add support for -a (addrows) flag 2013-09-13 13:58:52 -04:00
lissav e861a7c0a9 add support for -a (addrows) flag 2013-09-13 13:57:32 -04:00
lissav 42af194434 defect 3750 2013-09-13 08:00:12 -04:00
xq2005 643952493a setupntp do not return directly 2013-09-13 02:06:56 -07:00
zhaoertao 5653f343a3 fix bug 3780: Incorrect password selected for blade 2013-09-13 00:44:47 -07:00
lissav 1b5cf5e044 defect 3750 2013-09-12 09:24:20 -04:00
lissav ffc621cf29 Merge branch '2.8' of ssh://git.code.sf.net/p/xcat/xcat-core into 2.8 2013-09-12 08:15:13 -04:00
lissav 4082f1da22 add -t info 2013-09-12 07:56:39 -04:00
xq2005 7c29fd4757 confignics modify -s option 2013-09-11 23:51:05 -07:00
Jarrod Johnson e1635a9b48 Implement rflash support for NeXtScale Enclosure manager 2013-09-11 14:33:46 -04:00
lissav f58a3f2f9a defect 3766 2013-09-11 08:54:22 -04:00
lissav 817f8ce411 defect 3778 2013-09-11 07:13:59 -04:00
zhaoertao f1dc5da446 Modifications of setting memory for partitions on Power Machines 2013-09-11 02:43:02 -07:00
xq2005 4f91b33757 bug3767:Target node doesn't return 'booted' status in sysclone 2013-09-11 03:16:51 -07:00
xq2005 031bc1e3bd bug 3755, No way to setup CN hardware clock 2013-09-11 03:10:15 -07:00
sjing 8b8b932213 Enhance usability of makedns with more checks and better messages. 2013-09-11 05:31:27 -04:00
daniceexi 9704a7b176 defect 3759: fix the man page for power 6 that attributes syssbpower,sysIPLtime were not in the command line list 2013-09-11 08:48:24 -04:00
lissav 716bb97084 fix defect 3777 2013-09-10 14:21:54 -04:00
lissav 815e2d6583 add centos6 2013-09-10 09:12:55 -04:00
xq2005 dbcab937da fix the postinst script for xcat-server on ubuntu 2013-09-10 02:25:58 -07:00
wanghuaz 3e0d22db7c fixing bug 3764, add osminor version for sles. 2013-09-10 14:51:45 +08:00
wanghuaz 01c3a1070d enable snmpv3 monitrong on 2.8 2013-09-10 13:52:07 +08:00
zhaoertao 5205218f1a Add a column 'physlots' for 'vm' table, it is used for partitioning. 2013-09-08 23:29:06 -07:00
xq2005 84e9d74314 bug 3765 2013-09-08 23:57:05 -07:00
Jarrod Johnson 464c4b0d3c Provide rpower reseat for NeXTScale 2013-09-06 11:17:32 -04:00
nott a96f96e2d4 #3655 - oops - remove dup subroutine 2013-09-05 13:11:06 -04:00
nott 0fe302f9e8 #3655 - add two new subroutines for comparing rpm versions 2013-09-05 12:53:35 -04:00
nott 7ad12aba70 #3674 - add error return code 2013-09-05 12:32:38 -04:00
nott d9e9515cf5 Merge branch '2.8' of ssh://git.code.sf.net/p/xcat/xcat-core into 2.8 2013-09-05 11:06:02 -04:00
nott 91d27eb358 #3752 - change tmp work dir location 2013-09-05 10:56:49 -04:00
zhaoertao 890555235e Modify manpage for mkvm, lsvm, rmvm. And checking if parition is disabled. 2013-09-05 01:07:45 -07:00
zhaoertao f0c6bcdbad Supporting full-partition and physical-partition with DFM 2013-09-04 23:27:28 -07:00
xq2005 115aef46f3 bug 3768,3769,3770 2013-09-04 20:56:50 -07:00
ligc 53209a79d1 add the storage.rhels6.pkglist 2013-09-05 09:56:42 +08:00
sjing e1603a0242 add an error message if mn's hostname can not be resolved. 2013-09-04 05:48:40 -04:00
xq2005 552063ef57 for bug 3762 2013-09-04 02:46:23 -07:00
Bruce Potter 6483bbc18e specify --checksum for createrepo so the repo will work on rhel5 2013-08-31 11:07:01 -04:00
ligc 70c9b7c583 add rhelhpc6.4 support 2013-08-30 09:09:43 +08:00
lissav 3c86356e3b add timeout support to updatenode to pass into xdsh 2013-08-29 13:52:46 -04:00
lissav 5a09a9b34a add timeout support to updatenode to pass into xdsh 2013-08-29 13:45:24 -04:00
lissav 28fba7f066 implement timeout in xdsh -K 2013-08-29 09:11:14 -04:00
lissav ac79179400 more code to enable user input timeout on xdsh -K 2013-08-29 07:59:02 -04:00
xq2005 e91888a79b add syscloneimgupdate scripts to update the target nodes files 2013-08-29 03:01:10 -07:00
lissav 1a5b1e9086 add support to supply expect timeout 2013-08-28 13:06:56 -04:00
lissav 0fa516df77 add check for servicenodes and computenodes in noderange for nodeset. Also remove very old commented out code defect 3750 2013-08-27 13:12:19 -04:00
lissav 25b028a5fd add check for servicenodes and computenodes in noderange for nodeset. Also remove very old commented out code defect 3750 2013-08-27 12:51:50 -04:00
Bruce Potter f4ddcdb9de fix bld script change 2013-08-27 12:49:33 -04:00
Bruce Potter 2374e40b4e Merge branch '2.8' of ssh://git.code.sf.net/p/xcat/xcat-core into 2.8 2013-08-27 12:36:41 -04:00
lissav cae2da8eba add check for servicenodes and computenodes in noderange for nodeset. Also remove very old commented out code defect 3750 2013-08-27 12:24:02 -04:00
Bruce Potter e313b49839 change git cmd used to get current branch 2013-08-27 11:25:29 -04:00
lissav 80e8c21af7 fixes for defect 3750 2013-08-27 09:46:55 -04:00
xq2005 9c0032b3c1 sysclone support sles11 on uefi mode 2013-08-26 20:55:11 -07:00
lissav 624fce5e4d changes for defect 3758 git patch 2013-08-26 11:10:35 -04:00
xq2005 814974aaa8 sles.pm mksysclone for sles 2013-08-26 00:17:08 -07:00
lissav 1810107998 add additonal ethernet setup 2013-08-24 06:31:21 -04:00
daniceexi 045011b168 kill the child processes when create socket failed 2013-08-23 06:43:09 -04:00
xq2005 67a663131e add mksysclone in sles.pm 2013-08-22 23:30:45 -07:00
xq2005 6853cbc89f postscripts modification for sysclone on sles 2013-08-22 23:00:08 -07:00
Jarrod Johnson cb9794ccdb Correct more issues with noderange 2013-08-22 14:35:41 -04:00
lissav 9b3f5a15d0 fix schema definition 2013-08-22 12:04:11 -04:00
daniceexi 2b0caf0346 make geninitrd could run against statelite image to generate initrd 2013-08-22 07:06:22 -04:00
daniceexi 62ee471f89 Remove the validity checking base machine type so that any power machines can be run with renergy command 2013-08-22 06:34:15 -04:00
xq2005 19a77111f6 remove klogd from genesis base 2013-08-21 19:51:35 -07:00
lissav e6f7e461e4 defect 3754 2013-08-21 12:54:41 -04:00
xq2005 56cab3f2c8 build packages on ubuntu 2013-08-21 09:49:09 -07:00
xq2005 adf53e32cd add reiserfs into genesis to support sysclone for sels 2013-08-21 09:10:16 -07:00
xq2005 77bcb15656 add kvm pkglist and template for ubuntu 2013-08-21 07:36:46 -07:00
xq2005 ef7fe69e19 modification for builing xcat on ubuntu 2013-08-21 03:11:04 -07:00
Jarrod Johnson 67a7fab655 Fix problem where values after parenthitcal group were not evaluated correctly 2013-08-20 15:36:07 -04:00
wanghuaz b81e4cee2d sync the bug fix for 3746 and 3721 from master to 2.8 branch. 2013-08-20 23:32:12 +08:00
lissav c93aeba53c fix defect 3750 2013-08-20 10:22:32 -04:00
xq2005 c057f231a0 postscripts modifiction about sysclone supporting for sles on 2.8 2013-08-20 02:12:07 -07:00
xq2005 5eaaf7369c add debianpreconf into xcatlib.sh on 2.8 2013-08-19 23:52:29 -07:00
lissav 0bdae5e4c4 fix pid files did not get removed and the kill term showing up 2013-08-19 13:29:11 -04:00
Bruce Potter 37118daaf9 add --nonodecheck to the psh usage and man page 2013-08-17 11:50:50 -04:00
lissav a9acb42b1e add flow control 2013-08-16 07:05:32 -04:00
lissav b3cf456fae flow control 2013-08-16 06:58:10 -04:00
immarvin 7dd70c12d2 update the nodelist.status to installing/netbooting via feedback from node during provision 2013-08-16 00:06:25 -07:00
zhaoertao f2b4b14a53 The item of updating pre-defined groups for nodes 2013-08-15 23:27:38 -07:00
daniceexi 11b99248a9 Enchancement for drvier injection to initrd: 1. add the updateonly keyword for netdrivers att that only update the existed drivers from new distro update instead of copying all the drivers, this is helpful to reduce the size of new built initrd; 2. the drivers for old kernel will be removed if there's new kernel will be used. 2013-08-16 01:26:06 -04:00
Jarrod Johnson 8600f159b0 Default in user/password in the same way that ipmi works in plugin 2013-08-15 11:35:51 -04:00
lissav c03f4d202f fix syntax 2013-08-15 07:34:01 -04:00
lissav 88914d3493 new man page for xcatconfig -t 2013-08-14 09:55:29 -04:00
lissav a2a9dc9efd setup interface for setting tunables 2013-08-14 09:48:02 -04:00
Jarrod Johnson 4cdeeb0b22 Correct spelling mistake in xCAT-genesis that got in the way of interface bring up 2013-08-14 08:58:41 -04:00
Bruce Potter 5ca816b0c4 fix bld script to put rpms in release specific place 2013-08-13 18:29:42 -04:00
Jarrod Johnson 529597d3c1 Try to bring up extra interfaces for discovery 2013-08-13 13:29:00 -04:00
Jarrod Johnson 08f4ed81e5 Add support for rinv and faster DDR3 dimms 2013-08-13 10:13:06 -04:00
Jarrod Johnson d6ce28f954 Fix ipmi FRU parser to give up once malformed data is encountered 2013-08-12 16:04:41 -04:00
Jarrod Johnson 16be3f4902 Merge branch '2.8' of ssh://git.code.sf.net/p/xcat/xcat-core into 2.8 2013-08-12 15:08:57 -04:00
Jarrod Johnson 1808cbf129 Correct IPMI breakage from previous commit that removed ipmi2support scope 2013-08-12 15:08:26 -04:00
lissav 6969c52f82 defect 3731 2013-08-12 13:53:38 -04:00
lissav 09bf36a323 Defect 3731 2013-08-12 12:56:50 -04:00
daniceexi 1b5ff23093 Add usage message and manpage for geninitrd command; Add --noupdateinitrd flag for nodeset manpage; Make geninitrd to check the provmethod if no image name is specified 2013-08-12 11:24:04 -04:00
xq2005 73ab8e8a7f add comments in anaconda.pm 2013-08-12 02:59:17 -07:00
Jarrod Johnson 0995a924dc Do sparse allocation for non-lvm raw format images 2013-08-09 10:31:26 -04:00
xq2005 311d3aafac fix symbo error 2013-08-09 01:21:00 -07:00
immarvin d948f8c69e fix defect 3734 makehosts throw exceptions when node ip is not illegal 2013-08-08 21:27:01 -07:00
immarvin 368d0d1e83 fix defect 3734 makehosts throw exceptions when node ip is not illegal 2013-08-08 21:03:39 -07:00
Jarrod Johnson 18db706c89 Merge branch '2.8' of ssh://git.code.sf.net/p/xcat/xcat-core into 2.8 2013-08-08 16:26:53 -04:00
Jarrod Johnson 020889ad3c Implement vm.storagecache and vm.storageformat
It has been requested to make these tunables available since different storage schemes
can benefit greatly from them
2013-08-08 16:26:00 -04:00
daniceexi 76a47d856c defect 3703: make the configmic and flashmic could get the correct hostname on the host node 2013-08-08 13:00:37 -04:00
daniceexi 4225daa29f defect 3703: to support command [nodeset <node> osimage] when the provmethod has been set 2013-08-08 12:58:00 -04:00
ligc 3c874d9555 update test case lsdef_nics 2013-08-08 17:18:00 +08:00
ligc 839c6d85a3 add testcase lsdef_nics 2013-08-08 16:20:07 +08:00
ligc fbd772e8cd add testcase lsdef_t_h_i 2013-08-08 16:02:18 +08:00
ligc 92ec068fe4 Merge branch '2.8' of ssh://git.code.sf.net/p/xcat/xcat-core into 2.8 2013-08-08 16:01:32 +08:00
jjhua 68b4a0b5c7 fixed bug 3732, centos 5.x needs the url rpository 2013-08-08 14:41:41 -04:00
Jarrod Johnson 650928ad15 Fix for noderange parentheses handling 2013-08-07 16:59:49 -04:00
daniceexi 4e79b8d8d7 Merge branch '2.8' of ssh://daniceexi@git.code.sf.net/p/xcat/xcat-core into 2.8 2013-08-07 08:39:45 -04:00
daniceexi 67a48e2ee6 defect 3726: for the initrd of sles, the /modules in initrd should symbol link to the new kernel dir if there's new kernel dir 2013-08-07 08:36:41 -04:00
immarvin 5459cf6a60 fix defect 3719 [DEV] rcons fails when nodehm.mgt=kvm 2013-08-07 00:38:15 -07:00
yinqing 600ab740ae #220993 Can not import node by auto discovery switch and switch port. 2013-08-07 13:29:25 +08:00
yinqing 5f8d394346 #221180 There is no mechanism to prevent error message printed in kitimagepostdelete when disassociated kit with the image profile 2013-08-07 11:30:21 +08:00
linggao 6fb47b1d50 fixed defect 3729 imgexport does not honor rootimgdir 2013-08-06 20:21:03 -04:00
lissav 780fbaaad8 use MAXMIN routine 2013-08-06 12:15:26 -04:00
Jarrod Johnson 63edd565d1 Correct language in sensor decode 2013-08-06 10:57:26 -04:00
lissav 2bca640ffa fix bug 2013-08-06 09:44:52 -04:00
root cbb73b46a7 Merge branch '2.8' of ssh://jjhua@git.code.sf.net/p/xcat/xcat-core into 2.8 2013-08-06 16:19:40 -04:00
root e88a680e6b fixed bug 3706. When genimage, it generated the CentOS-Base.repo in the /etc/yum.repos.d, but the internet repositories were not enabled=0. disable it 2013-08-06 16:02:31 -04:00
immarvin 8921bc2734 fix defect 3245 2.8:return value of nodeset does not equal to 0 on ppc64 2013-08-06 00:53:30 -07:00
lissav df1c520161 add MAX/MIN function 2013-08-05 14:10:20 -04:00
lissav 861794f576 fix defect 3464 2013-08-05 10:36:29 -04:00
lissav d0411a285f fix defect 2959 2013-08-05 10:05:05 -04:00
lissav cf502073f4 fix defect 3479 2013-08-05 09:52:45 -04:00
lissav 0f0046ca9d add support for updatenode -g flag to generate mypostcripts files 2013-08-05 09:36:08 -04:00
Jia Zhao b7701969ed fix noderegenips scalability problem 2013-08-05 19:19:00 +08:00
xq2005 918bd4270a comment the useless apt repo in full installation on ubuntu 2013-08-05 02:22:35 -07:00
xq2005 3f56f0775e xhrm_satisfy getting vlan information from nics table 2013-08-05 01:50:29 -07:00
xq2005 56b6f4c1b2 xHRM support ubuntu/debian 2013-08-05 01:46:05 -07:00
xq2005 ecd518e31e import sha.pm on ubuntu instands of sha1.pm 2013-08-05 01:35:40 -07:00
xq2005 a7e3e9ec2a load sha.pm on ubuntu instand of sha1.pm 2013-08-05 01:26:15 -07:00
Lei Ai 008e72d316 initialize global variables to avoid Cannot re-provision the node which has been removed 2013-08-05 15:10:16 +08:00
xcat ubuntu build machine 1de09a51c9 Merge branch '2.8' of ssh://git.code.sf.net/p/xcat/xcat-core into 2.8 2013-08-05 03:08:56 +00:00
xcat ubuntu build machine 106dc7874a changes to build-ubunturepo for git repo 2013-08-05 03:08:50 +00:00
xq2005 bf183224c7 transfer the confignics and configeth to shell 2013-08-02 03:14:45 -07:00
ligc 4a2b39754f Merge branch '2.8' of ssh://git.code.sf.net/p/xcat/xcat-core into 2.8 2013-08-02 13:46:52 +08:00
immarvin df9fa2b101 fix defect 3722: replace die with MsgUtils->message and exit 2013-08-01 19:26:14 -07:00
ligc 3847fe71c0 Merge branch '2.8' of ssh://git.code.sf.net/p/xcat/xcat-core into 2.8 2013-08-02 09:47:13 +08:00
linggao 4a91bb39cc document tabdump -n 2013-08-01 12:17:05 -04:00
linggao a81d66c124 add tabdump -n for auditlog and eventlog 2013-08-01 12:07:30 -04:00
immarvin dab5a33b3f fix defect 3724 makehosts should report error/warning messages when entrys in hosts table are not correct 2013-08-01 01:23:45 -07:00
daniceexi 016a947428 Change the insert_dd function for handling the initrd hacking. 2013-07-31 07:05:18 -04:00
ligc 79748cf356 fix README 2013-07-31 11:41:21 +08:00
ligc 85bf65876e Merge branch '2.8' of ssh://git.code.sf.net/p/xcat/xcat-core into 2.8 2013-07-31 10:17:38 +08:00
ligc 8c2e36a02c this is a test 2013-07-31 10:16:58 +08:00
Jarrod Johnson f2fcf48b5d Merge branch '2.8' of ssh://git.code.sf.net/p/xcat/xcat-core into 2.8 2013-07-30 09:16:26 -04:00
lissav f52348bc1a Update version to the next release 2013-07-30 13:16:25 +00:00
lissav 64d03a8212 Merge branch '2.8' of ssh://git.code.sf.net/p/xcat/xcat-core into 2.8 2013-07-29 14:12:56 -04:00
lissav 811a3eda65 Fix for defect 3717 2013-07-29 14:07:02 -04:00
Jarrod Johnson 9e71285c78 Merge branch '2.8' of ssh://git.code.sf.net/p/xcat/xcat-core into 2.8 2013-07-29 14:01:19 -04:00
lissav d3bf022de7 Update version to the next release 2013-07-29 18:01:13 +00:00
lissav 4bd8a0e020 Update version to the next release 2013-07-29 13:56:39 -04:00
bp-sawyers 3ddce5fb90 Update bld script for different git branches
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@17035 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-29 15:36:37 +00:00
jbjohnso 52c1236f4e Fix problem where setting a string that happened to contain the letters 'NULL' somewhere would fail
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@17033 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-26 19:17:10 +00:00
bp-sawyers d258f3a3c0 update build script to build from git
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@17032 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-26 18:29:23 +00:00
simba372 143f106f7d 211979: [low rank][PCM4.1][unmanaged node]Failed to create unmanaged node with the length of device name which is less than three letters
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@17027 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-26 09:37:43 +00:00
jbjohnso 29b94ff6a2 Revert "Add information about IBM backup firmware to rinv"
This reverts commit e518020aa4.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@17023 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-25 15:01:16 +00:00
sjing 0682ed07d3 Remove klogd binary since it's not included in mcp 7.3
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@17020 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-25 01:39:08 +00:00
jbjohnso e518020aa4 Add information about IBM backup firmware to rinv
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@17018 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-24 18:40:09 +00:00
bp-sawyers b67fcaed89 update xCAT-genesis-builder for mcp build - does NOT require rebuild of xcat 2.8.2
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@17014 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-23 19:38:46 +00:00
lissav 0a55da08fe fix defect 3707
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@17009 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-22 17:09:22 +00:00
chudegao 7b7085742f fix#220182,The node is not rebooted automatically while use new image profile during re-installation process
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@17007 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-22 06:53:49 +00:00
asirxing 487daef0d6 Skip to add root relative information into CFM merge files
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@17005 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-22 05:51:46 +00:00
jbjohnso f9533a6843 Fix problem where name resolution was used instead of certificate subject to identify 'trusted' peer
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@17003 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-19 13:25:51 +00:00
wanghuaz bc96478730 Fixing bug 3697: addkitcomp -a option works with pessl automatically makes a wrong perte/compiler order in postbootscript for diskfull installation. compiler's postinstall script should always run before perte's postbootscripts.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16986 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-17 08:35:06 +00:00
wanghuaz c0aeae7dd1 fixing bug 3653 on sles and ubuntu.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16984 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-17 02:55:13 +00:00
nott 7d90895a38 add check for sles10 and rh5
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16982 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-16 16:26:41 +00:00
bp-sawyers dd74f95007 Improve performance of makeconservercf - bug 3691
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16973 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-13 20:03:19 +00:00
phamt 465409982d Enlarged division width of bar chart so it could accommodate more data.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16971 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-13 14:10:26 +00:00
phamt 04d832ce3d Enhanced z/VM resources page with bar chart to show disk pool space.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16970 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-13 13:25:22 +00:00
daniceexi 9f8a9efc4b remove the checking of netdrviers so that geninitrd could handle the kernel,initrd copying to /tftpboot for general osimage
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16967 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-12 05:33:09 +00:00
daniceexi 6b26f84cf9 roll back the change in 16956,16959. I did not see the problem of last change. Just roll back and see what's going on of building process
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16966 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-12 03:00:47 +00:00
daniceexi a70323051f add the link for new command geninitrd
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16964 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-12 02:41:13 +00:00
zhaoertao 6996dc4f8a fix bug 3689: Modifying manpage for rspconfig and rscan
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16963 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-12 02:40:19 +00:00
daniceexi 77e5889721 Add the new plugin to handle the geninitrd command that regenerate (hack) initrd for stateful osimage
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16962 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-12 02:38:17 +00:00
daniceexi e9d378a484 Changed the insert_dd that the kernel will be updated from the new update distro.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16961 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-12 02:36:52 +00:00
lissav d17e10419d mkdir the mic directory to fix build
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16959 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-11 15:48:25 +00:00
jbjohnso 392472e328 Change bmcsetup to disable cipher suites 0 and 1 in the face of peculiar cipher suite support or enumeration
Also change to enable cipher suites 2 and 3 to facilitate sites without Rijndael

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16958 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-11 14:59:39 +00:00
lissav 32e5e85a08 fix defect 3687
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16956 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-11 14:52:37 +00:00
nott 3065b2d394 add call to updtvpkg in instoss
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16954 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-11 14:00:48 +00:00
wanghuaz 594d5ce981 Fixing a problem while adding multiple kits, several data structures are not initialized in last feature checkin. Updated the data structures and did strong UTs today. Open bugs tonight.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16952 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-11 10:02:25 +00:00
daniceexi f95c0026eb fixed a typo
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16951 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-11 08:31:44 +00:00
ligc f5d013dc48 fix for bug 3671: use autocommit => 1 instead of autocommit => 0 when opening a table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16949 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-11 08:19:00 +00:00
zhaoertao eb102a0d36 modify man page for "rspconfig <node> USERID=\*"
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16946 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-11 07:13:13 +00:00
daniceexi 570cd821e3 fixed the code to display error messages
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16944 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-11 07:01:51 +00:00
daniceexi b4a5ddf4dc two changes: 1. run mount -a anyway to make sure the osimage has been mounted from MN; 2. set the STDIN/STDOUT/STDERR to /dev/null so that mpss start can daemonized cleanly
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16943 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-11 06:45:27 +00:00
daniceexi c28fe1ef3b defect 3685: fixed the source path for link /opt/xcat/share/xcat/cons/mic
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16940 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-11 06:20:31 +00:00
wanghuaz a20d2ed496 Fixing a problem on sles that we need to use tar --wildcards option while extracting a file from kit tarball.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16939 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-11 05:24:13 +00:00
xq2005 965059d45c bug 3684, configeth on ubuntu/debian need File::Path
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16937 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-11 05:04:19 +00:00
xq2005 3f38f26761 bug 3684, configeth on ubuntu/debian need File::Path
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16936 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-11 03:22:07 +00:00
xq2005 223002d905 bug 3684, configeth on ubuntu/debian need File::Copy
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16935 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-11 03:12:04 +00:00
jjhua 35457cb9ac fixed bug 3682. In some case, the attribute BOOT_IMAGE added into the /proc/cmdline, using another method to get the nex-server value to fix this issue.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16930 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-10 09:07:38 +00:00
wanghuaz 39501e0b6c Fixing bug 3643: remove createrepo from buildkit spec and add error check while using it.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16929 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-10 09:07:25 +00:00
xq2005 cb8a813820 bug 3679, delete all ib nics' configuration files before configure them
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16927 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-10 09:06:42 +00:00
wanghuaz 624a45bfa3 Fixing bug 3669: passing envlist to yum upgrade command
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16924 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-10 08:27:51 +00:00
xq2005 793cb090c4 bug 3678, does not display the error message
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16923 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-10 08:23:04 +00:00
phamt f099ffd1a5 Enable noderes.primarynic to be specified and used during nodeset.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16922 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-09 21:07:17 +00:00
lissav 49aad9e6bd fix 3668 Ubuntu also
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16920 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-09 16:41:25 +00:00
lissav 465c5471a0 fix defect 3668
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16918 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-09 16:30:51 +00:00
phamt 9524019f0b Fixed the target disk address to be the same as the source disk address in cloning.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16916 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-09 12:30:20 +00:00
phamt b12951579b Fixed the target disk address to be the same as the source disk address in cloning.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16915 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-09 12:26:42 +00:00
lissav 1d2391454e fix spelling
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16906 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-08 18:41:02 +00:00
phamt f15ce9f06e Disable IPL column if advanced tab is selected on xCAT-UI z/VM provision page.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16905 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-08 13:14:38 +00:00
xq2005 e5e7e4687d get the current configured static ip address in configeth
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16904 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-08 09:16:31 +00:00
xq2005 75bfe9b646 build the ubuntu packages
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16902 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-08 07:14:10 +00:00
xq2005 1144077591 build the ubuntu packages
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16901 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-08 07:10:42 +00:00
immarvin 8ea54a435f update node provision status based on the feedback of nodes instead of rpower/rnetboot for ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16899 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-06 13:41:38 +00:00
xq2005 42b3c0c596 get the timzone automatic on ubuntu/debian
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16896 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-05 07:11:28 +00:00
daniceexi 7ed707c67b defect 3673: fix a typo which affects the nodeset next
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16894 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-05 07:10:30 +00:00
xq2005 1bb5051da7 roolback to the last version
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16892 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-05 06:59:22 +00:00
xq2005 95226fa3a8 xCAT::TableUtils->enablessh in postage.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16890 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-05 06:16:41 +00:00
jjhua 23d64d7acc chef client/workstation installation based on the cfgmgt table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16888 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-05 03:28:53 +00:00
jjhua 55fc5d4064 modifiy the install chef server/client/workstation scripts and the mypostscript.tmpl to support the cfgmgt table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16886 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-05 02:17:44 +00:00
xq2005 b20ccd2905 add the double quote for --otherpkgdir option in genimage.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16883 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-05 01:58:14 +00:00
phamt b802a02442 Added option to select IPL device. Added more error handling.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16881 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-04 13:49:23 +00:00
wanghuaz 987d47a43d Fixed a potential problem with kitcomponent.prerequisite that in some cases prerequisite is not removed from KIT_RMPKGS.otherpkg.pkglist during addkitcomp.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16880 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-04 05:56:49 +00:00
daniceexi 19241bce05 Make nodeset can pass parameter --noupdateinitrd to mkinstall command
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16877 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-04 05:17:03 +00:00
daniceexi e7f9eadd1e Make nodeset can pass parameter --noupdateinitrd to mkinstall command
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16875 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-04 05:09:44 +00:00
daniceexi acc28bb0ed Enhance of initrd hack: Additional drivers loading from osdistroupdate and support the --noupdateinitrd for nodeset command to avoid the initrd hack
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16873 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-04 05:03:10 +00:00
mellor 1dd5758ff7 defect 3670 - add xcatd reload to post section for xCAT-OpenStack rpm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16872 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-03 15:31:59 +00:00
phamt 05778c7853 Simplified z/VM provision page by abstracting the creation of the user directory entry.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16870 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-03 14:27:36 +00:00
creativezj ca700dca54 fix nodeimport same ip error
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16869 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-03 14:05:03 +00:00
xq2005 fa4a8e6e28 use 'mac' by default if installnic and primarynic are not defined
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16867 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-03 07:59:12 +00:00
jjhua 90c22ee298 in some of the mlnxofedinstall script from Mellanox OFED iso, there is not --nodeps to uninstall the libibverbs package. But the new pe kits are depended on the libibberbs. So I add the rpm -e --nodeps --allmatches libibverbs in mlnxofed_ib_install to uninstall the libibverbs before invoking the mlnxofedinstall script
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16866 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-03 06:11:41 +00:00
daniceexi 10986247e3 To make the mount of /install check to be accurate.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16864 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-03 03:14:56 +00:00
phamt 559c75e567 Added option under rinv to collect z/VM user profile names.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16862 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-02 20:43:58 +00:00
phamt dc432e7139 Added option under rinv to collect z/VM user profile names.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16861 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-02 20:34:09 +00:00
immarvin 2e3dd4761e correct the return value of filter_nostatusupdate
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16860 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-02 08:06:36 +00:00
leiaibj 2b2d482aac Merge commit 16858 from trunk
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16859 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-02 02:36:49 +00:00
wanghuaz 1ef39d6ef8 Fixing bug 3409, added the handle for postscripts, missing in last checkin.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16856 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-01 10:17:28 +00:00
daniceexi 3260c52a35 defect 3660: display the correct message when run nodediscoverdef command defines a request a node which has not correct IP.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16854 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-01 09:10:18 +00:00
xq2005 ec54b30aa4 add changelog for building xcat-openstack on ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16852 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-01 07:59:21 +00:00
xq2005 804fd22cf2 change the source format into 1.0 on ubuntu/debian
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16851 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-01 07:53:40 +00:00
wanghuaz b58ab630a6 Fixing bug 3659: adjust the file order to work in some specific scenario
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16850 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-01 07:49:44 +00:00
xq2005 b27065d834 build xcat-openstack on ubuntu/debian
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16847 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-01 07:33:10 +00:00
wanghuaz e917ce1579 fixing several kit related bugs: 3657,3629,3409. the major change is now addkitcomp -a will add its dependency recursively, and in each level, it will check if the dependency fits to the osimage.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16841 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-07-01 02:24:15 +00:00
daniceexi 3ddb75d072 add symbol link from share/xcat/cons/kvm to share/xcat/cons/mic
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16839 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-30 04:38:55 +00:00
daniceexi 3724aed861 Code drop for Xeon Phi (mic) support. manage the image for mic.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16834 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-30 04:26:38 +00:00
daniceexi 4d3ee33232 Code drop for Xeon Phi (mic) support. The plugin to handle the rpower, rinv, nodeset, rcons commands for mic
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16833 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-30 04:25:58 +00:00
daniceexi 3910ec03e1 Code drop for Xeon Phi (mic) support. manage the image for mic.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16832 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-30 04:24:14 +00:00
daniceexi b08b9a3c77 Code drop for Xeon Phi (mic) support. Ron on host to flash the mic
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16831 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-30 04:23:20 +00:00
daniceexi f787c85ddc Code drop for Xeon Phi (mic) support. Run on host node to configure the mic (network,hostname,onboot,vlog)
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16830 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-30 04:22:22 +00:00
daniceexi 201f9895ed the permission has problem
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16829 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-30 04:19:27 +00:00
daniceexi 33693f8486 Code drop for Xeon Phi (mic) support. Run on host node to configure the mic (network,hostname,onboot,vlog)
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16828 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-30 04:18:19 +00:00
daniceexi 0f9d930de3 Code drop for Xeon Phi (mic) support. Add the usage message for mic
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16823 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-30 03:50:22 +00:00
daniceexi e20198b86b Code drop for Xeon Phi (mic) support. Add the mic table.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16822 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-30 03:49:31 +00:00
daniceexi 2959fea562 Code drop for Xeon Phi (mic) support. Add the rscan to scan mic from x86 host node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16821 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-30 03:48:32 +00:00
daniceexi 7e90f3e8ea Code drop for Xeon Phi (mic) support. add the handling of tar format src to call the copytar command
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16820 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-30 03:47:58 +00:00
phamt 9af0a72bfc Changed tabs to spaces. Fixed error in xcatconf4z script.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16819 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-28 18:14:52 +00:00
wanghuaz f570a29c5c Fixing bug 3653: with more than 9 new_install_list sessions in otherpkgs.pkglist, perl 'sort' take the integers as string, and so does not sort the order correctly
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16818 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-28 06:30:24 +00:00
jbjohnso 26e8951512 Restore xcatws understanding of existing code
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16816 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-27 19:09:17 +00:00
phamt 7ad5f1a53a Removed unnecessary use statement.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16814 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-27 18:59:34 +00:00
lissav a5e8f44514 Add they are not hierarchical
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16812 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-27 16:51:24 +00:00
lissav cb290f429d Add they are not hierarchical
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16811 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-27 16:39:30 +00:00
phamt 9f9c6d2c79 Fixed bug in xCAT-UI where empty inputs are not set as empty values in the policy table.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16810 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-27 15:25:13 +00:00
xq2005 aa9d9140d0 upload the promote tar ball to xcat/<version>.x_Ubuntu/
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16808 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-27 14:42:25 +00:00
lissav f4dca63e79 fix defect 3461
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16806 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-27 14:02:14 +00:00
xq2005 1c027a87d7 delete useless ip alias in configeth
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16805 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-27 13:51:51 +00:00
xq2005 0916af5577 delete useless ip alias in configeth
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16804 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-27 09:18:04 +00:00
ligc d4816f7159 fix for bug 3648: set xCAT::Client::EXITCODE=1 with error communication with the xCAT server seems to have been ended prematurely
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16802 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-27 08:22:32 +00:00
immarvin 4e54ba0682 add discinfo of centos5.9
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16800 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-27 08:12:00 +00:00
jjhua 396d8b304f defect 3598 , the compute.tmpl was only checked into trunk, and not in 2.8. Checked it into xCAT 2.8
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16799 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-27 07:22:26 +00:00
bp-sawyers c2afea1cb8 fix building of xCAT-OpenStack
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16798 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-27 07:03:45 +00:00
immarvin d7d330966d sync code with rh,add localdisk support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16796 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-27 06:15:56 +00:00
xq2005 b9377d7251 configeth support on ubuntu/debian
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16795 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-27 06:09:09 +00:00
immarvin d3846f47f8 add new dracut scripts to support status feedback
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16794 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-27 06:09:05 +00:00
immarvin 9c2a7d275b add new dracut scripts to support status feedback
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16793 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-27 05:51:04 +00:00
immarvin ec5be914c9 update node provision status based on the feedback of nodes instead of rpower/rnetboot
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16792 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-27 05:10:49 +00:00
immarvin 16e0d2179a update node provision status based on the feedback of nodes instead of rpower/rnetboot
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16791 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-27 04:59:44 +00:00
immarvin 869ae04a45 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16790 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd 2013-06-27 04:55:39 +00:00
immarvin 80f923b96c update node provision status based on the feedback of nodes instead of rpower/rnetboot
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16789 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-27 04:24:17 +00:00
immarvin ef8b638460 add a subroutine filter_nostatusupdate to support updating provision status thru feedback instead of rpower/rnetboot
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16788 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-27 04:11:30 +00:00
zhaoertao de974743c9 delete internal information for rspconfig <celogin1>
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16786 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-27 03:23:36 +00:00
jjhua 5f97813937 accept Bruce's suggestion, not re-copy the hash every time. And it's really more efficient to have an inner foreach that just adds the keys to the hash
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16784 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-27 01:26:23 +00:00
mellor 3a5af60c3f build tool changes for new xCAT-OpenStack rpm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16777 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-26 18:50:51 +00:00
mellor c1bad5bcf6 files for new xCAT-OpenStack rpm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16776 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-26 18:48:02 +00:00
lissav 611a5ff463 fix defect 3641
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16774 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-26 18:08:14 +00:00
jbjohnso dbd453d0a6 Have rvitals avoid requesting the same sensor multiple times
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16773 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-26 17:26:16 +00:00
mellor 0ae570f73d add new cfgmgt table to xCAT database
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16771 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-26 15:36:33 +00:00
nott d80d963951 enhance msgs for cpcosi error
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16769 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-26 13:53:58 +00:00
chudegao af005c6a31 fix #218490:There is no any case-sensitive checking of mac address when import the node by hostinfo file.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16765 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-26 09:41:04 +00:00
xq2005 707e24b981 change the Maintainer to xCAT when building genesis base on ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16762 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-26 07:37:10 +00:00
xq2005 58249c8b14 change the Maintainer to xCAT when building packages on ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16759 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-26 07:30:41 +00:00
jjhua b5765f2fcf defect 3605. correct the nodesetstate value.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16758 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-26 06:59:36 +00:00
xq2005 10caf24da8 for bug 3438 on ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16755 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-26 06:54:52 +00:00
xq2005 5435fec0e5 upload the GA build on ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16754 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-26 06:10:43 +00:00
lissav eaf843d6c4 fix defect 3642
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16751 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-25 15:29:10 +00:00
lissav 0716b8596d fix defect 3642
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16749 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-25 14:54:38 +00:00
xq2005 b0805684cc bug 3563, fix the post install script error when install xcat-genesis-base-amd64
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16747 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-25 14:02:32 +00:00
phamt b14a373512 Make IP and hostname optional when configuring the group for the self service page.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16746 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-25 14:00:37 +00:00
xq2005 f0872d459e bug 3474 for removing the rpm error message on ubuntu/debian
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16745 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-25 13:53:28 +00:00
jbjohnso ab3a23346b Fix problem where dbworkersocket rename could indicate a missing path
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16742 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-25 13:28:26 +00:00
jjhua cf06cc036d defect 3605. 1, change ENABLESSHBETWEENNODES=$ENABLESSHBETWEENNODES in the template, and add new subroutine TableUtil::enableSSH() 2, change NODESETSTATE=$NSETSTATE in the mypostscript.tmpl, and invoke the xCAT::SvrUtils->getNodesetStates()
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16741 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-25 10:33:05 +00:00
jjhua 0b410a596b defect 3605. 1, change ENABLESSHBETWEENNODES=$ENABLESSHBETWEENNODES in the template, and add new subroutine TableUtil::enableSSH() 2, change NODESETSTATE=$NSETSTATE in the mypostscript.tmpl, and invoke the xCAT::SvrUtils->getNodesetStates()
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16740 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-25 10:31:23 +00:00
immarvin 9799ef78e6 update the nodelist.status to installing/netbooting via feedback from node during provision
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16738 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-25 07:16:57 +00:00
phamt 73fb28f6d0 Added a hypervisor field in the storage table to handle z/VM native SCSI disks. In z/VM native SCSI disks must be configured for one or more hypervisors before they can be used.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16735 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-24 14:24:46 +00:00
lissav a758cdf573 fix defect 3642
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16733 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-24 12:56:11 +00:00
xq2005 9d65034701 find SHA.pm in /usr/lib/perl on ubuntu/debian
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16730 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-24 07:36:44 +00:00
creativezj 11df32128f fix nodeimport generate ip error
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16728 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-24 07:16:19 +00:00
lissav 22468165b6 add req->{status} to runxcmd for defect 3641
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16725 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-23 10:50:24 +00:00
lissav 5c045ed61c add example of plugin to plugin call
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16724 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-22 11:59:35 +00:00
lissav e2684acebe fix defect 3639
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16719 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-21 17:00:46 +00:00
lissav c48f202bdd fix defect 3639
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16717 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-21 10:28:17 +00:00
wanghuaz 89ba8006f4 fixing bug 3608: give error msg while kitrepo is not valid for 'buildkit cleanrepo <kitrepo>' command
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16715 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-21 01:19:09 +00:00
lissav e57868c1c6 fix defect 3637
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16713 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-20 13:00:24 +00:00
wanghuaz 38cea20397 Fixing bug 3636 for error msg outputing
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16709 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-20 03:47:57 +00:00
duowang 2f669c1ac6 enhanced profilenodes.pm to acquire chain attribute from hardwareprofile and append it to the node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16707 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-20 03:22:46 +00:00
zhaoertao d5e329e4c7 supportting x222 in "rscan cmm"
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16705 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-20 03:19:41 +00:00
linggao 34bb809cc4 enhance postscrit perfomance when getting monitoring variables. defect 3605
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16703 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-19 20:13:12 +00:00
phamt c2cd84dbca Changed xcatconf4z logging.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16702 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-19 20:04:58 +00:00
phamt 0edc77694f Undo some disabled buttons made with last checkin.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16700 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-19 19:24:53 +00:00
bp-sawyers 8ac0f31915 require xCAT-buildkit so it is installed by default
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16699 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-19 19:00:11 +00:00
phamt 4ce4e7c0fd In imgcapture, added option for specifying device to capture (only s390x). In rmimage, added support to remove provmethod = raw (native SCSI/FCP) images. In imgimport and imgexport, added remote host option to download from a node not managed by xCAT, fixed indentation issues, and added support for provmethod = raw (native SCSI/FCP device image)
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16693 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-19 16:01:18 +00:00
phamt 69f6fa5693 Added support for capture and deploy of system images for z/VM. This includes capturing ECKD/FBA and native SCSI/FCP devices. Each device is captured and stored as an image (.img) file. Note that mkvm has to be used to create the VM definition and chvm has to be used to add the disks. nodeset is used to put the .img contents onto existing disks.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16692 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-19 15:58:26 +00:00
phamt edbad6e498 Updated REST-API to support more xCAT commands and more z/VM options.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16691 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-19 15:26:59 +00:00
phamt f5a31b7f4f Fixed bugs in xCAT-UI: fixed spacing issues, set default commands for guest users, set default arch and hypervisor for add z/VM node, and fixed dialog for adding SCSI/FCP device directly using WWPN & LUN.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16690 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-19 15:25:12 +00:00
lissav c68a422c44 defect 3617
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16688 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-19 11:53:35 +00:00
immarvin 3d06ddda0d correct some typo
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16687 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-19 08:26:21 +00:00
immarvin f890d03ef3 add nonodestatus to kcmdline for both nfs-based statelite, ramdisk based statelite and stateless
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16686 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-19 08:24:34 +00:00
immarvin 9ecfc50b91 busybox awk does not support network socket writing, use nc instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16685 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-19 07:55:54 +00:00
immarvin 78af39e06f close file handle after writing
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16684 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-19 07:32:34 +00:00
immarvin 645c602ce2 update the nodelist.status to installing/netbooting via feedback from node during provision
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16683 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-19 07:28:32 +00:00
immarvin a6aab0c6d0 update the nodelist.status to installing/netbooting via feedback from node during provision
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16682 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-19 06:55:03 +00:00
sjing 592a0d508c add "sysclone" as a valid osimage.provmethod.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16680 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-19 03:37:20 +00:00
wanghuaz 7d5bcba0d5 fixing bug 3179: adding a sleep and reorder the steps
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16678 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-19 03:34:17 +00:00
creativezj 594facc9a0 fix nodeimport generate brocadcast ip or gateway ip
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16676 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-19 02:39:52 +00:00
ligc e2d8a38928 fix for bug 3630: typo with opt_nc and opt_c
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16674 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-19 01:38:20 +00:00
jbjohnso b6969b9817 Correct deref in previous commit
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16669 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-18 17:07:40 +00:00
jbjohnso cd406905a8 Change flexdiscover to separate imm and cmm search
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16668 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-18 17:07:34 +00:00
jbjohnso be3e25ce00 Add support for flexdiscover to work with x222 servers
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16667 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-18 17:07:27 +00:00
jbjohnso e4d371d2e8 Fix problem with getipmicons
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16666 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-18 17:07:21 +00:00
jjhua 0244b031cf fixed bug 3605
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16662 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-18 09:07:02 +00:00
creativezj 8fac597977 fix modify multiple nodes profile error
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16660 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-18 08:28:02 +00:00
sjing 6738d6caba bug2830 - use xCAT::TableUtils->get_site_attribute("installdir") instead of gettab.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16657 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-18 08:06:28 +00:00
jjhua 30c92ba536 fixed bug 3605, improve the code according to Bruce's suggestion, except xCAT_monitoring::monitorctrl->getNodeConfData()
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16656 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-18 07:42:29 +00:00
creativezj cff0e482eb fix regenerate ip error
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16653 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-18 05:02:53 +00:00
lissav 47fc94d842 modify limitation on policy table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16648 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-17 18:13:26 +00:00
lissav 60ca873f6c fix defect 3625
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16645 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-17 17:33:48 +00:00
lissav c5bba25f7e fix defect 3625
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16643 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-17 15:57:39 +00:00
immarvin a55349b5af update the nodelist.status to installing/netbooting via feedback from node during provision
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16642 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-17 15:13:41 +00:00
lissav d1b41732b5 document non supported fields in policy table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16640 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-17 12:35:56 +00:00
daniceexi db6e509b4a defect 3619: backup the req before dispatch to a xCAT module and recover it after the dispatch
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16639 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-15 10:47:27 +00:00
billwajda 252e7dd3de Support for bug 3623: support for removing nics on linux (Tested on redhat 6.3. confignics modified to take -r flag and configeth is modified to take -c nics to configure and -u nics to unconfigure. configeth has not been updated for AIX yet and configib has not been updated yet.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16637 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-14 18:54:50 +00:00
jjhua b2838fdca8 fixed bug 3569, add #INSTALL_SOURCES# to the storage template file
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16632 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-14 08:18:28 +00:00
xq2005 0ef6f64ab2 makeroutes support on stateless debian/ubuntu nodes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16629 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-14 07:23:59 +00:00
xq2005 4e7720631b makeroutes support on stateless debian/ubuntu nodes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16628 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-14 07:03:49 +00:00
nott c4a211ddd3 cleanup comment
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16624 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-13 15:17:51 +00:00
nott 6e3206d31d clarify cleantar option
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16622 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-13 15:12:42 +00:00
nott 1dfe0cb135 make cleantar remove ALL tar files
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16620 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-13 14:35:36 +00:00
lissav f53574d1c6 checkin for defect 3613
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16616 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-12 12:59:11 +00:00
bp-sawyers 5d4aace149 remove man pages for tools mkrrbc and mkrrnodes that were removed previously
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16615 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-12 12:30:02 +00:00
daniceexi 961c3951e6 For auto created bmc, add it to hosts.otherinterfaces instead of creating a new entry in the hosts table for bmc individually. That means auto created bmc will not be a individual node.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16613 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-12 02:57:33 +00:00
nott dcde28a213 allow kit location and kit name to be different
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16610 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-11 14:50:38 +00:00
nott bc386fd56a more - better description of kit location
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16609 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-11 14:46:21 +00:00
nott 636d866a40 better description of kit location
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16607 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-11 13:00:10 +00:00
lissav 36c4a83005 defect 3613
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16602 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-10 19:58:47 +00:00
lissav 2649d44ed4 defect 3613
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16601 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-10 19:56:32 +00:00
lissav e057ae26fd defect 3613
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16600 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-10 19:55:27 +00:00
jbjohnso 8754a7ee0c Avoid reapers trouncing $! for other system calls
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16598 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-10 14:43:50 +00:00
daniceexi 193bea48f6 added the checking of path for runimage, if cannot download, display an error message for nodeset command
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16595 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-09 09:17:39 +00:00
daniceexi 685e039254 defect 3612: add one line to handle variable like in the runimage; And added the checking code logic to display error message if wget failed
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16593 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-09 09:14:24 +00:00
daniceexi 6a72e5feb6 fix the issue that nodediscoverdef -u -n command cannot move the discovered node to next destiny. And also formatted the indention that replace the tab with four space
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16591 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-08 23:39:56 +00:00
daniceexi f6c559ca0a Change the code logic that get bmc name from ipmi.bmc instead of using default <node>-bmc. If user uses hostiprange or bmciprange and did not define ipmi.bmc, the default bmc name will be <node>-bmc.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16589 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-08 23:32:38 +00:00
wanghuaz 03584e81fb update addkit command according to revision 16568 for kit framework
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16586 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-08 09:28:28 +00:00
ligc d7bc639fc6 include hamn scripts cronEdit, activate-mn and deactivate-mn
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16584 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-08 08:31:31 +00:00
ligc 5b846b46a4 Two scripts active-mn and deactive-mn for HAMN configuration, based on scripts from John Williams
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16583 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-08 08:24:47 +00:00
ligc 07023c0634 add a new tool cronEdit, to edit crontab entries in scripts. Based on the script from John Williams
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16582 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-08 08:23:18 +00:00
sjing 756c176f53 bug 3478 - exclude the net with external namesserver configured from dns zones.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16581 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-08 07:18:19 +00:00
wanghuaz dabe1aafca Fixing bug 3610: not add prerequisite to full kit if there is no 'prerequisite' in kit.conf of partial kit
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16578 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-08 04:58:26 +00:00
nott 422c7cfef4 clarify alt client cleanup
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16576 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-07 17:37:03 +00:00
bp-sawyers 37a2bfde40 Add hfi option to rbootseq man page
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16574 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-07 14:01:35 +00:00
nott 1ea7732f00 add #'s
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16571 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-07 13:22:54 +00:00
nott 25bfbdee5e remove xCAT dependencies
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16569 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-07 13:15:59 +00:00
nott 9585feebb8 add kitloc, create_frameworks, and misc updates
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16567 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-07 13:08:28 +00:00
zhaoertao 5921d3cd95 adding predefined groups based on hardware types
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16564 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-06 03:22:53 +00:00
immarvin e8d1d7cf00 if nodetype.provmethod is not set, use install as default value; call rsetboot net to set boot over network for ipmi nodes before rpower
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16562 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-06 03:14:34 +00:00
wanghuaz 0479d3682c not export buildkit -n option by default.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16560 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-06 00:47:28 +00:00
bp-sawyers b1c996ad2e fix xCATsn install problem running mknb
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16559 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-05 23:05:05 +00:00
bp-sawyers 5985c790d0 stop building i386 version of xcat pkgs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16557 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-05 21:01:34 +00:00
nott f5bb7a2bc6 kitloc and misc updates
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16553 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-05 16:59:28 +00:00
lissav 0cb3d901d8 fix defect 3603
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16551 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-05 16:25:31 +00:00
jbjohnso f930deea97 Have syswrite retry on EAGAIN or ECHILD
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16550 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-05 14:04:34 +00:00
jbjohnso 8d855e9e20 Have xcatd recognize EAGAIN and ECHILD as equivalent in syswrite due to flawed platform behavior
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16549 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-05 14:04:28 +00:00
duowang 0df81a3dfa modified method gen_new_hostinfo_string() in profilenodes.pm to sort the nodes' name
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16545 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-05 10:34:30 +00:00
wanghuaz b662046e19 code checkin for ordering rpm installation
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16544 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-05 07:29:31 +00:00
jbjohnso aedb671f1b Have kvm update vm.memory if chvm is called
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16538 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-04 18:45:52 +00:00
jbjohnso aba2b94d5c Recognize some common variants on chvm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16537 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-04 18:45:45 +00:00
jwsimpson 1cd456419a Updated to add comments only
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16534 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-04 17:52:59 +00:00
sjing 726c05134c support adding/removing nichostnames as well as the given noderange
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16531 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-04 08:20:52 +00:00
jjhua 8945c5ca33 remove the #INSTALL_SOURCES# from some .tmpl
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16528 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-04 07:49:02 +00:00
jjhua 24a2928e03 service node pool supports for sles
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16527 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-04 07:43:19 +00:00
jjhua d991d97332 service node pool supports for sles11
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16526 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-04 07:40:23 +00:00
creativezj 2b35adf1f8 fix multiple nics problem
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16525 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-04 06:05:39 +00:00
lissav d4d56cbc91 fix code assumes only XCATSERVER entry in xcatinfo, we have now added NODE
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16522 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-03 15:36:10 +00:00
immarvin 8210f4d82a add code comments
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16519 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-06-01 12:13:14 +00:00
nott b8e32de9c8 add workdir
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16518 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-31 19:51:52 +00:00
nott 607a2cc927 add support for workdir and new spec attrs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16515 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-31 19:23:10 +00:00
nott 581739c5e5 add holders for new attrs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16513 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-31 19:07:07 +00:00
nott 608ecae96e add new attr descriptions
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16511 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-31 19:02:54 +00:00
jbjohnso 52a0a5a4f4 Serial console and vdagent support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16510 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-31 18:50:03 +00:00
lissav f170fe9c0f remove LInux restricction on precreatemypostscript
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16509 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-31 18:48:51 +00:00
lissav 223d288cff redesign to match more closely the processing in xcatdsklspost
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16504 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-31 18:33:47 +00:00
lissav f9841836f9 add new lines for array return
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16503 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-31 18:30:00 +00:00
immarvin 4e9d9d0b7a fix defect #3463 rinstall does not support provmethod=osimagename
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16501 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-31 10:33:15 +00:00
jjhua 268d20215e improve the code for last checkin
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16498 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-31 08:48:53 +00:00
jjhua 3a71acedeb for rhels6, move the repos generattion to pre-script in kickstart
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16494 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-31 08:29:20 +00:00
jjhua 09f4a16b24 use the variable INSTALL_SOURCES_IN_PRE
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16493 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-31 08:26:35 +00:00
jjhua 61effb412e use the variable INSTALL_SOURCES_IN_PRE
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16492 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-31 08:22:40 +00:00
jjhua 4b75dd3c03 for rhels6, move the repos generattion to pre-script in kickstart
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16491 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-31 08:05:44 +00:00
jjhua 456bd50c46 for rhels6, move the repos generattion to pre-script in kickstart
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16490 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-31 08:03:24 +00:00
jjhua f1cd22e0f8 for rhels6, move the repos generattion to pre-script in kickstart
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16489 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-31 08:01:41 +00:00
jjhua 4b57fe95f4 service node pool does not support system X rhels5.x
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16488 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-31 07:59:43 +00:00
jjhua 310287347a service node pool support for system x rhels6.x
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16487 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-31 07:55:56 +00:00
jjhua 5b497df6e3 move the repos generation to pre-scripts in kickstart for rhels6 ppc64
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16486 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-31 07:54:18 +00:00
jjhua 8e64beb962 service node pool support for system X rhels6.x
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16485 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-31 07:51:08 +00:00
jjhua 4cdc6dab13 service node pool support for system X rhesl6.x
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16484 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-31 07:44:08 +00:00
jjhua 61569206a1 service node pool supports for system X rhels6.x
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16483 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-31 07:19:06 +00:00
wanghuaz 040ae224e5 fixed the problem that xcat failed to replace some system environments if there are mulitple levels of #INCLUDE. we should firstly expand the #INCLUDE and then to replace the system environements
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16482 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-31 06:53:35 +00:00
jbjohnso 9980daedc4 Add some chassis status support to rvitals
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16480 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-30 14:47:29 +00:00
lissav 81ec3ad929 get rid of duplicate messages on updatenode -k
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16477 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-30 11:47:00 +00:00
xq2005 962772547d sudoer support on ubuntu/debian
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16475 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-30 09:03:02 +00:00
daniceexi 3341f2399b force to boot from pxe before the reboot in the genesis
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16473 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-30 08:45:42 +00:00
sjing a5ec8dcc36 use reboot in genesis instead of shutdown. Add a check for rsync service to make sure it's running.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16470 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-30 06:11:56 +00:00
amy0701 66f9824509 change rhsn to 23619SN in testcase linux_cn_with_sn_statelite_installation_x86_64_redhat
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16467 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-30 03:21:09 +00:00
amy0701 348ccaf564 add test bundle for x86_64
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16464 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-30 03:01:41 +00:00
jbjohnso 41aa89541c Fix autoula windows scheme to use the delimiter for mac that windows prefers
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16463 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-29 18:08:48 +00:00
immarvin 8a476a618b fix defect #3599 syslog-ng is shutting down in sles xCAT MN Edit, enable the settings that will log to local files in syslog-ng
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16458 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-29 12:21:38 +00:00
lissav 27ba4fcdbe defect 3596
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16452 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-29 11:31:59 +00:00
lissav 4fd57c08e5 defect 3596
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16451 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-29 11:30:30 +00:00
lissav 95b4be91eb defect 3596
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16450 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-29 11:29:22 +00:00
jjhua 8d2eeda1b3 fixed bug 3598 for PCM Ai Lei, support it for rhels5.9.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16447 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-29 07:49:44 +00:00
jjhua c48d82729c remove the code which passes the into the subvars() in Template.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16446 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-29 07:48:48 +00:00
jjhua a2fb35c9c5 fixed bug 3598 for PCM Ai Lei, support it for rhels5.9.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16441 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-29 07:22:22 +00:00
jjhua 3154df9b77 fixed bug 3598 for PCM Ai Lei, support it for rhels5.9.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16440 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-29 07:19:12 +00:00
asirxing 47fbbd2230 Move codes to call makedns and makehosts for kitnoderemove request from 00kitnodebase.pm to profilednodes.pm as other kitnoderemove plugins need the node name for some operations
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16439 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-29 03:51:34 +00:00
jbjohnso aa01feda37 Try to correct autoula function in windows
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16437 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-28 18:21:53 +00:00
lissav a8323e599a use NODE name defined in /opt/xcat/xcatinfo file, if there
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16434 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-28 13:53:47 +00:00
lissav 62e8e445b9 up tablespace of servicenode for DB2 , it is close to the8K limit, if more attributes added we would be over
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16432 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-28 12:28:39 +00:00
lissav ea7577eb8f add NODE=<nodename> to kcmdline
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16430 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-28 12:24:30 +00:00
xq2005 8c4dfd3470 makeroutes support on debian/ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16422 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-24 09:48:00 +00:00
ligc 019f6da484 fix for bug 3593: check_options error with makedhcp -s statements
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16419 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-24 09:22:34 +00:00
xq2005 ce63e80e96 change tabs to spaces
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16418 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-24 09:09:01 +00:00
xq2005 91fc845782 routeop support on debian/ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16416 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-24 08:38:48 +00:00
xq2005 dbd59da228 change tabs to spaces
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16413 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-24 06:21:42 +00:00
lissav 1f963dc243 fix for 3591
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16410 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-23 19:08:38 +00:00
zhaoertao e0c25f0672 enhancement of "rspconfig noderange USERID=<password>"
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16407 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-23 08:13:22 +00:00
qyin cbdd1d4a9a fix #215702 nodeimport can import the same host info file for switch auto discovery twice or more
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16406 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-23 08:01:58 +00:00
xq2005 273c3098fc change tabs to spaces
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16404 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-23 03:10:33 +00:00
lissav d3590828a7 fix defect 3580/3586
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16402 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-22 18:30:07 +00:00
jbjohnso dd66c4427a Add event log cmdlets to powershell
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16400 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-22 18:15:55 +00:00
jbjohnso 2cb38161a8 Add some more commands, have powershell recognize the multiple natures of data elements in api
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16399 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-22 18:15:50 +00:00
jbjohnso 2660c46a24 Fixes and trimming of exported internal function
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16398 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-22 18:15:45 +00:00
lissav 3ae9f03fe1 remove unused getNodeSpecAttribs routine
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16397 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-22 17:24:31 +00:00
lissav 0ed2145239 improve grep for error
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16394 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-22 17:06:06 +00:00
daniceexi 546bf507ab support the predefined bmc is set in the hosts.otherinterfaces
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16393 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-22 14:58:46 +00:00
lissav b13c713888 support long hostnames
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16390 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-22 12:41:14 +00:00
lissav 29aa9d83a7 cleanup tmp files
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16389 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-22 12:40:06 +00:00
zhaoertao a7537857db fix bug 3583: mkhwconn -s cannnot work for firebird in rh mn
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16386 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-22 06:13:18 +00:00
lissav af3ac58d23 remove version 2
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16384 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-21 18:16:33 +00:00
lissav fb453010c4 fix getpostscript.pm call (noversion)
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16382 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-21 18:11:46 +00:00
lissav 607866fb4a fix defect 16288, verified with Jarrod
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16379 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-21 14:33:15 +00:00
jbjohnso aa5e95f28a Commit powershell files to windows style line wrap in case of notepad
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16377 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-21 13:00:43 +00:00
jbjohnso df158b4411 Try to make powershell module more tolerant of pathing situations
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16376 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-21 13:00:38 +00:00
jwsimpson 57bfbd67ad updates to dhcp.pm to fix the problem with plugins calling it without arguements
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16374 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-21 12:22:17 +00:00
xq2005 4d3bfb86c9 ubuntu provision need the mirror/http/hostname configuration
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16373 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-21 08:28:04 +00:00
sjing 944a84bc0a new otherpkg list for sysclone
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16371 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-21 06:49:15 +00:00
jbjohnso fd942bcf5a Fix problem when request did not have adequate arg in dhcp.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16368 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-20 17:59:46 +00:00
jbjohnso 3456243248 Fix error in vbscript
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16366 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-20 14:56:32 +00:00
bp-sawyers 7731929803 Add genericrange option to noderange function so we can remove NameRange.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16364 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-20 13:14:26 +00:00
lissav ee3e6061f0 Add setup of postgresql
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16362 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-20 11:02:04 +00:00
lissav b784427dbd fix defect 3575
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16358 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-18 10:21:20 +00:00
jbjohnso e439bfa3d9 Note to future self about tabooseq scope
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16357 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-17 20:55:10 +00:00
phamt f4b3f09bb0 Fixed issue with AutoYast where it expects the FCP channel, WWPN, and LUN to all be in lower-case. Otherwise, AutoYast would not find the SCSI/FCP device.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16355 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-17 20:20:59 +00:00
jbjohnso cd354d6634 Have fixupunattend check the process, user, and system environment space for value before giving up (MS env handling is madness)
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16354 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-17 14:28:48 +00:00
jbjohnso 5562af5751 Provide hook for OS volume selection
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16353 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-17 14:28:40 +00:00
zhaoertao 4896b906d4 the feature:enhancement of rspconfig for blacktip blade
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16348 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-17 09:22:32 +00:00
zhaoertao 2e53f21b7d fix bug 3578: "rscan cmm -u|-w" will write information of System p blade into ipmi table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16346 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-17 02:40:15 +00:00
ligc 97f11587b0 fix the issue with XCATHOST=ipv6-lla%eth0:3001 and remote xcatd
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16345 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-17 02:39:16 +00:00
jbjohnso 07da4182ab Should someone decide to switch from generated to static password on vm(s), remove expiry if present
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16342 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-16 19:52:21 +00:00
jbjohnso 01ab6d41ea Remove debug output from Client
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16339 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-16 18:30:16 +00:00
lissav f7208c1e81 use new interface to makescript
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16338 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-16 17:07:33 +00:00
lissav 56d12b7105 add check for nofiles and more than one node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16335 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-16 16:45:16 +00:00
lissav 1e4a3631cc more postage removal
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16333 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-16 16:04:11 +00:00
lissav c176287626 add info
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16332 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-16 15:59:46 +00:00
lissav e81e433f1e remove debug code
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16330 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-16 15:45:03 +00:00
lissav e514305d5e remove comment out call to writescript
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16328 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-16 14:19:26 +00:00
lissav 0170a13ab4 remove writescript
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16327 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-16 14:18:00 +00:00
jwsimpson daa650686d Update for makedhcp to support query
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16324 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-16 14:10:05 +00:00
lissav de0872c616 remove postage xCAT command
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16323 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-16 14:09:18 +00:00
lissav a50b572e6e first update for enhance precreatemypostscript handling, more todo
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16320 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-16 13:55:55 +00:00
jbjohnso f65080fb4b Support LLA with scope index XCATHOST
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16319 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-16 13:35:10 +00:00
daniceexi b9bac72399 add the man page for nodediscoverdef command
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16317 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-16 13:08:17 +00:00
daniceexi 3dc5351cb4 add the manual type of discovery method
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16315 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-16 08:37:27 +00:00
daniceexi d10259eed1 add link for nodediscoverdef command
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16312 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-16 08:25:42 +00:00
daniceexi 42cb3d8799 add the nodediscoverdef command
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16311 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-16 08:19:53 +00:00
daniceexi d256906e89 filter off several inside attributes from request
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16310 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-16 08:19:13 +00:00
jjhua e853c4c7e2 feature-request#157 Some Improvements to the mlnxofed_ib_install script
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16307 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-16 07:50:06 +00:00
amy0701 2ad903b713 add testcase in bat.bundle
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16305 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-16 07:21:34 +00:00
jbjohnso 32943f0a7a Add very thin support for x222 servers in 'blade.pm', *just* enough to facilitate discovery
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16302 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-15 15:04:53 +00:00
phamt 9a08f260ef Make IP and hostname inputs optional when configuring the group profile.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16300 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-15 14:20:55 +00:00
phamt 4b65890eca Fixed bug where the profile conf file is not updated on 1st edit. Fixed error messages in to use double quotes so that variables are interpreted.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16299 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-15 14:10:28 +00:00
jbjohnso a6c2909603 Fix networkutils to work with CIDR again
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16298 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-14 15:28:16 +00:00
jbjohnso 06c90dd2e6 Fix problem erroneously requiring per-net config in ipv6 case not required in ipv4 case
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16296 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-14 15:13:39 +00:00
jbjohnso a5ea4c5332 Fix problem where default gateway was interpreted oddly in makedhcp ipv6
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16294 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-14 14:52:21 +00:00
amy0701 f2fe9bd17e add testcase chdef_group_p
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16292 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-14 09:32:00 +00:00
ligc 38f585626d fix for bug 3574: the blank grptype means static nodegroup
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16290 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-14 07:17:41 +00:00
sjing cac34c9f5a back port sysclone support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16287 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-14 03:06:00 +00:00
sjing 985de85cad back port sysclone support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16286 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-14 02:47:44 +00:00
sjing e6970bd97a back port sysclone support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16284 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-14 02:41:44 +00:00
sjing a392cfbe78 back port sysclone support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16282 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-14 02:39:51 +00:00
sjing b3a9a398dc back port sysclone support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16280 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-14 02:33:37 +00:00
daniceexi d302ccb027 add comment to support multiple actions for the nodeset state
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16279 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-14 02:29:25 +00:00
daniceexi 79a7d3e4cc add comment for why the /etc/mtab needs special case
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16278 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-14 02:20:47 +00:00
bp-sawyers aca25db4c9 Fix noderange bug 3572 by switching back to jarrod's bracket noderange fix
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16275 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-14 02:18:33 +00:00
lissav 428c90336d Add NODE to the /opt/xcat/xcatinfo file
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16273 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-13 15:51:46 +00:00
lissav 043303d1d7 defect 3565
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16271 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-13 13:34:40 +00:00
lissav c600b54122 fix defecct 3554 and 3549
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16270 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-13 12:17:20 +00:00
lissav 62d58ee68e xdsh will send the node name in the NODE environment variable on execution, used for new precreatepostscript support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16269 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-13 12:14:03 +00:00
daniceexi d8f8c7e49a change the shift to get the blade server bay from 24 to 18, this may caused by the firmware update
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16268 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-13 11:23:34 +00:00
daniceexi d1b10a4109 Change the kernel parameter name which passed to localdisk script to indicate the action
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16267 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-13 11:21:02 +00:00
daniceexi d7c626da34 run localdisk in stateless
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16266 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-13 11:10:39 +00:00
daniceexi 48b21d9656 defect 3543: fixed the issue that /etc/ cannot be set to tmpfs. It was caused by the /etc/mtab which is a speicfic file which is needed for mount command. And move the localdisk mount point creating to genimage
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16265 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-13 11:08:43 +00:00
daniceexi f212c3c7b3 change the mount point of localdisk
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16264 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-13 11:03:24 +00:00
daniceexi 75980fabbf Make localdisk script do mount for stateless node. Add log to node:/.sllocal/log/
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16263 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-13 11:01:31 +00:00
daniceexi 5eb7f30342 create localdisk directories during genimage
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16261 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-13 09:24:47 +00:00
zhaoertao a95e58f482 fix bug 3562:"rspconfig cmm USERID=<password>" doesn't update password properly for existing hdwr connection
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16260 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-13 09:23:38 +00:00
daniceexi 082db86c77 support localdisk to run on stateless
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16259 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-13 09:22:56 +00:00
daniceexi 05415e6588 Change the kernel parameter name which passed to localdisk script to indicate the action
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16258 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-13 09:20:40 +00:00
daniceexi 15ecb156d4 defect 3346: support that the argument of nodeset could be multiple actions which separated with ,; e.g. runimage=xxx,osimage=xxx
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16257 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-13 09:15:11 +00:00
xq2005 9736ea127e sync from trunk
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16256 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-13 09:08:22 +00:00
sjing dfbfa103ec back port sysclone support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16254 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-13 08:50:34 +00:00
sjing 2e54ebc370 back port sysclone support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16253 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-13 08:48:46 +00:00
xq2005 0724220b72 sync from the trunk for hardware discovery on debian/ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16252 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-13 08:12:21 +00:00
xq2005 e2055a8251 sync from the trunk for hardware discovery on debian/ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16251 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-13 08:11:11 +00:00
xq2005 88e689b996 build perl-xCAT when build xcat package
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16250 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-13 08:05:28 +00:00
xq2005 e12bb46487 lsxcatd -v return error revision on debian/ubuntu(bug 3564)
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16246 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-13 07:53:50 +00:00
bp-sawyers 73f0454a44 fix bug 3429 - noderange with multiple brackets do not show all nodes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16242 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-10 17:40:35 +00:00
nott bcf9e0aff2 add check for blank file name
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16239 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-10 16:50:58 +00:00
lissav a0f0bc1e07 update version number
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16236 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-10 14:49:09 +00:00
xq2005 16521bee18 rollback for 2.8.1 tag
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16229 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-09 01:52:27 +00:00
xq2005 a899468623 rollback fro 2.8.1 tag
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16228 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-09 01:50:07 +00:00
xq2005 a8d2c285e0 roolback for 2.8.1 tag
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16227 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-09 01:48:59 +00:00
mellor a2deab209f remove template directory. added by mistake with HPC kit build files.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16225 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-08 20:41:17 +00:00
mellor c417dedd8c remove ppedev HPC kit build files. moved to git repository in GSA
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16222 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-08 20:07:51 +00:00
mellor 2038645410 remove HPC kit build files. moved to git repository in GSA
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16221 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-08 20:06:04 +00:00
xq2005 4936c5bf4d arp command location is different between redhat and debian/ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16219 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-08 09:53:19 +00:00
xq2005 f6e8475fc0 arp command location is different between redhat and debian/ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16217 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-08 09:50:25 +00:00
xq2005 9b59bb8c1f upload the building packages to sourceforge by default
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16215 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-08 08:27:22 +00:00
ligc 6fc19c33fc backout changes for bug 3429, revision 16191, wait for 2.8.2
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16211 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-07 12:16:21 +00:00
zhaoertao b5a2045b3d fix bug 3552, using mp.id and ipmi.bmc to judge whether it is a x blade.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16209 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-07 10:52:21 +00:00
amy0701 815b733659 add noderange test cases into bundle
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16206 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-07 07:51:24 +00:00
daniceexi b6a22759e0 change filter_nodes subroutine that (renergy relhistogram) goto ipmi.pm and (rspconfig network|textid) goto blade.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16200 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-07 04:34:46 +00:00
daniceexi 0b08676d8c only set the groups attribute to default value when it was null
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16198 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-07 04:22:48 +00:00
amy0701 d4da62ff92 update testcase for noderange_group_intersection and noderange_individual_grp
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16197 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-07 02:41:58 +00:00
daniceexi dce814e616 Change the default bmc name to be (node name)-bmc instead of bmc(#)
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16195 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-07 02:26:40 +00:00
linggao 241de0adc3 added openstack grizzly repository for ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16193 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-06 21:03:44 +00:00
jbjohnso 0ea2f46895 Attempt to correct dual bracketed noderanges
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16191 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-06 18:01:46 +00:00
jbjohnso f6907796af Fix blade to once again work correctly with bladecenter
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16188 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-06 15:25:50 +00:00
jbjohnso d3f9b881f5 Have rspconfig textid work for x86 ngp blades
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16187 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-06 14:50:11 +00:00
jbjohnso a2ac89d215 Fix problem when staticv6 failed to adequately space out a comment
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16186 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-06 14:03:19 +00:00
zhaoertao 02aa34a40e fix bug 3552 rpower/rinv getting incorrect password with Blacktip flex blade check password tables
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16183 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-06 08:48:45 +00:00
jbjohnso 421a20be05 Rely upon storage detection code in ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16180 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-03 21:05:45 +00:00
jbjohnso 562852decd Fixes for ubuntu enhancements
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16179 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-03 21:05:07 +00:00
phamt 9704b4db41 Fixed issue in user table so it parses the policy table correctly. Changed the order of the refresh button in the self-service cnfigure page.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16176 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-03 15:02:06 +00:00
jbjohnso 5b4e678952 Have nic detection happen sooner
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16175 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-03 14:07:18 +00:00
xyye f8068d6b95 remove makedhcp command for adding the unmanagement node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16172 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-03 05:56:26 +00:00
phamt 111d0ada77 Removed code that adds the any node to the "all" group.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16170 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-02 21:56:53 +00:00
phamt a51ddf27d4 Fixed table ID used when shutdown button is clicked.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16169 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-02 21:44:21 +00:00
phamt 789c6ede3c Disabled SELinux in default kickstart template. Added check in rpower softoff to check if node is pingable, if not proceed to shutdown instead of waiting. Rearranged buttons on action bar in self-service page. Added shutdown button in nodes page to shutdown node gracefully.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16168 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-02 21:24:26 +00:00
bp-sawyers 4646d343f6 added help back into mktoolscenter
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16166 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-02 19:10:20 +00:00
jbjohnso 055629b901 Have debian no longer require setting of noderes.nfsserver
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16164 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-02 18:32:12 +00:00
bp-sawyers c2f9aae59f Updated nodediscover man pages
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16162 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-02 16:43:31 +00:00
lissav c38886fc70 fix defect 3477 PCM
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16157 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-02 11:26:31 +00:00
billwajda 6b5ce463ae added NM_CONTROLLED=no for configib and configeth and changed BOOTPROTO=none for redhat in both files
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16156 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-02 10:59:37 +00:00
jbjohnso e96ada6593 Add storage detection logic to debian deploy
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16154 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-01 21:00:14 +00:00
jbjohnso f9f1d61069 Have debian support support BOOTIF autodetection
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16153 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-01 20:20:36 +00:00
jbjohnso 9a2aee8fbc Fix from Shadd Gallegos on mktoolscenter
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16151 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-01 18:30:47 +00:00
phamt 9a672c7329 Fixed how MAC address prefix is obtained by using VMCP Q VMLAN instead of using VMCP Q V NIC. VMCP Q VMLAN is more accurate for z/VM 6.2 SSI clusters.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16149 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-01 17:16:28 +00:00
phamt 4f8e82198a Changed rpower off to use Image_Deactivate with IMMED flag because without the flag, sometimes the VM would not power off correctly.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16145 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-05-01 14:22:01 +00:00
jbjohnso f5e89691d4 Actually fix LVM with 6.4
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16143 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-30 19:48:48 +00:00
jbjohnso 86f8818f75 Remove senseless indication of primarynic in ubuntu template, this file isn't even read until network is already up
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16141 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-30 19:31:15 +00:00
jbjohnso 962e478345 Fix problem with certain versions of libvirt and lvm storage
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16140 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-30 19:28:14 +00:00
jbjohnso 636f0bd5f6 Fix problem where ubuntu needlessly mandates noderes.primarynic in one place, one to go
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16138 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-30 19:11:30 +00:00
jbjohnso 325b3cedd4 Fix problem with esxi detection of image template availability
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16136 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-30 18:53:14 +00:00
mellor c50fe660e0 defect 3546 add kit framework info to kit.conf files
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16134 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-30 18:42:47 +00:00
jbjohnso de0d1d84ec Fix a problem where partition recipe was incorrectly written out
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16131 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-30 17:48:02 +00:00
mellor 06a0dcb472 defect 3505 - fix manpage typos
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16128 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-30 13:07:18 +00:00
linggao ad0e9d09d4 fixed a defect #3543 running confignics has authority issues on statelite nfs_based cn
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16126 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-29 20:25:27 +00:00
jbjohnso 90c6689438 Fix problem where makedns suddenly required hosts table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16124 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-29 17:58:39 +00:00
phamt 8fa5961b27 Changed nodeset tab to accept osimage argument. Allow z/VM identities to be specified in directory entry. Allow an admin username to log into the main xCAT UI.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16123 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-29 17:13:20 +00:00
phamt 8cb2dd56b9 Fixed how broadcast address is calculated using IP and netmask, instead of relying on ifcfg file.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16122 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-29 16:59:46 +00:00
phamt a25f969d2d Simplified selection of user types when creating an xCAT user from the UI.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16121 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-29 15:37:23 +00:00
phamt 2515cfc4d4 Fixed bug in how jQuery dialogs are closed. If you use dialog('close'), it will only hide the dialog. But if you use dialog('destroy').remove(), the entire dialog will be removed from the page.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16120 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-29 15:08:10 +00:00
zhaoertao e6c6be8827 fix bug 3536 rscan cmm -z for Blacktip blades has wrong hwtype=xblade and missing cons
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16116 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-28 06:21:21 +00:00
xyye d7892547c3 make dns after adding the unmanagement node in profilenodes.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16114 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-28 06:04:19 +00:00
qyin 19c63b2412 fix 215709 nodeimport can use host info file mixed with switch , switchport and mac address
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16112 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-28 05:50:46 +00:00
sjing fa9bb0c3ca fix for bug 3542 - duplicated script name for efibootmgr, so changed it to configefi.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16110 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-28 02:49:30 +00:00
sjing 910948236c fix for bug 3542 - duplicated script name for efibootmgr, so changed it to configefi.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16108 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-28 02:44:06 +00:00
ligc 95bdb18675 fix for bug 3533: rnetboot hang for Power5 servers
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16096 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-27 07:22:59 +00:00
sjing 49667756cb Fix for bug 3538 - sometimes stopsrc -s named takes a longer time to take effect.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16094 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-27 06:04:50 +00:00
qyin 2eff25fb6a #215407 Typo in man page: nodeimport
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16092 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-27 05:43:49 +00:00
zhaoertao 3560655bc6 fix bug 3531: New CMM firmware is adding node # ( textid ) wrapper around textd - breaks rscan -u
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16090 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-27 02:30:38 +00:00
willn256 ce5ec17fcd Make sample kit plugin modules end with 1; and fix buildkit to rename kit plugin files correctly
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16087 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-26 22:27:54 +00:00
phamt 8acceb8579 Enabled multiple volumes to be removed. Allowed delete button to delete using noderm instead of rmvm if checked.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16085 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-26 20:19:37 +00:00
jbjohnso f79c178354 Change nextdestiny to use system context rather than nebulous user context in powershell
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16083 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-26 20:15:15 +00:00
jbjohnso 49e21e3a8d Make local system work and also clean out messages
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16080 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-26 19:54:58 +00:00
jbjohnso 4ffb6b22a8 Modify xCAT powershell module to:
-Support it's own per-user cert store
-Use more capable .Net x509 management functions
-Work with lower .net requirement

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16079 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-26 19:54:47 +00:00
phamt 6f94c8dcbe Removed the use of "-f IMMED" when powering off a VM because using smcli Image_Deactivate without the "-f" option powers off the VM more cleanly and accomplished the same thing.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16077 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-26 15:32:59 +00:00
jbjohnso 0d67ef61e7 Fix breakage where recent changes broke nodeset shell and friends
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16074 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-26 14:07:02 +00:00
jbjohnso 11f93c43ae Fix issues with bmcsetup
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16073 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-26 14:06:49 +00:00
lissav dae618c4bb put rsh/rcp deprecated in comments
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16071 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-26 11:28:19 +00:00
jjhua c546de11e5 fixed bug 3354
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16067 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-26 02:15:18 +00:00
daniceexi a7a5e0aa70 defect 3520: fixed a typo that using - replace =
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16066 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-26 02:10:57 +00:00
wanghuaz 01be6f53fe Check if the deploy parameter is used by other kitcomponent that is not in the same kit
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16065 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-25 12:59:42 +00:00
immarvin 8bad0490c3 support for addkcmdline of osimage. According to the design, the linuximage:addkcmdline should be appended to kernel arguments of the nodes after "nodeset osimage=".
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16063 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-25 12:15:09 +00:00
sjing 6410db445d fix for bug 3526 - remove litetree.table from inst_root for the update.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16060 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-25 07:54:06 +00:00
jjhua 37234b42cc fixed bug 3490.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16056 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-24 08:10:36 +00:00
immarvin 3c0983f60f 1. fill in the proper value in /etc/sysconfig/clock and set the timezone of the stateless/statelite node with site:timezone
2. copy libnss_files.so.2 from directory lib(for 32bit system) or lib64(for 64 bit system) into initrd 

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16053 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-24 07:57:24 +00:00
jjhua af2e791dc3 fixed the bug 3490. put the insserv message into /dev/null
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16051 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-24 07:51:37 +00:00
linggao 2a38296b67 added --dryrun flag for genimage
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16048 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-23 19:13:15 +00:00
mellor b644f217d6 rebuild gpfs kitcomponents to not include gpfs.src and gpfs.libsrc rpms
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16046 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-23 19:06:57 +00:00
lissav cf51a10163 fix defect 3512
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16045 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-23 18:27:51 +00:00
daniceexi bf18ab507c defect 3516: fixed the typo to handle the getnextdestiny result
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16040 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-23 08:21:35 +00:00
xq2005 5afad2b6c8 fix the SHA1.pm miss problem on ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16038 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-23 02:32:16 +00:00
mellor 722355e373 rebuild teal kits to only include kitcomponents for base,ib,syslog
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16035 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-22 20:17:52 +00:00
jbjohnso fecdc35716 If lzma is older than gzip genesis, prefer newer
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16034 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-22 19:18:53 +00:00
jbjohnso 317676b98b Have ddns.pm call the code that hosts plugin uses to support extra interfaces
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16032 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-22 19:09:36 +00:00
jjhua 6b74b9ae3f fixed one minor issue
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16029 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-22 07:13:24 +00:00
jjhua baddac4d4c remove the xcat-otherpkgs*repo from ospkgs script
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16026 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-22 06:28:24 +00:00
daniceexi 53dfc9e005 Fixed the method to receive http payload with chunk format
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16025 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-19 14:03:11 +00:00
wanghuaz 1e4a158fb4 Remove teal-gpfs and teal-gpfs-sn
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16023 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-19 12:28:59 +00:00
xq2005 08bd9b2907 start ttyS0 in stateless boot on debian/ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16022 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-19 12:24:25 +00:00
jjhua d6ada83292 fixed bug 3513
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16017 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-19 05:57:40 +00:00
jbjohnso ab3b74fef4 Fix problem where KMS key not being used as default
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16014 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-17 18:38:31 +00:00
jwsimpson 2c5ce1a401 Update rpower usage to add onstandby and sms
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16011 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-17 14:51:55 +00:00
mellor 16e114ede4 defect 3508 - change teal kitcomponent names to avoid conflicts with product rpms
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16008 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-17 14:09:42 +00:00
jbjohnso b1f539a5e5 Fix openssl template for 'server' to also allowed to be a 'client' to restore hierarchy
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16007 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-17 13:53:47 +00:00
jjhua 9acd1e0a62 fixed the bug when updatenode on ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16005 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-17 08:19:32 +00:00
zhaoertao c03aeddd19 fix bug 3502 rspconfig support for USERID=<password> for CMM in genesis case
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16002 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-17 07:17:42 +00:00
jjhua 1f29d3705d fixed bug 3506, at the beginning of the ospkgs/otherpkgs, only remove the repos which are created by xCAT.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16000 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-17 07:07:19 +00:00
daniceexi 719ce7458c Add the help for flex and iDataplex support for renergy command
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15997 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-17 06:57:24 +00:00
qyin abf2a60062 solution:215058 enable switch auto discovery for PCM
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15994 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-17 06:49:19 +00:00
xq2005 3c0eea3f26 Using debined subroutine on hash object imports warning message
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15993 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-17 06:39:56 +00:00
phamt 574b11fc1b Fixed bug in event log page, where the wrong option flag is specified for the destination directory.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15991 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-16 19:38:11 +00:00
mellor 829dd22b6c added other PE kit files to make this dir complete
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15988 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-16 18:12:48 +00:00
mellor ba2193e39a set PE env var for kit build
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15987 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-16 18:07:22 +00:00
phamt 6336859884 Enabled disk and zFCP pool tables to be generated even if no disk or zFCP pools exit.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15986 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-16 17:49:43 +00:00
mellor 00cd0a4e67 defect 3482 - fix find wildcarding
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15984 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-16 15:16:53 +00:00
mellor 15a76588d6 defect 3503 - remove duplicates and sort output of lskmodules
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15982 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-16 13:19:58 +00:00
amy0701 5075ed8045 update testcases related to makedns
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15980 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-16 08:16:23 +00:00
jjhua ab04cdafc3 only remove the repositories which were created by xCAT for sles
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15979 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-16 05:36:51 +00:00
ligc 093e1cb8e4 fix for bug 3476: set @::finalTypeList based on both CLI and FILEATTR
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15976 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-16 02:48:33 +00:00
lissav 9c89936b69 fix 3477
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15974 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-15 12:30:15 +00:00
xq2005 63b5ea43c9 support pgsql on debian/ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15972 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-15 07:13:00 +00:00
ligc 575100ab75 fix for bug 3496: disable SELinux on RHEL, check rc problem
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15970 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-15 04:53:23 +00:00
daniceexi d8b7c905a6 Change how to get the bmc for a predefined node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15968 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-12 08:12:12 +00:00
daniceexi b7d1915698 Update the code that get the correct switch infor for the install nic
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15967 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-12 08:11:56 +00:00
daniceexi bd8f5021f5 Change the collaboration with sequential discovery for the output of nodediscover* message
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15966 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-12 08:11:39 +00:00
linggao 538e43dfa2 modified puppet kit version
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15962 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-11 20:33:03 +00:00
jbjohnso 66a5a01733 Remove debug output from wcons
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15953 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-11 14:29:18 +00:00
nott 26dcd874de remove use of global variable DELNODE
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15952 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-11 14:29:01 +00:00
jbjohnso e61792e180 Have wcons not call nodels as a subprocess
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15951 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-11 14:28:35 +00:00
jbjohnso 0fc0fbfcff start fixing wcons
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15949 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-11 14:17:09 +00:00
daniceexi f4b76731c4 Add cappingGmin support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15947 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-11 04:21:35 +00:00
daniceexi bda7f19bc4 Add cappingstatus support and support the capping setting for double wide blade
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15946 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-11 03:19:01 +00:00
mellor c8ee86a306 hpc kit build file updates for kit osarch and osbasename updates
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15944 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-10 22:37:12 +00:00
jbjohnso aa204c02fb Fix problem where psh -f would go more than requested
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15943 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-10 21:01:47 +00:00
bp-sawyers 4ca934115b fix syntax errors in nodediscoverls and nodediscoverstart pod pages
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15941 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-10 20:50:53 +00:00
mellor 283d9711e5 add arch and other attrs to full kitname
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15938 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-10 19:38:57 +00:00
lissav 76ccff5b66 fix defect 3483
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15936 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-10 15:53:33 +00:00
amy0701 a8094a6ec4 spelling mistake for Script_Post make script_post fail to work
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15933 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-10 11:39:29 +00:00
jjhua 9c42853e1c remove the debug flage
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15929 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-10 09:33:45 +00:00
jjhua 1f23d67e4d add some code to make the config_chef_server work during post boot period
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15927 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-10 09:32:25 +00:00
jjhua 3a7d35f220 1. modifies some comments 2. add the rpm post script
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15924 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-10 09:23:56 +00:00
jjhua ed369ce3b8 add the rpm version to the kit version # and the kitcomponet version #
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15923 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-10 09:09:38 +00:00
wanghuaz 2751c2cb43 Updated lskit to 'SEE ALSO' section in manpage of addkit/rmkit/addkitcomp/rmkitcomp/chkkitcomp
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15922 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-10 06:48:34 +00:00
yinle 5c437d385a fix bug 3462 no any output executing lsslp --flexdiscover. Remove manual information of lsslp --flexdiscover.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15911 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-10 02:53:57 +00:00
yinle 07ad36c9d2 fix bug 3462 no any output executing lsslp --flexdiscover. Remove the --flexdiscover from help information.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15910 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-10 02:49:38 +00:00
mellor 8ef2221595 defect 3465 ppedev 1.2.0-2 kits
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15909 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-10 02:34:05 +00:00
yinle e9caf6e420 Continue to fix bug 3428 lsslp -n does not check xCAT DB properly for current objects, support using mtms to match cmm.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15907 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-10 02:20:37 +00:00
lissav 43a383bd68 fix defect 3477
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15905 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-09 18:24:53 +00:00
mellor 1bb3f61a84 defect 3474 - fix parsing of rpm names for kitpkgdeps
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15900 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-09 13:08:39 +00:00
daniceexi a57b1bbfa6 Update the man page for sequential discovery support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15898 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-09 12:03:02 +00:00
wanghuaz 309b357920 Checkin the partial-teal kit source files
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15894 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-09 10:31:16 +00:00
ligc ac13f9a177 fix for bug 3454: handle the object name like fd59::/64
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15891 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-09 08:19:57 +00:00
jjhua 805e0d5fd1 make it work during postboot period
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15890 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-09 08:03:47 +00:00
immarvin 2226a4e58d replace nfs-utils with nfs-kernel-server in sles11 pkglist
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15886 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-09 06:46:00 +00:00
ligc ceb308e21d fix for bug 3353: remove lsvpd and busybox-anaconda
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15882 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-09 06:31:01 +00:00
daniceexi f7b2205e92 support the regular expression in the hosts table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15874 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-08 08:37:01 +00:00
immarvin 60f393ea20 add /lib64/libnss_files.so.2 into initrd, this is needed by mount.nfs in sles11.2
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15873 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-08 08:23:14 +00:00
jjhua edd1ecd3d7 remove the repeated infor
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15869 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-08 08:14:25 +00:00
zhaoertao 8d54d0c251 update manpage for mkdef|chdef that adding option \'-u\' for them to fill in osimage attributes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15867 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-08 07:34:13 +00:00
ligc 19cd9c4766 fix for bug 3470: remove the ifname from the /etc/sysconfig/network/routes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15866 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-08 07:29:14 +00:00
ligc ad308476bd fix for bug 3471: print message if the persistent route does not exist
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15863 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-08 07:11:43 +00:00
daniceexi be14247f0e move the switch info update and nodediscoverydata update before the final communication for restart to avoid the sock missing
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15861 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-08 06:37:08 +00:00
zhaoertao 002c6f54d5 add \'-u\' for mkdef|chdef command to have osimage find custom files
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15860 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-08 06:36:12 +00:00
jjhua 612a83d020 remove the -vx from the shell script
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15857 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-08 06:30:07 +00:00
jjhua cc6acc6bb0 Added code for xCAT chef intergration on Ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15855 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-08 06:24:24 +00:00
jjhua 3b071e27a0 Added code for xCAT chef intergration on RH
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15854 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-08 06:20:46 +00:00
jjhua 540dc00882 remove the repositoris whose prefix is -path
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15851 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-08 01:37:27 +00:00
xq2005 4de74e13fb buildkit support on debian/ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15850 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-07 08:44:05 +00:00
ligc c308aa725e fix for bug 3476: remove empty nics definition from nics table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15847 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-07 06:53:05 +00:00
asirxing 64bae37fe1 Merge lskit/lskitcomp/lskitdeployparam codes to xCAT 2.8 brunch
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15846 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-07 06:35:15 +00:00
wanghuaz f1471cd5f7 Fixed an error in last checkin.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15845 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-07 06:32:50 +00:00
daniceexi e63dc81a22 Code drop for sequential discovery support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15841 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-06 09:40:39 +00:00
jbjohnso 3e01b29a0d Fix AAsn to not die horribly when non-reference is returned from some function
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15837 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-05 20:51:06 +00:00
phamt 0df98e654c Fixed grep to be case insensitive and find SCSI device using both WPN and LUN, instead of just LUN. A WPN and LUN uniquely identify a device.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15836 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-05 02:35:29 +00:00
jbjohnso 056ee611fd Correct syntax error
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15833 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-04 20:16:12 +00:00
jbjohnso 5d8c72397f Fix typo
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15832 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-04 20:14:18 +00:00
jbjohnso 486f8cf81a Apply methodology from previous commit to a number of other places
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15829 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-04 20:11:12 +00:00
jbjohnso d3107ef14b Simplify a lot of xcat IPC by removing the silly 'endoffreeze' in favor of store_fd and retrieve_fd
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15828 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-04 20:11:05 +00:00
phamt 501b7f1f7e Fixed how default route was specified in autoyast template. Moved 'add SCSI' to disk panel on xCAT-UI because 'add SCSI' creates an EDEV.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15827 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-04 16:01:24 +00:00
jbjohnso f4a9ec312c Fix for template recognition to detect major release generic templates
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15826 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-04 13:04:00 +00:00
jbjohnso d652fa96fb Use a different error code
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15822 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-03 20:56:11 +00:00
jbjohnso a2205b8fab Have copycds error set exit code on client
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15821 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-03 20:55:13 +00:00
linggao 8a53557d7d bug fix for puppet kit
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15820 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-03 20:40:49 +00:00
jbjohnso af9428ed10 Support per-node product keys, defaulting to 'os key' if nothing specified
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15818 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-03 20:34:26 +00:00
jbjohnso 250336787e Fix nextdestiny powershell script to have WinPE skip trying to retrieve CA certs mid-connection
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15815 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-03 20:19:18 +00:00
jbjohnso 2702329dda Fix error in esxi plugin
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15813 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-03 18:20:58 +00:00
xq2005 3cc7478097 pgsqlsetup support postgresql on debian/ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15812 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-03 16:30:24 +00:00
lissav 99dd2a7520 add back the csm to xcat migration tools
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15810 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-03 13:16:56 +00:00
xq2005 811829c9b5 debian/ubuntu support internet repo for otherpkgs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15807 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-03 09:20:33 +00:00
xq2005 04889ca0c2 debian/ubuntu support internet repo for otherpkgs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15806 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-03 09:18:55 +00:00
ligc cfcf63be3a fix for bug 3460: add ipv6 default gateway setup for configib
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15803 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-03 09:16:20 +00:00
zhaoertao 9e50bea3e6 3461 Undefined subroutine &xCAT::FSPUtils::defiend called at /opt/xcat/lib/perl/xCAT/FSPUtils.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15801 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-03 09:07:03 +00:00
phamt bf4b276286 Updated output message of purgerdr option.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15799 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-02 20:34:15 +00:00
phamt 9b378cdf85 Enabled remote Linux repositories to be specified in noderes.nfsserver. When specified, noderes.nfsserver will be used instead of the local /install directory.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15798 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-02 20:26:28 +00:00
jbjohnso cfbefff7c7 Add support for Windows to do autoula mode and indicate non-support of static managed address mode in windows context
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15797 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-02 19:58:03 +00:00
mellor 0cb19bfa2b defect 3385 again - need separate subs for both real kitname and modified kitname
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15794 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-02 19:49:43 +00:00
jbjohnso feadffbc7b Provide a mechanism for bundled xCAT instances to forbid image import without existing templates
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15793 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-02 19:20:09 +00:00
mellor d72811fe49 update kit template with various changes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15791 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-02 17:56:19 +00:00
mellor 96c92e083a defect 3406 createrepo for RH5 and 3407 correctly handle blank osminorversion value
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15789 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-02 17:39:03 +00:00
mellor b0740da8c4 buildkit man page update for addpkg and other changes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15784 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-02 13:36:46 +00:00
zhaoertao 83e36d1d07 fix bug:3451 New xCAT Support for mkhwconn -s and sfp for Flex P blades with HMC
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15783 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-02 09:10:20 +00:00
wanghuaz d421ad766a Updated addkitcomp manpage for --noupgrade option
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15781 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-02 05:00:41 +00:00
mellor 486d2c3027 defect 3385 fix string subs in plugins and finish defect 3366 kit version and release subs in addpkgs support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15779 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-01 21:27:18 +00:00
jbjohnso fefe378467 Rename site value to something more specific
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15777 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-01 19:11:28 +00:00
jbjohnso d616ef7269 Provide site value to suppress credential check messages
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15776 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-01 19:11:22 +00:00
nott ee67cada6f more usage msgs and error checking
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15774 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-01 18:51:06 +00:00
bp-sawyers ce65f31188 fixed typo in regex example in xcatdb man page
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15772 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-01 18:46:49 +00:00
nott 049afdbdf0 support xCAT long hostname
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15769 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-01 17:24:37 +00:00
lissav 8b680bb3b6 fix defect 3412
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15767 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-01 16:50:16 +00:00
wanghuaz 317368df00 Output erros if there is any failure during DB operation, in case DB operation didn't output any error on failures.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15763 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-01 12:50:20 +00:00
wanghuaz 8428a71e7b Fixing a problem that sles enables all the repos for new #NEW_INSTALL_LIST set, it prevents putting multiple versions of a packages with different repos into otherpkgs dir. Now we only enable the necessary repos for each zypper command
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15762 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-01 12:11:05 +00:00
wanghuaz 89209d885b Fixing bug 3410: don't remove kitrepo if there is other kitcomponent assigned to the osimage
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15759 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-01 10:37:42 +00:00
yinle ef7ebb34b8 Modify the man of rscan to support rscan with system-x-nodes in flex.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15756 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-01 07:57:04 +00:00
yinle 87497e65c5 Modify man page of rspconfig, add support of rspconfig system-x-nodes network=*
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15754 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-01 07:50:20 +00:00
creativezj 5ea143c734 fix multiple nic error while all nics in same network
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15752 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-01 07:17:34 +00:00
phamt 41c00b59e2 Fixed bug where argument size check was not correct. Added default mode for chvm --add9336 option.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15750 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-01 01:46:31 +00:00
wanghuaz 0bc40f667a Fixing two problems: 1. previously all the repos are enabled for all the yum commands. now we only enable the required repos for each yum command. 2. run yum clean in the diskless image to cleanup the repo meta data. this is required if there are multiple versions for one package name to be installed
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15749 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-31 22:45:18 +00:00
wanghuaz 2091c7a1c7 added addkitcomp --noupgrade option to install multiple PE RTE PTFs.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15746 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-31 22:34:56 +00:00
xq2005 aa807e7dca statelss image support internet repo on debian/ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15745 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-31 14:41:00 +00:00
phamt 631fa6d9ca Fixed typo in output string
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15743 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-30 21:47:51 +00:00
phamt 1f07c5c769 Fixed disk format bug where code continues to run even though link is only R/O.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15742 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-30 21:38:55 +00:00
linggao 5165ce4098 Openstack support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15741 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-30 21:15:19 +00:00
wanghuaz e70bea3edb Create osimage with profile compute for management node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15739 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-30 07:55:41 +00:00
linggao cb3ccba715 bug fix in otherpkgs, keep the repofile because sometimes the error is caused by other repos
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15737 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-30 02:11:14 +00:00
linggao 5ae42f335c Added code for xCAT puppet integration on RH
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15735 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-29 19:54:27 +00:00
linggao 7211b9c3d5 Added code for xCAT puppet integration on Ubuntu.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15733 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-29 19:04:31 +00:00
phamt 700b9a6483 Changed mount point during cloning so that multiple clones could be run independently.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15731 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-29 16:30:41 +00:00
phamt f0cd1b890a Allowed dialog box to show up when adding disks or NICs, even when no disk pool or network exists.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15730 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-29 15:38:05 +00:00
nott d83a06c0c3 add default for nichostnamesuffixes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15728 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-29 13:19:19 +00:00
nott bb7ec57c23 description change for nicaliases - again
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15727 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-29 12:58:23 +00:00
nott 980e17ea82 description cahnge for nicaliases
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15725 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-29 12:37:26 +00:00
lissav 3c42ae7c06 fix defect 3426
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15724 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-29 11:38:14 +00:00
creativezj 44d26e560f support multiple nics in nodeimport
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15722 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-29 06:00:43 +00:00
xq2005 9a584bdb4b copycds support option -i on debian/ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15719 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-29 03:45:31 +00:00
xq2005 e977c2b2d8 load firmware in debian/ubuntu stateless initrd
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15717 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-29 03:05:24 +00:00
jbjohnso 2e91fbbf48 Have provision for per-node AD admin credentials
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15715 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-28 20:52:24 +00:00
jbjohnso 082f7f3e3a Make allowances for per-node activedirectory enablement
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15713 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-28 19:00:56 +00:00
jbjohnso 21bbe861a5 Add entry to allow per-node authentication domain configuration
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15711 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-28 18:54:03 +00:00
jbjohnso 3ca8c9a561 Now that we can specify domain per node, take out check that would reject a valid config
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15709 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-28 18:51:09 +00:00
jbjohnso c6005f0dac Add more IPv6 magic to ESXi setup
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15707 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-28 18:31:15 +00:00
jbjohnso d5ab1780ab Add flag for appliance use to recognize static addressing modes not yet supported in xCAT mainline
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15706 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-28 18:30:59 +00:00
lissav 5795765011 handle easy regx expressions
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15704 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-28 12:07:25 +00:00
immarvin 337ca536f0 nfs-utils package not exist in sles11 iso, use nfs-client instead or remove it from pkglist
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15698 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-28 08:34:58 +00:00
yinle c16a9a31d7 support rspconfig system-x-node network=*
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15693 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-28 08:04:37 +00:00
yinle cc4b65dfa8 support rspconfig system-x-node network=*
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15692 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-28 08:01:28 +00:00
yinle dd835f744c support rspconfig system-x-nodes network=*
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15691 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-28 08:00:21 +00:00
immarvin f21047b44e replace xntp with ntp in sles pkglist
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15686 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-28 06:18:51 +00:00
immarvin 28e50efbef add ntp to the sles pkglist
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15685 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-28 06:10:04 +00:00
mellor f5eb7b6713 added kit.release attr
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15681 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-28 02:34:42 +00:00
mellor 15ad3d4144 rewrote buildkit buildtar and addpkgs for kit verrel substitution support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15679 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-28 02:30:49 +00:00
ligc a799e2602e fix for bug 3446: add 69 into ports list, chkconfig SuSEfirewall2_init on
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15677 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-28 01:40:54 +00:00
bp-sawyers e748ed903d corrected chain.chain attribute description
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15674 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-27 20:39:49 +00:00
wanghuaz 47bcc75d71 enhanced function Utils->osver() to accept paramerters to output different data. If no parameter, the output will be same as before.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15670 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-27 10:19:30 +00:00
jbjohnso de3aa1ae04 Fix DNS client configuration for Windows when doing static assignment
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15667 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-26 14:38:49 +00:00
jbjohnso 27c9f9dbb3 Fix missing close tag on xml in last windows commit
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15665 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-25 21:08:19 +00:00
jbjohnso 90ec9da165 Switch to server side fill in attempt for interface identifier in dns client config in windows
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15664 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-25 20:52:51 +00:00
jbjohnso ce684e0108 Add directive to support alternate DNS server for windows deployments if DHCP is not to be trusted
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15662 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-25 20:02:31 +00:00
jbjohnso 094aee795f Fix issues with previous commit
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15660 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-25 19:37:36 +00:00
jbjohnso 1dcd7a42b1 Fix issue where powershell instrumentation fired up with no hope of successfully performing SSL
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15659 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-25 19:37:29 +00:00
mellor b6260d6a70 new kits for PE RTE 1.3.0.2 and GPFS 3.5.0.9
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15656 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-25 17:59:46 +00:00
jbjohnso 91d690e502 Fix for anaconda claiming toolscenter oses
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15654 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-25 17:39:42 +00:00
jbjohnso 95d973258c Have upflag try to use powershell when available instead of exes.
Have xCAT powershell client attempt without a certificate when no client certificate specified

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15652 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-25 13:58:09 +00:00
jbjohnso cf0bfb9d11 Show errors in default formatting.
Add function to import exported credential package

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15651 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-25 13:58:01 +00:00
jbjohnso df39576937 Finish xcoll, add some more objects to control formatting better, have NodeRange on pipeline attempt to join for chaining after xcoll
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15650 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-25 13:57:55 +00:00
jbjohnso e6cee5014a Work towards an xcoll workalike, also likely a xcsv workalike
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15649 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-25 13:57:47 +00:00
jbjohnso c1ee6f6383 Add familiar aliases for PS usage
Add more commands
Support pipelined strings and xCATNodeData for indicating noderange

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15648 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-25 13:57:42 +00:00
jbjohnso 50a575c952 Add some inital table formatting for typical output
Fix problem where Powershell replaces commas with spaces (hopefully fixed)

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15647 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-25 13:57:37 +00:00
jbjohnso 6c97efdae9 Spice things up a little by putting in a vitals and a power test case, testing out the command send command
TODO: repackage the xml object into intended powershell objects
Output types:
-xCATData
-xCATNodeData
-xCATNoderangeData
xCAT Data has error and data not contained within a node
xCATNodeData has error and data contained within a node
xCATNoderangeData will be an aggregation of the above (to be treated differently ps1xml wise hopefully)

The original noderange will be chucked into any of these, for Merge-xCATNodeData to have as a hint maybe

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15646 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-25 13:57:30 +00:00
jbjohnso d820388726 Actually have the powershell module successfully be able to run commands
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15645 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-25 13:57:22 +00:00
jbjohnso 354269134a Actually have a test case that will get to the permission denied phase
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15644 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-25 13:57:16 +00:00
jbjohnso 6ef1671e23 Milestone for powershell client code, can now add the CA and successfully verify server:
PS R:\pst> import-module .\xCAT.psd1
PS R:\pst> Import-xCATCA .\ca-cert.pem
PS R:\pst> Connect-xCAT odin 3001
PS R:\pst>
(commit best reviewed while listening to O Fortuna)

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15643 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-25 13:57:10 +00:00
jbjohnso b28f6f307f A little more PowerShell experimentation
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15642 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-25 13:57:04 +00:00
jbjohnso 64b30e639c Add a manifest for the powershell xCAT client
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15641 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-25 13:56:56 +00:00
jbjohnso 6055da9ab6 Rename xCAT powershell module
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15640 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-25 13:56:49 +00:00
jbjohnso 6e36a72117 Modify xCAT Powershell libs to load without warning/error
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15639 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-25 13:56:44 +00:00
jbjohnso 4f8cacb6bb Check in more comments and code into the still yet non-functional powershell module
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15638 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-25 13:56:39 +00:00
jbjohnso 311e4d2e1d First pass at some xCAT powershell functions to build updatemynodestat/reportip/updateflag out of in name of removing compiled code
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15637 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-25 13:56:33 +00:00
jbjohnso 60ced905aa HTTP/1.1 sends headers back more, tolerate that
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15636 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-25 13:44:59 +00:00
zhaoertao bfe01b3aeb modify "rvitals <flex node> lcds" using pblade_query_lcds to get the lcds info
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15634 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-25 02:52:16 +00:00
nott 3b984994b8 add support for nicaliases
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15631 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-22 14:25:53 +00:00
nott 17d12747a8 add to nicaliases description
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15629 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-22 14:13:36 +00:00
xq2005 29cbd7344e genimage on ubuntu12.04.2 meet package installation error
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15627 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-22 10:21:53 +00:00
phamt b2910a9ff7 Enable graphics tab on xCAT-UI to handle nodes where the nodetype is not specified.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15625 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-21 21:40:53 +00:00
phamt daada72738 Added new columns into the storage table to handle z/VM's SCSI-FCP devices.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15624 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-21 20:32:28 +00:00
nott f618da03b0 add nicaliases support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15623 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-21 19:26:26 +00:00
phamt 994a61b23f Fixed toggle of options to be triggered by input box vs. list item.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15621 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-21 18:46:00 +00:00
phamt d83ddb7f69 Fixed eventlog tab on xCAT UI to use a textarea instead of input box for log options.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15620 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-21 18:36:20 +00:00
nott 3759698b55 fix bad hosts file entry - 3439
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15619 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-21 18:21:32 +00:00
jwsimpson 8b4949d1fd lsslp support for transAM
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15616 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-21 17:29:43 +00:00
nott 25c43dac30 add bash to aix bundles
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15614 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-21 17:11:56 +00:00
nott 28a4eccb48 fix rmnimres subroutine
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15612 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-21 13:58:55 +00:00
xq2005 e65799ab28 delete the uesless genimage.old
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15608 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-21 08:26:32 +00:00
jjhua c063fe1a6f made some updates in the pkglist for bug 3444
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15606 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-21 06:57:22 +00:00
ligc 2f1908c0fe update xcatstanzafile manpage to inidicate the attribute might include the character dot (.)
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15603 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-21 06:49:34 +00:00
ligc 69898aee7a chdef,mkdef enhancements to support nic attributes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15601 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-21 06:39:44 +00:00
jjhua 745e92baec fixed bug 3437
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15599 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-21 05:19:26 +00:00
phamt cb171eab7a Cleaned up how smcli calls are logged in syslog.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15597 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-20 20:47:12 +00:00
xq2005 35ea34acc3 support copycds -i on debian/ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15596 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-20 08:10:01 +00:00
yinle fee4fccf1b minor fix.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15593 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-20 03:28:50 +00:00
yinle 7fddd47f72 Modify rscan to support system x node for blade.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15592 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-20 03:00:36 +00:00
linggao 170647e000 fixed SF bug#2433
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15591 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-19 21:18:43 +00:00
lissav 123abffe4f fix for defect 3436
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15589 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-19 17:59:15 +00:00
jbjohnso c911961b09 HTTP/1.1 seems to be required for RHEV-M to respond right
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15585 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-19 15:47:36 +00:00
jbjohnso 03a445a74a Fix xCAT-server rpm build srpm problem
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15583 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-19 14:48:15 +00:00
jbjohnso 7bb722ae35 Add more objdef mappings for table data
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15582 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-19 14:32:05 +00:00
jbjohnso fc69abc703 Add node/group level nameserver indication to schema
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15581 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-19 14:31:44 +00:00
jbjohnso 23847c14c7 Have sshd directory contain public keys, as some pieces of software are expecting, whether they should or not
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15579 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-19 13:35:10 +00:00
jbjohnso c4368dc065 Support per-node ssh host keys if detected - Thanks to Frank Schwichtenberg
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15578 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-19 13:25:12 +00:00
lissav dfd8ebdf2a add use File::Path used in code,but missing. Result of Utils.pm split. Broke zvm build
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15576 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-19 13:21:06 +00:00
lissav 6c304ce11c fix for defect 3434
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15574 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-19 11:15:43 +00:00
xq2005 20c386bac4 setup odbc for mysql on debian/ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15572 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-19 08:55:34 +00:00
xq2005 7d7e447c3d use mysql db on debian/ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15569 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-19 07:43:02 +00:00
immarvin df101c0356 fixed some syntax in storage.rhels6.tmpl, as some variables are no longer supported in the kickstart. rename storage.pglist to storage.pkglist
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15568 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-19 07:21:57 +00:00
xq2005 16b5f241de use mysql db on debian/ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15566 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-19 07:14:22 +00:00
amy0701 df072efeb1 update testcase for geninitrd
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15563 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-19 06:48:10 +00:00
wanghuaz e88555600a Added the manpage of addkit -i|--inspection option to show the summary of the given kits without adding them.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15560 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-18 08:59:06 +00:00
amy0701 bc1554306b add testcase for statelite installation on x86_64_redhat
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15556 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-18 06:09:52 +00:00
amy0701 a301b0ac25 update testcase for servicenode installation
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15555 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-18 06:03:04 +00:00
amy0701 25bce09a12 add testcase for diskfull install with SN on x86_64 redhat
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15554 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-18 05:58:54 +00:00
amy0701 ba0f3429f7 add testcase for diskless installation with sn on x86_64 redhat
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15553 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-18 05:51:03 +00:00
amy0701 858a39687d add testcase for servicenode installaton for x86_64 redhat
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15552 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-18 05:42:24 +00:00
jwsimpson ce4891f5c2 FSPpower.pm updated to allow sms option
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15541 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-15 21:39:20 +00:00
jbjohnso 21618dde89 Correct Sys::Virt version check
Fix broken LVM behavior when faced with a pre-built LVM VG/PV (as reported by Michael Fenn)

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15536 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-15 19:43:05 +00:00
jwsimpson 8555e39312 lsslp Usage update to add FSP and IMM2 to -s option
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15532 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-15 13:46:24 +00:00
yinle e0e4031f68 fix bug 3428: lsslp -n does not check xCAT DB properly for current objects
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15530 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-15 07:50:43 +00:00
yinle e36818588b fix the issue that lsslp put in the SLP request messages into the "stana" files working with lsslp -z flag
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15525 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-15 06:08:50 +00:00
yinle 74ac16a3ad fix the issue that lsslp put in the SLP request messages into the "stana" files working with lsslp -z flag
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15523 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-15 06:03:54 +00:00
nott 4def0472ed misc cleanup
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15521 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-14 16:03:11 +00:00
bp-sawyers d3b43b6f9c added author to tools help
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15519 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-14 14:20:31 +00:00
xq2005 bda8a294b6 use the default pkglist on debian/ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15517 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-14 08:56:03 +00:00
xq2005 e3073a442f use the default pkglist on debian/ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15516 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-14 08:55:31 +00:00
xq2005 e682391071 support comment in the pkglist on debian/ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15514 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-14 08:51:46 +00:00
jjhua 5e1d6d912c Before adding the os repos and otherpkgs repos, check if the repos were already added by xCAT in the previous run, if yes, update these repos; otherwise, create these repos directly. For the os repo added by addsiteyum, it should be deleted by ospkgs and otherpkgs, the ospkg and otherpkgs will add the os repos point to more directories. After ospkg/otherpkgs is done, do not remove the repos.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15510 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-14 07:46:42 +00:00
jjhua bfcfd7311a Before adding the os repos and otherpkgs repos, check if the repos were already added by xCAT in the previous run, if yes, update these repos; otherwise, create these repos directly. For the os repo added by addsiteyum, it should be deleted by ospkgs and otherpkgs, the ospkg and otherpkgs will add the os repos point to more directories. After ospkg/otherpkgs is done, do not remove the repos.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15509 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-14 07:46:19 +00:00
ligc fe5e749dfc lsdef enhancements to support nics, display and set nics info more easily
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15508 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-14 07:44:32 +00:00
ligc f07a2af37c lsdef enhancements to support nics, display and set nics info more easily
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15507 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-14 07:41:51 +00:00
zhaoertao 0062a95fed update manpage for reventlog <-s>
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15506 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-14 07:31:26 +00:00
xq2005 0226f26fc6 buildkit support external non_native_pkgs on debian/ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15504 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-14 07:22:28 +00:00
zhaoertao 1ecc7a08db add option '-s' for reventlog to output the event from latest to oldest
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15501 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-14 07:07:40 +00:00
daniceexi 35f86b5f09 Add the support for flex
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15500 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-14 06:29:46 +00:00
jjhua 04112294b3 fixed bug 3259, have the addsiteyum be called before running the postscripts, the repos might be needed by some other user customized scripts.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15497 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-14 02:43:26 +00:00
jjhua 0ceaa7466b fixed bug 3259, disabled the the centos internet repos added by the os.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15496 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-14 02:31:11 +00:00
daniceexi a0a6db72ff Fix bug with optional persistence where reset no longer survives
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15493 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-14 02:27:30 +00:00
bp-sawyers 199505c28b automatically build readme for tools
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15491 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-13 23:48:24 +00:00
jwsimpson 0fa5e225b0 Updated to skip Flex power blades when "-s CEC" is specified - also corrected model to not filter on 8236 for flex
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15487 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-13 19:20:05 +00:00
linggao 044848b35d fix sf bug #3422 updatenode -P fails to resolve name of mypostscript file on the MN
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15485 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-13 19:12:32 +00:00
nott 1c34bf0180 changes to finding xcat node name
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15483 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-13 18:40:05 +00:00
daniceexi 8bb98b06de Support site key persistkvmguests
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15481 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-13 13:19:09 +00:00
xq2005 fafee79e70 support makeknowhosts on debian/ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15480 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-13 10:42:14 +00:00
wanghuaz a3875d16d1 Fixing bug 3372:Don't mount /proc fs since it will confuse the rpm or scripts that they are on diskfull nodes.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15479 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-13 10:14:12 +00:00
xq2005 77f206907b sync from trunk
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15473 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-13 06:39:54 +00:00
sjing 810bf5f8b7 backported from trunk.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15471 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-13 06:07:41 +00:00
phamt e02c1b8b67 Fixed cloning issue where code was looking for a case-sensitive NIC address and not modifying the network configuration correctly. Added logging of smcli calls into syslog to improve debugging. Add loop to find the correct partition with file -s /dev/dasd*. This fixes a cloning issue where flashcopy is not instantaneous and flashed copy volumes do not appear immediately when linked.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15470 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-12 23:10:58 +00:00
jbjohnso a67cacfdbe Add centos6.4 discid
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15469 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-12 18:13:59 +00:00
nott c2bb10e13c add xcat node name to /etc/xcatinfo file
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15467 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-12 16:38:03 +00:00
lissav a7e6eafbac add /share/xcat/tools to the path AIX and Linux, for AIX xcatconfig will also handle the update path
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15465 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-12 13:26:09 +00:00
lissav 86d6fd80b3 add /opt/xcat/share/xcat/tools to the path for AIX
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15462 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-12 12:37:12 +00:00
daniceexi f7571ecb81 defect 3195: change the search pattern to the uxspi binary path
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15458 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-12 11:11:00 +00:00
daniceexi b964b3f563 code drop for flex energy management support through cmm snmp interface
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15457 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-12 10:50:18 +00:00
immarvin 773f4d0fc0 add rhels5.9 support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15454 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-12 08:08:05 +00:00
immarvin 8b57285cc1 add anaconda template for compute.rhel5.ppc64
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15452 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-12 07:39:33 +00:00
wanghuaz 0ded16368b Only ppe_rte_license 1.3.0.0 can be used with PTF1.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15451 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-12 07:38:48 +00:00
nott 716a006d2b fix -m and xcat node name issue
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15447 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-11 19:34:21 +00:00
bp-sawyers 4e91fb6cc7 Backporting brian finleys fix of adding / to var path in genesis-scripts doxcat
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15446 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-11 15:49:32 +00:00
zhaoertao 74db2d9120 snyc from trunk
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15445 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-11 01:57:06 +00:00
phamt 10d1f08e23 Added check for return code on Linux dd.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15444 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-08 22:50:16 +00:00
linggao 611aa5f994 More fix for SF bug #3404 configib for aix
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15443 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-08 19:50:19 +00:00
phamt 43de2697b3 Backport z/VM code in trunk to 2.8 branch.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15441 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-08 17:41:44 +00:00
wanghuaz 91fbf65bbf Sync xcat-buildkit files from trunk to 2.8 branch
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15439 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-08 15:18:12 +00:00
nott 6c2c51d3d5 clarify results of -f and -r options
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15438 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-08 15:14:27 +00:00
lissav 00c79814f4 Add info to the help
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15436 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-08 11:37:59 +00:00
lissav b17cbaf52c fixed example to match new location of traceleve*
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15435 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-08 11:33:27 +00:00
jjhua 5eaf51ad77 add the image name and timestamp into diskless image when it is packed
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15433 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-08 06:06:39 +00:00
immarvin e9cae5c5d6 correct some format issues
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15432 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-08 03:31:54 +00:00
immarvin 07295f7953 support genimage -l for dracut mode
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15431 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-08 03:14:46 +00:00
xq2005 036bab9e21 sync from trunk
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15430 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-08 03:11:12 +00:00
immarvin a2eb94fd1c support genimage -l for dracut mode
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15429 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-08 03:10:32 +00:00
jjhua baca52bda8 support multiple paths of pkg for centos compute
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15428 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-08 03:09:35 +00:00
xq2005 fb420f6330 sync from trunk
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15427 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-08 03:06:21 +00:00
xq2005 ed1fa52e8a sync from trunk
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15425 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-08 03:05:08 +00:00
xq2005 7137646f44 sync from trunk
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15424 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-08 03:04:00 +00:00
xq2005 10e6ad65a4 sync from trunk
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15423 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-08 03:02:07 +00:00
xq2005 2451236800 sync from trunk
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15422 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-08 03:00:17 +00:00
xq2005 8bab44fcbc sync from trunk
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15421 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-08 02:58:06 +00:00
xq2005 ef5351655c sunc from trunk
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15420 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-08 02:56:30 +00:00
xq2005 d641143c50 sync from trunk
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15419 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-08 02:54:24 +00:00
xq2005 0b3016522b sync from trunk
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15418 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-08 02:48:36 +00:00
xq2005 4ce55c6175 sync from trunk
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15417 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-08 02:45:16 +00:00
wanghuaz 11964eed4f Create otherpkgdir if it doesn't exist on management node or service node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15416 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-07 21:00:39 +00:00
bp-sawyers 1416c62968 backport genesis-scripts spec change to not hardcode version
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15414 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-07 20:37:58 +00:00
bp-sawyers 861545f333 update xcatdb man page regex description
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15413 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-07 20:18:48 +00:00
lissav c8ffae5242 fix defect 3403
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15412 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-07 14:29:13 +00:00
lissav 870aec0318 fix defect 3403
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15411 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-07 14:27:59 +00:00
linggao cba4b90473 fixed SF bug #3367 so that imgimport and imgexport will get all the attributes from the osimage and linuximage tables
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15407 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-07 00:19:38 +00:00
linggao 9434376e11 fixed SF bug #3404 configib: Update xCAT IB configuration for AIX IB APAR IV36529
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15404 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-06 20:17:24 +00:00
lissav caa66f419a add sudo dcp -F support SF 3403
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15403 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-06 17:50:22 +00:00
linggao 92b22201f6 fixed SF bug #3398 updatenode -P fails if hostname on the node is FQDN
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15401 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-06 15:20:58 +00:00
xq2005 f688bd1efe fix infinite provision problem after use kit
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15398 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-06 10:31:40 +00:00
immarvin 8a1841c238 prevent remount root filesystem in rw mode during reboot
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15397 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-06 08:50:45 +00:00
sjing 83c02ade0d support imaged provisioning.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15390 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-06 05:27:55 +00:00
phamt cb803eff21 Fixed post-script to echo default gateway to /etc/sysconfig/network/routes file in mkay4z script.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15388 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-05 15:32:24 +00:00
immarvin cbcf638b34 rhels 6.4 support for ppc64 and x86_64
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15386 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-05 07:43:11 +00:00
immarvin fed0c20efd support -i for pping and ppping
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15381 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-05 05:29:49 +00:00
phamt b1b5e12fa4 Moved mkay4z script into /opt/xcat/share/xcat/scripts directory.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15373 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-04 19:57:00 +00:00
lissav bf8182e9ed fix defect 3401
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15372 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-04 16:48:06 +00:00
sjing e0b498898d support imaged provisioning.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15369 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-04 07:39:54 +00:00
sjing 828417286b support imaged provisioning.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15367 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-04 05:15:38 +00:00
sjing 0f1f11b01a support imaged provisioning.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15366 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-04 05:13:00 +00:00
sjing 17df46078f support imaged provisioning.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15365 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-04 05:08:13 +00:00
sjing 988acc9cf9 support imaged provisioning.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15364 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-04 05:03:52 +00:00
jjhua 1d200f5e4f support multiple paths of osimage on centos6 diskfull installation
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15363 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-04 03:23:32 +00:00
jjhua 6e64b59a07 support multiple paths of osimage in rhels diskfull installation
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15362 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-04 03:17:19 +00:00
jjhua 7e375c5162 support multiple paths of osimage in rh diskfull installation
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15361 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-04 03:09:01 +00:00
daniceexi 233ff4faf1 defect 3389: support the sles with tightvnc
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15359 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-04 03:03:01 +00:00
jwsimpson 59130c5163 Updated lsslp.pm to not report CECs for flex p blades. Also added support for IMM2
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15358 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-01 22:04:12 +00:00
jbjohnso c18b476889 Have xCAT support ssl parameter settings in site table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15356 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-01 21:26:35 +00:00
phamt f586f6453b Added range column into print output.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15354 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-01 21:22:14 +00:00
phamt 016c25940a Fixed nodeset to copy the contents of xcatinstallpost and xcatpostinit1 into the autoyast or kickstart template, allowing postbootscripts to be run.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15352 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-01 21:00:51 +00:00
nott 64e2391d02 add support for running local install script
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15351 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-01 19:26:29 +00:00
linggao 8db73414b3 fixed SF bug #3392 rmimage removes tftpboot kernel file that may be used by other images
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15349 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-01 19:12:27 +00:00
nott ba6778494f new aix software update script
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15345 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-01 18:25:33 +00:00
lissav d19df65b7a fix defect 3398
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15344 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-01 17:34:38 +00:00
linggao dfd9d9a7a8 Fixed SF bug #3159 rcons can not work when node.conserver is set to MN
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15341 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-01 15:29:42 +00:00
lissav 372a951dee adding this new tool from Brian Finley. He put it in trunk
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15340 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-01 13:50:43 +00:00
lissav ccd2746668 defect 3397
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15339 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-01 13:48:47 +00:00
lissav a6a5ddfca9 defect 3397
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15338 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-01 13:47:28 +00:00
lissav 463e95e1cb defect 3397
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15337 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-01 13:47:08 +00:00
lissav 0dd99cd1cf defect 3397
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15336 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-01 13:46:18 +00:00
lissav 1919c0b25d defect 3397
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15335 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-01 13:44:02 +00:00
lissav 76115f17d0 add crontab -l
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15333 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-01 13:39:11 +00:00
lissav 1e19da4709 Defect 3397
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15331 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-01 13:25:58 +00:00
lissav 739f2f4318 Defect 3397
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15330 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-01 13:24:12 +00:00
lissav e469851b25 Defect 3397
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15329 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-01 13:23:34 +00:00
lissav 79c8fec75a Defect 3397, make samples directory
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15328 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-01 13:15:46 +00:00
lissav 016f967cce add additional ssl settings for xcatd SF 3396
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15327 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-01 13:07:21 +00:00
jjhua 7901088307 add some information of multiple paths to linuximage.pkgdir
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15325 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-01 09:15:18 +00:00
jjhua dd7d473d49 support multiple paths of osimage in sles diskfull installation
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15324 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-01 09:12:20 +00:00
jjhua 1ecd2f5164 support multiple paths of osimage in sles diskfull installation
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15322 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-01 09:07:58 +00:00
jjhua 841d58be57 support multiple paths of osimage in rh/sles diskfull installation
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15321 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-01 09:04:02 +00:00
ligc 58e96b4a07 code drop: IPv6 support on Linux
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15319 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-03-01 08:55:03 +00:00
lissav b6d19b4c8e fix defect 3380, add support for NoErrorPrefix, NoWarnPrefix
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15311 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-28 21:16:30 +00:00
lissav 38d37ad6ff add fanout support defect 3395
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15310 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-28 21:11:04 +00:00
lissav 2b4030ce0e Support MN in Servicenodetable https://sourceforge.net/apps/mediawiki/xcat/index.php?title=Support_Management_Node_in_the_servicenode_table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15309 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-28 21:07:29 +00:00
lissav c03ae7778d Support MN in Servicenodetable https://sourceforge.net/apps/mediawiki/xcat/index.php?title=Support_Management_Node_in_the_servicenode_table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15308 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-28 21:06:08 +00:00
lissav 905ec1d14f Support MN in Servicenodetable https://sourceforge.net/apps/mediawiki/xcat/index.php?title=Support_Management_Node_in_the_servicenode_table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15307 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-28 21:04:55 +00:00
lissav 0cb0a17479 add fanout support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15306 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-28 20:55:30 +00:00
lissav 8c7cf3ae29 add fanout support, cleanup and fix defect 3362
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15305 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-28 20:48:25 +00:00
lissav 5acdc18ced add fanout support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15304 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-28 20:47:12 +00:00
lissav 191dcde3dc fix defect 3362
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15303 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-28 20:45:45 +00:00
lissav 102c33be71 Fix 3052 and add sudo for dcp and fix 3380
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15302 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-28 20:37:19 +00:00
lissav be9f165796 Fix 3052 and add sudo for dcp and fix 3380
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15301 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-28 20:35:42 +00:00
lissav 7f926c1346 Fix 3052 and add sudo for dcp and fix 3380
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15300 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-28 20:33:35 +00:00
phamt 80254362a0 Added function to print to syslog.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15299 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-28 16:07:26 +00:00
bp-sawyers e9c2d13e0c Remove newline in Version file
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15296 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-28 15:25:11 +00:00
bp-sawyers e747066b32 Update 2.8 branch version to 2.8.1
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15293 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-28 15:04:29 +00:00
phamt 64cf838838 Search ifcfg file by case-insensitive address.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15292 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-28 14:47:48 +00:00
jbjohnso 6f3e2fb2f0 Revert "Have xCAT support ssl parameter settings in site table"
This reverts commit 7f18ae6d6f.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15269 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-27 15:19:08 +00:00
jbjohnso 7f18ae6d6f Have xCAT support ssl parameter settings in site table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15266 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-26 21:12:39 +00:00
jbjohnso b906c24816 Certain nmap output with ipv6 could leave nodename with a trailing \n, correct
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15252 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-25 16:26:31 +00:00
phamt 476c3387cc Fixed cloning where fdasd is need for vanilla disks.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15246 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-24 02:02:30 +00:00
phamt ad004fa062 Fixed cloning where fdasd is need for vanilla disks.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15245 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-23 21:00:48 +00:00
jbjohnso 6e96acde8a Correct typo
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15231 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-20 19:27:45 +00:00
jbjohnso 4feb1eacf1 Add objdef for storage.osvolume
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15229 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-20 19:13:15 +00:00
bp-sawyers 9ba0674087 update for latest mcp build
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15206 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-18 22:45:49 +00:00
mellor 77f1b1b726 defect 3371 - fix osimage check for chkkitcomp
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15204 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-18 21:16:51 +00:00
mellor f8967bc0b6 defect 3376 - need to load XCATSITEVAL global in upd listener process
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15202 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-18 20:27:20 +00:00
leiaibj 863ba244c3 The function isValidHostname, it can not detect illegal hostname like 'a=b-c'
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15197 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-18 02:04:08 +00:00
phamt 47ab424f70 Fix MAC address prefix.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15192 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-15 23:11:17 +00:00
phamt bae3e6b789 Fix MAC address prefix.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15190 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-15 22:49:46 +00:00
phamt 093b05b784 Fix dependency issue with z/VM build.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15189 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-15 20:22:31 +00:00
phamt 3948b72c22 Updated rmigrate man page for z/VM.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15186 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-15 18:13:01 +00:00
phamt 093fa0578c Fixed inventory tab.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15184 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-15 17:20:22 +00:00
phamt dcd1acab69 Enable osimage specification on nodeset.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15182 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-14 20:27:37 +00:00
jbjohnso 5dbcb3dd65 Have xCAT WS support credentials via header rather than uri
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15179 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-14 19:19:13 +00:00
phamt 2f218a06f4 Fixed problem updating zFCP pool.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15176 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-14 16:10:08 +00:00
phamt 6c8f3298fa Fixed device address to be lower case because autoyast is case-sensitive.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15175 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-14 15:17:15 +00:00
phamt a4000ce977 Fixed SCSI/FCP devices in nodeset.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15171 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-14 05:19:00 +00:00
phamt 7ba40528e4 Added option to query all accessible LUNs. Fixed query WWPNs.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15170 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-14 04:09:07 +00:00
phamt 7fd00ce8ae Renamed function to open dialog to delete profile. Added new line at end of directory entry.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15167 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-13 19:41:21 +00:00
jbjohnso c2dec7b40b Add some cautionary wording aronud incomplete function
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15166 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-13 17:56:52 +00:00
phamt 4a3919e899 Fixed synchronization issue on self-service page.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15165 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-13 17:24:39 +00:00
lissav 4da96c27a3 add comments about no case
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15163 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-13 12:05:33 +00:00
phamt 72b785338b Fixed add disk to pool.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15160 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-12 22:53:08 +00:00
phamt 711b13383f Added input verification. Fixed add vSwitch option.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15159 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-12 22:15:52 +00:00
jbjohnso 8253aee359 Fix missing mandatory columns in storage table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15144 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-12 15:38:28 +00:00
jbjohnso 07fa06c4dc storage table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15143 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-12 15:38:19 +00:00
phamt 184487e37e Fixed input value for xCAT UI. Allow code to handle different orders in /etc/hosts.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15142 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-11 22:49:44 +00:00
lissav 05ade551f4 fix bug 3365
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15137 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-11 19:07:08 +00:00
phamt 6aee46151c Fixed input value.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15135 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-11 03:57:23 +00:00
phamt 550b50149c Switched over to using z/VM system names vs. zHCP names.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15134 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-11 03:25:00 +00:00
phamt ba121aef4a Added tooltips. Fixed add/remove VLAN/vSwitch. Updated networks table.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15132 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-11 00:22:33 +00:00
phamt 40a9d41e0b Zero out hanging processes in cookie. Make zFCP devices persistent in udev.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15126 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-08 23:42:49 +00:00
jbjohnso 84ba7a178c Fix mistake in the win2k8r2 template
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15125 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-08 21:21:46 +00:00
jbjohnso e11b310efd Fix windows.pm to be drive letter agnostic in installs
Fix fixupunattend.vbs to not echo

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15124 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-08 21:21:37 +00:00
jbjohnso 232f325351 Fix mistake in variable name in windows.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15123 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-08 21:21:26 +00:00
jbjohnso b56f7e9e94 Make the Windows templates consistently leverage the AD/Local/DisableAdmin behavior
Eliminate the 'UEFI' only templates, have a single template get modified at runtime via a vbscript

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15122 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-08 21:21:14 +00:00
jbjohnso 68b6032dbb Fix Template to add a missing \r to windows templates
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15121 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-08 21:21:01 +00:00
phamt 364e652e59 Fixed update to udev rules for zFCP devices.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15119 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-08 20:42:26 +00:00
phamt 29f32d10ae When assigning free zFCP device channels, check if device channel is in use in the pool.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15116 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-08 17:29:09 +00:00
phamt aba74b7d52 Fixed argument passing delimiter. Added warnings to the UI. Added check for userprefix file.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15111 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-08 05:54:14 +00:00
leiaibj 1616e26c94 Fix a bug for hostname validation, merge into 2.8 branch
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15108 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-08 01:57:33 +00:00
jbjohnso 86042cc1f4 Add windows to fsm build variant
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15105 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-07 22:23:31 +00:00
jbjohnso fa2eeecb0d Fix various 'strict' issues in windows.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15102 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-07 21:31:58 +00:00
jbjohnso 509934b9d5 Give vncviewer an extended period of time to get around to reading the password file before cleaning it up
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15101 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-07 20:55:17 +00:00
jbjohnso bb90fdf022 Add a script to sub in different mount letters and UEFI/plain partition plans into a unified windows template scheme
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15098 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-07 19:25:20 +00:00
lissav c24aadccfc remove what should have been a 2.9 checkin
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15092 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-07 12:38:51 +00:00
lissav cbcb75cdb5 remove what should have been a 2.9 checkin
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15091 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-07 12:37:58 +00:00
lissav 1e9af7be3b remove what should have been a 2.9 checkin
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15090 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-07 12:36:47 +00:00
lissav 7c678fd174 add -E hierarchical support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15089 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-07 12:34:00 +00:00
lissav 982d3f1aed add -E hierarchical support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15088 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-07 12:32:39 +00:00
lissav e7e4071365 add --fanout on updatenode and code improvements
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15087 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-07 12:31:18 +00:00
lissav 136e94ab83 add --fanout on updatenode
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15086 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-07 12:23:59 +00:00
lissav 33193fc495 document --fanout on updatenode
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15085 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-07 12:23:00 +00:00
lissav 4f6485c841 hierarchical -E support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15084 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-07 12:12:36 +00:00
bp-sawyers e0390d78e9 A https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15081 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-06 20:39:40 +00:00
lissav 10f3c7dbad fix defect 3362, a portion
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15080 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-06 19:46:29 +00:00
lissav 95e41a79f4 fix defect 3362, a portion
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15079 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-06 19:44:34 +00:00
linggao 1ff3a1b106 finally fixed defect 3357
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15078 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-06 19:26:29 +00:00
jbjohnso 31b23bb7e6 Remove extraneous data from 2012 template, no urgency to suggest a rebuild of 2.8 yet just for this
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15077 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-06 16:21:07 +00:00
wanghuaz 30d43bd380 Backup the kit source files, don't need to rebuild xcat.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15076 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-06 16:02:45 +00:00
wanghuaz 5d124952e2 Backup the kit source files, don't need to rebuild xcat.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15075 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-06 15:52:59 +00:00
phamt 8707039812 Fixed man page for rinv. Fixed SSI query.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15074 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-06 04:20:13 +00:00
phamt 27474cd70b Fixed smcli call name.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15073 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-06 02:59:52 +00:00
phamt 74ce98b7ef Updated description of monitoring tools.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15072 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-06 00:43:21 +00:00
phamt 8444a7435b Fixed man pages for z/VM.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15071 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-06 00:04:19 +00:00
mellor 24f864f17f buildkit - add support for kittarfilename attribute
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15070 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-05 21:46:01 +00:00
bp-sawyers ddb9cb40b4 fixed genesis base build for mcp subset
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15069 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-05 21:03:12 +00:00
linggao e55012dac7 parcially fixed defect 3357
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15068 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-05 20:58:46 +00:00
jbjohnso 2bd19274ac Fix problem where missing prodkey table would induce failure
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15067 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-05 18:52:41 +00:00
jbjohnso f281378f89 Fix problem where windows plugin did not honor tftpdir in site
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15066 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-05 18:41:50 +00:00
linggao ed299052be fixed defect 3360
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15065 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-05 18:34:12 +00:00
phamt 727de3ad74 Updated man pages for z/VM.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15064 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-05 18:05:43 +00:00
phamt a28999ba55 Allow multiple WWPNs to be specified in zFCP pool.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15063 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-05 16:02:21 +00:00
phamt 23b37343b2 Updated xCAT-UI with new functionality for z/VM.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15061 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-05 15:43:57 +00:00
jbjohnso 6f8f0eac9e Have screenlog.0 be created by default
Change bmcsetup to not blindly give up on lan channel 16

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15060 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-05 14:55:59 +00:00
xq2005 5cd7d72d51 run postscripts on debian/ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15059 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-05 13:02:26 +00:00
jjhua 464bb52690 fixed bug 3354, for the new mellanox ofed iso MLNX_OFED_LINUX-1.5.3-4.0.22.3-rhel6.3-ppc64.iso
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15058 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-05 11:24:12 +00:00
jjhua f496b3a795 fixed bug 3350, for the new mellanox ofied iso MLNX_OFED_LINUX-1.5.3-4.0.22.3-sles11sp2-x86_64.iso
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15057 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-05 11:22:28 +00:00
wanghuaz 1ff6be92c3 Fixing bug 3356: handle the input string from kit kit.conf/kitcomponent exlist/postbootscritps/.. files more strictly. 2. Fixing bug 3347 in kit migration, removing the original kitcommponents instead of the adding kitcomponent
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15056 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-05 09:49:33 +00:00
amy0701 3712a03eb0 support nfsv4 for testcase
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15055 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-05 09:08:39 +00:00
amy0701 2cc0280af4 update testcase output check for nimnodeset
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15054 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-05 08:55:44 +00:00
jjhua bf06d6b90a fixed bug 3358. set retry=0 every download
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15051 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-05 03:21:22 +00:00
phamt 441e292e08 Allow multiple WWPNs to be specified.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15050 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-05 02:03:53 +00:00
phamt 0866e19b67 Fixed sudo bug when echoing to device file.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15049 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-05 00:24:04 +00:00
phamt 57d12a4e47 Fixed fcpdevices query bug. Added FCP channel range column into FCP pool.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15048 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-04 22:31:40 +00:00
mellor b1173a0b28 defect 3359 buildkit addpkg prints wrong filename in error msg
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15047 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-04 21:42:24 +00:00
lissav 852b07a725 code calls download_mypostscript routine with wrong input order
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15046 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-04 20:18:59 +00:00
jbjohnso 0d8d4241fb Fix non-DOS line terminators in windows template data fill in
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15045 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-04 18:22:12 +00:00
phamt 4eb453bfde Added new functionality into z/VM plugin, i.e. migrate, zFCP support enhancements, managing storage and network devices, no-root login support, improved security, etc.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15044 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-03 02:16:05 +00:00
phamt 7032e938f0 Added script to create sudoer on nodes.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15042 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-03 00:02:57 +00:00
jbjohnso f060cd13cf Have kvm tolerate trailing / on vm.storage dir:// urls
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15040 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-01 21:31:08 +00:00
jbjohnso 3f87212616 Support SAS and PV SCSI for vmware guests
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15039 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-01 21:02:29 +00:00
jbjohnso f3e44ca4e6 Fix Windows template driver path to be consistent with suggested driver layout. This is a backwards compatible change.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15038 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-01 20:23:25 +00:00
jbjohnso 885277c218 Fix characterization of hyper-v
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15037 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-01 19:11:46 +00:00
jbjohnso 91d1302622 Fix problem where Hyper-V was mis-characterized as 'Linux'
Have osdistro table recall the OS version number of Windows operating systems.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15036 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-01 18:45:36 +00:00
jbjohnso 6628d91671 Support generic recognition of RHEL6.x media
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15035 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-01 15:25:59 +00:00
lissav 8435630bd0 document runimage and also add the deprecation of the install,netboot,statelite attributes. Change example.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15034 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-01 12:43:36 +00:00
wanghuaz f23d37e410 Fixing bug 3339: check if the kitomponent is existing before adidng it.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15033 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-01 09:43:17 +00:00
ligc 8c8319ca05 fix for bug 3345: RHEL 5.8 diskless could not boot blacktip nodes, because of the missing be2net driver
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15032 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-01 09:03:13 +00:00
xq2005 a1b47e3ed1 support postscripts return status on ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15031 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-01 08:17:57 +00:00
daniceexi 80b9c0f06d Update the description of linuximage.partitioinfile for localdisk support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15030 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-01 07:06:23 +00:00
xq2005 23a6061209 update-grub can configure the console automaticlly on ubuntu/debian, the serialspeed is not a require attribute now, bug 3336
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15029 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-01 06:56:01 +00:00
billwajda 908a792a16 fixed configeth to correctly create ip alias on aix
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15028 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-01 04:25:18 +00:00
jbjohnso 438595e0aa Fix problem where SLES11 cannot wvid to modern IMMs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15027 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-31 16:28:29 +00:00
lissav 59e601e839 document the site table dhcplease attribute
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15026 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-31 15:18:10 +00:00
billwajda 07c4a8419b fixed configeth to correctly create ip alias on SUSE/SLES
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15025 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-31 15:17:09 +00:00
leiaibj d0d63a6d97 bug fixing: 1. nodechprofile can not update imageprofile and network profile; 2. noderegenips should call make* commands to remove node related records first and then add them back again, which there are some changes in table nics
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15024 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-31 07:58:08 +00:00
daniceexi 32e11e9d60 defect 3341: Add notes in the man page for how to use softoff and suspend function
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15023 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-31 06:31:30 +00:00
jbjohnso 625bbecc44 On rmvm, do not destroy CDs
On storage block device creation, disable cache for new disks but enable cache for non-detached qcow2 for read cache benefit at the host layer

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15022 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-30 19:37:33 +00:00
jbjohnso ef9100c56e Correct problem where /// regexes corrupt other substitutions
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15021 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-30 16:33:02 +00:00
jbjohnso ea6d9f7081 Have KVM storage support default to cache=none for now
Fix lvm to use raw rather than qcow2, since qcow2 makes no sense for LVM

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15019 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-30 16:09:18 +00:00
jbjohnso 4807663ce6 Have KVM support LVM volumes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15018 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-30 16:02:09 +00:00
billwajda 1ca37edf75 fixed pattern match problem in confignics
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15017 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-30 11:58:48 +00:00
wanghuaz 6166ceba50 Fixing a typo which makes the postinstall script always be overwritten by new kitcomponent
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15016 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-30 06:23:32 +00:00
jbjohnso 50ca1f5737 Have IPMI tolerate incorrect rqaddr field to communicate with buggy BMCs that don't comply to the spec
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15013 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-29 21:23:38 +00:00
jbjohnso e3952df651 Have SLP accept unicast fragmented UDP packets to get more data
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15010 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-29 19:55:24 +00:00
jbjohnso 60089fd7c2 Add Guest ID map for Windows 2012, 8, and ESXi itself for vmware support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15009 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-29 14:57:26 +00:00
mellor 4ee58f5941 defect 3334 - add kitlicense support to buildkit
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15008 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-29 13:42:45 +00:00
daniceexi 9a9b28a9f3 defect 3333: use th signal 12 (USR2) to stop the install monitor process
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15007 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-29 02:03:28 +00:00
bp-sawyers 281319225b added script to to genesis-builder to determine the rpms we included from mcp
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15006 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-28 22:02:44 +00:00
jbjohnso 3c92465b9d Fix problem where profilednodes would 'BUG' the discovery process
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15005 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-28 21:38:13 +00:00
bp-sawyers b52aac1cb6 updates to xCAT-genesis-builder to build a version based on mcp
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15004 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-28 19:06:56 +00:00
jbjohnso 1886fa3c54 Have Template get a new directive: MANAGEDADDRESSMODE for use in certain appliance applications
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15003 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-28 18:58:00 +00:00
asirxing 125dcfa5bb Filter out the package group(start with @) in pkglist.cfm file
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15002 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-28 06:56:36 +00:00
ligc 85e782d793 fix for bug 3158: add several examples in makeconservercf manpage
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15001 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-28 03:12:46 +00:00
jbjohnso 2041f44014 Fix issues around prejoin=0, allow for multi domain support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15000 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-25 21:04:12 +00:00
jbjohnso 3496d08373 Add support for xcatd to recognize and unpack gzip compressed payloads
Put back in extended NIC information, but compress it

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14999 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-25 14:37:17 +00:00
xq2005 d0652c1e3a build genisis initrd on ubuntu/debian
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14998 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-25 14:31:03 +00:00
jbjohnso d6845031fb Disable new nic element to avoid packet fragmentation, will revisit how to do this later
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14997 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-25 13:43:31 +00:00
xq2005 63fe632581 create repo on debian/ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14996 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-25 13:25:26 +00:00
leiaibj b327574f26 1. support minus network incremental value. 2. resolve can not discover nodes issue. 3. create new command noderegenips: for supporting reconfigure nic ips without reinstall
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14994 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-25 08:55:14 +00:00
creativezj 0dd3b29d1f modify chain table while provision node with BMC
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14993 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-25 08:20:15 +00:00
jjhua e4b2d44ac6 fixed bug 3322
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14992 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-25 07:40:18 +00:00
jjhua d9c27df593 fixed bug 3322
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14991 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-25 07:38:59 +00:00
jjhua 157b6b6fdd fixed bug 3309. export the empty varialbe
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14989 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-25 02:07:20 +00:00
jbjohnso d478707749 Fix templates not using WINACCOUNTDATA inadvertently disabling local admin access
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14988 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-24 20:09:19 +00:00
jbjohnso bc33e681e0 Fix incorrect partition id in the Win2012 Datacenter template
Correct the disable local admin XML from Template.pm

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14987 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-24 19:10:40 +00:00
bp-sawyers 83d5fe80bc updated pasu to get the ipmi attribs from the db
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14985 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-24 16:46:15 +00:00
nott 51ffba43f5 nicaliases not yet implemented
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14984 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-24 15:40:27 +00:00
nott a40c9c08ed add support for | in nics table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14983 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-24 14:54:25 +00:00
lissav cb75f60dd3 Change displaying the error message when running updatenode -Psysfiles to logging it
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14982 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-24 13:06:06 +00:00
lissav b5ad559476 add in the missing GROUP export
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14981 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-24 12:09:37 +00:00
wanghuaz a881b225f2 Added new serverroles as dicussed.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14980 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-24 10:29:19 +00:00
wanghuaz 526e1fb67d Now kitcomponent and osimage could specify multiple serverroles, addkitcomp and chkkitcomp will match their every serverrole
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14978 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-24 10:00:25 +00:00
wanghuaz 8205915a66 Update kit examples to disable checksum and restart on system x.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14977 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-24 07:47:03 +00:00
ligc 29d5191d91 fix for bug 3320: perl syntax problem in configeth
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14976 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-24 07:29:35 +00:00
xq2005 93a23bc8d2 enable ip forwarding on debian/ubuntu when running xcatconfig
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14973 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-24 05:14:34 +00:00
wanghuaz bb9d1f8cf1 Use shorter serverrole names from now on
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14972 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-24 01:25:33 +00:00
jjhua 278064041c after discussion of bug 3309, not put the empty variable in the mypostscript file
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14971 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-24 01:13:22 +00:00
linggao 150207c0d5 bug fix for configib
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14970 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-23 22:14:26 +00:00
bp-sawyers 001c60917c Added new pasu (parallel ASU) cmd and man page
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14969 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-23 22:03:17 +00:00
jbjohnso 698e5b21c5 Fix issues with startnet.cmd
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14968 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-23 19:56:37 +00:00
mellor 09696bead2 updated list of kitcomponent serverroles in comments
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14967 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-23 18:55:20 +00:00
linggao ba48f4a0d8 Make routes persistent for sles/rh/ferdora/centos for makerouts command.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14966 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-23 18:36:42 +00:00
jbjohnso 6849011953 Fixes for genimage.cmd
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14965 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-23 15:25:01 +00:00
jbjohnso 9a76937088 Add keyEncipherment to keyUsage since Java expects it
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14964 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-23 15:02:32 +00:00
jbjohnso b042a85a69 Hooks for startnet.cmd to recognize and accept optical drive provided script update as appropriate
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14963 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-23 14:58:30 +00:00
lissav ebd7eb2d1f move comment before first example
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14962 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-23 11:59:30 +00:00
jjhua c8c64a5afe fixed bug 3309, export the empty varialbe
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14960 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-23 08:17:01 +00:00
ligc 5745d823ae update some typos in passwd.cryptmethod description
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14959 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-23 08:14:48 +00:00
ligc d8896b1df8 provide a way to disable the warning message when run nodeset install/netboot/statelite
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14958 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-23 08:00:24 +00:00
ligc ff2affd551 provide a way to disable the warning message when run nodeset install/netboot/statelite
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14957 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-23 07:52:19 +00:00
leiaibj 37f35f731a update man-pages for profiled nodes releated commands
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14956 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-23 07:20:41 +00:00
jjhua a32033c27c fixed bug 3309, remove the NICCOMMENTS
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14955 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-23 07:16:37 +00:00
jjhua 8ec0fc9c97 fixed bug 3309, remove the comments line which begins with ##
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14954 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-23 07:14:53 +00:00
jbjohnso 1225448e75 Restory 'legacy' mac tag for backwards compat if needed
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14953 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-22 21:19:11 +00:00
jbjohnso f3fffcefed Correct typo in XML for discovery
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14952 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-22 21:18:57 +00:00
lissav fb3c8248b5 improvements to the template file
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14951 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-22 20:13:03 +00:00
nott 1cc7ab18cd add multi-domain info
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14950 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-22 19:53:56 +00:00
billwajda 825f8d742b updates for confignics to support configib
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14949 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-22 19:03:07 +00:00
wanghuaz 0eccaea186 Fixing bug 3296: cleanup a variable that used in a loop to remove the duplicated packagenames
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14948 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-22 16:48:48 +00:00
mellor 8fc0cd9202 defect 3297: buildkit buildrepo on sles needs Group in spec file; also, fixed xCAT-buildkit spec file to install correctly on both SLES and RH (rpmbuild command is in different pkgs)
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14947 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-22 15:35:43 +00:00
nott 61eb8c2907 add multi-domain and nics info
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14945 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-22 14:22:59 +00:00
linggao 181f5a05b6 more fix for configib
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14944 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-22 13:25:57 +00:00
bp-sawyers 11dd240272 make sure /etc/xcat exists before xCAT-genesis-scripts tries to touch a file there
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14943 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-22 12:24:50 +00:00
jjhua 5a88a5cea2 fixed bug 3300
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14942 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-22 08:31:51 +00:00
jjhua 953f01b3f8 fixed bug 3300
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14941 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-22 08:30:27 +00:00
wanghuaz 3c8ad92ef8 Fixing a typo in comments
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14940 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-22 02:35:10 +00:00
creativezj ca303919a3 fix #211459 wrong message while import node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14939 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-22 01:56:13 +00:00
wanghuaz c0f35a2de4 Updated ppe kit template for other teams's reference
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14938 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-22 01:10:42 +00:00
wanghuaz ddcb538720 hpc integration is replacing by kit. so the duplicated setting in xcat-server such as /etc/fstab generation should be enabled after hpc integration is used.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14937 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-22 00:37:38 +00:00
wanghuaz e19bdb1181 hpc integration is replacing by kit. so the duplicated setting in xcat-server should be enabled after hpc integration is used.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14936 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-22 00:36:15 +00:00
wanghuaz 35d771323e Copy the exlist from IBMhpc to xCAT-server to be the default exlist.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14935 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-22 00:21:15 +00:00
linggao 3bb94e2487 made configib ready for config one nic at a time.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14934 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-21 20:48:04 +00:00
wanghuaz 78cf402b58 A small followup to last week's check in for external non_native_pkgs support.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14933 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-21 20:05:22 +00:00
nott 3f4bb3a0ae add note about search field of resolv.conf
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14932 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-21 19:22:38 +00:00
jbjohnso 14ffb71f0e Have Windows domain allow the less secure 'securejoin' if indicated in site (can be rendered secure in *very* specific circumstances).
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14931 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-21 14:34:37 +00:00
bp-sawyers beda697525 fix pcm embed build
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14930 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-21 12:38:10 +00:00
xq2005 68006a767d build debian dependency packages
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14928 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-20 08:38:40 +00:00
xq2005 9c6f08c75e build debian dependency packages
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14927 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-20 08:34:54 +00:00
xq2005 7ec3a97bdc modify the dracut install file for debian
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14926 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-19 03:56:34 +00:00
bp-sawyers 3cf4f8f448 Fixed error msg when getpostscript.pm can match node name, to show original name
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14924 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-18 22:22:33 +00:00
linggao 171017442d more on configib
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14923 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-18 21:25:08 +00:00
linggao 672fd91279 added configib postscript
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14922 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-18 18:06:10 +00:00
bp-sawyers 27a7ca0556 Fix bugs 3284 and 3285 - xCAT-genesis-scripts-x86_64 trying to run mknb when xcatd is not ready
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14921 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-18 17:26:23 +00:00
nott 50890c8a4a add multi-domain support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14920 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-18 15:22:04 +00:00
jbjohnso 9c023486d9 Fix some mistakes in the SSL certificate tweaks
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14919 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-18 14:31:13 +00:00
wanghuaz 48b64fc79a Did two things: 1. renmae the rpm spec and source directory to kitcomponent, which is more readable. 2. clean up the tmp and rpmbuild directory in the final kit directry.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14918 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-18 12:04:35 +00:00
wanghuaz 2cb196c6bf Fixing two problems: one is buildkit fails on SLES. we need to create several tmp directories before issuing rpmbuild command for rpmbuild command on SLES. second problem is a typo while creating the source packages.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14917 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-18 08:59:49 +00:00
asirxing 4ea1e8d0e6 Support #INCLUDE tag in pkglist.cfm file
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14916 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-18 08:13:08 +00:00
jjhua 8d6ca24d40 fixed bug 3288. when xdsh with -e and -E, the environment file should be copied to the target-node firstly through fork_no_output()
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14915 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-18 03:37:00 +00:00
jbjohnso 00710fc339 Correct previous attempt to conditionally populate scriptcontents. Moving the scope inside the conditional obliterated it from outside
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14914 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-17 21:43:27 +00:00
jbjohnso 05796434a8 Have xcatd not print warnings in the event of non-resolvable cirumstance
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14913 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-17 21:43:09 +00:00
wanghuaz 445211b036 Enhanced non_native_package support. previously non_native_package don't support external packages, so it doesn't work with incomplete kit build. Now user could specify a hardcode 'EXTERNALPKGS:' in non_native_package attribute. for example, in buildkit.conf, you can write like non_native_pkgs=EXTENRALPKGS:gpfs_base-xxxxxxx.update.ppc64.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14912 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-17 17:09:31 +00:00
jjhua a60b0c597d fixed bug 3291. in Linux, if the precreatemypostscripts is not set or set to 0 in site table, it will get the mypostscript.nodename fistly. If not get it, use getpostscript.awk version2 to generate the mypostscript file named mypostscript.nodename.tmp, then get it
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14911 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-17 09:31:00 +00:00
jjhua 9b7b07a6ee fxied bug 3291 in AIX env. There is not precreatemypostscripts=1 in site table for AIX. So get the mypostscript.nodename.tmp directly.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14910 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-17 09:23:39 +00:00
jjhua 24a5be82a2 fixd bug 3291, when run getpostscript.awk version2, create mypostscripts.nodename.tmp and get the mypostscripts.nodename.tmp later insteadf of mypostscripts.nodename
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14909 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-17 09:20:12 +00:00
jjhua a013a88e0e fixd bug 3291, when run getpostscript.awk version2, create mypostscripts.nodename.tmp
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14908 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-17 09:15:27 +00:00
jjhua fb41dc3b81 I removed one comment which could cause errors in AIX environment
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14907 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-17 08:42:53 +00:00
leiaibj 9d454c2d1b fix a bug caused by hostname validation rule
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14906 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-17 06:40:33 +00:00
wanghuaz 2a12e49888 Support wildcards in package names in buildkit.conf
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14905 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-17 03:34:26 +00:00
xq2005 f4a553d085 debian default run level is 2, add catd to init.d
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14904 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-17 03:10:34 +00:00
jbjohnso 496393222f Fix more instances of namespace for JSON functions
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14903 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-16 21:02:09 +00:00
jbjohnso 499cc45999 Fix problem in debian plugin indicated an incorrect url for unattended install file
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14902 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-16 20:01:16 +00:00
jbjohnso b94a591227 Fix sles to deal with alt $installroot
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14901 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-16 18:44:54 +00:00
jbjohnso 9fe02e2e3a Replace $installroot with $install in a couple of URL specifications
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14900 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-16 18:29:44 +00:00
wanghuaz 5c077303c7 Fixing a problem in buildkit to allow multiple genimage_postinstall scripts
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14899 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-16 16:36:29 +00:00
wanghuaz a665a4ebc3 handle multiple postinstall script in linuximage table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14898 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-16 16:27:44 +00:00
wanghuaz 86c315575f Added genimage_postinstall attribute in kitcomponent table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14897 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-16 16:13:45 +00:00
wanghuaz b9c16c57c6 Added genimage_postinstall attribute in addkitcomp/rmkitcomp
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14896 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-16 16:04:46 +00:00
lissav fac10e8032 fix defect 3290
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14895 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-16 11:45:09 +00:00
immarvin 4b2677b87e replace "XCATBYPASS=Y xdsh..." with "InstUtils->xcmd()"
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14894 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-16 08:22:01 +00:00
jbjohnso 8fc33eaeea Enhanced inventory collection of ethernet devices
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14893 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-15 20:00:44 +00:00
daniceexi d0a97ba739 defect 3287:avoid to running gettyset for rh6 and higher
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14892 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-15 13:57:23 +00:00
sjing b3fb23c724 fix for bug 3144 - error message is not explicit for xcat2nim -t group.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14890 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-15 13:34:01 +00:00
daniceexi fcd6182b3d defect 3287:avoid to running gettyset for sles11 and higher
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14888 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-15 13:11:41 +00:00
leiaibj 3fd2310ec6 1. resolve #3283: a typo issue. 2. drop uselessness method isReservedIP. 3. do not validate IP address whlie creating an unmanaged device. 4. Correct some messages
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14887 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-15 08:20:19 +00:00
sjing 530adb3db1 fix for bug 2832
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14886 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-15 06:46:41 +00:00
sjing bc9575a42e fix for bug 2832
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14885 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-15 06:43:25 +00:00
sjing 23bf0b0c9c fix for bug 2832
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14884 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-15 06:32:16 +00:00
sjing c04a6f979e fix for bug 2832
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14883 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-15 06:27:31 +00:00
sjing 515baf29e7 fix for bug 2832
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14882 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-15 06:11:21 +00:00
leiaibj c01a6918f7 add support for new nics table delimiter
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14881 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-15 06:04:22 +00:00
leiaibj f176866943 If no nodes specified for nodepurge, nodechprofile and noderefresh, then just print help message
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14880 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-15 05:47:34 +00:00
jjhua 485bf6c6b1 use -a as a logical and between two expression; use cron as a Should-start for sles
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14879 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-15 05:16:47 +00:00
creativezj a7b54d89d5 update error messages
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14877 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-15 01:56:16 +00:00
jbjohnso f740315ef2 Have keyUsage and extendedkeyusage set for user/server certficates as is befitting each role
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14876 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-14 16:40:51 +00:00
jbjohnso 92508cf564 Tweak SSL setup scripts to have a CA more convenient for server and client scripts
Sign server, ca, and client certificate with more unique attributes delineating roles

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14875 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-14 16:40:39 +00:00
ligc 0e92da0f5f for encrypted system password in passwd table, the SHA256 and SHA512 encrypted passwords could be automatically recongnized
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14874 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-14 14:56:44 +00:00
daniceexi 709fc270ae defect 3282: use the /var/run/xcatd.pid to store the main pid of xcat if no pidfile is specified with -p flag
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14873 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-14 13:12:02 +00:00
jjhua 7a62794c0f make postbootscripts work on sles11 diskfull installation,and allow the admin to specify RUNBOOTSCRIPTS=yes which will trigger the post boot scripts on a reboot of disk full nodes.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14872 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-14 07:48:09 +00:00
ligc 9aa954458f comment out the hardeths, problematic in several scenarios, hard to debug, MN ip should be configured manually or through DHCP
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14871 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-14 07:22:47 +00:00
daniceexi 8846c95bea make the centos to support dracut
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14869 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-14 06:58:00 +00:00
nott 238d650327 add multi-domain support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14868 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-12 20:03:37 +00:00
jbjohnso 133551dd07 Some fixes for WS PUT operations
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14867 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-11 21:21:05 +00:00
jbjohnso 5ecab2d703 Repair JSON in web service (to_json is not imported to namespace on 'require', could do import, but just doing JSON:: to be clearer
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14866 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-11 20:52:46 +00:00
jbjohnso 602015f5c4 Ccheck in forgotten remoteimmsetup.pm from my repository
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14865 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-11 17:54:21 +00:00
nott be68d223df change nics delimiter and add nicaliases
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14864 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-11 16:19:23 +00:00
lissav d9cb714aed add info
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14863 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-11 13:10:41 +00:00
jjhua 87bb1c28ad correct the syntax
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14862 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-11 11:44:47 +00:00
jjhua 937a403872 use chkconfig xcatpostinit1 on to make sure xcatpostinit1 could be started when booting
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14861 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-11 11:34:31 +00:00
wanghuaz df090f8a4a For kit component external packages, the external packages names are always changed, for example, there might be different versions. in buildkit.conf, external packages should be set with certain names, and buildkit command should not require certain package names. they could work with basename only.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14860 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-11 11:06:15 +00:00
jjhua 92931c7bb9 fixe bug 3280
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14859 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-11 11:02:25 +00:00
xq2005 34e2ce1daf create partition file base on the uefi and bios boot mode
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14858 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-11 09:07:23 +00:00
xq2005 8d6aa83db2 create partition file base on the uefi and bios boot mode
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14857 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-11 09:05:10 +00:00
nott 500862ae57 add support for new nics table delimiter
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14856 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-10 20:40:43 +00:00
jbjohnso b5e5c2a84b First pass at automating the behavior of disabling/enabling local admin account.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14855 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-10 20:30:44 +00:00
jbjohnso 80b9ada6a6 Make use of new WINADJOIN Template directive to simplify number of windows templates moving forward
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14854 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-10 20:30:20 +00:00
nott f1ac1431d6 add support for new nics table delimiter
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14853 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-10 20:23:12 +00:00
nott 1acc33adc1 add support for new nics table delimiter
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14852 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-10 20:04:21 +00:00
jbjohnso c0cd7d0e58 Have Template detect and fill in the entire unattendedjoin object if template requests
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14851 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-10 19:50:43 +00:00
jbjohnso cb1d2d58da Fix FSM variant of xCAT-server
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14850 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-10 18:53:01 +00:00
bp-sawyers ef544a9133 Fixed xCAT-genesis-scripts rpm to run mknb even if not upgrade, as long as mknb exists
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14849 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-10 18:52:34 +00:00
lissav 18e5d75599 remove unused updatenodeupdatestat
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14848 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-10 16:05:38 +00:00
jbjohnso 3c6b79ad43 Remove factor and fix libgcc name in 'old' genesis.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14846 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-10 14:01:56 +00:00
daniceexi c2f4d4440a Change to make the nodeset osimage=<osimage name> command to copy the install/netboot resources to /tftpboot/xcat/osimage/<osimage name>/ instead of /tftpboot/xcat/(netboot)/<os>/<arch>/<profile>/
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14845 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-10 13:56:49 +00:00
lissav 61c04b35e1 -l -S options not supported on AIX
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14844 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-10 13:18:27 +00:00
lissav aa2e508471 more information
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14843 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-10 11:43:54 +00:00
wanghuaz ed0087a969 Fixing two problems: 1. create tmp rpm spec file to different kit repo and kit component basename. Previously the tmp spec file is named with kitcomponent basename. if there are two kitcomponents in two kitrepo with same basename, the tmp rpm spec file will be overwrite. 2. the kitpkgdeps version information should be removed while writing to kit conf and later writing to xCAT DB, since kitpkgdeps is only used while they are being removed, we dont need the version info. So we don't need to keep the version info which make the kitcomponent table quite big and not easy to read.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14842 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-10 08:07:06 +00:00
xq2005 01815332da post part in preseed file on debian
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14841 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-10 06:25:13 +00:00
bp-sawyers 6e014cc6df added xCAT-genesis-scripts to xcat-core build
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14840 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-09 22:48:54 +00:00
mellor c0fd4b06ad add buildkit support for non-native pkgs, genimage_postinstall, remove Version
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14839 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-09 22:28:39 +00:00
jbjohnso 6373e0d948 Assume Locked user slots for SuperMicro systems as suggested by Michael Robbert on xcat-user list on January 9, 2013
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14838 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-09 21:31:54 +00:00
jbjohnso 1273510cad Have FSM and ZVM variant strip out the remoteimmsetup aspect of xCAT
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14837 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-09 21:28:11 +00:00
billwajda 3176fb6a27 check for either ! or : for delimeter in confignics and configeth
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14836 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-09 20:25:08 +00:00
lissav a016b5efbf fix man page
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14835 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-09 19:30:36 +00:00
billwajda 35755455ce changed check for delimeter in confignics
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14834 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-09 18:55:19 +00:00
billwajda f2499a17f4 changed check for delimeter in configeth
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14833 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-09 18:49:02 +00:00
lissav b52a7f7ee5 add support for non-root user running updatenode -S
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14832 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-09 18:39:30 +00:00
lissav d8c00c75fe add sudo support in xdsh and updatenode
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14831 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-09 18:29:41 +00:00
lissav 65f6a2b11f add sudo support in xdsh and updatenode
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14830 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-09 18:18:56 +00:00
lissav 1c9b9ff780 add sudo support in xdsh and updatenode
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14829 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-09 18:17:24 +00:00
lissav 87b66d84bf add sudo support in xdsh and updatenode
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14828 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-09 18:15:27 +00:00
billwajda 5d4b6eb549 updated configeth for nic ip alias
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14827 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-09 16:24:11 +00:00
wanghuaz 06df5f5696 Moved kit build source files to buildkit rpm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14826 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-09 15:46:43 +00:00
jbjohnso 75a399eaf1 Fix problem where lsslp --flexdiscover was not working
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14825 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-09 15:37:30 +00:00
wanghuaz d584dd6c12 Move the kit source files to buildkit rpm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14824 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-09 15:33:54 +00:00
billwajda c6ad835051 included quotes around NIC related env vars
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14823 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-09 15:22:31 +00:00
lissav b175154c9c consolidate more code
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14822 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-09 12:58:43 +00:00
lissav 8f6be31d21 add sudo interface to xdsh
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14821 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-09 12:37:51 +00:00
lissav 00b6eb9511 add sudo interface to xdsh
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14820 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-09 12:09:38 +00:00
lissav 71729edf06 add sudo insterface to xdsh
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14819 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-09 11:56:18 +00:00
lissav 6cfdf0bc0b add sudo insterface to xdsh
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14818 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-09 11:54:58 +00:00
lissav 32c5e43429 add sudo insterface to xdsh
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14817 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-09 11:53:26 +00:00
wanghuaz cf124ac1e1 Kit source files for hpc stack
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14816 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-09 10:58:51 +00:00
leiaibj 7b75b8b766 update hostname validate rule: only 0-9 a-z and - are valid characters
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14815 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-09 09:17:27 +00:00
xq2005 40eb1fe5ad build xcat packages on debian
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14814 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-09 07:59:38 +00:00
xq2005 872ee19eea remoteshell on debian
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14813 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-09 07:46:01 +00:00
xq2005 7acde1dad7 xcatconfig on debian
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14812 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-09 05:55:43 +00:00
jbjohnso 054e6540c2 Fix BIOS style template to not use EFI partitioning
Bump EFI boot partition size to recommended for 'new format' drives.
Remove xCAT USER/xCAT from fields that seem no longer applicable

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14811 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-08 22:03:10 +00:00
jbjohnso 44224d12e9 Fix mistake in setupimmnic route management
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14810 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-08 22:03:01 +00:00
jbjohnso d8797beab0 Modify genimage.cmd to be more trivially configurable at top of script
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14809 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-08 20:00:09 +00:00
jbjohnso 452fcb74f8 Fix win2012 deployment issues with productkey and such
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14808 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-08 19:24:10 +00:00
bp-sawyers 4c65281cec fixed pcm embed build
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14807 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-08 17:40:34 +00:00
jbjohnso 2a73625a7c Add a utility function for Windows specific functions, for now, just a map for KMS key lookup since 2012/Windows 8 got particular about product keys even for KMS case
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14806 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-08 15:48:38 +00:00
jbjohnso 454405d5ff Flesh out 2012 microsoft template suite
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14805 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-08 15:34:44 +00:00
immarvin cb4dda8b3a fix some typo
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14803 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-08 13:08:33 +00:00
lissav ca17282978 check spelling
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14802 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-08 12:08:11 +00:00
wanghuaz c2634b651b Update gpfs_mmsdrfs to use mmsdrrestore to restore gpfs config file
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14801 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-08 11:22:31 +00:00
wanghuaz a56b04331e Fixing a bug while kit works with old osimages.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14800 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-08 10:34:38 +00:00
immarvin 95c6c2bc8a fix defect #3182, add return value for package update in "updatenode -S"
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14799 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-08 09:14:19 +00:00
immarvin 6c98b466eb fix defect #3240, enable bundling of GetOptions to avoid ambiguity
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14798 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-08 08:30:21 +00:00
daniceexi 75ca53396d add the option check for litefile
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14796 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-08 06:32:46 +00:00
daniceexi 7da34b6fc2 Make sure the hostname has been set before configure the statelite
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14794 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-08 06:25:22 +00:00
daniceexi e47dc2635d add the option check for litefile
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14793 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-08 05:31:08 +00:00
leiaibj c74580a8a1 enhance node info parsing mechanism: add more checks before import
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14792 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-08 04:47:39 +00:00
ligc 344b3ca89b for including powervm directory under share/xcat/tools, needs to use cp -r to copy the tools directory
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14791 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-08 02:48:30 +00:00
ligc 42861579b2 checkin for the powervm configuration sample scripts
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14790 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-08 02:08:09 +00:00
jbjohnso dd365bf0a2 Fix xCAT-genesis (current gen) to survive recent UXSPI changes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14789 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-07 19:53:48 +00:00
jbjohnso 2103d84119 Have setupimmnic script function more similarly to UXSPI behavior
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14788 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-07 19:50:28 +00:00
jbjohnso db2261cd02 Move IMM support from builder to scripts
Create a fake ifup to fixup IMM network during uxspi execution

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14787 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-07 19:50:18 +00:00
lissav 7adbe1de86 fix defect 2985
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14786 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-07 18:54:00 +00:00
lissav 0118c0e7d5 force new build
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14785 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-07 17:57:01 +00:00
lissav 41f2dcfbc1 Do not add xCAT-rmc to instxcat anymore
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14784 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-07 17:31:41 +00:00
jbjohnso 209da68d62 Correct makerpm for xCAT-genesis-scripts
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14783 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-07 15:29:09 +00:00
jbjohnso 6b17abdd19 Correct path to awk in genesis-scripts
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14782 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-07 15:26:39 +00:00
jbjohnso 62536efef3 Add vfat for EFI boot partition debug/manipulation
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14781 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-07 15:20:21 +00:00
wanghuaz fbcdaec090 add createrepo as a dependency of buildkit
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14780 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-07 10:23:14 +00:00
wanghuaz 7a187a3418 Create symlinks if a package belongs to multiple kitrepo.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14779 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-07 10:04:35 +00:00
yinle ed1deb34f2 Fix bug 2654, waring message for "rnetboot -m -r" misses information
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14778 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-07 09:11:13 +00:00
immarvin b2a99543f1 add -w|--nonoverwrite option, check whether the specific os media has already been copied in
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14776 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-07 08:39:52 +00:00
wanghuaz bb01a14476 Change the postbootscript permission while copying them to deploy dir
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14775 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-07 08:36:22 +00:00
xq2005 e50efd16db osver support on debian
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14774 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-07 07:52:16 +00:00
xq2005 e1da3e4124 rsyslog support on debian
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14773 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-07 07:35:23 +00:00
xq2005 eb83073e61 dhcp support on debian
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14772 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-07 07:23:55 +00:00
xq2005 890d2b321e ddns support on debian
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14771 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-07 07:22:27 +00:00
amy0701 c89c965bc2 fix defect 3274,update packimg testcase to backup rootimg and rootimg.gz
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14770 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-07 06:13:02 +00:00
wanghuaz 91ccada5d3 Fixed a problem that if preinstall/preupgrade/postinstall/postupgrade script is empty, the product rpm will fail during insalling.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14769 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-07 05:57:59 +00:00
wanghuaz 2d5991f5ee Fixed a problem that if preinstall/preupgrade/postinstall/postupgrade script is empty, the product rpm will fail during insalling.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14768 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-07 05:51:54 +00:00
xq2005 8fed4c6d85 tftp-hcp on debian
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14767 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-07 03:26:25 +00:00
jjhua 7b794954a5 fixed the issue which couldn't generate the correct mirror path
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14766 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-07 03:20:19 +00:00
immarvin ff728f92bf add <-w|--nonoverwrite> option to check whether the os disc has already been copied in
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14765 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-07 03:10:00 +00:00
amy0701 50f71bf28d update testcase for packimg to backup rootimg.gz
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14764 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-07 03:00:11 +00:00
zhaoertao b0eefd4e7b fix bug 3273:xcat returns ipmi plugin bug if console opening failed for system x
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14763 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-06 08:38:34 +00:00
jjhua bc1e7e26f6 modify some code to be compatible with the old diskless rootimg(s) before xCAT 2.8
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14762 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-06 05:40:48 +00:00
jjhua 30cd2dae59 to be compatible with the old diskless rootimg(s) before xCAT 2.8
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14761 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-06 05:36:47 +00:00
jjhua f6dd072207 to be compatible with the old diskless rootimg(s) before xCAT 2.8
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14760 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-06 05:30:55 +00:00
jjhua d454de2d09 add flag version2, to be compatible with the old diskless rootimg(s) before xCAT 2.8
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14759 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-06 05:27:22 +00:00
jjhua 6f3eab155b 1. to be compatible with the old diskless rootimg(s) before xCAT 2.8 ; 2 reorginize some code
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14758 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-06 05:23:44 +00:00
xq2005 4e05af3f2b build xcat-genesis on debian
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14757 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-06 03:31:09 +00:00
xq2005 29b77e066a build xcat-genesis on debian
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14756 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-06 03:27:26 +00:00
asirxing 424b8b5378 Fix the regular expression issue for list_all_nodegroups function
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14755 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-06 01:48:59 +00:00
jjhua 49060211d9 fixed bug 3272, and reorganize some code
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14754 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-05 09:08:40 +00:00
ligc bb20b69a88 add warning message with nodeset <noderange> install/netboot/statelite for RHEL, CentOS, Fedora, SLES and Debian/Ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14753 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-05 07:39:45 +00:00
leiaibj 8a8a53f201 setup correct response xml: use array instead of plant string
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14752 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-05 07:04:02 +00:00
xq2005 7e76137b2b Ubuntu: makedhcp -n can't create new dhcp.conf file when there is not /etc/dhcp/dhcpd.conf
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14751 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-05 02:50:27 +00:00
xq2005 13202bf4a7 build deb on ubuntu server
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14750 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-05 02:47:47 +00:00
jjhua 40ea023dec use single quotes instead of double quotation marks
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14749 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-05 02:10:21 +00:00
billwajda 7b761ef342 update configeth to use networks table correctly
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14748 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-04 21:55:30 +00:00
jbjohnso a20a8e2760 Various changes regarding Hyper-V 2012
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14747 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-04 21:03:47 +00:00
lissav bf7ca13515 fix xdsh -e so that it syncs all the service nodes in one xdcp request with the executable file instead of one at a time
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14746 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-04 17:25:19 +00:00
jbjohnso bc9f4c9897 Add Windows 8 Enterprise templates
genimage.cmd failed to correctly place the custom scripts, put extra cd to assure path is as expected

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14745 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-04 14:40:17 +00:00
lissav e64a4c1dbd add more info to postscripts table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14744 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-04 13:34:07 +00:00
lissav 0993a4227a add postbootscripts to the man page
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14743 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-04 12:19:30 +00:00
wanghuaz 3991bcc3e1 Fixing a problem that: for partial kit, buildkit will fail if there is no any product rpms at all and so no deploy dir created, and so kit_config file cannot be created.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14742 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-04 08:05:58 +00:00
ligc a685cb98af remove the statement: for information purpose for nics.nictypes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14741 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-04 07:54:45 +00:00
lissav 4a22d96d9a remove old xcat 1 postscripts, defect 3224
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14740 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-03 18:47:08 +00:00
lissav c6eec9badd fix defect 3267
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14738 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-03 14:42:56 +00:00
lissav 97a8e6b7f8 remove leftover debug
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14737 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-03 13:10:54 +00:00
lissav 8fc57d4dbe add more comments
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14736 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-03 12:30:42 +00:00
linggao ad6cf32fe3 fixed defect 3266
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14734 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-02 22:04:14 +00:00
jbjohnso 99ea38c495 Change all windows templates to use the new #WINTIMEZONE# directive in 2.8
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14733 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-02 20:38:14 +00:00
lissav 2b008fb1fa fix spelling
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14732 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-02 20:20:08 +00:00
jbjohnso e7a31a057b Have Template support the more elegant TZUtils approach for translation to Windows timezones from POSIX
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14731 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-02 20:09:59 +00:00
jbjohnso 7307a550ef Remove 'e' from regex flags in Template.pm as the replacement does not suggest perl evaluation
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14730 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-02 20:09:46 +00:00
billwajda ca219aabe1 changed configeth specifically for adding additional ethernet adapters. Added new confignics which invokes configeth
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14729 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-02 19:48:07 +00:00
billwajda 53ab64c819 added nic attributes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14728 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-02 19:45:36 +00:00
jbjohnso 86102a215b Provide more human readable interpretation of RMCP status messages where possible
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14727 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-02 18:31:14 +00:00
lissav 7a61af5d1e add support for updatenode -l disabled
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14726 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-02 17:20:51 +00:00
lissav aee9b874b1 add support for updatenode -l disabled
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14725 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-02 17:19:48 +00:00
lissav 2cdd31a312 add support for updatenode -l disabled
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14724 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-01-02 17:18:02 +00:00
jjhua 132e4cc493 fixed bug 3268, add the templates directory into the xCATsn
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14722 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-31 05:04:33 +00:00
ligc 38fcd2f3a8 fix for bug 3051: search /install/custom and /opt/xcat for lsdef --osimage against nodes with provmethod=install/netboot/statelite
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14721 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-29 08:33:14 +00:00
leiaibj c4fc6a0816 enhance profilednodes.pm so that all kits plugins can be executed in serial
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14720 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-28 03:35:07 +00:00
xq2005 61b7a6fc83 support other packages on ubuntu stateless image
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14719 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-27 08:55:26 +00:00
yinle 0f7844b187 Modify the man information for lsslp --flexdiscover.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14718 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-27 08:13:02 +00:00
ligc 97df71b507 fix for bug 3200: update psh manpage to emphasize the psh arguments need to precede noderange
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14717 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-27 06:02:07 +00:00
yinle 1646d3bb9d Modify the usage info of lsslp.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14716 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-27 06:01:59 +00:00
ligc 1521e5834b fix for bug 3050: -t and -a could not be used together
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14715 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-27 05:50:35 +00:00
yinle 6ac917a748 Give warning when the user is using slpdiscover.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14714 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-27 05:46:07 +00:00
jjhua 47e0989069 when add ospkgs to postscripts, it should update the pkgs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14713 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-26 08:57:24 +00:00
lissav 1ae6ac9267 updates to allow sync of servicendes in one command and not one node at a time
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14709 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-24 14:23:27 +00:00
lissav d84b5d2ea4 updates to allow sync of servicendes in one command and not one node at a time
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14708 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-24 14:19:53 +00:00
lissav 4533d117e9 Fix incorrect info
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14706 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-24 11:48:00 +00:00
leiaibj 2c4a482dff Supporting auto discover for PureFlex X nodes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14705 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-24 06:39:26 +00:00
leiaibj ae316495af PureFlex x nodes import& discovery supporting
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14704 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-24 03:49:00 +00:00
yinle b868089ba6 Modify code to support merging slpdiscover to lsslp.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14703 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-21 09:15:24 +00:00
zhaoertao 91b582b5ea fix bug 3262:rflash firmware update with --activate concurrent to HMC CEC powerd off CEC
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14702 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-21 09:05:35 +00:00
amy0701 39b4583739 update incorrect word for xcattest
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14699 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-21 08:31:28 +00:00
jjhua fd39b51ce1 fixed bug 3263, we require that the first value of osimage.pkgdir should be the os based pkgdir.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14698 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-21 08:30:39 +00:00
daniceexi 38576c2815 fix issue that when set [osimage=<osimagename>] in chain.chain to deploy os during genesis running, the provmethod was set to install/netboot instead of the osimage name
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14696 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-21 08:06:52 +00:00
jjhua 03b2373420 fixed bug 3264 , support the multiple paths for osimage.pkgdir in the sles11 genimage
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14695 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-21 07:56:14 +00:00
yinle 63400588bc fix bug #2986 getmacs -h missing -o option
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14694 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-21 07:48:03 +00:00
yinle 7c0f8b3208 Fix bug #2987 getmacs -o has some issues.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14693 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-21 07:40:30 +00:00
jjhua 783a1d100f To support multiple paths for osimage.pkgdir. get the first pkgdir(the base pkgdir), and use it later.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14692 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-21 06:15:02 +00:00
jjhua 698de9076f correct a typo
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14691 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-21 06:04:42 +00:00
ligc 49bfb6589a add the rsyslog into the centos pkglist, rsyslog is required for syslog redirect
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14690 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-21 02:51:32 +00:00
yinle e7e552b64a minor fix
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14689 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-20 08:44:34 +00:00
amy0701 bde4f43d7b add testcase for sles statelite installation ppc64
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14688 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-20 08:02:06 +00:00
linggao e08109fd0a fixed a problem that xcatd gives warning when sorting nodes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14687 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-19 16:40:29 +00:00
nott d880ea0483 add search domains to resolv.conf files
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14686 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-19 16:25:02 +00:00
jjhua 6fad417a52 support multiple path of ospkgdir in rhels genimage
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14685 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-19 08:56:12 +00:00
jjhua f39a45518e fixed bug 3259, remove the old yum repo before addsiteyum
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14683 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-19 07:51:22 +00:00
jjhua f6317b80b5 if the osimage.pkgdir isn't set, use the default ///
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14682 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-19 06:08:59 +00:00
ligc 6cd038faac fix a problem with lsdef autotest case
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14681 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-19 05:41:02 +00:00
jjhua a83217bfe8 support mutiple ospkgdir path in rhels genimage
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14680 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-19 03:19:15 +00:00
xq2005 c384dc8675 delte /etc/sysconfig/dhcpd6 doesn't exist error message on ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14679 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-19 02:30:51 +00:00
lissav 68434e9ba2 fix for defect 3249 xdsh -e with relative path
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14678 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-18 13:46:05 +00:00
lissav c417e799a7 fix for defect 3249 xdsh -e with relative path
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14677 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-18 13:44:51 +00:00
sjing 3f6118dae1 keep the parent_fd before any change, then restore it after the change, since it's a global variable.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14676 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-18 08:53:57 +00:00
xq2005 1070630731 only build amd64 packages on ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14675 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-18 06:10:34 +00:00
xq2005 601d3851ee build perl-xcat on ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14674 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-18 03:28:58 +00:00
daniceexi 6e67b0642a fix a typo that output of postscript could not be written to /var/log/xcat/xcat.log
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14671 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-18 02:58:44 +00:00
daniceexi 0fcfa40bcb fix a typo that output of postscript could not be written to /var/log/xcat/xcat.log
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14670 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-18 02:52:15 +00:00
linggao fecc2a242e remove the debug mode for rcons
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14667 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-17 18:58:30 +00:00
xq2005 7735effc04 add ntp to the compute.centos6.pkglist for pcm integration
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14666 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-17 10:25:01 +00:00
leiaibj 59796b270a Roll back sequential changes as some errors found
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14665 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-17 09:25:37 +00:00
jjhua 4bdcebc647 fixed the Unknown option: nodestatus when updatenode cn -V
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14664 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-17 09:20:57 +00:00
leiaibj e08f3572dc use sequential argument for profiled nodes call
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14663 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-17 08:54:38 +00:00
xq2005 68432a65b2 for cross distro rpm problem
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14662 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-17 02:29:53 +00:00
lissav cf0d82b66a fix xdcp -F and xdcp <filelist> where the input files are not fully defined paths
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14661 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-16 14:24:20 +00:00
daniceexi 6a41e82ed4 Add remoteimmsetup command to be the allow running in policy table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14660 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-14 09:54:02 +00:00
daniceexi 395fea4d8c Add authority check to make remoteimmsetup to work
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14659 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-14 09:46:03 +00:00
daniceexi a2caca7b04 fix the typo issue to make remoteimmsetup to work
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14658 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-14 09:38:58 +00:00
jjhua 5361716349 fixed bug 3248
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14657 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-14 09:35:18 +00:00
jjhua 289d0d36c8 use rpm/dpkg --version , instead of which
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14656 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-14 08:11:20 +00:00
leiaibj 0ba9832d0e validate profiles existing in database and also check hostnameformat while start node discovery
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14655 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-14 07:59:17 +00:00
amy0701 6acf400ea9 fix testcase tabprune_i_auditlog for result check
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14654 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-14 07:45:15 +00:00
jjhua 59a3beafdb for management node ,the NTYPE is MN
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14653 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-14 07:32:45 +00:00
jjhua a4f5515786 fixed bug 3230, support for the mn
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14652 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-14 07:14:01 +00:00
amy0701 0f91f3a5a9 add nodeset osimage for linux_full_installation
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14651 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-14 06:19:39 +00:00
amy0701 462cfe2c7d add nodeset osimage for linux_sles_diskless_installation_ppc64
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14650 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-14 06:09:32 +00:00
amy0701 44b69f4e4b add nodeset osimage support for linux_statelite_installation
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14649 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-14 05:55:28 +00:00
amy0701 f7a82f2c05 add nodeset osimage support for linux_diskless_installation
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14648 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-14 05:51:31 +00:00
xq2005 3b08c74368 nfsserver attribute is not the required field for nodes on ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14647 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-14 05:43:03 +00:00
sjing 9f45ee17b4 plugins executed sequentially.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14646 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-14 04:23:45 +00:00
jjhua 30ca481c38 the '||' with double quotations in the comments doesn't work on AIX, fixed it
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14645 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-14 02:57:06 +00:00
linggao 053ffe4795 fixed defect 3159 rcons does not work when nodehm.conserver is set to MN
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14643 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-13 18:37:40 +00:00
xq2005 ca4853f13f create partition on multipy disks when instal ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14642 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-13 14:06:13 +00:00
lissav dce9fd5bbf fix defect 3241
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14641 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-13 12:38:57 +00:00
ligc 25171e52b8 fix for bug 3239: do not use one socket connection to send two xcat commands to MN/SN, do not use gettab to get the site.tftpdir for performance consideration
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14640 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-13 07:21:39 +00:00
xq2005 9c09b4b077 chown for the dns db file on ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14639 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-13 06:05:46 +00:00
jjhua 906688785c make the improvment of the performance on xdsh with -e
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14638 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-13 05:27:24 +00:00
leiaibj 28257de1fd 1. update node's status while replace mac address. 2. set blades rack info while import/discover
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14637 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-13 03:32:16 +00:00
creativezj dd8fc76f6f NGP Power support enhance
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14636 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-13 02:00:48 +00:00
lissav ef9d529f87 Remove invalid options
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14635 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-12 14:02:26 +00:00
lissav 34f064c024 fix xdcp -l root parsing problem
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14634 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-12 12:24:06 +00:00
zhaoertao 5af1c7bbb4 update Usage and Manpage for 'rspconfig <node> updateBMC'
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14632 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-12 07:56:04 +00:00
daniceexi 92e781fe74 Fixed the hang issue of reboot/shutdown a nfs-based statelite node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14631 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-12 07:50:29 +00:00
zhaoertao 5cf269a5b6 the option updateBMC of rspconfig only supported for CMM
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14630 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-12 07:27:32 +00:00
jjhua 419d69050f add the tabdump(networks) to get all the networks info from the networks table.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14629 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-12 06:54:14 +00:00
jjhua fb73b701f6 support the tabdump(TABLENAME) in the mypostscript.tmpl
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14628 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-12 06:52:45 +00:00
ligc bef43bc41f update lsdef manpage about lsdef -a not listing auditlog and eventlog
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14627 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-12 06:45:31 +00:00
ligc 1f5cbc95ab fix for bug 3234: syntax error in otherpkgs, and move the logger commands, ospkgs, fix a typo
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14626 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-12 05:01:06 +00:00
wanghuaz df94b1812e Fixing a problem during last checkin
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14625 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-12 03:36:46 +00:00
ligc f2c2410f3a fix for bug 3235: check ipv6 only for Linux, not AIX
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14624 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-12 02:52:42 +00:00
linggao 56945ff249 modified nodeset usage for osimage
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14623 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-11 21:20:56 +00:00
linggao 3fd2b30450 minor change for nodeset man page
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14622 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-11 21:16:35 +00:00
linggao 1e8061270b added feature in nodeset to get the os image name from the nodetype.provemethod if the osimage is not specified with nodeset osimage command
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14621 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-11 20:59:50 +00:00
lissav 5680c81ee5 Put error in error buffer for PCM but do not set return code as error
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14620 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-11 14:36:43 +00:00
lissav 7aaa8059f0 Allow MsgUtils to accept 0 as a return code on error
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14619 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-11 14:34:37 +00:00
lissav 7f9d3ce3cf fix more missmatched error messages causing loss of errors
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14618 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-11 13:49:24 +00:00
xq2005 eb2438d595 rebuild the rpm db for stateless genimage in cross distro scenario
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14617 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-11 13:42:01 +00:00
ligc 9de743b141 fix for bug 3214: check if IPv6 is enabled on MN
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14616 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-11 11:11:00 +00:00
wanghuaz e7c5f506fe add dhcpinterfaces in servicenode table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14615 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-11 11:09:05 +00:00
leiaibj c3e8949e81 Resolve following issues: 1. return multi errors if there are multi errors for a single node entry while importing. 2. validate the numric part and hosts number. 3. validate whether the specified IP address is in provisioning network while import nodes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14614 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-11 03:33:46 +00:00
phamt 879fcefcb4 Fixed clone error because of missing plugin.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14612 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-11 03:29:58 +00:00
ligc 4b32bc602e fix a typo in my_nets, to not throw away all the remote networks
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14610 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-11 02:08:09 +00:00
mellor bba164615f allow same kitcomponent basenames
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14609 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-10 21:26:39 +00:00
lissav 17de040994 Save list of failed nodes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14608 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-10 18:45:58 +00:00
lissav b0ce82d061 document device support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14607 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-10 14:29:49 +00:00
lissav 7a69698fc6 Add support for sinv to devices
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14604 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-10 14:17:45 +00:00
lissav aea8d5c03c fix osimage example
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14602 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-10 13:51:30 +00:00
ligc 8d85304cab fix for bug 3393278: rflash -p /tmp/test will not output any error
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14601 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-10 09:13:39 +00:00
ligc 3d32c9999b undo fix for bug 3393278: should fix some where else, external behaviour of nodels <empty_group> is changed and some customer is affected
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14599 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-10 08:54:45 +00:00
ligc 02a96668f7 undo fix for bug 3393278: should fix some where else, external behaviour of nodels <empty_group> is changed and some customer is affected
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14598 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-10 08:54:25 +00:00
sjing 3359641813 Fixed the issue - 'Can't locate object method "get_site_attribute" via package "xCAT::Utils" at /opt/xcat/lib/perl/xCAT_plugin/aixinstall.pm line 5711
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14597 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-10 07:48:05 +00:00
lissav c25f7635c7 add examples of running against an image
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14596 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-09 11:44:39 +00:00
lissav 7725453641 fix error message
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14594 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-08 11:56:05 +00:00
jbjohnso 2a0f568135 Fix problems with new packaging of genesis
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14593 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-07 19:22:16 +00:00
jbjohnso 871b2cd25d Update build script for gensis packages
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14592 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-07 18:30:18 +00:00
jbjohnso aefceb6eb5 Add ondemand governor, useful for performance validation tasks
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14591 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-07 16:25:59 +00:00
jbjohnso 6d8b0c8186 Fix the way scripts/base obseletes the unified package so that it will only happen on xcat-core update
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14590 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-07 16:25:46 +00:00
nott b3ee36c58a fix nics processing for na alias
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14589 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-07 16:18:23 +00:00
jbjohnso c0ad20c3cf Further tweak the genesis repackaging
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14588 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-07 15:59:50 +00:00
jbjohnso dde7db8565 Add tree for teh overlay package
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14587 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-07 15:59:34 +00:00
lissav 16b2c9a45e document format hosts.hostnames
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14586 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-07 14:16:40 +00:00
lissav c3381461da add updatestatus for updatenode -S on AIX nodes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14585 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-07 13:15:32 +00:00
zhaoertao 64ca73178c add a option 'updateBMC' for rspconfig to update BMC password
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14584 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-07 10:21:29 +00:00
jjhua 2aa0bc13dd fixed bug 3223, create more yum repo for rhels6/rhels5 x86_64
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14582 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-07 08:32:03 +00:00
zhaoertao 0aa181cd46 reventlog supporting Firebird through CMM
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14581 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-07 06:52:32 +00:00
linggao 3413ba4568 added switches.protocol for running xdsh for swithes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14579 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-06 21:11:29 +00:00
lissav 7a2b7f65d5 fix defect 3219
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14578 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-06 19:37:17 +00:00
linggao 5717142c87 put yum upgrade back to fix defect 3215, however, this will break Mellanox drivers because Melanox repaces some of the os rpms with its own.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14577 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-06 19:35:40 +00:00
jbjohnso 1735e36913 Update genesis builder to use new scheme
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14576 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-06 14:42:05 +00:00
jbjohnso a7fd482b38 Remove some of the xCAT specific chunks from xCAT-genesis-base
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14575 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-06 14:41:46 +00:00
daniceexi c17cea3b6f Support to set osimage=rhels6.2-x86_64-netboot-compute:reboot4deploy in the chain.chain to make the status of node to be updated to installing or netbooting as rpower reset has been run
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14574 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-06 14:11:42 +00:00
ligc ad3b48cae4 fix for bug 3221: check if the attributes specified with -i are valid attributes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14572 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-06 13:30:55 +00:00
lissav 8605eddf2a error processing will be done in xdsh, code not needed
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14571 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-06 12:35:11 +00:00
zhaoertao 3aa724b5a4 fix bug 3218: Support 'rbeacon' for Firebird blade
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14570 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-06 08:54:43 +00:00
zhaoertao 8688e63f33 fix bug 3194: power usage NOSUCHINSTANCE in 'rvitals cn all' firebird plus
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14567 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-06 06:09:26 +00:00
zhaoertao 7c754c200e fix bug 3185: rvitals NODE lcds has no output on rhels6.2 and NGP Flex blades
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14565 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-06 05:33:37 +00:00
linggao 933b5e0983 added explicit tag in switches.sshusername to indicate that the username is for telnet. This will improve the performance for xdsh to switches
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14563 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-05 20:39:43 +00:00
lissav db34a2548f Check for already installed error on updatenode -S
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14561 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-05 15:42:51 +00:00
lissav ee02e417d9 have --nodestatus return status if node unreachable
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14560 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-05 14:00:48 +00:00
lissav 7cd7ebb719 fix parsing of the args
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14559 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-05 12:54:57 +00:00
xq2005 e43867b487 build xcat-genesis on ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14558 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-05 11:13:52 +00:00
jjhua edb83f4262 some minor changes about the the and syntax
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14557 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-05 08:29:48 +00:00
jjhua 8c01f8c93f some minor changes about the the and syntax
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14556 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-05 08:25:49 +00:00
ligc cb834a2ab4 add a new flag -t to makeconservercf to specify additional trusted hosts with conserver
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14555 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-05 08:19:08 +00:00
immarvin 9e4fd9ef38 set all the plugin procress and its children in a seperate process group;send SIGTERM to the process group to effectively abort command
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14553 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-05 03:04:13 +00:00
daniceexi da2a14fa69 fixed the issue that tftp could not be started on sles10
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14552 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-05 02:58:48 +00:00
bp-sawyers 4ae17a6571 added to tabprune -V description
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14550 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-04 22:40:42 +00:00
lissav 320eea1c75 new logic to get xcataixpost to the node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14549 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-04 20:40:11 +00:00
lissav 68d1067b9c new logic to get xcataixpost to the node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14548 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-04 20:38:37 +00:00
nott f0a4765953 fix root password and mksysb bugs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14547 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-04 19:01:56 +00:00
jbjohnso 2ae9261bbb Prepare to provide alternate build semantics to split things like bmcsetup and things lifted straight from EL 6 base
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14546 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-04 18:57:37 +00:00
lissav b2abeb5b70 Take out comment nodehm.conserver is used
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14545 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-04 18:18:31 +00:00
jbjohnso f4373ce762 Have remoteimmsetup cope with the concept of distinct web/cli password versus ipmi password
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14544 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-04 15:58:41 +00:00
lissav e17dacbc2b Update with Verbose mode
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14543 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-04 15:32:56 +00:00
jbjohnso f18bfe62e7 Recall the 'CLI' user/pass in order to facilitate case where cli and ipmi passwords mismatch (not recommended, but might as well implement it)
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14542 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-04 15:31:23 +00:00
immarvin 6aab6faf02 make copycds to abort correctly
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14541 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-04 13:25:52 +00:00
immarvin 70257d7acd while "CTRL+C" trying to kill the plugin process,SIGINT is blocked, use SIGTERM instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14540 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-04 13:22:38 +00:00
daniceexi 2a88fc4d1d defect 3212: add pkgs parted,e2fsprogs,bc for localdisk support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14539 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-04 09:56:30 +00:00
daniceexi e869f87935 defect 3213: sync the fix that moving pid location from /tmp/xcat to /var/run/xcat to xCATsn.spec
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14538 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-04 09:22:48 +00:00
ligc a920f9f5bb remove yaboot-xcat dependency from xCAT.spec and xCATsn.spec, Xu Qing already did this for Ubuntu and Debian
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14536 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-04 08:14:20 +00:00
daniceexi 3b2674aad7 defect 3209: caused by a typo that failed to kill of a sub process, then xcatclient failed to exit
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14535 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-04 07:25:57 +00:00
xq2005 10804f4c3b ib config script move to xCAT-server/share/xcat/devicetype/IBSwitch
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14534 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-04 07:22:34 +00:00
ligc 426c34f342 fix for bug 3208: exclude eventlog and auditlog with lsdef -a, performance improvements for lsdef -t eventlog and lsdef -t auditlog
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14532 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-04 05:52:20 +00:00
ligc d4ba1a7dd8 performance improvements for lsdef -l -t auditlog
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14531 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-04 02:42:37 +00:00
mellor febfd554ef defect 3198 - fix typo in buildkit man page
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14530 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-03 20:47:14 +00:00
nott 06d2048be2 add domain and nics table support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14529 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-03 20:23:33 +00:00
lissav d3a4f4df5b Remove updatestatus from xcatd
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14528 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-03 18:53:59 +00:00
lissav a951d6b551 remove sending updatestatus to daemon
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14527 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-03 18:47:25 +00:00
lissav 7283f3f9bc remove xcatdsklspost.aix
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14526 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-03 17:48:06 +00:00
lissav 46fc376c2f remove call to xcatdsklspost.new
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14525 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-03 17:45:30 +00:00
lissav ebdb9c140f remove call to xcatdsklspost.new
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14524 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-03 17:44:13 +00:00
lissav cf5d31d33f remove copy of xcatdsklspost.aix
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14523 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-03 17:41:53 +00:00
lissav 02c8edb602 litefile table must require both keys image and file, keys cannot be null
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14522 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-03 17:35:42 +00:00
daniceexi 7805ca64fc defect 3196: add the parted as the default installing pkg for rh6 ppc to support the localdisk
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14521 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-03 09:05:24 +00:00
daniceexi 7ebf999353 The script to perform the partition of local disk for statelite node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14520 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-03 08:53:18 +00:00
daniceexi 13f418ce4b this file has incorrect permission
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14519 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-03 08:50:57 +00:00
leiaibj 6bde1ca343 Set proper chaintable, should use runcmd=osimage instead of set osimage directly
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14518 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-03 06:34:11 +00:00
yinle 0e732ddc99 Remove the checking of yaboot-xcat to support removing yaboot-xcat rpm.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14517 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-03 06:25:21 +00:00
xq2005 d4ca869287 delete yaboot dependecy on ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14516 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-03 05:59:21 +00:00
ligc 154603406a use xCAT::ServiceNodeUtils->get_ServiceNode to determine the node's SN as gateway
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14515 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-03 03:04:04 +00:00
lissav a646e632e4 updatenoderunps performs one set of logic for both AIX and Linx
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14514 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-01 12:54:31 +00:00
lissav aa0a705846 use xcatdsklspost for both AIX and Linux nodes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14513 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-01 12:24:34 +00:00
lissav fbadf54c32 support running xcataixpost if on a Linux node, note this assume that the caller has xdcp xcataixpost to tmp on the node, before calling. See updatenode.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14512 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-01 12:20:36 +00:00
lissav db652b82d4 changed the copy to an rsync, save a couple of secs, not as much as I hoped.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14511 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-12-01 11:48:51 +00:00
phamt 13e6fc1d17 Fixed bug in chhypervisor --resetsmapi
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14510 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-30 18:33:33 +00:00
lissav 848372a367 convert call to xdsh to runxcmd
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14509 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-30 13:18:13 +00:00
lissav 508ef7a226 cleanup
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14508 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-30 12:36:59 +00:00
xq2005 430a437217 defined(@array) is deprecated
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14505 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-30 09:13:37 +00:00
xq2005 715a5251b6 defined(@array) is deprecated
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14504 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-30 09:13:04 +00:00
xq2005 881d61a68a defined(%hash) is deprecated
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14503 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-30 09:11:34 +00:00
xq2005 1de4c70cec defined(@array) is deprecated
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14502 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-30 09:10:48 +00:00
xq2005 40d3e8e130 defined(@array) is deprecated
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14501 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-30 09:10:07 +00:00
xq2005 b52d6704c7 defined(@array) is deprecated
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14500 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-30 09:09:29 +00:00
xq2005 696ba151a5 defined(%hash) is deprecated
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14498 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-30 09:08:47 +00:00
xq2005 d60b6b955a defined(%hash) and defined(@array) are deprecated
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14497 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-30 09:06:20 +00:00
xq2005 da5ab569e6 defined(%hash) is deprecated
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14496 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-30 09:05:22 +00:00
xq2005 33f1f5e80d defined(%hash) is deprecated
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14495 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-30 09:03:30 +00:00
xq2005 7d20dade12 defined(@array) is deprecated
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14494 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-30 09:02:22 +00:00
xq2005 f1333718f9 defined(%hash) is deprecated
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14493 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-30 09:00:29 +00:00
xq2005 c82f125bf3 defined(%hash) is deprecated
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14492 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-30 08:58:36 +00:00
xq2005 3a3b2c07fc defined(%hash) is deprecated
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14491 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-30 08:56:56 +00:00
xq2005 27a31e9031 Using an array as a reference
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14490 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-30 08:22:56 +00:00
asirxing cd365417f4 Update the initial CFM directory structure
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14489 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-30 07:14:06 +00:00
jbjohnso 5c5ebf2c42 Have bmcconfig.pm implement remoteimmsetup command
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14488 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-29 22:01:42 +00:00
jbjohnso bb9fb8c54b In case caller does not specify 'curraddr', fall back to ssh to the actual ip (e.g. remoteimmsetup case)
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14487 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-29 21:55:41 +00:00
linggao 31551bab47 added Juniper switch support in xdsh and added trace support for xdsh switch management
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14486 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-29 21:52:15 +00:00
jbjohnso 851f0123cd Refactor setupIMM from slpdiscover.pm to IMMUtils.pm in preparation for common code usage
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14485 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-29 21:42:30 +00:00
phamt da8c8acee0 Fixed bug in getmacs.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14484 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-29 21:20:23 +00:00
jbjohnso cc2148cedd Change argument name in preparation for refactor of setupIMM for common use between slpdiscover and remoteimmsetup
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14483 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-29 20:54:12 +00:00
jbjohnso 160c635296 Change slpdiscover to use the common IPMI credential lookup scheme, theoretically allow for differing IPMI/CLI passwords, but we won't recommend that
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14482 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-29 20:30:33 +00:00
jbjohnso 3df2492e9d Have getbmcconfig use the refactored password retrieval function, get ready for remoteimmsetup
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14481 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-29 20:30:22 +00:00
lissav bbda4fdff2 Remove all bypass mode
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14480 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-29 18:56:41 +00:00
lissav d5e7813365 add restartxcatd SF defect 3203
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14479 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-29 17:27:56 +00:00
lissav c756bf2cf3 add restartxcatd SF defect 3203
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14478 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-29 17:06:25 +00:00
jbjohnso 1fdad5c12f Fix problems with new PasswordUtils, move ipmi.pm to using the refactored code
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14477 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-29 16:24:03 +00:00
xq2005 143e0f3304 ubuntu does not ship SHA1.pm any more, all functions are contained in SHA.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14476 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-29 09:06:48 +00:00
jjhua fa0d361403 remove the msg and export action, when the attribute could not be got from the table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14475 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-29 08:07:02 +00:00
wanghuaz c7e0ccca47 Fixing bug 3180, use append instead of overwrite to update gpfsprofile
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14474 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-29 07:54:12 +00:00
wanghuaz ef0d8c786a make kit work with old osimage which doesnt contains osdistro attributes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14473 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-29 07:17:15 +00:00
xq2005 fb0ad21c3f /var/run is a symlink on /run and that's just a tmpfs, create this directory when xcatd starting
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14472 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-29 06:35:36 +00:00
wanghuaz 9c9388f263 Add an enhancement of rmkit that prevent removing a kit if its isinternal attribute is set to 1
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14471 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-29 06:24:17 +00:00
sjing 6527f298bb handle $reply=undef
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14470 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-29 05:59:36 +00:00
daniceexi 85943215cb defect 3186: check the existence of vncviewer
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14469 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-29 03:06:13 +00:00
daniceexi d2fae3ae5f defect 3131: fix the msg of dracut version
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14467 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-29 02:55:35 +00:00
xq2005 1e899c10eb specify partition files for redhat 6 on ppc64, bug 3187
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14466 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-29 02:40:15 +00:00
jbjohnso 3e5e27bc71 First pass at refactoring and revising get ipmi password scheme, not even checked for syntax correctness yet
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14465 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-28 22:11:09 +00:00
lissav a7d72e8c56 remove MN info on nodetype.nodetype
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14464 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-28 18:46:31 +00:00
linggao c29f5fd619 increase the timeout value in RShellApi.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14463 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-28 16:32:36 +00:00
phamt ab50bc3bf1 Fixed bug in add node and allow z/VM hosts to be added.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14462 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-28 16:19:27 +00:00
lissav f84d237c33 More message cleanup
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14461 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-28 11:38:15 +00:00
daniceexi 5158a5fe95 Added code to handle the case that driver name is .ko.new instead of .ko. Copy the drivers to /lib/modules/kernel/initrd/ instead of /lib/modules/kernle/kernle/... for sles during injecting the drivers to initrd
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14460 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-28 09:02:39 +00:00
daniceexi 92ef245abe Fixed the issue that genimage could not handle the driver name is .ko.new instead of .ko
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14459 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-28 08:59:49 +00:00
daniceexi 683814468c defect 3192: fix the issue the could handle the lzma format of initrd during injecting the drivers to initrd. And added the fix that the driver name is .ko.new instead of .ko
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14458 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-28 08:59:02 +00:00
wanghuaz 9fb1b27a0a Fixing a problem that postbootscript cannot be written if there are multiple kit components
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14457 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-28 08:34:38 +00:00
zhaoertao 0268c0c6a1 modifying 'rscan -u' to append the 'groups' attribute rather than overwrite it
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14456 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-28 08:12:19 +00:00
immarvin 71f63bf1dc add proper return value
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14454 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-28 06:29:39 +00:00
leiaibj e160deefd5 use proper messages
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14453 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-28 05:39:09 +00:00
xq2005 cdd0af2092 the dns configure file on ubuntu /etc/bind/named.conf owner group should be bind
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14452 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-28 03:23:12 +00:00
bp-sawyers 94e0a7e615 Added the requires for perl-IO-Stty back in for ppc64
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14451 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-27 22:27:29 +00:00
phamt 951555b816 Fixed rscan bug where node = parent.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14448 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-27 21:20:22 +00:00
lissav ec2c277557 take out of --nodestatus on the AIX path for now, syntax wrong anyway
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14447 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-27 21:00:43 +00:00
jbjohnso d4e21f1ea1 Try to tolerate some api changes in IBM IMM
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14441 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-27 19:22:31 +00:00
lissav 2d4849286a document new settings for auditskipcmds
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14440 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-27 17:11:30 +00:00
lissav 21202e8773 put in support to auditskipcmds for clienttype:value
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14439 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-27 17:01:49 +00:00
immarvin 1f227a54fb remove local repo template in rmosdistro
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14438 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-27 12:43:39 +00:00
immarvin 2e74d3b4d6 1.import PGP-KEY after copycds;2.add support to remove local repo template
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14437 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-27 12:32:32 +00:00
jjhua 90e0e80aa2 correct the osimage_postboot, instead of osimage_post
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14436 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-27 08:45:52 +00:00
jjhua 4d3edda0cd fix a minor bug for osimgname
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14435 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-27 08:45:12 +00:00
jjhua 981e545f62 if the nodehm.xcatmaster is not set, there is a problem. fixed it
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14434 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-27 06:21:36 +00:00
immarvin f2555cf60d import pubkey in os distro
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14433 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-27 02:47:04 +00:00
jbjohnso 7c68270a80 Attempt to gracefully accomodate ipv6 and ssl http..
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14432 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-26 21:22:40 +00:00
phamt 572740c733 Added missing option for disk pool in chhypervisor.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14431 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-26 17:55:47 +00:00
phamt 800e3359dd Added zVM specific options to chhypervisor man page.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14430 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-26 17:53:30 +00:00
phamt 399e1ad504 Added zVM specific options to chhypervisor man page.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14429 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-26 17:09:40 +00:00
phamt 035353b17d Fixed webportal bug where dasd list entry only contains 1 device. Renamed chhypervisor --smapi to --smcli.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14428 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-26 16:41:31 +00:00
lissav fbac04966b Give more information on the error
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14427 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-26 12:39:30 +00:00
sjing 92a8d070c2 use ip instead of hostname to new the resolver.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14426 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-26 08:12:39 +00:00
immarvin 6b8379c8ba add proper return value
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14425 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-25 04:44:49 +00:00
immarvin 94852cba8f add proper return value
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14424 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-25 04:44:00 +00:00
immarvin db0d43950a add proper return value
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14423 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-25 04:38:52 +00:00
immarvin 57ffc27ca1 add return value
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14422 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-25 04:34:56 +00:00
immarvin df8450cf20 add proper return value
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14421 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-25 04:12:58 +00:00
immarvin f79c088a43 add proper return value
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14420 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-25 03:05:26 +00:00
immarvin db92550be0 add proper return value
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14419 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-25 02:49:41 +00:00
immarvin 43556aca1e add proper return value
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14418 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-25 02:33:54 +00:00
zhaoertao 73d2274527 add LCD info with 'rvitals <node> all'for Firebird blade
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14416 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-23 10:40:39 +00:00
xq2005 ff7e287856 run postscripts when starting on a ubuntu stateless machine
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14415 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-23 09:04:44 +00:00
xq2005 d42c19677a start xcatd at start time on ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14414 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-23 08:43:48 +00:00
leiaibj d31778304b Get correct provmethod for profiled nodes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14413 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-23 08:33:05 +00:00
jjhua 85daf29a34 pass the tftpdir to xcatdsklspost, xcataixpost in updatenode.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14412 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-23 07:27:06 +00:00
jjhua 496c73b65c pass the tftpdir to the xcatdsklspost
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14411 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-23 07:14:09 +00:00
jjhua b0071ccdeb for aix installation, use socket to get the tftpdir; for updatenode, pass the tftpdir to the xcataixpost script
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14410 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-23 07:11:52 +00:00
immarvin ae61c1e21a add return value
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14409 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-23 03:23:14 +00:00
immarvin 30a0c68c52 roll back to the previous version
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14408 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-23 02:53:53 +00:00
immarvin f6c5b7be4c add return value
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14407 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-23 02:34:18 +00:00
immarvin b8aed9fca1 add return value
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14406 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-23 02:31:37 +00:00
immarvin c039830f4d add return value
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14405 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-23 02:29:54 +00:00
immarvin a274bab678 add return value
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14404 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-23 02:26:43 +00:00
xq2005 8d3407e137 change the link /bin/sh to /bin/bash
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14403 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-22 09:40:16 +00:00
immarvin d88759f805 add return value
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14402 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-22 08:58:21 +00:00
immarvin 53e843bed1 add return value
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14401 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-22 08:49:27 +00:00
jjhua d627649d7c According to wu xian's request, remove the osdistroupdate code from xCAT
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14400 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-22 08:35:27 +00:00
immarvin f351780cf9 add return value
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14399 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-22 08:33:32 +00:00
jjhua ecca0ef7de According to wu xian's request, remove the osdistroupdate code from xCAT
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14398 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-22 08:33:29 +00:00
jjhua c72e01429a for linux diskless, make getpostscript.awk use the template method, instad of the original method
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14397 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-22 08:01:30 +00:00
immarvin 8974b775a6 add postscript return value
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14396 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-22 07:59:03 +00:00
jjhua 5238c71638 for linux, make getpostscript.awk use the template method, instead of the original method
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14395 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-22 07:18:38 +00:00
jjhua 52d7012432 make getpostscript.awk use the template method, instead of the original method
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14394 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-22 03:04:34 +00:00
jjhua 4d22bb9970 make getpostscript.awk use the template method, instead of the original method
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14393 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-22 02:57:22 +00:00
willn256 e73bbc20a0 Add new cmdmapping attribute to nodehm table for PCM HW management project.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14392 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-21 22:22:20 +00:00
jbjohnso 847634175d Break slpdiscover activity into pieces to increase odds of success of each pass
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14391 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-21 19:59:08 +00:00
jbjohnso a01c99a24f Fix slpdiscover error output
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14390 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-21 19:59:03 +00:00
jbjohnso d4acaaa8eb Distinguish between hyper v and normal edition
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14387 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-21 17:52:27 +00:00
jbjohnso ae93fe56ce Distingush between 2012 and 8 versions of windows
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14386 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-21 17:38:07 +00:00
jbjohnso 3174f6a8eb Add recognition of windows 8 media
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14385 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-21 16:56:37 +00:00
jbjohnso f644ad6ffd Fix problem where mktoolscenter presumes a filename scheme that is not likely to be found in the wild anymore
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14383 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-21 16:50:25 +00:00
jjhua bbfe4f1132 If the timezone includes a space, the chtab command below will not work. fix it
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14381 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-21 08:52:09 +00:00
xq2005 f404ee4806 install gawk into compute.pkglist for ubuntu stateless install
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14380 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-21 08:47:17 +00:00
yinle b820ab2365 Modify yaboot.pm to support removing xcat-yaboot from xcat-dep.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14379 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-21 07:37:23 +00:00
wanghuaz 0d3fb931a0 Fixing two problems: 1. introduced while intergrating with buildkit command that only one kitrepo and one kitcomponent in a kit can be added into xCAT. 2. If user renamed the kit tarball filename, addkit canot read kit.conf inside it.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14378 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-21 07:17:48 +00:00
immarvin cd7d5a50c6 add centos5.8 discinfo
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14377 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-21 03:08:59 +00:00
mellor 18dc0460ef addkit - add check for tarfile with missing product rpms
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14376 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-20 21:17:30 +00:00
mellor 2d46ee327a buildkit addpkgs - rewrite kit.conf file
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14375 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-20 21:14:48 +00:00
mellor 3ae78546d7 buildkit - add external pkg support, add buildrepo all
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14374 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-20 20:48:32 +00:00
jbjohnso 3918845c64 Fix problem where 'delEntries' failed to invalidate cached data
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14372 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-20 14:51:29 +00:00
jbjohnso 90930636d6 Fix problem where a Table object with alternate autocommit setting would not have cache expired by peer activity.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14370 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-20 14:45:16 +00:00
amy0701 24e18df3f8 update testcase for copycds
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14369 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-20 08:30:26 +00:00
immarvin 1531b1e34f remove geninitrd, use genimage --onlyinitrd instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14365 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-20 07:02:01 +00:00
linggao 6527fc3a9f modified the discription for switches table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14364 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-19 21:42:14 +00:00
jbjohnso 7999324921 Add a genimae variant for ADK
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14363 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-19 19:39:44 +00:00
phamt e135676f12 Changed default template to use M-disk space as swap instead of V-disk space.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14361 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-19 14:41:50 +00:00
linggao 5eb6a1bb06 added more EthSwitch support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14360 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-19 13:47:34 +00:00
leiaibj b61ff28739 Create FQDN verify while createing a unmanaged node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14359 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-19 09:03:03 +00:00
leiaibj 5ed353a3ae Resolve 2 issues: 1- restrict numric part length in hostname format; 2- resolve db not update timely after calling nodeaddunmgd
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14358 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-19 08:56:16 +00:00
linggao ab3a2ea0bb updated xdsh man page to include Ethernet switch support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14357 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-16 19:32:50 +00:00
linggao d3a3b4d526 more on xdsh to ethernet switches
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14356 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-16 17:21:35 +00:00
bp-sawyers 8d9f8e6608 Improved (hopefully) the descriptions of the attributes in the chain table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14355 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-16 16:16:39 +00:00
lissav 34b60efb70 have -F -S -P working together for status update
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14354 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-16 16:12:23 +00:00
lissav 38986bcfb9 remove extra error message
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14353 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-16 16:10:27 +00:00
lissav 182597b92b got updatestatus for -P -F working for Linux
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14351 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-16 14:45:01 +00:00
daniceexi b42b63afbe add bc rpm package which will be used for local disk support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14350 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-16 14:12:10 +00:00
daniceexi 961797b266 add parted which will be used for local disk support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14349 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-16 14:11:40 +00:00
daniceexi a67a6bb1bf The script to perform the partition of local disk for statelite node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14348 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-16 14:08:55 +00:00
daniceexi 7538f98837 Add the plugin to handle the getpartition command comes from node to get the partition configuration file from linuximage.partitioinfile
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14347 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-16 14:06:38 +00:00
daniceexi 427b66827f Code drop for local hard disk to be used as persistent storage for statelite node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14346 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-16 14:02:36 +00:00
lissav 879802ef9f continue to restructure
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14345 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-16 13:25:07 +00:00
lissav dfe5a2783e add comments
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14344 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-16 13:07:17 +00:00
xq2005 d878167089 diskless support on ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14343 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-16 08:25:48 +00:00
phamt 7d3aa32f85 Added chhypervisor --smapi option for z/VM.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14342 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-15 19:59:56 +00:00
lissav bf9929222a Move updatestatus to the last processing
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14341 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-15 18:25:01 +00:00
lissav d79be881fe change to out-of-sync for status
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14340 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-15 17:50:06 +00:00
phamt ec777fb90b Fixed action bar sizing
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14339 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-15 16:46:28 +00:00
lissav 257315a3b3 Decribe valid states for nodelist table nodestatus
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14336 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-15 15:18:20 +00:00
xq2005 cdddc737a0 delete the old dump file before creating the dump file
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14334 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-15 08:51:36 +00:00
xq2005 53012f4e45 support kdump on sles10 on system p
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14332 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-15 06:02:28 +00:00
lissav 1ae545f081 begin restructure for updatestatus support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14331 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-14 18:29:37 +00:00
lissav d3c2e691d3 expand description of servicenode dhcpinterfaces attribute
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14330 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-14 17:19:31 +00:00
xq2005 a64246b7fe support kdump for sles10 on blacktip
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14329 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-14 17:04:40 +00:00
lissav 49b3d71174 add logic so --nodestatus will work in streaming mode
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14327 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-14 16:02:18 +00:00
mellor 796a2f6127 fixed minor formatting issues in buildkit man page
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14325 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-14 14:25:08 +00:00
mellor a56a0c2dc2 extract buildkit html man page for wiki
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14324 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-14 14:10:15 +00:00
lissav 553d8a203b fix defect 3175
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14323 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-14 13:26:27 +00:00
mellor bee533b394 buildkit man page
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14322 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-14 13:17:34 +00:00
mellor b2100e8d7f fix buildkit usage msgs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14321 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-14 12:45:44 +00:00
immarvin 88a57dffe5 move the mount point of copycds to /var/run/xcat/mountpoint
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14320 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-14 07:23:16 +00:00
immarvin c85d0aab95 lazy umount of loop device is problematic,the loop device will not released
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14319 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-14 03:40:31 +00:00
linggao 92414fbcd1 added support for xdsh to ethernet switches
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14318 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-13 22:03:57 +00:00
mellor 5855408946 change desc attr name to description
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14317 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-13 15:29:19 +00:00
lissav b92b1fd1ed fix defect 3173
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14316 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-13 13:54:22 +00:00
wanghuaz 682165fb22 Removed rsct.lapi in trunk
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14315 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-13 13:43:00 +00:00
wanghuaz caf8e249b6 Change desc to description according to latest Schema.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14314 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-13 07:02:17 +00:00
immarvin bcacb6fb49 #3170 sles10.4: copycds need -n sles10.4 to set the os level
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14312 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-13 06:34:53 +00:00
jwsimpson 0ca023a373 update to fix run boot script problem. added chkconfig xcatpostinit1 off and other minor corrections.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14311 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-12 20:38:52 +00:00
lissav 9e8ebc7797 Version 0.22 of the schema
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14310 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-12 20:04:28 +00:00
lissav b9ecc5e975 fix defect 3167
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14309 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-12 17:44:24 +00:00
ligc 588a72d358 fix for bug 3168: safeguard code in NetworkUtils::ishostinsubnet, for 127.0.0.1 subnet
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14308 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-12 14:48:48 +00:00
bp-sawyers ccf2ac78b5 Fixed build problem on aix with xCAT and xCATsn spec files
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14307 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-12 13:05:01 +00:00
zhaoertao 68cbee47bc hwctrldispatch is only used for IBM Flex System right now
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14306 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-12 07:39:14 +00:00
xq2005 73e4ed9236 perl-xcat install on ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14304 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-12 07:25:41 +00:00
immarvin ce581e6767 corrected some syntax
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14303 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-12 02:16:08 +00:00
lissav 42e7811d54 Fix runxcmd, if refoutput=2 ( noparsing of the returned data, will not display output
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14302 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-10 12:06:39 +00:00
lissav 92969c95e6 small fix
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14301 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-10 11:43:23 +00:00
bp-sawyers c46b710933 Added fsm special build to buildcore.sh
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14298 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-09 14:42:42 +00:00
xq2005 63747071a1 support kdump on sles10
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14296 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-09 10:13:20 +00:00
wanghuaz e63bfd6c46 Fixing bug 3160, matching the kit.conf that created by buildkit command
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14295 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-09 09:26:15 +00:00
zhaoertao 9ab8ee6cb6 rename dfmdispatch to hwctrldispatch
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14293 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-09 06:08:41 +00:00
daniceexi 44a612cc5a Changed to suppot multiple disks for a vm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14290 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-09 05:56:25 +00:00
wanghuaz cc4a3092bf Added addkit --inspection flag to give the general kit info before adding kits to xcat. also fixing a bug with kit plugin.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14288 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-09 04:31:08 +00:00
xq2005 995435b8b7 insserv with -f option to ignore the dependency on sles10.4
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14287 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-09 03:45:35 +00:00
immarvin ff5097dff4 #3130 installnic=mac does not work for rh5 ppc64 netboot
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14286 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-09 03:43:18 +00:00
zhaoertao bf31543b8f add attribute 'dfmdispatch' for site table to enable or disable the DFM hdwr_ctrl dispatch
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14284 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-09 03:32:39 +00:00
immarvin f96c2c7d07 correct the logic to fix defect #3130 installnic=mac does not work for rh5 ppc64 netboot
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14282 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-09 02:31:41 +00:00
bp-sawyers 9016681347 Add subset build of xcat for pcm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14281 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-08 21:47:50 +00:00
lissav f730076d0f change to system call to service postgresql start, to work around known problem
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14280 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-08 14:47:15 +00:00
wanghuaz 9ef811a565 Issue trustchk command to ensure /etc/security/privcmds has the correct permissions
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14276 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-08 09:21:10 +00:00
immarvin 54fea32eb0 fixed defect #3130 installnic=mac does not work for rh5 ppc64 netboot
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14274 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-08 08:35:01 +00:00
immarvin 6842acc9a8 add -o|--noosimage option to avoid creating osimages after copycds
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14273 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-08 07:02:56 +00:00
immarvin 2311314a80 add centos6.3 x86
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14272 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-08 06:06:18 +00:00
zhaoertao 0ac2d31975 fix bug 3164:"rinv <cec> deconfig" can not print out the deconfig resources
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14271 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-08 02:22:54 +00:00
ligc 7469e7dc83 fix two perl syntax errors in nodestat.pm: Use of uninitialized value
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14270 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-08 02:19:31 +00:00
nott d70c8c2cc5 fix NIM if1 parsing and chk_resolv_conf (3162 & 3163)
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14268 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-07 18:34:31 +00:00
lissav c14595c736 remove osdistroupdates from defspec
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14266 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-07 17:58:38 +00:00
lissav 26db54f025 remove osdistro attribute from the osimage table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14265 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-07 17:51:29 +00:00
mellor ca2e4cc71e buildkit - need to build tar.bz2 instead of tar.gz file
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14264 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-07 15:48:14 +00:00
leiaibj fa48a097c3 correct typo issue: s/racl/rack
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14263 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-07 07:29:45 +00:00
wanghuaz 3b4096e196 Remove openshmem on AIX
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14262 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-07 06:15:36 +00:00
phamt 49e42d639f Fixed sizing issue for action bar on Google Chrome.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14260 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-06 22:13:07 +00:00
phamt 4916e1ad31 Fixed sizing issue for action bar on Google Chrome. Fixed zFCP table for when no pool exists.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14259 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-06 20:52:55 +00:00
wanghuaz 2fbc90a64e pe 1.2.0.0 packages on AIX
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14257 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-06 13:37:45 +00:00
daniceexi edeac5de74 added displaying of host which vm belongs to; added change for rmigrate; fixed issue of cpu configure during mkvm/chvm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14255 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-06 08:51:40 +00:00
immarvin 09eff12ed4 copycds enhancement for windows
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14254 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-06 03:20:33 +00:00
mellor e1dead42b1 fix lskmodules sending back empty xcatresponse structures
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14253 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-05 18:54:38 +00:00
leiaibj 39ea0f5a16 1. do not call kitnodeupdate, 2. enhance calling runxcmd syntax
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14250 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-05 15:00:12 +00:00
lissav d608be3d11 fix processing when MN in database and has multiple groups defined
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14244 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-05 14:48:21 +00:00
jbjohnso 5f050f6a49 Instead of randomizing each retry, just randomize the first to get things spread out then do the triangular progression timeout
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14243 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-05 14:36:04 +00:00
immarvin 400aec04d5 correct the usage of rmosdistro to " rmosdistro [-a|--all] [-f|--force] osdistroname [osdistroname2 ...] "
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14242 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-05 09:32:54 +00:00
xq2005 cf9050c8b3 fix partition script error
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14241 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-05 08:29:42 +00:00
leiaibj 886bb5145f correct syntax error while calling validate_ip
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14240 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-05 03:22:16 +00:00
ligc ce737cfcda fix a syntax error in xCAT::NetworkUtils->getNodeDomains
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14239 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-05 02:53:51 +00:00
daniceexi 1a20990699 fixed the approach to search objects in getrvidparms
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14237 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-05 02:37:53 +00:00
jbjohnso 7b2b6d9d2c Apply another algorithm to avoid sequence number reuse as much as possible
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14236 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-04 17:25:38 +00:00
jbjohnso 83ea798bcd Fix problem where nodestat with hosts table lookup fails
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14235 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-04 17:25:32 +00:00
jbjohnso 6464143589 Have IPMI.pm explicitly not expect cmd netfn after receiveng cmd/netfn response
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14234 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-04 17:25:25 +00:00
bp-sawyers 5a68f84799 Fix rmkit man page
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14233 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-02 16:23:14 +00:00
bp-sawyers afcce5d64e Fix build problem in xCAT-buildkit
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14232 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-02 14:19:47 +00:00
nott 21c5691293 changes for multi-domain support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14231 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-02 14:13:05 +00:00
nott ad5b01ef41 changes for multi-domain support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14230 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-02 14:08:07 +00:00
nott 2507fafbb4 changes for multi-domain support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14229 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-02 14:01:38 +00:00
nott e352c14b74 changes for multi-domain support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14228 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-02 13:57:28 +00:00
nott 915492b44a remove msgs from getNodeDomains
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14226 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-02 13:48:48 +00:00
jbjohnso 49b78de893 Improve reliability of duplicate response detection phase 1, also check netfn and command match
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14225 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-02 13:37:46 +00:00
phamt 026ac2d081 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14224 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd 2012-11-02 12:08:10 +00:00
lissav 8c45b9ff00 fix mpa username comment
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14223 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-02 10:27:17 +00:00
zhaoertao 0a7af4ef7e update manpage for getmacs -i ethN|enN
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14222 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-02 09:26:12 +00:00
leiaibj 78b3536bcb one minor bug for validate height for nodeimport
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14220 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-02 07:41:25 +00:00
jjhua 05f66ec8fc pre-create mypostscript enhancement: remove the old mypostscript. if site.precreatemypostscripts=0
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14219 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-02 07:03:44 +00:00
jjhua 300de0daf0 pre-create mypostscript enhancement: move mkdir out of the nodes loop
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14218 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-02 06:55:05 +00:00
ligc 9461e9194e fix the wrong package name xCAT-build, it should be xCAT-buildkit
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14217 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-02 02:29:13 +00:00
jbjohnso 4af24a8d75 Output the FRU number of fru devices when available
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14212 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-02 01:09:40 +00:00
jbjohnso 54c7d16808 Actually put out the adapter WWN and MAC addresses with Flex ITE nodes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14211 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-02 01:04:41 +00:00
jbjohnso c03a8be539 Support WWN and Macs of Flex ITE nodes in rinv, haven't *quite* gotten the mezz adapters outputting yet, but they are being retrieved
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14210 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-02 00:33:39 +00:00
phamt 7496b1af81 Fixed sizing problem on graphic tab and character limit in RH parm file.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14209 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-01 22:02:55 +00:00
linggao dc6c986f4b added postscript setuppostbootscripts to support value change for site.runbootscripts.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14208 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-01 21:04:26 +00:00
jbjohnso 8b1fdb33a0 Add sfc driver to genesis
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14207 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-01 20:07:50 +00:00
jbjohnso 5f65a3f1d2 Carefully trim off extra mac address cruft to mitigate some failures
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14205 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-01 19:21:13 +00:00
jbjohnso 563ed5a92a Change cache versioning strategy, track the oem byte from fru locator records
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14204 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-01 18:13:28 +00:00
mellor 6cdb1cfdec xCAT-buildkit - remove file checked in by mistake
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14203 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-01 17:24:37 +00:00
mellor d24431934e initial checkin of xCAT-buildkit rpm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14202 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-01 17:22:53 +00:00
jbjohnso f21e2939e0 Add mstflint for IB servicing
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14200 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-01 13:22:44 +00:00
lissav 199416eb0a remove internal callback funciton sub updatenode_cb, will use --nodestatus
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14199 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-01 12:54:08 +00:00
lissav 90be98a1b7 put back code to fix up failed/success nodes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14198 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-01 12:38:30 +00:00
xq2005 6db9298ba3 dns service name in ubuntu is bind9
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14197 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-01 09:20:31 +00:00
leiaibj 66dab45eba enable -v -h for profiled nodes related commands, and also, create man pages
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14196 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-01 09:19:19 +00:00
immarvin f19883d909 Rewrite TableUtils->setUpdateStatus no Where clause , use setNodesAttribs instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14195 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-01 08:43:14 +00:00
immarvin 0a7fbc43cd fix defect #3152 copycds support on RHELS5.8
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14194 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-01 06:55:23 +00:00
xq2005 fc2ee64682 fix xcat install error message on ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14193 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-01 06:52:32 +00:00
jjhua b16326fdbc pre-create mypostscript enhancement:remove the functions which are not used. add some error messages, if the attribute is not defined
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14192 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-01 06:06:57 +00:00
phamt d5e14d1c64 Fix display problem for images table and disable edit for 1st and 2nd columns of images table.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14191 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-01 03:13:49 +00:00
jjhua d3d34e7957 pre-create mypostscript enhancement: store the servicenode info in the %::GLOBAL_SN_HASH
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14190 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-01 02:59:40 +00:00
jjhua 777729759d pre-create mypostscript enhancement: use the global variable %::GLOBAL_SN_HASH in enablessh()
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14189 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-01 02:57:05 +00:00
jjhua 6ed9c4c9b1 pre-create mypostscript enhancement: get_nodeset_state uses the values of the noderes.net boot noderes.tftpdir which were got ahead of time
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14188 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-01 02:10:01 +00:00
jjhua d15a2add7a pre-create mypostscript enhancement: get the noderes.netboot noderes.tftpdir ahead of time for get_nodeset_state in SvrUtils.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14187 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-11-01 01:53:22 +00:00
lissav c8db25f98d change comment
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14186 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-31 19:23:59 +00:00
lissav 0a554136b9 checkin enhanced support for runxcmd
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14185 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-31 18:54:37 +00:00
lissav e230a70808 get rid of print
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14183 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-31 17:20:17 +00:00
lissav 90da002d8c save runxcmd buffer before calling runxcmd
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14182 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-31 17:14:08 +00:00
lissav 889d376bfe take out unnessary require
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14181 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-31 17:13:08 +00:00
lissav b96ce121ff enhancements and corrections
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14180 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-31 15:36:45 +00:00
jbjohnso 5604a61f53 Have slpdiscover ultimately relax password expiry, login failure behavior, password reuse restrictions, minimal change interval to help automation work and
avoid DoS attacks

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14176 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-31 15:21:45 +00:00
lissav 545281c97f take egans email address out of the comments
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14175 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-31 11:22:00 +00:00
xq2005 db0bad0c5d create dir /var/run/xcat/ for pid files on ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14173 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-31 09:33:52 +00:00
xq2005 3c84ec61cb run mknb only the xCAT-genesis upgrade
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14172 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-31 09:26:08 +00:00
wanghuaz df1896dca8 Removed prefixes of postbootscripts since it should be done by buildkit command
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14171 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-31 08:52:28 +00:00
leiaibj addd30180e discover querying should not acquire lock
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14170 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-31 05:22:43 +00:00
jbjohnso fb4e4a09e5 In RHEV-M, we currently fail hard in the case where user did not set installnic/primarynic. In this scenario, instead of failing, just let firmware have a chance to fill it in
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14168 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-30 23:39:06 +00:00
jbjohnso 2f8348f0f4 For IBM servers, report planar revision, fru number, and mac addresses (if a rackmount server)
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14167 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-30 19:45:39 +00:00
lissav 22eec83752 This adds an interface to runxcmd to return the response structure, still needs test though
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14166 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-30 19:21:28 +00:00
nott 03e82f2f62 different fix for replication issue
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14165 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-30 15:00:39 +00:00
lissav 39e72aec0b if MN already in the database, xcatconfig -m will replace it, if the name has changed
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14164 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-30 14:55:03 +00:00
phamt 4a7d0e4fdc Added inventory support for z/VM hypervisor. Cleaned up code.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14163 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-30 14:48:40 +00:00
xq2005 b8148e8e17 delete the tftpd error message when restarting xcatd on ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14162 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-30 12:46:45 +00:00
wanghuaz 9fe6127b0e Removed --overwrite option in chkkitcomp, since chkkitcomp could verify the kit component list correctly.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14161 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-30 12:40:22 +00:00
wanghuaz 34df3dccb0 Removed --overwrite option in chkkitcomp, since chkkitcomp could verify the kit component list correctly.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14160 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-30 12:34:16 +00:00
xq2005 e6f9e57a98 do not run mknb when the xcat-genesis is installed
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14159 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-30 12:20:17 +00:00
lissav 40a74f4310 check if MN defined
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14158 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-30 11:10:12 +00:00
xq2005 d8b9521d56 reload the xcatd on ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14156 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-30 09:26:17 +00:00
wanghuaz 308acd2839 Adding packagenames without directory to KIT_RMPKGS.otherpkgs.pkglist so otherpkg script could remove them
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14155 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-30 09:14:44 +00:00
jjhua 8d91ef04d5 fixed bug 3143.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14154 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-30 09:06:04 +00:00
ligc 8cf146bc90 remove debug mode /bin/sh -x for rcons
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14153 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-30 08:43:04 +00:00
wanghuaz 1130f848bd Fixed a problem that if kitpkgdeps is not set in kit.conf, which is not correct, we still need to handle the KIT_RMPKGS.otherpkgs.pkglist with kitcomponent basenames anyway
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14152 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-30 07:32:23 +00:00
leiaibj 97ee1bb176 For profiled nodoes: chassis can not be specified together with rack
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14151 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-30 06:24:30 +00:00
wanghuaz 47460b48e6 Removing debug code.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14150 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-30 03:04:24 +00:00
willn256 3e53a88daf Initial commit of KitPluginUtils.pm. These utilities are used by kit developers to write new kit plugins
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14149 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-29 22:34:52 +00:00
wanghuaz f2d9901d19 run xcatbased, kit specific and customized postbootscripts in order
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14148 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-29 14:35:40 +00:00
wanghuaz 36efc5d93f handling multiple exlist in packimage and liteimg
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14147 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-29 12:39:54 +00:00
wanghuaz d66e957cb1 Fix a problem with os minor version while comparing with kitcomponent and osimage
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14146 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-29 09:30:56 +00:00
leiaibj c8b1b3219c 1. support groups arg while import/discovering
2. import hostinfo file format should support windows txt file
3. If no dynamic range set, display an error message while start auto discover.
4. distinguish error codes for arguments validation and hostinfo file validation errors: 1 for arguments validation failure, 2 for hostinfo file parse.
5. support hostname format validation.


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14144 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-29 08:59:14 +00:00
wanghuaz c58f6e361e removed the spaces in kit.conf
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14143 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-29 07:42:42 +00:00
jjhua 241980aa01 pre-create mypostscript enhancement: do some changes in the template
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14142 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-26 13:51:55 +00:00
jjhua 148482344e pre-create mypostscript enhancement
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14141 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-26 13:49:47 +00:00
wanghuaz bd7fd5672c Support multiple otherpkg and pkglist entries to work with Kit. alsofix a problem in kit.pm found during genimage.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14140 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-26 09:24:37 +00:00
jjhua 9a206d67bd pre-create mypostscript enhancement: move the postscript-specific functions from Template.pm to Postage.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14139 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-26 09:10:43 +00:00
jjhua 62636a0216 pre-create mypostscript enhancement. Use the networks info which is got form networks table ahead of time
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14138 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-26 08:38:04 +00:00
wanghuaz 6c4a409e29 Fixed a problem while adding kitrepodir from kit.conf
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14137 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-26 07:39:44 +00:00
jjhua d97f8338fa fixed bug #3133. When some node don't exsit, there are some error msgs, and other nodes succeed. handle this case.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14135 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-26 06:24:52 +00:00
wanghuaz 61d079df0a better handling xml output
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14134 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-26 04:06:21 +00:00
wanghuaz adf75d9f57 better handling xml output
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14133 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-26 02:50:38 +00:00
leiaibj 4b09a3e1c9 Resolve Profiled nodes discover issue: some times compute nodes failed to reboot after discover
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14132 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-26 02:30:03 +00:00
jbjohnso f1b045c5cd Have IPMI plugin detect whether something is an ITE or not
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14131 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-25 21:39:24 +00:00
bp-sawyers 9bb1c459e3 Add --localonly to makedhcp man page and made other improvements
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14129 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-25 20:05:53 +00:00
jbjohnso d4fa1ed91a Document some potential plans for sequence number magic to disambiguate spurious retries again
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14128 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-25 19:53:58 +00:00
jbjohnso ba08481381 It was discovered that the strategy to jump software ids, while effective, had the side effect of invalidating reservations
This means that initial SDR download would usually fail on implementations that consider reservations in such a manner.
Back out the incrementing software id behavior and instead bump retry interval back up to mitigate risk of wraparound
on retries.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14126 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-25 19:26:09 +00:00
phamt cfa719caa9 Fixed bug in removezfcp option.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14125 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-25 15:54:38 +00:00
phamt 5437963279 Fixed bug in addzfcp option.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14124 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-25 15:52:07 +00:00
phamt 009cacac27 Fixed bug in add zFCP dialog.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14123 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-25 15:46:05 +00:00
lissav cfcf1b8cfc check for could not connect to database postgres error on createdb
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14122 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-25 14:09:17 +00:00
lissav bd1a88c706 check for could not connect to database postgres error on createdb
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14121 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-25 13:57:24 +00:00
immarvin 236d9d7371 don't associate osdistro with osimages which created by xcat in copycds
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14120 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-25 09:22:44 +00:00
immarvin 70b33a7e6b don't associate osdistro with osimages which created by xcat in copycds
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14119 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-25 09:22:00 +00:00
bp-sawyers 34c4df71cd add genesis and elilo requires to xCATsn and straighten out XML requires
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14118 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-25 09:12:25 +00:00
xq2005 c3c7e46312 change for ubuntu xcatd start
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14117 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-25 08:55:08 +00:00
asirxing b16cb69284 Rename getOSpkgsDiff function to getPkgsDiff as it is a common function
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14116 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-25 06:19:15 +00:00
phamt abe7cb1e1e Moved options over from chvm & lsvm to chhypervisor
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14114 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-24 20:09:29 +00:00
lissav cf60db528c a few improvements
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14112 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-24 17:51:40 +00:00
bp-sawyers dd11950993 chomped newlines from runcmd streaming output and updated site.runbootscripts description
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14111 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-24 15:37:47 +00:00
xq2005 510bd44fd2 delete the depends on openslp when build xcat on ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14106 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-24 07:18:11 +00:00
xq2005 ce61ef6222 delete the depends on atftp when build xcatsn on ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14105 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-24 07:17:47 +00:00
leiaibj 50352afb39 Fix one bug: after discovery stopped, we can still discover some nodes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14104 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-24 07:14:11 +00:00
lissav 1c32268e9b check for MN
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14103 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-23 19:18:52 +00:00
lissav 86fd3ae7b0 Put a check in so that if remoteshell is run on the MN, it just exits
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14102 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-23 16:22:43 +00:00
wanghuaz 4003dd69d8 Fixing a problem with lock and added addkitcomp -f option
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14101 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-23 14:59:18 +00:00
wanghuaz 960214bd4b added manpage for addkit/rmkit/addkitcomp/rmkitcomp/chkkitcomp commands
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14100 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-23 12:02:39 +00:00
ligc 8d07e61c14 Add NetworkUtils::setup_ipv6_forwarding
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14099 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-23 11:25:12 +00:00
xq2005 3a931a7317 fix error when building xCAT-server on ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14098 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-23 11:02:28 +00:00
xq2005 ef9bdadda3 fix the error when building xcat-genesis-amd64 on ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14097 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-23 10:41:55 +00:00
immarvin 455e031440 support nodelist.updatestatus update during updatenode -P
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14096 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-23 09:31:12 +00:00
ligc 3ed32b437d enable ipforwarding for IPv6 and IPv4
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14095 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-23 09:18:41 +00:00
ligc 76827a69ec update the description for nics table to support multiple ip addresses per NIC
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14094 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-23 07:23:01 +00:00
leiaibj c6d0097565 Use info tag instead of data for checking whether auto discovery running
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14093 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-23 06:05:46 +00:00
wanghuaz 0a87db910b Handling postbootscripts in osimage and kitcomponent tables
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14092 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-23 04:07:56 +00:00
jwsimpson aec176a65c updated to add the postscripts table to the description
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14091 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-22 21:22:35 +00:00
jbjohnso fe9774ac67 Have base esxi4.1 template exist in the way that xCAT expects
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14089 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-22 20:10:48 +00:00
jbjohnso 8a820d1765 Fix copyesxiboot to work fine with mod.tgz
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14088 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-22 20:09:14 +00:00
jbjohnso 6b2de33e78 Have slpdiscover auto-use LLA when circumstances detect no user direction to the contrary and the LLA is viable (same subnet, perl ipv6 support)
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14087 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-22 20:09:07 +00:00
lissav 3239a455be fix xdsh/xdcp to MN broken, forgot to change logic when we change to __mgmtnode
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14083 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-22 19:07:53 +00:00
bp-sawyers 0304f09112 remove require for perl-IO-Stty
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14082 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-22 17:18:39 +00:00
jwsimpson e8a61dd4cc Schema.pm updated to add the description of the runbootscripts attribute
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14081 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-22 16:35:15 +00:00
jbjohnso b0839c618b Fix problem where esxi 4.x was called 'esx' in platform terms
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14078 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-22 15:44:32 +00:00
jbjohnso 7606207542 Fix problem where esxi failed to honor '-n' argument in copycds
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14076 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-22 15:21:37 +00:00
jbjohnso 8eae49b6d6 Fix problem where nodeset install on esxi4.x media would fail
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14075 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-22 15:21:31 +00:00
jbjohnso 9590e98580 Fix problem with certain levels of x3755 M3 firmware
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14073 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-22 13:57:40 +00:00
lissav 3264bad1e8 Add comment on the new nodestatus messages that they should never be NLS translated
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14072 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-22 13:52:55 +00:00
nott 0f3e4dfc82 getAIXSNinterfaces
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14071 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-22 12:58:28 +00:00
nott 887bdd3d27 fix exports file entry for nfsv4 replication
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14070 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-22 12:55:42 +00:00
wanghuaz fe2ee4fc0a Added more verbose in kit support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14069 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-22 09:58:28 +00:00
leiaibj f7c81cbae2 1. when doing importing mac file action, tag details, tag errorMessage, tag failedNodesNum, tag successNodesNum and tag invalidRecordsNum should be just under tag xcatresponse. No data needed.
2. when doing importing mac file action, plugin should return more clear message like "mac file validation failed." in progress info.

3. when removing nodes, plugin should return error message if some of nodes failed to remove.

4. when doing auto detecting nodes, xcatresponse tag should have one status tag instead of nested ones.

5. enhance lock mechanism in Utils.pm

6. create new interface for querying whether profiled node discovery is running or not: nodediscoverstatus


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14068 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-22 09:37:09 +00:00
xq2005 8317e7b43c load auth_rpcgss.ko when create statelite initrd
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14067 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-22 09:33:48 +00:00
xq2005 9f328750d1 driver load error when create stateless initrd
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14066 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-22 09:23:57 +00:00
immarvin 44df839b69 remove geninitrd, use genimage --onlyinitrd instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14065 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-22 08:53:01 +00:00
immarvin c6a95b9a74 remove geninitrd, use genimage --onlyinitrd instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14064 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-22 08:50:53 +00:00
immarvin d1f017ce94 remove geninitrd, use genimage --onlyinitrd instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14063 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-22 08:47:48 +00:00
immarvin 127da8faec add the disc id's of rhel 6.1,hel6.2 and rhel6.3 iso
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14062 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-22 02:38:19 +00:00
wanghuaz 0792e6eb78 code checkin for kit support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14061 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-21 12:58:22 +00:00
wanghuaz 716b19a658 Added symbol link for addkitcomp/rmkitcomp/chkkitcomp
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14060 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-21 08:42:09 +00:00
phamt 8c8e60c12e Fixed bug in xCAT-UI for zFCP devices. Added option to set zFCP device as LOADDEV in --addzfcp option.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14058 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-19 20:26:08 +00:00
bp-sawyers 1019cf6d9d Updated copycds man page and added comments to discinfo.pm about adding disc ids
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14057 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-19 14:29:12 +00:00
lissav d91f2d57d0 added nodestatus to xdsh as well as xdcp and where I can get the return code
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14056 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-19 13:07:10 +00:00
bp-sawyers dbe77b664e test
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14055 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-18 20:05:35 +00:00
bp-sawyers 8b281c9b38 update chdef -n description
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14054 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-18 20:04:45 +00:00
bp-sawyers 5245bd6d79 Type commit message here…updating the e1350 templates
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14053 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-18 19:44:41 +00:00
lissav 1689390cc3 wait up to 30 seconds for postgresql to start before trying to create the database
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14052 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-18 16:23:04 +00:00
lissav 3d412df13c wait up to 30 seconds for postgresql to start before trying to create the database
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14051 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-18 16:21:37 +00:00
lissav 1eac8fe76b additional comments
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14050 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-18 14:25:51 +00:00
lissav fbdc11283a additional comments
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14049 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-18 14:23:24 +00:00
phamt a9408ab0d1 Added support for native SCSI/FCP on xCAT-UI.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14048 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-18 14:18:28 +00:00
lissav b33442caa5 implement --nodestatus call to xdcp for updatenode -F
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14047 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-18 14:13:32 +00:00
lissav 02ddd19381 possibley fix run_ps run_ps duplication
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14046 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-18 13:48:14 +00:00
lissav 183ada53eb add comments to the rack defspec
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14045 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-18 11:18:54 +00:00
lissav fbba9e8a1f support returning nodestatus
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14044 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-17 17:21:43 +00:00
lissav 13e17590b2 support returning nodestatus
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14043 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-17 17:12:22 +00:00
lissav 9535668727 adding monitor support -m to xdcp
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14042 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-17 11:29:49 +00:00
lissav dfd66d67ae adding monitor support -m to xdcp
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14041 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-17 11:24:40 +00:00
immarvin 648140c6ad set the MD5 Digest value of iso's fullpath as the default mount point of the iso,correct the code to umount $path in SIG{INT}
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14040 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-17 08:34:33 +00:00
amy0701 a5df689b7d update testcase for makedns
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14039 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-17 02:42:16 +00:00
mellor 33052f79c2 defect 3127 AIX PE 1.2 HPC Integration
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14037 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-16 21:59:03 +00:00
linggao 822d3fae46 added code in rcons that does not require conserver
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14036 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-16 16:49:23 +00:00
lissav 7dc62afc01 moved so much code decided to run tidypod to clean up
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14035 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-16 16:05:16 +00:00
lissav ca03b59cc5 broke out run ps into separate routine
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14034 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-16 15:55:13 +00:00
lissav 734b3659a5 small fix
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14033 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-16 15:37:04 +00:00
lissav bf244a2c07 pulled out sofware update code into separate routine
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14032 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-16 15:32:00 +00:00
lissav 96a259ca81 break out file sync into its own routine
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14031 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-16 15:01:04 +00:00
lissav 8a15138e4e fix syntax error
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14030 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-16 14:53:12 +00:00
nott 50dc7949b1 reorg doAIX copy routine
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14029 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-16 14:42:03 +00:00
ligc 2cb4c75e2f undo the CMM password expire changing code
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14028 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-16 12:34:41 +00:00
immarvin 9260b97282 set the MD5 Digest value of iso's fullpath as the default mount point of the iso
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14026 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-16 11:22:53 +00:00
immarvin 970322af64 let the MD5 Digest value of iso's fullpath as the default mount point of the iso
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14025 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-16 09:19:48 +00:00
amy0701 9a2937f3fd update sleep for rpower test case
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14024 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-16 08:24:47 +00:00
daniceexi 21bc39605c change the message that genimage could be run cross same distro with same major level
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14023 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-16 07:44:22 +00:00
daniceexi 5ffbcb5fba Change the interface of loading drivers from rpm package. If no netdrivers attribute specifiec, no driver will be added. If you'd like to add all drivers from rpm packages, using allupdate as key word in netdrivers attribute.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14022 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-16 05:58:29 +00:00
zhaoertao 38ce4c7423 setting the password expire time to 0, never expired
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14021 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-16 03:03:49 +00:00
phamt f97f520619 Removed overflow attribute for datatable class in css.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14019 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-15 19:16:57 +00:00
nott 4495c0dc3a check if node belongs to server before defining
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14018 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-15 19:05:47 +00:00
nott 43d01f4bde fix SN name in checkNIMnetworks call
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14017 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-15 18:53:35 +00:00
lissav 12c147a5c5 check for input of multiple internal postscript names
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14016 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-15 17:57:45 +00:00
lissav a3175f5df1 add processing for each subsection of the mypostscript file
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14015 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-15 17:13:49 +00:00
lissav ad5379756b Do not check existence of postscripts with start-here
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14014 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-15 12:58:02 +00:00
jjhua ac86a05cda a little update for precreatemypostscripts
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14013 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-15 08:48:17 +00:00
jjhua 5c1031647a Some enhancement to parse the mypostscript.tmpl
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14012 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-15 08:44:27 +00:00
jjhua b5edbdcad9 made some changes in the mypostscript.tmpl
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14011 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-15 08:41:19 +00:00
xq2005 fefff805b5 change == into = for the rcons script
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14010 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-15 08:22:22 +00:00
jjhua a1edd1ece5 performance enhancement, site.precreatemypostscripts=1 support for linux diskfull installation
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14009 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-15 07:36:06 +00:00
daniceexi 7cae9aaa93 To make genimage to be run cross distro levels. Technically, there's no issue to cross the whole distro (sles/rh). Officially, only the distro with same major version can be suported.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14008 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-15 06:40:00 +00:00
xq2005 97f1c95cc7 fix the restart error
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14007 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-15 01:51:15 +00:00
phamt 6256117b49 Synched up xCAT code to the latest. Added native SCSI/FCP support onto trunk. Replaced tabs with 4 spaces.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14006 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-15 01:50:28 +00:00
jbjohnso c14747ac04 Table.pm in a refresh scenario with cache not currently in use, but existing none the less, mark the cache as invalid by setting the timestamp to 1970
Still avoid *rebuilding* the cache, as in the use_cache not set suggests a mass amount of setAttribs and build_cache(1) would be extremely expensive,
just force the next consumer after the set to take the hit

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14001 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-12 16:31:55 +00:00
lissav 5fbb634235 new mypostscript format
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14000 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-12 13:49:33 +00:00
lissav 6e115c511a Make tolerant of new mypostscript format
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13999 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-12 13:47:41 +00:00
lissav 4b3a85a303 Do not exit just because on os or arch defined for node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13998 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-12 11:49:01 +00:00
jjhua c9e0617ac9 add the description for site.precreatemypostscripts
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13997 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-12 08:37:36 +00:00
jjhua 887b77eebf the template file of mypostscript for all the nodes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13996 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-12 08:08:56 +00:00
jjhua 8be6104a56 To support site.precreatemypostscripts=1
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13995 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-12 07:15:19 +00:00
leiaibj caa1483714 1. Add support for unmanagement nodes
2. Add support for replace node's Provisioning MAC address
3. Enable specify rack/chassis info while import nodes and do nodes discovery.


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13994 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-12 07:11:26 +00:00
xq2005 e2783f3e6c update the pkglist for genimage ubuntu12
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13993 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-12 06:54:48 +00:00
jjhua 43c4fada08 To support site.precreatemypostscripts=1
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13992 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-12 06:53:25 +00:00
jjhua 0dcf2e1e9c To support site.precreatemypostscripts=1
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13991 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-12 06:45:21 +00:00
jjhua 5a395d4da6 To support site.precreatemypostscripts=1
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13990 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-12 06:31:26 +00:00
jjhua 521da69833 the subroutines to generate the mypostscript for each node, according to the template mypostscript.tmpl
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13989 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-12 06:06:48 +00:00
jjhua 5209a92de1 To support site.precreatemypostscripts=1
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13988 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-12 05:43:45 +00:00
jbjohnso ad9945e953 Extend ipmi sequence validity through rqaddr
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13987 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-11 21:02:53 +00:00
jbjohnso 354e960cfb Fix problem where node specific errors in some ipmi scenarios are not associated with a node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13984 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-11 18:02:09 +00:00
immarvin beb47bb0f3 1.corrected defect 3053 2.update nodelist.updatestatus during 'updatenode -P/-S/-k';2.support nodelist.updatestatus update during 'updatenode -P/-S/-K';3.fix defect #3124 Postage.pm writes error message in /xcatpost/mypostscript: only write <data> field of getpostscript response to mypostscript, complain and terminate when getpostscript failed
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13981 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-11 08:48:20 +00:00
ligc 628806fd81 fix for XCATBYPASS=1 could not work with commands depends site attribute, like makedns=>site.dnshandler
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13980 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-11 04:33:40 +00:00
jbjohnso e05b4b8cdd Remove dead code resulting to changing to property api
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13979 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-10 19:09:52 +00:00
jbjohnso 3fd00c599a Change IPMI to use IMM properties interface instead of FMAPI, must faster and simpler and likely to work
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13978 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-10 19:05:42 +00:00
mellor 5ff462e202 support multiple osimage otherpkglist files for updatenode
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13976 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-10 18:22:23 +00:00
mellor 1467e23c80 fix xml output from lskmodules
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13975 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-10 16:51:32 +00:00
nott d404462494 modify rc.dd_boot setup
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13974 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-10 15:28:30 +00:00
jbjohnso c492b1a276 Have slpdiscover.pm tolerate more variation in IMM prompt
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13972 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-10 14:16:57 +00:00
mellor 198bf66e1c fix xml output from lskmodules
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13971 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-10 12:30:20 +00:00
wanghuaz 06a30a2322 Code commit for kit support and several updates according to latest mini-design
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13970 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-10 12:26:06 +00:00
xq2005 13cd4bff41 use update-rc.d to setup xcatd service in post install procedure
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13969 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-10 06:48:45 +00:00
lissav 4d707f6c8f add getpostbootscripts routine and put a small fix in getsynclists routine
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13967 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-09 19:14:06 +00:00
lissav bc5e164163 Enable CFMUtils interface
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13966 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-09 11:17:17 +00:00
xq2005 de821501e5 update the install script for xcat-genesis on ubuntu12
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13965 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-09 07:12:14 +00:00
xq2005 644560d1d4 stop tftpd-hpa on ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13964 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-09 06:52:12 +00:00
ligc dbd9163755 fix for bug 3122: add the usercomment in Schema for linuximage
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13962 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-09 06:32:14 +00:00
jbjohnso 16f9d196ca nmap ipv6 support can be pretty easily messed up, change probe parameters from default '80'
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13961 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-08 21:08:03 +00:00
nott ecc1150d56 fix rmnimimage for hasn env
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13960 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-08 19:16:29 +00:00
jbjohnso 4aa483e6a4 Fix problem where xcatd start fails to relay data to launcher process due to buffering
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13959 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-08 18:05:36 +00:00
lissav 08912283aa test
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13957 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-08 12:55:41 +00:00
zhaoertao 347094fa7c fix bug 3120 rflash working with --activate concurrent failing on HMC based P7 server
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13956 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-08 10:02:38 +00:00
asirxing 3ac841c96c Fix code error and update the codes according to review/testing comments
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13954 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-08 08:55:58 +00:00
leiaibj 76d1580a3e changes:
1. Change file and plugin name: remove "PCM/pcm".
2. Implenment lock query sub
3. Use sinfo indicating processing progress


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13953 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-08 08:40:30 +00:00
jwsimpson a2f73a2b8c git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13948 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd 2012-10-04 21:02:15 +00:00
nott f9b05e488b fixed error returns in update_spot_sw
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13946 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-03 20:01:59 +00:00
jbjohnso 7d023e94ac Fix glaring mistake in previous commit where 'FAILED' and 'all good' were indistinguishable
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13945 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-03 19:56:35 +00:00
jbjohnso ab965b04ed Have IPMI more decisively quite should the password be incorrect. Hypothetically a DoS could be aimed at the client, but that's much less likely.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13944 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-03 19:56:29 +00:00
jbjohnso 205df57942 Enhance rvitas led output with more readable information when possible
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13943 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-03 19:47:08 +00:00
nott 0429a7df4a add more output msgs to software install operations
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13940 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-03 19:45:36 +00:00
nott 3590bf4b0c manage SN resource defs from MN
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13939 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-03 18:20:32 +00:00
jbjohnso cdcf25ce89 Fix problem where sensor numbers could accidentally pull in LED or FRU records
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13938 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-03 18:15:31 +00:00
linggao 975abca7b0 defect fix for otherpkgs not able to pick up the newly added repositories. Also removed the auto upgrade because it wipes out the change for Mellanox rpms.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13936 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-03 12:56:10 +00:00
jwsimpson 171c8aa118 update to correct problems with post boot script changes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13935 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-03 11:27:29 +00:00
lissav 2361faaf6c handles multiple syncfiles for an osimage
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13934 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-03 11:15:26 +00:00
nott cabf9274fa fix cp cmd for copying client_data files
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13933 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-02 18:02:42 +00:00
nott dcc1750c48 fix cp cmd for copying client_data files
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13932 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-02 17:52:47 +00:00
jbjohnso 3004f6493f Have xcatd launch process monitor xCAT SSL instance to assure it gets off the ground before exiting
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13931 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-02 17:52:18 +00:00
lissav 3ae89517fa more comments for fixes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13930 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-02 11:23:06 +00:00
jbjohnso dc981d4d7c Add stateless support for Oracle Linux 6.x
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13929 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-01 20:29:12 +00:00
jbjohnso a96ac1cbc4 Add a compute install template for Oracle Linux
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13928 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-01 19:52:35 +00:00
jbjohnso 20f6e5f026 Add support for Oracle Linux 6.x
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13927 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-01 19:52:29 +00:00
jbjohnso ea2114d9ef Fix problem where tgtadm as of late frequently prefers iSER, which would be great but has some steeper underlying requirements that make it harder to use.
Software iscsi for now continues to be intended primarily for prototyping, with an expectation of beefier storage.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13926 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-01 19:52:23 +00:00
jbjohnso ea4c75b388 Address typo in previous ipmi commit
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13925 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-01 19:52:16 +00:00
jbjohnso f23561573c umount -l when a loop devices is involved may be problematic
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13924 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-01 19:52:10 +00:00
jbjohnso 1ea24371ca Stop lazy unmounting when loopback devices are on the line...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13923 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-01 19:52:03 +00:00
jbjohnso 786e61680f Skip nodelist.status changes in event of suspend or wake for now
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13921 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-01 18:08:59 +00:00
lissav 64c3be21ae Match up Schema with V18 of database design doc
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13920 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-01 17:52:44 +00:00
lissav be2f6b262c routine should create synclist.cfm new each time. No use records should be in the file
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13919 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-01 16:37:08 +00:00
lissav 0c5426ead0 changes and suggested changes marked with LKV
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13918 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-10-01 16:12:16 +00:00
wanghuaz e7325b41b3 Added addkitcomp command
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13917 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-29 17:03:42 +00:00
lissav cbca0e5878 add support for sinfo tag
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13916 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-29 10:40:25 +00:00
lissav add4e7a867 change cfmdir from osimage to osimages in the path
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13914 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-28 17:10:39 +00:00
lissav b24e1feb23 fix for defect 3117
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13912 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-28 12:12:58 +00:00
lissav fdfeaad131 Add to nodestatus comment
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13911 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-28 10:42:57 +00:00
asirxing 6b827de526 Update CFMUtils to enable the verbose message and optimize the logic
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13909 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-28 01:49:39 +00:00
lissav 6b7a4aa1c9 Remove Schema.pm.PCM
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13908 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-27 13:53:58 +00:00
lissav 68dd68c47e Updated Schema will all PCM requirements based on V16 of the PCM db design doc
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13907 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-27 13:53:15 +00:00
lissav 1fbfc40df1 checkin call to CFMUtils more testing needed
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13906 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-27 13:51:15 +00:00
jjhua f61d3bce03 fixed bug 3113, remove some error message when clearing the last configuration
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13905 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-27 09:31:21 +00:00
leiaibj 8b87922c73 PCM discover initial draft ready
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13904 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-27 08:56:19 +00:00
mellor 31cafd39c4 lskmodules support for PCM integration
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13903 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-26 19:57:20 +00:00
mellor ba2821ad31 lskmodules support for PCM integration
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13902 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-26 19:28:17 +00:00
lissav f5df1bab88 fix error message and remove commits, fix Table opens
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13901 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-26 18:06:42 +00:00
lissav ef434876c1 cleaned up GetNodeOSARCH from defect 3095
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13900 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-26 14:10:06 +00:00
lissav f7fa23352c fix syntax error in TableUtils.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13899 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-26 14:02:00 +00:00
lissav 35b563f43d Schema.pm.PCM matches V16 of design
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13898 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-26 13:34:51 +00:00
xq2005 24d81c3019 change version and json dependence
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13897 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-26 07:43:12 +00:00
xq2005 ece9baa5a4 change version and json dependence
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13896 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-26 07:25:01 +00:00
xq2005 9110102e1e change version and json dependence
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13895 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-26 07:18:39 +00:00
zhaoertao ecd1c5999f Fix bug:3095. Routine opening unnecessary tables
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13894 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-26 06:10:39 +00:00
ligc 4be6f6447b fix for bug 3111: diskful SN + diskful CN, call make_SN_resource with wrong arguments
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13893 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-26 06:03:01 +00:00
asirxing 5742f2c0f1 Update CFM Utils to support multiple synclists and pkglist attributes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13891 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-26 02:32:10 +00:00
mellor 1066cf8279 lskmodules support for PCM integration
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13890 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-25 20:53:24 +00:00
mellor 9df8424b8b lskmodules support for PCM integration
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13889 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-25 20:50:25 +00:00
lissav 55fc08fa74 add stub for call to CFMUtils
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13888 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-25 18:19:37 +00:00
bp-sawyers 94b88782b7 test
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13887 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-25 18:07:17 +00:00
bp-sawyers 0cc3a515fc test
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13886 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-25 18:06:40 +00:00
lissav b01e805194 new routine and cleanup
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13885 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-25 18:03:10 +00:00
jjhua 12ce82d7e8 comment out removing the /xcatpost in the beginning of the xcatdsklspost
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13884 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-25 13:18:00 +00:00
xq2005 0af054755f build xcat-core on ubuntu/debian
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13883 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-25 12:17:50 +00:00
zhaoertao de5444c466 fix bug 3073: ddns.pm sets umask 0007 and never restores original umask
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13882 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-25 09:19:21 +00:00
jjhua cca1e68ad8 enhance packimage/liteimg to copy /install/postscripts into the diskless images as /xcatpost
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13881 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-25 02:51:23 +00:00
wanghuaz 6c16503d37 Added addkit/rmkit commands
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13880 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-24 15:03:58 +00:00
wanghuaz acb2f2a11d Added addkit/rmkit support in kit.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13879 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-24 15:02:51 +00:00
lissav f76b47299c Document synclists can be multiple files
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13878 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-23 11:16:27 +00:00
bp-sawyers a18348883d Eliminated hard requires for SOAP::Lite and JSON
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13877 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-22 16:20:24 +00:00
linggao 4ea6bae9a0 fixed a defect for chvm -a
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13874 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-21 16:52:13 +00:00
daniceexi 9c21a4d53f fix the issue that run command against vms which mixed that bind to host or not
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13871 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-21 07:41:39 +00:00
daniceexi 6016af8f56 refine the man page
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13869 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-21 02:11:13 +00:00
daniceexi ee74e2b546 change the help for cfgve
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13868 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-21 02:02:01 +00:00
daniceexi 695f498f2a fix the -n and flag order
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13865 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-21 01:54:34 +00:00
daniceexi 8bdf7e05d9 defect 3102: change the flag name for vlan in cfgve to create network obj
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13864 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-21 01:29:32 +00:00
daniceexi 788c4ac91c add again with new execute permission
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13860 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-21 01:04:41 +00:00
daniceexi dcda42d7f3 remove to change the permission
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13859 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-21 01:02:53 +00:00
bp-sawyers 927c85bebc another test
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13858 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-21 00:06:56 +00:00
bp-sawyers 746ea1a4b1 test
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13857 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-20 20:44:03 +00:00
lissav 7c47c20be0 support multiple synclist files in the osimage.synclists attr
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13856 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-20 18:58:47 +00:00
bp-sawyers 57d4fb8e4d test
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13855 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-20 17:55:58 +00:00
lissav f97a88536b test
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13854 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-20 16:32:03 +00:00
lissav b549d78e2e fix missing updates
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13853 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-20 16:16:36 +00:00
lissav e921722aa2 test
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13852 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-20 15:26:03 +00:00
lissav 46af214a9e add ALL option
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13851 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-20 15:12:03 +00:00
daniceexi 944d18b0ce defect 2966: fixed the issue that xcat pid files were put in /tmp/xcat which would be cleaned periodically. now move it to /var/run/xcat
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13850 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-20 14:30:14 +00:00
bp-sawyers c2658bc27f test commit on new svn
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13849 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-20 13:51:25 +00:00
daniceexi 6e1f26c467 fix a typo
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13848 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-19 06:52:07 +00:00
wanghuaz 8191a663cc Fixing bug 3568357: Overwrite the swapnfs tmp file instead of append it.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13846 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-19 06:05:04 +00:00
nott 6e23f41286 fix for bug 3568424
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13842 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-18 19:22:14 +00:00
lissav ce053414e4 fix getSNList to be filter out the MN if ALL not selected
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13841 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-18 13:18:59 +00:00
lissav a98a295d23 new interface to getAllSN due to MN in servicenode table, also added use strict back in loss on the split and fixed the errors
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13840 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-18 12:57:53 +00:00
lissav 8248d56a4f add use strict back
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13839 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-18 12:42:49 +00:00
ligc 58831323b3 fix for bug 3568791: add nfs export options -vers 3:4 for /install/postscripts on SN
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13837 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-18 12:07:55 +00:00
lissav 27c94dec21 xcatconfig -m only sets group=__mgmtnode
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13836 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-18 10:52:30 +00:00
lissav dfb8898ec2 remove postscripts.rules
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13835 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-18 10:48:57 +00:00
lissav 11d885a025 remove postscripts.rules
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13834 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-18 10:48:20 +00:00
daniceexi a6f2f19082 several fixes for rhevm support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13832 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-18 08:32:45 +00:00
wanghuaz a18f195f0d Fixing bug 3567143 and 3568764, update PE/essl for hpc integration
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13830 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-18 06:52:34 +00:00
immarvin 36dda35ce0 corrected the issue that PBS cannot run in first boot after installation
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13829 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-17 11:12:39 +00:00
ligc 293d1c0209 fix for bug 3567955: parse the hostname to ip address before indicating more than one xcatmaster for HA SN
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13828 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-17 09:17:23 +00:00
daniceexi 6fb54f8730 remove a empty line which cauased an warning during pod2html
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13826 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-17 07:10:20 +00:00
jbjohnso ccaacfd954 Fix mistake with sid increment
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13823 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-16 12:55:27 +00:00
lissav cb0d7edc64 fix incorrect library for get_site_attribute
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13822 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-16 10:23:47 +00:00
jbjohnso fe4b65400f Several changes to improve IPMI behavior, *particularly* with IPMI 2.0
-Go back to restarting the log in process if rakp2 or rakp4 goes awry, it's too likely for a dropped packet to confuse IPMI 2 devices.
-Fix relog to reset session context to avoid getting distracted by now stale RAKP messages if the IPMI device happened to be slow
-Switch session ids on relog, so that everything can ignore packets from a zombie IPMI session reliably (e.g. relog recovery of a session).
-In parse_ipmi_payload, delete pendingargs in addition to deleting sessions_waiting entry.  The latter should have sufficed, but there persisted an odd
 issue where sometimes the last non-logout packet was erroneously retransmitted as retries at the end.  This change short-circuits
 the timedout function should this occur, generally delaying exit by 100 milliseconds whet it goes wrong.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13815 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-16 03:53:43 +00:00
jbjohnso 98ffaf7fbc In accordance with previous change, always act as if logout completed successfully without checking the result
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13812 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-15 13:23:30 +00:00
jbjohnso 9bab28ab00 When doing close session, if the reply packet is dropped on the network, session may no longer be closeable. Send a close session and hope for the best, do not hold up things waiting
for something that shall never come

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13811 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-15 13:23:22 +00:00
jbjohnso 8f1fd066e2 Fix problem where rvitals fails to gracefully handle situations like timeout on a sensor read
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13810 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-15 00:57:52 +00:00
jbjohnso 95fbd48c1e Eliminate instances of recursive timedouts really ruining our day in IPMI
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13809 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-15 00:57:44 +00:00
jbjohnso 1f5e91d32e Rework IPMI.pm IPMI 2 session negotiation a bit, now we take care to make sure the most recent open rmcp+ request is the one used
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13808 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-15 00:57:28 +00:00
jbjohnso 64d767ab44 Revise ipmi 2 session establishment to be more forgiving of retries during the process
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13805 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-14 15:01:43 +00:00
lissav 0680a2fab9 add XML getTablesAllRowAttribs routine
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13804 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-14 13:25:54 +00:00
daniceexi d6ee2b1072 defect 3539473: disable the xcatdebug to be run on aix
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13803 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-14 13:24:12 +00:00
daniceexi dded0c9f2d add a new site attribute site.tftpflags which used to specify the tftpd parameters
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13801 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-14 12:40:18 +00:00
xq2005 827a711e6b add nfs-common, snmpd into default pkglist for ubuntu full install
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13799 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-14 08:33:46 +00:00
xq2005 40837eb2ed support pkglist for ubuntu full install
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13798 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-14 08:01:03 +00:00
immarvin 4f638c093b correct some typos
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13797 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-14 03:16:04 +00:00
daniceexi 451b2e3f2a fix the defect that force to stop xcatd for each restart
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13796 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-14 03:14:45 +00:00
immarvin d5b11ebfcb add a new value nodelist.status=failed
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13794 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-14 03:07:13 +00:00
immarvin 16716de481 set site.nodestatus as a environment variable {NODESTATUS}
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13793 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-14 02:58:34 +00:00
immarvin 18685bccef add a global variable return_value to keep the return value of the postbootscripts, do not update nodelist.status if site.nodestatus='n'
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13792 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-14 02:46:50 +00:00
immarvin dc1d86412c set nodelist.status to failed if some postscript or postbootscript failed
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13791 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-14 02:31:14 +00:00
immarvin 38e5b69d6b set nodelist.status to failed if some postbootscript failed during node privision;prohibit status update if site.nodestatus='n'
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13790 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-14 02:15:23 +00:00
jbjohnso 54f4616dbc Rework IPMI seqlun management to avoid accepting the same data twice as valid instead of retry
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13788 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-13 21:00:07 +00:00
lissav 56ab665d2a change name
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13787 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-13 18:24:34 +00:00
phamt 616a35fd01 Replaces tabs with 4 spaces and formatted code.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13785 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-13 16:04:42 +00:00
lissav 624fc39bbf V0.15 of the Schema
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13784 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-13 13:15:28 +00:00
lissav e786262c56 add getTablesNodeAttribs XML support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13782 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-13 12:01:48 +00:00
brianfinley 253a5dd478 - s/atrribute/attribute/
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13781 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-12 21:06:23 +00:00
linggao 14e4537d80 use nmap before using fping in PPCenergy.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13780 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-12 19:24:22 +00:00
linggao 500cbef47d eliminated the dependency on fping for Linux
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13779 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-12 15:47:43 +00:00
linggao 0592ad03d6 changed the monitoring code to use nmap for getting node status
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13778 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-12 15:05:57 +00:00
lissav 25c4b4ec8f checkin getTablesAllNodeAttribs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13776 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-12 13:45:34 +00:00
daniceexi c624d51c86 fix the issue of clone vm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13775 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-12 08:25:07 +00:00
zhaoertao be8fea6a0e fix bug 3558819: rscan cannot identify mm as CMM for firebird
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13773 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-12 08:10:26 +00:00
jjhua 6adf22b30e remove some improper comments.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13771 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-12 06:40:26 +00:00
jjhua 63dc1b56cb link the osdistroupdate to ../bin/xcatclientnnr
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13770 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-12 06:37:09 +00:00
jjhua 408d57ecb2 osdistroupdate command -- an internal command. Creating/listing/deleting os distro updates
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13769 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-12 06:32:45 +00:00
amy0701 30866f093c update testcase
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13768 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-12 06:25:35 +00:00
lissav 6706171e02 Match V0.14
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13766 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-11 17:54:19 +00:00
linggao 398989df54 modified the description for switch.vlan and switch.interface
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13765 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-11 15:22:42 +00:00
lissav 7a4cc33c2a PCM schema matched to V 0.13 of design doc
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13762 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-11 14:01:41 +00:00
jbjohnso 4624ff5fe6 Back off change to discovery process to care one way or another about 'primary' interface
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13761 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-11 13:42:33 +00:00
lissav 8d491dc184 PCM schema matched to V 0.13 of design doc
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13759 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-11 13:25:17 +00:00
lissav c1906b8e08 rename XML routine to setNodesAttribs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13757 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-11 11:33:45 +00:00
leiaibj d89e6e1c7c Update codes after xCAT team review. comments: add more comments in codes, and also use runxcmd instead of call request commands directly
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13756 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-11 06:14:50 +00:00
daniceexi a72e4b8fbe update the usage for ls/cfgve, ch/rmhypervisor
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13754 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-11 06:08:13 +00:00
ligc 12622d0ca6 fix for osimage.postscripts and osimage.postbootscripts are not run on compute nodes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13753 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-11 05:47:53 +00:00
jbjohnso 842cb67bd6 Correct RHEL grub buggy behavior when detected on EFI installs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13751 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-10 20:47:52 +00:00
jbjohnso 7cf628060e Fix problem where only one profile was processed
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13750 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-10 20:26:55 +00:00
linggao 102aa513e4 bug fix
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13749 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-10 19:35:23 +00:00
lissav 8f99448693 fix how to define mn in the database
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13748 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-10 19:02:08 +00:00
lissav d913682fe2 base check for MN on __mgmtnode group name
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13747 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-10 18:59:47 +00:00
jbjohnso 93f5b9f6cb Make extra effort to assure /mnt/xcat is not held in event of catastrophe
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13746 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-10 18:58:03 +00:00
lissav 45edd600c4 change MN group to __mgmtnode
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13745 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-10 18:51:35 +00:00
daniceexi 39e43e0b40 refine the man page for cfgve
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13744 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-10 14:43:21 +00:00
daniceexi d9d192de53 add man page chhypervisor to replace cfghost
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13740 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-10 13:53:32 +00:00
daniceexi d853aa4373 move cfghost to chhypervisor
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13739 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-10 13:49:17 +00:00
daniceexi aff57805a0 move man page of cfghost to chhypervisor and add rmhyperviso
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13738 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-10 13:42:57 +00:00
daniceexi 5f0356e6b1 use ch/rmhypervisor to replace the cfghost command. fix the network attaching and cfg host nic issues
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13737 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-10 13:15:51 +00:00
daniceexi 068d432542 For rhev support: remove the vm.template, but use vm.master to replace
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13734 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-10 13:07:31 +00:00
daniceexi 4b5020cf72 defect 3552206: removed the limitation that forbid the updatenode -S to diskless node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13733 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-10 07:55:07 +00:00
asirxing 79f855fb79 Updte header of initCFMdir to fix unrecognizable characters
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13732 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-10 02:56:08 +00:00
asirxing 958140ee82 Updte header of initCFMdir to fix unrecognizable characters
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13731 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-10 02:48:52 +00:00
daniceexi 23a2c6c60f defect 3564667: fix the path for SL6 which will use the common path
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13730 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-10 01:48:33 +00:00
lissav a53aa1be66 Remove obsolete code
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13728 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-08 10:14:07 +00:00
lissav c5f1214469 Take out bad host processing until redesign to get rid of inf loop in getdata
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13727 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-08 10:11:32 +00:00
nott 696c1b486a fix statelite setup bug - 3564958
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13725 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-07 18:21:23 +00:00
leiaibj bef2a2a82e Node management sprint2 works, reviewed by xCAT beijing team
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13724 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-07 08:19:36 +00:00
lissav 6961c84384 fixed hierarchy -k, still some work to do in that area and more testing
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13723 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-06 19:23:22 +00:00
lissav a5bd669943 fix defect 3564697
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13721 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-06 15:49:56 +00:00
jbjohnso ae54f6a4c5 This needs to be rethought, it breaks x netboot
Revert "fix bug 3529429 for kdump failed on non-p7 ih plinux"

This reverts commit 9eb7de3d634ca1f7fe857df50976ca6614281e83.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13720 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-05 21:09:18 +00:00
lissav aff28da21d xdsh adding an undef entry on the returned data, causes syntax error in runxcmd you only see under bypass mode
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13719 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-05 17:22:11 +00:00
wanghuaz bdb522e621 Fixing bug 3563735: remove several ksh scripts on Linux management nodes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13717 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-05 08:09:08 +00:00
lissav 5fb0a1989e xCAT Schema based on V11 of the database arch doc.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13716 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-04 15:32:32 +00:00
jbjohnso a31a7ad78d Fix iso with space
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13715 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-04 14:15:55 +00:00
ligc ffc39dff2e add additional steps into xcatconfig: disable selinux, configure static ip address, setup ntp server, disable firewall
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13714 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-04 09:24:29 +00:00
ligc 2736fe0588 add new postscript configfirewall for PCM team
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13713 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-04 09:18:37 +00:00
daniceexi 0328c2b9e7 fix the missunderstanding for the kernel parameter rhevm_admin_password. Which is used to set the root passwd of host
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13712 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-04 07:48:26 +00:00
amy0701 3238ea6760 add diskless installation for sles ppc64
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13710 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-04 02:45:42 +00:00
jjhua c8499d58c1 updatenode performance enhancement: remove the code to get the postscripts.tgz, This method is not acceptable.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13708 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-04 02:38:11 +00:00
jjhua e6ace37bc9 updatenode performance enhancement: remove the code to tar postscripts. This method is not acceptable.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13707 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-04 02:37:01 +00:00
wanghuaz a831051d1b fixing bug 3562874: use modules.dep to get nfs.ko dependencies and add them to initrd
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13706 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-03 09:34:52 +00:00
daniceexi 424c0e1476 fix the issue that missed to add the xcatrhevh.cgi to the xcat-ws.conf
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13704 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-03 09:08:11 +00:00
yinle 55cbc5fa4b fix bug 3563351: lsslp -r flag provides error on ST NGP xCAT MN
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13703 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-03 07:39:45 +00:00
xq2005 fe70b3731a update the discover page
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13700 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-03 04:07:34 +00:00
amy0701 c6492af56f update linux_full_installation to support sles11
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13699 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-03 03:13:02 +00:00
amy0701 1c0206320f add testcases for ngp firebird
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13697 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-03 02:38:42 +00:00
xq2005 65d1ad39bc the code change for flush output
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13694 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-03 02:29:29 +00:00
phamt fa3822b7b3 Fixed makehosts problem in xCAT-UI.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13692 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-01 12:32:02 +00:00
phamt 2a6d3fa386 Fixed s390x postscripts to use HTTP server instead of FTP.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13691 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-09-01 03:28:41 +00:00
nott d22ed464ab fix output from chroot command
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13688 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-31 17:44:06 +00:00
jwsimpson e9a96fbfbe Updates to support postbootscripts on reboot
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13687 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-31 15:52:31 +00:00
bp-sawyers 804db0fabd documented site.usexhrm attribute
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13686 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-31 14:28:04 +00:00
daniceexi 22645aa791 Fix the issue that missing of display id attribute for Blaketip blade that mgt=ipmi
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13685 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-31 09:17:35 +00:00
daniceexi 628c765718 add the supported type for dc,cl
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13681 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-31 07:06:43 +00:00
xq2005 28d00d9d8a copycds return directly if the file is not a ubuntu iso
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13680 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-31 06:48:08 +00:00
xq2005 27542f3df8 tftp start on ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13679 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-31 06:44:44 +00:00
immarvin 01461cdc50 add some comments
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13678 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-31 06:22:57 +00:00
immarvin 1f0807ab5c link rmosdistro to xcatclientnnr
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13677 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-31 03:31:39 +00:00
immarvin 7cc1cc8616 delete lsosdistro and mkosdistro, add comments
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13676 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-31 03:29:22 +00:00
immarvin 14379fd1a6 remove xcatosdistro, use xcatclientnr
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13675 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-31 03:27:06 +00:00
xq2005 5adde1bca5 fix compress error
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13674 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-31 02:48:04 +00:00
asirxing 31b3a8ab64 Add PCM CFM utilities
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13673 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-31 01:37:38 +00:00
lissav c7cf72f3a2 fix for defect 3546058
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13672 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-30 17:14:21 +00:00
lissav 1fdcfdb959 fix for defect 3562802
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13670 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-30 16:05:33 +00:00
lissav d0d45062f6 add new hpc scripts from perf team
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13669 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-30 15:07:38 +00:00
cjhardee c30c73c726 Allowed the put data to be passed in the query string for table puts and patches
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13667 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-30 15:01:58 +00:00
lissav cd5a26cc0a add ping-all sample
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13666 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-30 14:47:08 +00:00
lissav e51aab606c add info
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13665 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-30 14:27:09 +00:00
phamt 6b9007e64a Undo some of the latest changes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13663 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-30 14:01:04 +00:00
lissav 612ce0ae0e make running mkknowhosts and setup of ssh keys ( xdsh-k) a common routine
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13662 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-30 12:41:20 +00:00
immarvin f5eb1bc89c man info for rmosdistro
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13661 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-30 10:55:18 +00:00
immarvin 367ae48231 plugin to support osdistro management
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13660 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-30 10:06:40 +00:00
immarvin dc6eeace31 plugin to support osdistro management
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13659 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-30 10:00:37 +00:00
immarvin 9fc62249bd create a link bin/rmosdistro to bin/xcatosdistro
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13658 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-30 09:37:17 +00:00
immarvin 5110d39705 add osdistro management cmds, such as rmosdistro
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13657 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-30 09:33:10 +00:00
immarvin 452dbe05a6 add update_osdistro_table , modify update_tables_with_templates and update_tables_with_templates to support osdistro
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13656 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-30 09:22:56 +00:00
immarvin fc1e1386a1 update osdistro table after copycd
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13655 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-30 09:20:34 +00:00
immarvin 50d6a62ca6 update osdistro table after copycd
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13654 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-30 09:19:27 +00:00
immarvin 27b063b125 add osdistro table definition and defspec, add osdistroname attribute for osimage
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13653 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-30 08:55:17 +00:00
immarvin 96943769a1 update the getaddsensorevent for new sensor events
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13651 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-30 07:09:50 +00:00
immarvin f0e2c1dee5 update the getaddsensorevent for new sensor events
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13650 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-30 06:48:21 +00:00
zhaoertao 11969ad8ef modify the calling of subroutines that moved out of Utils.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13648 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-30 05:41:24 +00:00
xq2005 9dc24a55c8 support the dhcpd service on ubuntu 12.04
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13647 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-30 02:16:24 +00:00
jjhua 49340ac37d comment out the debug messages
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13646 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-30 01:56:59 +00:00
daniceexi 30c719679b add the support for creating localfs storage domain and creating of data center and cluster
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13645 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-30 01:54:39 +00:00
jjhua 8d6902753a use , instead of : as the delimiter in the value of the osimage.pkgdir
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13644 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-30 01:52:27 +00:00
nott 4dc8589031 fix the copying of client_data files
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13642 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-29 18:42:41 +00:00
lissav 37bfa46c47 Add some comments about how xdsh handles the -E <file>
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13641 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-29 17:11:57 +00:00
lissav 7ad66da239 Add some comments about how xdsh handles the -E <file>
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13640 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-29 17:03:22 +00:00
lissav bd52d4bc3b add support for ENV variable input
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13637 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-29 14:53:19 +00:00
lissav 61effa015c add support for ENV variable input
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13636 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-29 14:49:36 +00:00
lissav ac50b60f73 fix man page
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13635 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-29 14:12:21 +00:00
lissav 709cd8c0ac add check for perl-DBD-Pg installed
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13634 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-29 13:50:56 +00:00
lissav 76f7e2310c Got non-hierarchical node updatenode -k working correctly, some cleanup, more to do
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13633 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-29 10:21:39 +00:00
lissav 48367b9fb6 fix getNodesAttribs multiple entry problem
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13631 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-28 19:37:01 +00:00
lissav 5c1a1383f9 document getNodeAttribs improvement
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13627 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-28 15:07:28 +00:00
jjhua 82719795ef updatenode performance enhancement.1. get the /postscripts.tgz firstly, if fails, try the original procedure; 2, remove the sleep() action in xcatdsklspost script, because Jarrod did some enhancement in xcatd
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13626 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-28 11:43:52 +00:00
jjhua fcf725f88d updatenode performance enhancement. 1, tar the postscripts for xcatdsklspost
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13625 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-28 11:39:41 +00:00
daniceexi 5a2e1e6a04 fixed a typo to generate the path of initrd
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13624 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-28 08:29:10 +00:00
linggao 014006e510 multi vlan support for kvm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13622 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-27 20:28:24 +00:00
daniceexi 15dd2b9ad2 Add man pages for rhev commands
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13618 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-27 14:00:27 +00:00
daniceexi ce0980f030 add usage for rhevm commands
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13617 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-27 13:58:14 +00:00
yinle 7f0c5a915f Fix the mistake that bpa has redundant 0 in ip address (41.01.0.1).
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13616 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-27 07:05:05 +00:00
yinle a2e8f65c21 Fix the mistake that xcatsetup defines redundant fsps.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13615 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-27 06:49:19 +00:00
yinle 182de6c93b performance improving of discovering hmc.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13614 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-27 06:11:39 +00:00
lissav dba7c5d40d fix defect 3555748
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13613 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-26 11:22:55 +00:00
lissav faf26892fd remove --user and --devicetype support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13610 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-26 10:07:41 +00:00
daniceexi 6d541ab510 Add the functions: delete SD, chvm, rpower suspend
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13609 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-26 04:33:19 +00:00
jbjohnso f5fee75ae9 Enable a node to control reporting of it's own state more carefully... provided it has an x509 certificate we bless.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13608 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-24 17:12:57 +00:00
lissav 7ee8876bfd add routine to divide nodelist into service and non-service nodes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13607 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-24 16:50:07 +00:00
jbjohnso c919a2cd2a Add missing IPMI sensors
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13604 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-24 13:59:25 +00:00
yinle dd42e9502d Made performance improvement of writing db.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13603 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-24 07:13:47 +00:00
yinle e5e92c55b8 Add some sleep to avoid http failure. Modify some trace information.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13601 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-24 02:10:40 +00:00
yinle 9261722205 Add some sleep to avoid http failure.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13599 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-24 01:55:11 +00:00
yinle 5ec7211f01 minor fix: remove the restriction of flag -t; modify hmc service type of slp request.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13597 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-24 01:35:32 +00:00
bp-sawyers 662046861d remove explicit perl-Net-Telnet requires from xCAT.spec and xCATsn.spec because it is automatically generated by rpm anyway
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13596 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-23 20:04:13 +00:00
jbjohnso 55c3a0ef04 Sometimes IPMI 2 implementations randomly complain about our math being wrong once in a few thousand tries, start over from scratch should this occur
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13593 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-23 18:21:25 +00:00
lissav 89a683b796 Let internal env variable override, still getting hostnames in request->{username}
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13592 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-23 18:20:17 +00:00
nott d01a86fe6c add completeosimage option
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13591 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-23 17:14:07 +00:00
jbjohnso 7fce0d11b6 Further refine IPMI support, now pretty solid for 5,000 nodes at a time, still one more condition to recover from, erroneous bad auth code
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13590 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-23 17:08:52 +00:00
nott cc76a05db4 add getNodeDomains
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13589 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-23 16:56:08 +00:00
lissav 7e171eb1df remove --userid --devicetype from updatenode
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13588 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-23 14:38:35 +00:00
lissav 9e892799d6 fix defect 3555671
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13587 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-23 13:56:05 +00:00
lissav 324bbc20f6 fix library
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13585 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-23 11:12:26 +00:00
lissav de83e9c163 fix library for get_ServiceNode
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13584 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-23 11:07:27 +00:00
daniceexi 2479aba866 add vmmanager and vmtemplate attributes for rhev vm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13583 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-23 09:17:26 +00:00
daniceexi 0ced77f05b minor changes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13582 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-23 09:16:34 +00:00
zhaoertao a732cb476d fix bug 3556007: modifications related to Utils.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13581 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-23 04:21:28 +00:00
lissav 564a5df5cb Moving the true error after the usage, it obscures the true error
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13580 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-22 19:13:27 +00:00
linggao 6b6b44b04e fix for vlan
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13579 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-22 19:09:26 +00:00
lissav 1078300eab some improvements and remove --userid --device support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13578 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-22 19:08:06 +00:00
lissav 57bd1255c1 some improvements and remove --userid --device support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13577 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-22 19:05:10 +00:00
nott 24ebb08c18 add -c option to mknimimage - 3509405
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13576 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-22 17:44:55 +00:00
lissav 3c4d265607 change and force build
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13575 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-22 13:33:51 +00:00
zhaoertao 78dd04ac4a fix bug 3556007: modifications related to Utils.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13574 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-22 07:36:09 +00:00
lissav 0864a72444 dumpxCATdb and restorexCATdb had wrong library for get_site_attributes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13573 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-21 19:46:39 +00:00
mellor b55da8ad16 3560316 change initial mount timeouts to match NFS defaults
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13572 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-21 13:00:15 +00:00
lissav d91af1c001 fix defect 3558801
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13570 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-21 11:11:58 +00:00
wanghuaz 97e4c8fac6 Added dev nodes in hpc integration which could install all the applications and their dependencies.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13569 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-21 08:25:04 +00:00
ligc 6007f02085 fix for bug 3560143: setup postgresql during xcat installation
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13568 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-21 06:43:25 +00:00
ligc 934084df40 fix for bug 3560143: setup postgresql during xcat installation
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13567 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-21 06:17:07 +00:00
yinle 032a6d79dc Fix bug 3543531:getAllNodeAttribs take too much time
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13565 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-21 01:52:35 +00:00
ligc 151d11a3b9 fix for bug 3559982: chmod 755 for the netboot postinstall files
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13563 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-21 01:36:58 +00:00
lissav e42b3dc34a backup change until see how many way called
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13562 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-20 20:52:20 +00:00
lissav 9959367888 fix check for updatenode
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13561 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-20 20:39:05 +00:00
linggao bfd8e946be changes for multi vlan support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13560 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-20 20:00:45 +00:00
lissav 9bd7ba8625 fix defect 3558801, do not set TZ if called by updatenode
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13559 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-20 16:32:28 +00:00
daniceexi a16b7d5144 Add cfghost,lsve,chfgve commands
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13558 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-20 14:03:30 +00:00
daniceexi 044395f7cf Add alias for xcatrhevh.cgi to web service
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13557 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-20 13:59:00 +00:00
daniceexi 418c371dae Add cgi to handle the status update for rhev-h when finished installing
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13556 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-20 13:51:40 +00:00
daniceexi 3ce3fc1db7 Code drop for rhev support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13555 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-20 13:49:43 +00:00
daniceexi e3a7aa5f47 rhev support: pass source file to child pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13554 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-20 13:48:24 +00:00
daniceexi 436923e881 rhev support: add virtsd table and columns for vm and hypervisor tables
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13553 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-20 13:47:51 +00:00
daniceexi 8caf1afbe2 rhev support: skip running of mkinstall for rhevh
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13552 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-20 13:47:03 +00:00
zhaoertao e2e4361957 fix bug 3531793: wrong error message in rspconfig cmm initnetwork=*
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13551 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-20 07:26:39 +00:00
zhaoertao 940b7aef40 add prefix path for genpassword
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13549 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-20 04:35:15 +00:00
nott 67a96aa58d don't overwrite provmethod - 3557471
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13547 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-17 16:16:12 +00:00
lissav 449278bf97 defect 3414740 Merge aixremoteshell/remoteshell
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13546 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-17 11:44:15 +00:00
lissav 69684fce04 defect 3414740 Merge aixremoteshell/remoteshell
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13545 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-17 11:40:56 +00:00
lissav 1b336f15be defect 3414740 Merge aixremoteshell/remoteshell
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13544 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-17 11:39:23 +00:00
zhaoertao 62b01be3d2 fix bug 3558853:genimage need tg3 for firebird plus ppc64
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13543 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-17 09:07:37 +00:00
lissav 64585ccfcb fix defect 3558575
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13540 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-16 19:06:36 +00:00
nott 89ff24c51f do multiple bundles at once
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13539 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-16 18:36:07 +00:00
lissav 977b5c667a fix for defect 3556007
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13537 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-16 15:28:09 +00:00
lissav d69aea85f2 fix for defect 3556007
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13536 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-16 15:26:53 +00:00
lissav 4affb884ff Sn spec should be doing a restart of xcatd not a start
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13535 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-16 14:58:41 +00:00
nott 2c19058ab0 fix check ofclient name
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13533 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-16 13:54:27 +00:00
nott 9bde1bf177 add check for persistent /var/adm/ras
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13532 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-16 13:20:44 +00:00
jjhua 641a7eca86 chmod +x to configiba.1port and configiba.2ports
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13530 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-16 08:00:33 +00:00
jjhua 09ce0901e1 fix bug 3558059. For Network controller: Mellanox Technologies MT27500 Family [ConnectX-3], there is not a keyword like InfiniBand, add Mellanox as the keyword; in mellanox ofed 4.0.x, it doesn't up the ib0/ib1 interfaces by default, so I update the configiba scripts.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13528 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-16 07:52:35 +00:00
jjhua 11e2ef4840 fix bug 3558059. For Network controller: Mellanox Technologies MT27500 Family [ConnectX-3], there is not a keyword like InfiniBand, add Mellanox as the keyword; in mellanox ofed 4.0.x, it doesn't up the ib0/ib1 interfaces by default, so I update the configiba scripts.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13525 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-16 07:43:16 +00:00
zhaoertao 64519483ae list out all the functions that has been moved out of Utils.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13524 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-16 07:03:02 +00:00
jjhua dd3545d945 fix bug 3558059. If the os was updated from sles11 sp1 to sless11 sp2, and the mlnx-ofa_kernel-kmp-default could not be installed successfully. enhance the mlnxofed_ib_install scripts
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13523 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-16 06:40:59 +00:00
jjhua c3154bc47e support the mellanox ofed 4.0.x for sles11sp2
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13521 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-16 03:13:40 +00:00
jjhua 7659e028c5 support the mellanox ofed 4.0.x for sles11sp2
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13519 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-16 03:11:12 +00:00
yinle bfe8d7b327 part of the fix of PMR 29187,066,866
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13516 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-15 13:52:26 +00:00
xq2005 b27e9870ec realtime output for xcat command
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13514 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-15 12:45:57 +00:00
lissav 0113179a9c better example
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13513 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-15 11:38:01 +00:00
lissav 9561b79bf2 better example
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13512 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-15 11:36:24 +00:00
wanghuaz a498785451 Moving several changes from 2.7 branch to trunk.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13511 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-15 09:53:16 +00:00
nott 24c9ddd1be fix error msgs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13508 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-14 15:32:31 +00:00
zhaoertao f587c4d535 fix subroutine moving issue in perl-xCAT/xCAT/
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13506 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-14 12:02:13 +00:00
zhaoertao a70a6401fa fix subroutine moving issue in xCAT-server/lib/xcat/monitoring/
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13505 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-14 11:57:30 +00:00
zhaoertao 3eda693ede fix subroutine moving issue in xCAT-server/lib/xcat/plugins/
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13504 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-14 11:55:48 +00:00
zhaoertao 14afeedb9e fix subroutine moving issue in xCAT-server/sbin/
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13503 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-14 11:48:59 +00:00
xq2005 2204106886 full install ubuntu on compute node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13502 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-14 11:22:52 +00:00
yinle ed1ca97eae minor modify about print information.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13501 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-14 06:53:05 +00:00
lissav 58543b771c fix changed routine
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13499 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-13 20:10:57 +00:00
jbjohnso abd6e28509 Correct errant addition of line te spec file
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13498 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-13 19:51:17 +00:00
yinle 605c3ff43c Modify resetnet for demo.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13492 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-11 14:21:42 +00:00
yinle 028498f34e Modify the process of resetnet for demo.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13491 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-11 11:06:49 +00:00
yinle 448c709aed Fix some mistakes; add control to invoke disconnect.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13490 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-11 11:03:54 +00:00
yinle ca15e05f2d Add print information to lsslp. Put in the prm modification.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13489 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-11 07:05:28 +00:00
yinle b9f170fea9 Add print information to lsslp.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13488 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-11 06:56:45 +00:00
yinle 22fe09edb0 Fix bug 3555911: lsslp -I output format is different from manpage
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13487 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-11 06:41:12 +00:00
yinle 916bd86a87 Fix bug 3555910:lsslp -i gives reduntant info which is not specified by -i
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13483 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-11 06:23:35 +00:00
jbjohnso d5064385f8 Fix problem where nodestat would make two ipv4 passes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13482 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-10 16:23:23 +00:00
amy0701 9590babced update testcases for imgexport
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13481 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-10 05:30:30 +00:00
amy0701 4e18949f09 update testcases for imgimport
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13478 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-10 04:35:29 +00:00
lissav 41b34ff9cb add check if nodetype defined
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13477 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-09 16:14:44 +00:00
amy0701 7d6b66d06a update testcase for lslite
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13476 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-09 09:33:42 +00:00
amy0701 0be7b150fd update testcase for geninitrd
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13475 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-09 09:32:26 +00:00
daniceexi c9c00ec7fd defect 3555500, supress the warning when run xcat command in XCATBYPASS mode. It only happens for sles11.sp2
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13470 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-09 08:54:22 +00:00
xq2005 59e6c5f418 code format in debian.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13469 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-09 08:49:43 +00:00
zhaoertao f06b7dbbc5 for item: clean up Utils.pm, the code in xCAT-UI/xcat/plugins/
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13468 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-09 04:10:24 +00:00
zhaoertao 40e144b4cc for item: clean up Utils.pm, the code in xCAT-server/lib/xcat/plugin/
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13467 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-09 04:07:40 +00:00
zhaoertao 3a4f26c3cc for item: clean up Utils.pm, the code in xCAT-server/lib/xcat/monitoring
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13466 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-09 04:05:37 +00:00
zhaoertao b9811ba810 for item: clean up Utils.pm, the code in xCAT-server/lib/xcat/dsh/Context/
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13465 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-09 04:03:01 +00:00
zhaoertao e822d0406e for item: clean up Utils.pm, the code in xCAT-server/lib/per/xCAT/
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13464 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-09 04:00:45 +00:00
zhaoertao f0bc50d27b for item: clean up Utils.pm, the code for xcatd. the thishostisnot function has been moved to NetworkUtils.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13463 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-09 03:58:34 +00:00
zhaoertao 92c1e16522 for item: clean up Utils.pm, the code in xCAT-rmc/plugin/
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13462 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-09 03:51:11 +00:00
zhaoertao 571f3e3962 for item: clean up Utils.pm, the code in perl-xCAT/xCAT
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13461 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-09 03:48:50 +00:00
jbjohnso 21a301f6af Explicitly turn on network in templates that suggest network setup
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13460 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-09 02:05:53 +00:00
jbjohnso 887266cc70 First pass at masking stock init script from FSM
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13459 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-08 21:03:25 +00:00
jbjohnso 07b89a8df3 Hve nodestat also look for https server
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13458 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-08 20:59:29 +00:00
jbjohnso 1d4db3c080 Fix nmap to never attempt reverse lookup
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13457 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-08 20:56:47 +00:00
jbjohnso 9764d338cd Further refinements of IPMI, defer retries until there is a guaranteed chance given for BMC to reply
Ensure every transmit gives an opportunity to process incoming data

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13456 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-08 19:52:02 +00:00
nott 7ea019857e clarify use of -n option
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13454 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-08 18:14:19 +00:00
nott b01f3caece fix perl INC path
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13453 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-08 17:48:03 +00:00
nott a4ee0bb853 fix perl INC path
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13452 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-08 17:45:31 +00:00
nott 042c3cc544 fix perl INC path
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13451 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-08 17:37:51 +00:00
nott ac30816620 fix perl INC path
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13450 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-08 17:27:50 +00:00
lissav c0c737b26c use noderangecontainsMn routine
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13449 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-07 16:41:12 +00:00
lissav 35f3c53a4d use new noderangecontainsMN routine
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13448 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-07 14:57:31 +00:00
lissav 84ab9da2cf add check to see if the Management Node is contained in the defined noderange array input
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13447 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-07 14:55:24 +00:00
lissav af3efe7170 fix xdcp broken 3552171
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13446 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-07 13:25:52 +00:00
jjhua 6a491bec27 correct some grammar errors
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13443 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-07 08:54:11 +00:00
yinle 1285f0226c Fix PMR 29187,066,866
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13442 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-07 02:55:25 +00:00
jbjohnso 8d93c5ec4a Fixes for xcatws
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13440 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-06 21:04:24 +00:00
jbjohnso 4cc18fab26 Actually to flesh out osimage table, but don't complain when it fails
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13439 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-06 20:47:21 +00:00
lissav 958074c53a fix defect 3549482
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13438 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-06 10:00:48 +00:00
xq2005 d11a829dc4 change the fadump kernel parameter format
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13437 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-06 08:35:44 +00:00
xq2005 0d36fd6d84 change the fadump kernel parameter format
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13435 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-06 08:30:19 +00:00
wanghuaz 45492244fd Skipping comments in pkglist and ospkglist before processing
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13433 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-06 07:07:50 +00:00
amy0701 8efc881946 update testcase for copycds for sles
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13431 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-06 05:07:35 +00:00
amy0701 f1eb133bc5 update testcase for makedhcp
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13429 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-06 04:27:18 +00:00
cjhardee 18ee3bcc1d Hid the messages about updating the tables in certain circumstances, as it may be intentional
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13427 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-05 05:05:45 +00:00
cjhardee ee984847fb git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13426 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd 2012-08-05 05:04:07 +00:00
cjhardee 1acdee07e7 Made the unmounting lazy so it worked when in use
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13425 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-05 05:03:28 +00:00
lissav d489e54953 add MERGE info
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13424 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-03 10:40:56 +00:00
daniceexi bf530633a9 Add the logic that use the mac of cmm to match the cmm which found from slp when switch:port match failed
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13421 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-03 08:50:15 +00:00
daniceexi a1e347ade2 add the new command slpdiscover
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13420 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-03 08:48:26 +00:00
xq2005 c160394777 show the output information realtimely
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13416 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-03 02:57:33 +00:00
xq2005 026dd99301 support fadump on p7 ih
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13415 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-03 01:57:58 +00:00
xq2005 88922b24f6 support fadump on p7 ih cluster
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13413 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-03 01:51:51 +00:00
lissav b0618594cd Fix rsync function to MN, and filx APPEND
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13412 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-02 19:04:07 +00:00
nott 592546e369 check before restart inetd and nfsv4 setup
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13410 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-02 18:14:08 +00:00
lissav d9cb5c4112 change rsync to MN to use rsync not copy and fix xdcp other bugs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13409 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-02 16:23:08 +00:00
lissav 27abf7c267 backing out last fix, having syntax errors in test
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13408 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-02 15:10:25 +00:00
lissav c6695267b6 additional fix for 3552171, xdcp should not be syncing the synclist, if the node is not hierarchical
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13407 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-02 13:59:14 +00:00
bp-sawyers 5801156123 Have chain end in shell instead of standby
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13405 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-02 12:20:08 +00:00
amy0701 6fea46f2b1 update makedns testcase for sles
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13403 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-02 07:46:03 +00:00
yinle 48faf4570f Modify the return value of resetnet.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13401 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-02 07:05:09 +00:00
yinle 22b7c0ab32 Modify the return value of resetnet.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13398 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-02 06:54:50 +00:00
zhaoertao bc25b8b239 fix bug about 'hwtype' string changing into a string array in hierarchical environment.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13397 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-02 06:54:34 +00:00
ligc 3142f33bde fix for bug 3553437: add be2net driver into the default list, it is needed by blacktip blades work with SLES 11
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13394 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-02 06:08:50 +00:00
ligc 026398c7b2 fix for bug 3553437: add be2net driver into the default list, it is needed by Firebird blades work with SLES 11
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13393 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-02 05:31:49 +00:00
jjhua acca602ef7 update the rflash manpage to fix bug 3553161
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13390 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-02 02:58:09 +00:00
lissav 00de172334 fix defect 3552171
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13389 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-01 13:29:12 +00:00
lissav ad2cca4c3d fix defect 3552171
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13388 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-01 13:28:25 +00:00
amy0701 c1287bed47 update testcase for packimage
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13384 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-01 05:38:08 +00:00
amy0701 a101847d0e update packimage testcase
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13381 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-08-01 04:59:06 +00:00
bp-sawyers d7fbf909d4 Make the e1350 templates work with nodenames like n01, not just n1
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13379 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-31 18:36:50 +00:00
lissav 638838010c Left in bash so something working. Having trouble with the comm call in shell
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13378 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-31 16:24:37 +00:00
zhaoertao 51d77e198c fix bug 3552543 and 3442549, the FB->getmacs <noderange> cannot work
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13377 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-31 14:09:50 +00:00
lissav 6fb2e6b8be fix -f information
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13374 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-31 13:15:42 +00:00
lissav 7d2a734465 remove names from man pages
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13373 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-31 10:53:37 +00:00
lissav 24ce8ff3d1 more fixes for hierarchy
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13372 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-30 19:49:02 +00:00
jbjohnso 18052caaef Tweak IPMI retry to be more aggressive to reduce impact of occasional drops
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13371 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-30 19:22:46 +00:00
lissav 753efd9492 fix -f flag information
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13370 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-30 13:20:43 +00:00
xq2005 577836a519 support fadump on stateless netboot on redhat and ppc64
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13367 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-30 07:52:55 +00:00
yinle cb28d3555c Fix the mistake that removing callback from the SLP.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13366 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-29 13:42:03 +00:00
lissav 356f765c83 updated for merge but still needs testing
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13364 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-27 18:20:08 +00:00
lissav 6041cb6a8f checkin merge support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13363 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-27 15:33:13 +00:00
yinle 0ecdb2c460 Made some performance improvement.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13362 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-27 14:17:37 +00:00
yinle b05adb16ba Fix a mistake and do some performance improvement.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13360 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-27 14:11:12 +00:00
xq2005 3a8ba9b243 change the layout on discover page
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13357 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-27 06:24:11 +00:00
xq2005 958261b8e1 show the return information on the page
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13355 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-27 04:54:26 +00:00
jbjohnso 83334fb3f5 Have getpostscript work with node x509 auth
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13354 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-26 19:31:13 +00:00
jbjohnso b582f177f6 Fix mistake in slpdiscover.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13353 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-26 18:59:08 +00:00
lissav df23c21198 more testing
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13352 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-26 15:20:49 +00:00
jbjohnso 2beaf85453 Fix problem where IPMI 1.5 timeouts would bug rather than properly report problem
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13351 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-26 13:10:39 +00:00
lissav f7fc5f7321 fix defect 3549072
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13350 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-26 12:10:23 +00:00
jjhua 42cf1d088e create the KERNELDIR for ospkgs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13349 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-26 09:12:26 +00:00
jjhua 9c1636bbe6 support ospkgs with multiple package paths of pkgdir
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13348 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-26 08:23:38 +00:00
jjhua c7e782afc4 remove my code in r13321, back to r13300
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13347 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-26 07:27:08 +00:00
jbjohnso f19277afe8 Rework pulling packets off the socket, less delay in moving data to a more stable data structure
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13346 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-25 20:19:20 +00:00
jbjohnso 825e410d16 Rework IPMI.pm a tad for better sacalbility
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13345 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-25 20:19:08 +00:00
lissav 68736e5789 merge script to be run by xdcp to support the MERGE function, more testing needed
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13344 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-25 16:59:07 +00:00
nott 5dea590474 add /proc setup for hasn env
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13343 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-24 15:20:21 +00:00
xq2005 85460c3f2e support upload the vpd and mtms file
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13340 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-24 12:17:04 +00:00
zhaoertao fe27cd788f fix a bug about 'chvm <lpar> lparname=xxx' not work properly
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13338 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-24 06:53:31 +00:00
wanghuaz f7b7027c5a Added ksh as a dependency of gpfs 3.5.0.3
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13335 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-24 05:34:30 +00:00
yinle 5877d372ff Performance improvement on processing slp ppacket
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13333 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-23 14:53:53 +00:00
xq2005 9f52269d85 modified for darpa demo
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13331 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-23 10:13:30 +00:00
xq2005 fd39f52d46 add resetnet process for p7 ih cluster setup
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13329 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-23 10:06:51 +00:00
yinle e8634f6f48 remove callback subroutine in lsslp.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13327 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-23 07:40:51 +00:00
yinle b24f31515d remove callback subroutine in SLP.pm.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13325 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-23 07:33:51 +00:00
jjhua 4ac9f2e224 this code change is for the changes in Postage -- put the OSPKGDIR attribute in the /xcatpost/mypostscript firstly. To support ospkgs enhancements to install/upgrade OS packages from Updates, it still needs some code changes in ospkgs.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13324 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-20 09:55:45 +00:00
zhaoertao 00ac099deb fix bug 3546270:rspconfig <cec> HMC_passwd=xxx output error message, for hierarchical environment
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13323 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-20 09:54:54 +00:00
jjhua 4d96588172 To support ospkgs enhancements to install/upgrade OS packages from Updates , we should put the OSPKGDIR attribute in the /xcatpost/mypostscript firstly
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13321 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-20 08:47:17 +00:00
immarvin ee64dabb27 download rmcmon related scripts and resource files with http
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13316 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-19 06:57:13 +00:00
lissav 8acf0432cb fix 545451
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13314 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-18 17:07:55 +00:00
lissav 38b6ef1f6c fix 545451
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13313 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-18 16:42:40 +00:00
lissav 731b3d3bf9 fix logic on call to genSSHNodeHostKey, should only be called with -u -i -f -s flags
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13312 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-18 11:35:32 +00:00
xq2005 edc06a1908 change the server side code for darpa demo
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13311 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-18 08:13:14 +00:00
bp-sawyers 1d781685c5 Improved description of syspowerinterval and syspowermaxnodes for ipmi case.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13309 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-17 17:39:12 +00:00
lissav 4707128114 fix image group definitions
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13308 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-17 11:56:53 +00:00
bp-sawyers c185096fa8 Added description for httpport site attr
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13307 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-16 20:38:11 +00:00
nott 7c6e77f127 add mntopts to litetree mount command
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13304 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-16 17:07:35 +00:00
nott 60741454d0 add mntopts to the litetree file
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13302 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-16 16:55:29 +00:00
lissav 7aabf03e2c add comments to explain
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13301 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-16 16:37:42 +00:00
lissav 06c22411b4 fix defect 3544651
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13300 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-16 16:16:33 +00:00
xq2005 8ff50af5ca fix the graphical layout error
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13299 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-16 11:49:57 +00:00
nott d611be83a7 add mntopts to litetree table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13297 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-13 20:11:00 +00:00
nott e824c74fad add mntopts to litetree table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13295 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-13 19:56:24 +00:00
nott 8016f64591 use correct hash for target servicenodes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13293 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-13 17:47:24 +00:00
jbjohnso 8251123d26 vSphere autologin configurability
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13292 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-13 13:42:33 +00:00
lissav 0b517b5801 fix comment
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13291 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-13 11:39:53 +00:00
xq2005 9dd6f8444a specify partition file: support suse to use definition and script
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13290 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-13 09:22:13 +00:00
xq2005 b090b75fbe specify partition file: support sles to use definition and script
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13289 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-13 09:19:43 +00:00
bp-sawyers 638642a29e Remove openslp-xcat require
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13288 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-12 17:58:10 +00:00
xq2005 d1effdcabb specify partition definition: support script for sles
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13286 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-12 10:27:21 +00:00
xq2005 179d0c4cc2 specify partition definition: support script for sles
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13285 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-12 10:26:10 +00:00
yinle 3bf9c3ebe2 Fix a mistake that connect sub-routine alway use hosts.ip to login ASMI for resetnet.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13284 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-12 08:51:22 +00:00
yinle 3657ba13f6 Made specific choice of preprocess_nodes for rspconfig resetnet
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13282 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-12 07:55:31 +00:00
phamt 5105672e61 Allowed user to edit user entry even if node is unreachable.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13279 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-11 16:10:04 +00:00
lissav 7ba5f5a827 fix ODBCsetup code
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13278 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-11 12:25:00 +00:00
lissav d67c1ad4c8 fix odbc setup of odbcinst.ini file database name wrong
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13275 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-11 12:06:17 +00:00
zhaoertao 0e30326a43 add flag '-i' for getmacs for Firebird blade
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13274 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-11 08:40:16 +00:00
xq2005 26a330f6dd fix bug for specify partion file
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13272 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-11 07:39:59 +00:00
xq2005 293f9490b9 fix bug for specify partion file
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13271 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-11 07:23:06 +00:00
lissav 7c949b11b5 fix defect 3510989
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13270 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-10 18:53:49 +00:00
lissav f6f39da154 Add -N to pgsqlsetup and correct comments
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13267 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-10 11:21:24 +00:00
amy0701 b8b0b2a1d8 update rpower sleep duration in testcase
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13266 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-10 06:49:31 +00:00
amy0701 e8df125d40 update genimage testcase
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13265 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-10 06:30:50 +00:00
amy0701 39c369f467 update genimage testcase
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13264 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-10 06:26:01 +00:00
xq2005 a8d1627801 specify paritionfile:
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13263 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-10 06:14:04 +00:00
xq2005 44d0bf1e2b specify paritionfile: modify the pre.sles
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13261 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-10 06:02:20 +00:00
xq2005 4c5b3ee8b1 specify paritionfile: modify template.pm for sles
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13260 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-10 05:59:35 +00:00
jbjohnso e6c05ea003 Increase timeout for nic waiting to 10 minutes instead of 30 seconds
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13259 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-09 19:23:23 +00:00
lissav 397d807fb6 Add option -N to only setup the database, do not backup/restore of start/stop xcatd
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13258 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-09 18:24:31 +00:00
lissav a4dc255e0f fix man page
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13257 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-09 17:00:45 +00:00
phamt 8f2acc5719 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13256 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd 2012-07-09 13:46:18 +00:00
phamt 26e70ec83c git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13255 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd 2012-07-09 13:45:17 +00:00
wanghuaz af998fbf28 Additional code checkin for image group working with litefile and litetree tables
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13253 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-09 08:22:01 +00:00
wanghuaz 3c221e5366 Checkin code for image group support which will be used by litefile/litetree table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13252 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-09 07:57:48 +00:00
zhaoertao 561abd493b fix bug about 'runcmd' subroutine in hierarchy environment
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13251 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-09 02:41:16 +00:00
jbjohnso a6a6e79446 Add feature to Template.pm to facilitate autoula addressing for esxi5 deployments
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13249 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-06 21:09:04 +00:00
jjhua a148f21ce4 correct an error of the ==
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13248 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-06 08:59:58 +00:00
daniceexi 161cdeb4ec code drop for the support that loading drivers from driver rpm. The change has affected the code logic for driver disk support.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13246 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-05 14:59:08 +00:00
xq2005 46531485db specify partition definition: support definition file for sles/suse
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13245 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-05 07:42:13 +00:00
xq2005 0ce9d811b9 change the discovery step on the discover page
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13243 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-05 06:59:38 +00:00
yinle 7315ed65ce Fix a mistake about rspconfig resetnet
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13242 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-05 06:26:55 +00:00
xq2005 4de4edcd88 specify partition file: get patition definition file in sles.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13240 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-04 06:11:22 +00:00
ligc 4ae68c7e56 fix for bug 3538906: perl-DBD-DB2Lite-1-2.aix7.1.ppc.rpm breaks chkosimage, change perl-DBD-DB2* to perl-DBD-DB2-*
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13238 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-04 04:35:12 +00:00
jbjohnso f0f150f698 Rework the FSM excludes bits
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13236 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-03 21:03:33 +00:00
nott 331dc24373 add check for myxcatpost file name
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13234 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-03 18:01:49 +00:00
jbjohnso fdb706b631 Have policy table recognize the name '*' to mean any valid name, but must have some name
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13233 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-03 16:29:28 +00:00
jbjohnso 63478f6bd4 Add a mode where nodeauthentication site value switches on requirement of client certificates for 'nextdestiny'
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13232 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-03 16:29:15 +00:00
zhaoertao f43f3508b2 fix PMR 29163,066,866 ECMWF :chvm broken after xcat 2.7.2 upgrade
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13230 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-03 06:31:58 +00:00
lissav 1a292a871e fix defect 3538653
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13228 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-02 12:57:24 +00:00
lissav ee30877059 fix defect 3538653
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13227 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-02 12:55:37 +00:00
jjhua 824503966a fixed bug 3538093, create a temporary uname in the image's rootimg dir before running the postinstall and remove it after postinstall during genimage
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13224 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-02 07:27:16 +00:00
jjhua 4aed8e5a3b fixed bug 3538093, create a temporary uname in the image's rootimg dir before running the postinstall and remove it after postinstall during genimage
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13222 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-02 06:40:07 +00:00
yinle 287ed1f702 Modify rspconfig --resetnet.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13218 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-01 03:19:10 +00:00
yinle e754531b31 Modify rspconfig --resetnet.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13216 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-07-01 03:11:25 +00:00
bp-sawyers 77b68f4591 updated the noderes.tftpserver description to indicate it defaults to networks.tftpserver
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13214 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-29 13:46:20 +00:00
lissav d04aed5d42 add -N flag to support only setting up the database , not backup and restore xcat into it or start the xcatd
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13212 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-29 11:25:06 +00:00
lissav fbb0c03121 man page updates
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13211 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-29 10:56:56 +00:00
lissav 27c82a8131 man page updates
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13209 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-29 10:52:41 +00:00
lissav a1a4f17142 man page updates
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13208 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-29 10:35:51 +00:00
lissav 2695b79c9c man page updates
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13207 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-29 10:26:17 +00:00
zhaoertao 0c5453290d use 'verbose' instead of 'Verbose' option to match the command usage in Usage.pm.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13206 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-29 09:03:22 +00:00
zhaoertao e532ea48ae fix bug 3519576:Performance improvement to blade.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13204 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-29 08:44:37 +00:00
zhaoertao 4caebea74d enhance 'rinv' for CMM
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13203 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-29 08:03:35 +00:00
ligc e76908aa91 fix for bug 3536372: download postscripts from the server specified in kernel parameter XCAT=xxx
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13202 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-29 07:58:59 +00:00
zhaoertao fb234debb6 Modify 'rvitals' to support SNMP for Firebird blade and CMM.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13199 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-29 07:07:27 +00:00
ligc 0a6f3cc7c5 fix for bug 3538902: move the code from ddns.pm to xcatconfig to configure named to start on boot
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13197 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-29 05:52:47 +00:00
ligc e61f51388f fix for bug 3524402: run chkconfig dhcpd on in xcatconfig
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13196 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-29 03:17:04 +00:00
bp-sawyers 6a52d2327b fix spec file syntax error on aix
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13194 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-28 16:43:23 +00:00
lissav 0ceaff865c fix defect 3538653
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13193 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-28 15:51:50 +00:00
bp-sawyers 3bbc6381fd fix syntax prob in the xcatconfig man page
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13191 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-28 13:41:08 +00:00
ligc a7ef8f450f fix for bug 3538372: check nfs mount on SN should be more precise
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13190 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-28 11:34:32 +00:00
immarvin 0ed49476f1 add rhels6.3 i386 support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13188 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-28 07:35:36 +00:00
immarvin 2fae43d52e fix defect ID: 3537687 BOOTIF is not written into yaboot file on sles11.2 for ppc64
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13186 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-28 04:11:39 +00:00
immarvin 7d56f61887 add support for rhels6.3
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13185 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-28 03:17:02 +00:00
jbjohnso 9f8d68ed3d Have nodestat support IPv6 destinations
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13184 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-27 13:35:55 +00:00
xq2005 66171611d4 specify partition file: mify all *.tmpl files for centos
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13183 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-27 09:11:58 +00:00
zhaoertao 9cf5466c5e output the 'oper-firmware' state for Firebird blade.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13182 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-27 09:08:54 +00:00
xq2005 617bf680a1 specify partition file: mify all *.tmpl files for fedora
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13180 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-27 08:59:34 +00:00
xq2005 2f2d9d50fd specify partition file: modify all *.tmpl files for SL
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13179 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-27 08:08:30 +00:00
xq2005 f0216ca0b4 specify partition file: modify all service/xen*.tmpl file for redhat
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13178 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-27 07:45:21 +00:00
xq2005 4ea0b3a319 specify partition file: modify all kvm/iscsi/hpc.*.tmpl file for redhat
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13177 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-27 07:21:18 +00:00
ligc 2bee456744 fix for bug 3529354: imgcapture does not work with -o imagename flag
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13176 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-27 07:09:53 +00:00
ligc 80d7105e4b fix for bug 3530169: display a warning message when can not find group member
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13175 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-27 07:05:01 +00:00
xq2005 4c16b60a0f specify partition file: modify all compute.*.tmpl file for redhat
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13174 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-27 07:04:41 +00:00
mellor b10f2968d4 defect 3538251 - rollupdate boundary error fix: did not run llmkres if node count less than updateall_nodecount
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13172 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-26 22:03:07 +00:00
jbjohnso 35869b7a81 Correct various mistakes in the RHEL5 driver disk injection code
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13170 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-26 15:49:17 +00:00
lissav c01096db79 Do not allow updatenode -k to the Management Node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13169 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-26 15:15:19 +00:00
lissav 1788410105 Do not allow xdsh -K to the Management Node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13168 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-26 14:39:56 +00:00
lissav 9db06eb9ef fix manpage to use xcatconfig -m
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13167 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-26 12:46:18 +00:00
lissav cd24fdead3 add -m option
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13166 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-26 12:41:56 +00:00
lissav 66cc3be938 add xcatconfig -m to put management node in the DB correctly
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13165 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-26 12:35:12 +00:00
jbjohnso 2e7f1599fe Have autoula addressing store in hosts.ip for KICKSTARTNET directive
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13164 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-25 20:05:11 +00:00
jbjohnso f590db8fc4 Have nodestat fallback to hosts.ip lookup if applicable
Make nodestat more IPv6 workable with nmap

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13163 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-25 19:41:33 +00:00
xq2005 9ee701ca4a fix the problem for json return format with imbedded list
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13162 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-25 14:03:30 +00:00
xq2005 c5a5298977 specify partition file: add comment line in pre.rh file
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13161 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-25 13:39:15 +00:00
xq2005 ec01401ee9 specify partition file: add comment pair in tmpl file for x86_64
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13160 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-25 13:36:23 +00:00
xq2005 8986a3151a specify the partition file: add the definition into configure file for rh,SL,CentOS,fedora
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13159 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-25 12:03:03 +00:00
xq2005 4662457616 specify partition file for install node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13158 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-25 07:19:41 +00:00
zhaoertao 0757920664 modify getmacs: write lowercase mac address for Firebird blade
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13157 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-25 02:20:36 +00:00
jbjohnso 60a6b2d331 Fix problem where if template passed in has parameters on a module, xCAT would consider that part of the filename
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13155 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-23 13:57:52 +00:00
jbjohnso ee4e786d34 Fix problem where esx.pm would do a heavy handed bailout on a table error of one node
Have xCAT try to find nodes if vCenter is indeed in play even if the alleged hypervisor is not available.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13154 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-23 13:45:52 +00:00
jbjohnso 4fed39c1e5 Fix problem where 'copyIfNewer' was actually 'copyIfOlder'
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13153 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-22 15:16:34 +00:00
jbjohnso f35debd190 Provide method for users without desire of xcatmod.tgz to opt out
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13152 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-22 14:52:17 +00:00
linggao a886000855 fixed a problem that still logs to localhost for syslog-ng
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13147 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-21 20:05:22 +00:00
jbjohnso d064e984b7 More FSM exclusions
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13146 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-21 19:46:19 +00:00
lissav 08688dce25 fix defect 3530574 allow multiple command in policy table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13145 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-21 18:05:44 +00:00
jbjohnso a7f41ecb00 Fix problem in previous checkin with superflous 'my'
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13144 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-21 17:27:22 +00:00
jbjohnso 7ab7085122 Use xcatiport and opt not to do install monitor if unset
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13143 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-21 17:27:15 +00:00
jbjohnso bc3c169c56 Have FSM packaging also exclude templates
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13142 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-21 16:41:16 +00:00
lissav 7625dab575 fix defect 3393889, allow longhostname in policy table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13141 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-21 16:12:18 +00:00
lissav d0e29a67e6 fix defect 3393889, allow longhostname in policy table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13140 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-21 16:11:06 +00:00
jbjohnso 65f12a5022 Wrap unlikely scenario in eval to hopefully keep DB worker up in the face of some nebulous problem
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13139 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-21 15:19:06 +00:00
lissav 1fdee03579 Move xcatd validate routine into and create an xcatd library. This should help with development and debug
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13138 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-21 13:00:38 +00:00
lissav bc08d48d91 Move xcatd validate routine into and create an xcatd library. This should help with development and debug
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13137 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-21 12:59:40 +00:00
zhaoertao 2f4cbf7dbf code for Adding verbose for xCAT commands item
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13136 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-21 09:43:16 +00:00
jbjohnso 646386b6d2 Fix sles, http makes it unconditionally '/install' regardless of backing path
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13135 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-20 19:29:00 +00:00
jbjohnso 5383a88a60 Fix problem where ula generation failed to deal properly with hexadecimal
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13134 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-20 18:06:30 +00:00
jbjohnso 1762312121 Add a template directive for mostly FSM use for now, enable a non-dhcp address management scheme
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13133 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-20 16:35:21 +00:00
lissav 0bac1d53c6 add APPEND to the man page
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13132 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-20 11:44:07 +00:00
lissav 88ecf22c5b updatenode xdsh -c info
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13131 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-20 11:23:31 +00:00
lissav e2b1f70f6b xdsh -c cleans up both the SNsyncfiledir and the nodesyncfiledir directories on the SN
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13130 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-20 11:13:09 +00:00
jbjohnso 45e9ac6f1e Actually source the httpmethod/httpport from site table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13129 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-19 20:20:47 +00:00
jbjohnso 62507fbe0e Prepare to have http/https switchable and non-default http ports
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13128 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-19 20:17:42 +00:00
lissav 8434c0932e hierarchical xdcp APPEND support, more testing required. Need to add -v flag to append script
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13127 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-19 17:30:35 +00:00
bp-sawyers c11ec21350 Don't require tftp for s390x
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13126 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-19 15:21:18 +00:00
jbjohnso 7ba4186fff Enhance slpdiscover to reconigure CMMs even if their password is not default if user provides an alternative
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13125 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-19 14:35:27 +00:00
xq2005 8403898633 add the partitionfile attribute into linuximage table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13124 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-19 05:48:52 +00:00
bp-sawyers 5d9aba4817 Remove perl-Net-Telnet requirement from zvm build of xcat
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13123 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-19 00:31:31 +00:00
bp-sawyers 2eb33775b5 change zvm pkging to avoid fping require and other xcat files
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13122 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-18 21:35:53 +00:00
lissav 3e27aa6e51 remove fping_hostnames routine, unused and do not want a dependency on fping in xCAT
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13121 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-18 19:27:04 +00:00
lissav f0f7f3246c APPEND works non-hierarchical, still testing and documenting for hierarchy.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13120 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-18 16:39:35 +00:00
jbjohnso b45ccfc13e Fix problem where nodegrpch would fail to modify tables where 'nodecol' is not 'node'
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13119 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-18 16:34:42 +00:00
zhaoertao 0b5567ff3c the codes about NGP genesis state process
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13117 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-18 08:38:30 +00:00
zhaoertao 54f8b58399 the codes about Firmware Deferred Update feature
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13116 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-18 08:29:59 +00:00
yinle 78c29cbeec Fix some mistakes about rspconfig resetnet
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13115 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-18 05:36:15 +00:00
xq2005 45d573dc72 kdump on sles supports mutiple nodes crash at the same time
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13112 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-16 01:41:46 +00:00
brianfinley 64716ca324 Revert to original epoch from before my last commit. Since our Release
value includes the build date, every build is a slightly newer version
of the rpm, so it installs over the existing rpm fine.


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13111 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-15 16:59:08 +00:00
lissav ce1c8ff35a checking in code for APPEND, still needs testing do not try
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13110 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-15 15:43:55 +00:00
lissav 88778a93d9 checking in code for APPEND, still needs testing do not try
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13109 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-15 15:42:45 +00:00
jbjohnso 36478f64e1 FSM has no need of xdcp/xdsh
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13108 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-15 14:17:13 +00:00
jbjohnso 55819f9bab Refine FSM packaging, make SHA1 optional
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13107 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-15 14:17:07 +00:00
xq2005 84e654bb84 create the setup configure file with new format
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13105 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-15 09:38:48 +00:00
xq2005 bf7e1d2303 add more input area to create the setup configure file
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13102 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-15 09:13:32 +00:00
brianfinley a9284fafcc s/in scaling cluster./for a large cluster./g
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13101 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-15 05:18:56 +00:00
brianfinley 6562e26252 - Use "-f" when removing /etc/profile.d/xcat.* on erase. If the file is
already removed, then with out "-f", the package fails to erase.



git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13100 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-15 03:47:11 +00:00
jbjohnso cb482e73f8 Further refinement of FSM build
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13099 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-14 18:43:11 +00:00
jbjohnso 89aba68666 amend the trimming of FSM xCAT-server
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13098 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-14 18:43:04 +00:00
jbjohnso 904f704cb9 Further trim perl-xCAT in FSM
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13097 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-14 18:36:17 +00:00
jbjohnso eb84d0512a Extend FSM embed conditional to perl-xCAT
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13096 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-14 18:36:11 +00:00
jbjohnso e3dda6f800 Add an FSM embed style xCAT-server
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13095 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-14 18:11:23 +00:00
lissav c2428d06dc Add APPEND: support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13094 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-14 17:27:41 +00:00
lissav 23075ccac5 fix name to lowercase
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13093 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-14 17:12:06 +00:00
lissav b0118035a7 fix name to lowercase
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13092 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-14 17:11:25 +00:00
lissav 6d94da7278 setup default Nodesyncfiledir
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13091 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-14 16:59:39 +00:00
lissav 30a3c6e458 add Nodesyncfiledir attribute
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13090 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-14 16:19:43 +00:00
nott 88ac8cdc5c add -l option
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13089 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-14 14:47:21 +00:00
nott 9e1ef03a1d fix -l option
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13088 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-14 13:47:03 +00:00
xq2005 adf678cd50 add the hardware information to support more hardware type on the graphical layout page
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13086 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-14 09:51:52 +00:00
brianfinley 46b25172e2 improve verbiage
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13085 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-14 06:10:47 +00:00
phamt b168b84acb Delete old code
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13083 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-13 18:42:40 +00:00
phamt 907b48c7e8 Fixed bug where gmond.conf is never updated if there is a string "xCAT gmond settings done" in the file.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13080 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-13 18:20:52 +00:00
brianfinley 7985b1b1df Give users an indication of where to find dhcpd.leases
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13079 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-13 15:28:45 +00:00
lissav 1d56dc9bfa remove check for WCOLL env variable and warning, someone is AIX is using it
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13078 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-13 11:07:16 +00:00
xq2005 a5c6f451a2 add input area which user can configure the password for bpa, fsp
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13076 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-13 09:47:48 +00:00
xq2005 72de8ad3b9 change the style on discover page
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13074 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-13 09:18:46 +00:00
bp-sawyers e7ecf9115d Exclude the upflag source dir when building the xCAT meta rpm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13072 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-12 20:21:39 +00:00
lissav 2153f2b98c start support of APPEND clause in xdcp, transfer complete. Build of append script TBD
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13071 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-12 12:36:54 +00:00
immarvin 4c70024ffb According to the changes in copycds.pm, the internal option flag to specify mountpath is changed to -m
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13070 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-12 11:55:54 +00:00
immarvin 13f4d07649 copycds enhancement:add -p and -i option documentation
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13069 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-12 09:12:56 +00:00
immarvin 9d389484a5 According to the changes in copycds.pm, the internal option flag to specify mountpath is changed to -m
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13068 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-12 07:06:17 +00:00
immarvin f4a7e87f32 According to the changes in copycds.pm, the internal option flag to specify mountpath is changed to -m
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13067 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-12 06:58:09 +00:00
immarvin 81c0efbc9a copycds enhancement:add suppor for -i and -p option
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13066 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-12 05:49:57 +00:00
nott 16caed568f Add -r option to rmdsklsnode
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13065 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-11 18:52:45 +00:00
jbjohnso 063894bb17 Bump genesis version
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13063 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-11 18:36:11 +00:00
nott 9c2f508523 Add -r option to rmdsklsnode
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13061 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-11 18:29:20 +00:00
jbjohnso 00278c221f Add some extra libraries for genesis
Remove ssh key from rpm, mknb is supposed to do this later

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13059 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-11 18:10:58 +00:00
lissav 6f20255891 Put warning in updatenode -k, not to run to the MN
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13057 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-11 11:25:09 +00:00
arifali 06275cbf9f remove vsftpd dependancy, and make genesis the default rather than nbroot, add elilo-xcat dependancy
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13055 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-10 15:53:25 +00:00
arifali 5fc6f38540 remove vsftpd dependancy, and make genesis the default rather than nbroot
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13054 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-10 15:51:15 +00:00
lissav 58d9e65cfd take out author
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13053 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-10 10:05:23 +00:00
nott fa34a93be2 fix xcataixscript bug 3529713
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13052 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-08 18:06:24 +00:00
jbjohnso 60758604ad Fix problem with clonevm in vmware when target uses the legacy vm.storage syntax
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13050 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-08 13:35:13 +00:00
lissav 6075538a00 add fanout interface to man pages for p* command
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13048 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-08 11:55:39 +00:00
lissav 4fd1fd364a change order of checking for fanout
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13046 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-08 11:47:04 +00:00
lissav b29a32f159 support fanout input
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13044 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-08 11:38:07 +00:00
jjhua ce4159a002 in PPCconn.pm , it will match the FSPs' IPs after querying.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13040 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-08 09:57:22 +00:00
immarvin 1661b574af copycds enhancement:remove some debug messages
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13039 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-08 09:29:51 +00:00
immarvin dc55140fe4 copycds enhancement:add -p and -i option
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13038 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-08 09:06:09 +00:00
ligc 6258e5505f fix for bug 3496130: resolve hostname to ip address in /tftpboot/etc/<node>, copy resolv.conf from initrd into rootimg
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13037 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-08 09:00:26 +00:00
immarvin 8cc73753da copycds enhancement: mkdir for the symlink under /install if not exist
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13036 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-08 08:45:22 +00:00
immarvin ec55bfc9fa copycds enhancement: sub localize_yumrepo have to follow symlinks
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13035 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-08 03:30:58 +00:00
immarvin 621425dada copycds enhancement: update linuximage table with the specified ospkgdir
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13034 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-08 03:20:07 +00:00
immarvin 30ecd6c0da copycds enhancement: add --inspection option and -p option
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13033 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-08 03:00:27 +00:00
immarvin 3698ea3808 copycds enhancement: add --inspection option and -p option
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13030 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-08 02:33:20 +00:00
jbjohnso 298b4e0e3d Fix error with how enum is passed into vsphere api in vsphere support for win2k3 specialization
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13027 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-07 19:46:54 +00:00
nott f144582597 hasn- dont run mkresolvconf script
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13026 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-07 19:20:10 +00:00
lissav b6a3ada2d2 add -f fanout and XCATPSHFANOUT suupport to allow change of fanout on the command line and with env variable
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13024 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-07 19:02:49 +00:00
jbjohnso 805fb1510d Fix problem where tabdump -f would fail to correct for relative paths. It really shouldn't be doing this server side at all....
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13022 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-07 18:16:29 +00:00
lissav 77f2c8c011 fix error data should go to XML error attribute
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13020 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-07 13:25:48 +00:00
lissav 3c1a950a52 fix error message to go to XML error
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13019 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-07 13:19:01 +00:00
lissav afa883d9f0 restructure to add APPEND feature. Fix lots of messages so they will go to XML error structure instead of data
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13018 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-07 13:00:05 +00:00
daniceexi 56c36adad6 defect 3524563: We encountered issue in LRZ with the last change that keep the udev before the chroot. The problem was IB device which started after chroot does not work. The fix was to kill the udevd after the starting of net device
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13017 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-07 06:13:32 +00:00
phamt 0cec3a60d6 Fixed bug in Ganglia to always update gmetad.conf when moncfg gangliamon -r is run.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13014 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-06 14:52:35 +00:00
jbjohnso b1137466c4 Fix problem where EFI based installs failed to correctly place boot partition
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13011 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-05 13:42:40 +00:00
lissav 3d6d887c13 add example for setting up mn
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13010 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-05 13:40:56 +00:00
lissav d016775cb6 fix defect 3531962
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13007 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-04 18:41:45 +00:00
lissav c504303ba1 fix defect 3531617
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13005 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-04 11:55:43 +00:00
lissav b37b057928 document new PG binary dump and restore
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12995 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-01 15:28:25 +00:00
lissav f5b0b58a79 fix hardcoded db name
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12994 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-01 15:19:21 +00:00
lissav f66405ce90 binary restore for PostgreSQL
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12993 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-01 15:17:08 +00:00
lissav efe62f60e2 Add binary dump support for Postgresql
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12992 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-01 14:41:13 +00:00
lissav fd9dc84806 add root user to pg, needed to run odbc and pg_dump/restore as root
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12990 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-01 12:48:04 +00:00
immarvin 589ba1cecc fixed defect:Summary:change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12986 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-01 08:08:41 +00:00
immarvin a1d7bb8bef fixed defect:Summary:change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12985 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-01 08:08:06 +00:00
yinle 4f52da3dac Add description about lsslp restriction on AIX.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12982 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-01 04:48:32 +00:00
yinle 5acbeefa0d Remove the part adding multicast route, suggest the user to add and delete it manually to avoid potential issues.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12980 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-01 03:53:48 +00:00
jbjohnso 2c47c2613c Provide a default value for win2k3 cloning use with clonevm specialize
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12978 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-06-01 02:22:14 +00:00
jbjohnso 5a12985c62 Have nodeset return a more helpful message when passwd table is missing an entry for esxi when doing esxi operations
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12976 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-31 17:39:27 +00:00
lissav 32da90eec2 handle changing paths based on 9.x ptf level
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12975 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-31 17:06:57 +00:00
lissav 81c02cd17b fixed some of the error processing
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12974 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-31 15:10:32 +00:00
lissav 9fd00d35f6 add new options
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12973 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-31 14:36:11 +00:00
jbjohnso d87f11e52a Fix blade.pm problem
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12971 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-31 14:08:55 +00:00
lissav 88b303e416 tested with posgresql 9.0
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12970 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-31 13:51:55 +00:00
wanghuaz 90db9c8b26 Fixing bug 3529659 in trunk
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12966 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-31 07:04:40 +00:00
jjhua a081c44d72 For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12965 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-31 05:24:21 +00:00
jbjohnso 9290d4a876 Add support for certain IPMI specified events
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12964 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-30 21:10:24 +00:00
lissav cdeab53cfd put back database backup
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12963 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-30 18:25:48 +00:00
lissav bc0d3dce09 implemented perl expect, so no password prompting required and XCATPGPW env variable to supply password. Still needs testing on 90 and add PCM roles
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12962 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-30 18:04:28 +00:00
lissav 5c2489880d Added support additional PCM support, still needs work and testing
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12961 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-30 15:29:18 +00:00
yinle 14ef237f75 Fix the mistake that lsslp noderange return incomplete information; Fix some type error of verbose information.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12959 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-30 08:56:43 +00:00
yinle bb64f581c9 Fix bug 3527493:lsslp return incompete object information
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12957 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-30 08:50:16 +00:00
xq2005 b035ad5c1c fix bug 3529429 for kdump failed on non-p7 ih plinux
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12955 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-30 04:45:18 +00:00
phamt 5e511d4ad5 Fixed bug where IP range and hostname range were not corrected checked.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12954 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-29 23:15:13 +00:00
jbjohnso 18c9cf84ab Fix blade.pm tolerance in a way more targetted at discovery specifically
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12952 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-29 16:03:51 +00:00
jbjohnso 7af1cd03fb Revert "Fix problem where blade.pm failed to isolate table configuration problems"
This reverts commit 637ad509abf90eabce30321d53793139fb084aaf.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12951 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-29 16:03:32 +00:00
jbjohnso b4d8def3a9 Fix problem where blade.pm failed to isolate table configuration problems
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12950 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-29 15:19:39 +00:00
jjhua c764d28959 move the action setting out of the loop
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12948 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-29 01:56:58 +00:00
lissav 9cc7c080d3 fix tabch -h
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12943 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-25 10:39:49 +00:00
jjhua 5a561cf82f improve the performance of rvitals
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12942 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-25 09:05:53 +00:00
yinle 6de5fb7428 fix bug 3529398: lsslp -n give inconsistent output
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12940 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-25 08:44:05 +00:00
xq2005 44c8a87f91 support kdump on p7 ih with static ip
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12938 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-25 07:10:40 +00:00
xq2005 b878818966 support kdump on p7 ih by static ip
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12937 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-25 06:58:40 +00:00
jbjohnso ba7c29b62a Fix spacing issue in gateway append
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12934 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-24 20:39:14 +00:00
jbjohnso 03e418ee62 Fix bmcconfig issue with ipv6 networks in table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12931 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-24 20:35:10 +00:00
jbjohnso 4589f5a558 Fix -g being specified even without a gateway
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12930 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-24 20:35:03 +00:00
jbjohnso 98c1a84cb5 Fix erroneous forking in slpdiscover
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12929 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-24 19:52:17 +00:00
jbjohnso 7d0636aa8f Tweak some messages on slpdiscover
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12928 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-24 19:40:21 +00:00
jbjohnso fef814d4d4 Have SLP try node-local scope ipv6. I don't think this is correct, but some targets work better with that destination
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12926 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-24 17:44:47 +00:00
jbjohnso eaec3c372b Fix problem where nodels could return more data than requested
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12924 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-24 17:14:38 +00:00
nott 517a388f9f hasn- fix shared_root locking
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12923 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-24 16:58:09 +00:00
jbjohnso cfea72f1ef Rework some output, also avoid thrashing on redundant responses. Prefer fe80 addresses when proven feasible since those are guaranteed to be unique and some ipv4 responses might not be
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12921 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-24 13:50:37 +00:00
wanghuaz 83688cdfa3 Updated loadleveler package path on trunk
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12920 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-24 10:06:33 +00:00
jjhua d7ee5329f2 fixed 3528842, make the improvement of the rvitals performance
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12919 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-24 10:02:32 +00:00
jbjohnso 8e02008a83 Try to parallelize some slpdiscover activity
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12917 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-23 19:19:50 +00:00
jbjohnso ca8dcb8bf4 Fix problem where mknb was not satisfied with genesis alone
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12916 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-23 19:19:40 +00:00
nott f729568b58 hasn- fix bad return from doSFScopy
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12915 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-23 18:34:36 +00:00
lissav bf2b0bee29 fix defect 3529041
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12913 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-23 18:17:11 +00:00
lissav abcbfd3f3d fix messages
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12911 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-23 17:52:21 +00:00
phamt 321486ab6f Parsed out max-vm from comments
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12909 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-23 14:28:51 +00:00
lissav e1b1cdb17e add odbc support for Linux only
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12908 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-23 13:59:42 +00:00
lissav d970f0b2a7 fixed hardcoded admin id
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12907 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-23 13:57:15 +00:00
yinle 33755d548f fix bug 3528728: update manpage of lsslp
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12906 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-23 08:32:31 +00:00
jjhua 079e746aa5 For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12904 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-23 07:14:53 +00:00
jjhua 3a0121b97d For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12903 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-23 07:12:28 +00:00
jjhua 5f4c465f97 For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12902 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-23 07:06:47 +00:00
jjhua feef5d45d7 For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12901 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-23 06:58:26 +00:00
jjhua 691628503e For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12900 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-23 06:53:34 +00:00
jjhua 260b7d25ef For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12899 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-23 06:37:49 +00:00
jjhua d0bb36a3f5 For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12898 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-23 06:36:40 +00:00
jjhua 427dab0ad2 For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12897 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-23 06:29:34 +00:00
jjhua f9c5ee43cc For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12896 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-23 06:18:22 +00:00
jjhua 0624c69117 For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12895 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-23 06:09:35 +00:00
xq2005 ec7513710f add link delay time for kdump on rhel6.2 diskless install node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12893 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-23 06:03:42 +00:00
jjhua e819e0c23e For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12892 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-23 06:02:23 +00:00
jjhua 16be33214a For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12891 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-23 05:57:41 +00:00
jjhua 41c6e9bf7a For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12890 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-23 05:50:08 +00:00
jjhua b4698dec04 For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12889 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-23 05:30:19 +00:00
jjhua b3079a445f For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12888 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-23 05:22:15 +00:00
jjhua dab53851c9 For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12887 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-23 05:17:42 +00:00
jjhua 9dac448093 For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12886 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-23 05:12:18 +00:00
jjhua 2be38ac386 For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12884 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-23 02:57:41 +00:00
yinle c49f9ed82b delete multicat route to fix the lost message issue.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12882 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-23 02:25:01 +00:00
jbjohnso 7cae464cba Close some filehandles that aren't needed
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12881 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-22 21:11:14 +00:00
phamt 427737b125 Accept no value for IP or hostname
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12878 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-22 20:24:41 +00:00
nott 4b2585d5b6 hasn- fix hosts, add sync for GPFS and check for spots
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12877 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-22 18:12:00 +00:00
wanghuaz 7d2c65c9ad Fixing bug 3526601: Don't add duplicated lines into etc/security/limits.conf and also add the settings before '# End of file'
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12875 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-22 14:11:35 +00:00
lissav d5707e6562 backout 3528566 , migration issue
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12872 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-22 10:59:10 +00:00
jjhua e19dd4583a For the places that open site table to read attributes, change to call xCAT::Utils->get_siteibute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12870 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-22 09:13:58 +00:00
jjhua 64217a35c4 For the places that open site table to read attributes, change to call xCAT::Utils->get_siteibute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12869 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-22 09:09:30 +00:00
jjhua 15618c0aad For the places that open site table to read attributes, change to call xCAT::Utils->get_siteibute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12868 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-22 09:00:37 +00:00
wanghuaz 3cc967ba1e Merging IBMhpc top level updates from 2.7 to trunk
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12867 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-22 08:58:32 +00:00
wanghuaz e0514266f5 Merging essl/pessl updates from 2.7 to trunk
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12866 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-22 08:53:36 +00:00
wanghuaz 65a9d7e448 Merging gpfs updates from 2.7 to trunk.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12865 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-22 08:46:14 +00:00
wanghuaz 2434d85279 Moving ckpt.sh from top level of IBMhpc folder to PE directory
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12864 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-22 08:42:42 +00:00
wanghuaz 6a521599e4 Merging PE updates from 2.7 to trunk
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12863 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-22 08:41:24 +00:00
wanghuaz 4e5512f177 Merging loadl updates in 2.7 to trunk
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12862 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-22 08:29:36 +00:00
jjhua d16f2babcd For the places that open site table to read attributes, change to call xCAT::Utils->get_siteibute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12861 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-22 07:02:11 +00:00
jjhua 8c13b3f50a For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12860 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-22 06:32:20 +00:00
jjhua 403326620f For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12859 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-22 05:58:08 +00:00
jjhua db3ccd170f For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12856 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-22 03:08:16 +00:00
jjhua 086ddbb9b3 For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12855 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-22 03:01:25 +00:00
jjhua e596348dc7 For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12854 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-22 02:54:17 +00:00
jjhua 50001aae62 For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12853 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-22 02:30:43 +00:00
linggao 14097c36ee restart nw interfaces for netboot and statelite for hardehs postscript
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12852 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-21 20:10:32 +00:00
linggao 794760bf25 fix the code to get correct synclist file
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12849 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-21 19:15:01 +00:00
lissav cb2b559785 fix defect 3528566
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12848 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-21 17:45:01 +00:00
jbjohnso ab40158ba6 More cleanly wrap login failures for clicmdns
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12846 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-21 13:59:40 +00:00
jjhua 50c942e894 For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12844 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-21 10:00:16 +00:00
yinle b42ce631e3 Fix bug 3528509:lsslp -r has no output
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12842 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-21 09:31:09 +00:00
yinle 1bb792ff2f Fix bug 3527493:lsslp return incompete object information
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12839 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-21 05:50:06 +00:00
lissav 36381d4170 Add NodeRange XML interface
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12837 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-20 18:12:21 +00:00
nott bf6d469713 hasn- fix provmethod update
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12836 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-20 13:11:34 +00:00
yinle 2afb7d32d1 Fix bug 3527493:lsslp return incompete object information
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12833 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-20 09:07:26 +00:00
jbjohnso d1bc43db41 Correct typo
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12832 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-19 21:54:46 +00:00
jbjohnso 824d7ccd13 Fix slpdiscover message to filter out skipped IMMs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12830 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-19 21:47:35 +00:00
jbjohnso 996a3999d0 Add subnet mask and gateway setup that was missing previously
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12829 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-19 21:47:28 +00:00
jbjohnso 5ac7ac26c4 Have slpdiscover avoid doing the same IMM multiple times (due to modified SLP retry logic)
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12826 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-19 21:13:55 +00:00
nott 9b4d5e9739 hasn- fix statelite.table and client_data issues
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12824 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-19 20:38:06 +00:00
jbjohnso b67a60c422 Fix SSHInteract to manuever IMMv2 login
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12821 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-19 13:58:10 +00:00
jbjohnso 9890213fb5 Fix problem where IMMs in undiscovered chassis were not processed correctly
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12820 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-19 13:46:31 +00:00
jbjohnso 6275ebdc0f rework password variable usage to allow the already discovered case to work
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12819 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-19 13:46:25 +00:00
jbjohnso 661104f0a8 More tweaks to slpdiscover
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12818 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-19 13:46:18 +00:00
jbjohnso c7744b4145 Add a bmcid to allow for out-of-band IMM discovery
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12817 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-19 13:46:12 +00:00
jbjohnso 4ed75a9bfe Have slpdiscover.pm have a provision to skip known IMMs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12816 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-19 13:46:05 +00:00
jbjohnso c48a9b7325 Have imm setup close the connection when done
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12813 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-18 22:55:31 +00:00
jbjohnso a94ac01399 Enable discovery of new IMMs in known CMMs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12812 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-18 22:48:14 +00:00
jbjohnso 7be91f0a25 Get slpdiscover at least syntax error free again
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12811 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-18 22:48:06 +00:00
jbjohnso 6481c2508a Prepare for two-pass CMM config and IMM setup in slpdiscover
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12810 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-18 21:01:39 +00:00
jbjohnso c3351dc88b Have blade.pm accept an argument to use correct username and pass, but without key check
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12808 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-18 20:03:15 +00:00
jbjohnso ce3c323dd0 Omit a prefix= esxi boot config file if the source has one
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12805 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-18 18:13:37 +00:00
jbjohnso 65a6369de2 Correct typo in TZutils that caused very odd messages
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12803 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-18 17:40:45 +00:00
jbjohnso d69a39d698 Few more fixes for esxi
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12802 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-18 16:54:47 +00:00
jbjohnso 0a4caa922b Hopefully finish off the esxi5 clonevm with 'specialization'
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12801 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-18 16:36:16 +00:00
jbjohnso 801c5b0bf9 Add a package to help figure out timezone data across the various syntaxes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12799 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-18 16:07:07 +00:00
jbjohnso cfef977347 -Fix race condition where make_slave_controlling_terminal could fail because pty is already closed (surprised this was a race...)
-Fix issue where '-nokeycheck' SSHInteract option was passed into Net::Telnet mistakenly
-Fix problem where Match specification was incorrectly done in SSHInteracte
-Fix problem where rspconfig could hang if the ssh session landed at a prompt
-Fix argument syntax in blade.pm to clicmds

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12798 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-18 15:44:42 +00:00
nott e694321b2d fix parsing of c_disc_target output
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12796 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-18 14:54:44 +00:00
jjhua 67ba72c0cb For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12793 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-18 09:41:31 +00:00
jjhua 4f3c441476 For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12792 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-18 08:49:11 +00:00
xq2005 65e4c4312e support kdump on system x machine
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12791 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-18 08:17:05 +00:00
jjhua 2a89911f9e use xCAT::Utils->get_site_attribute() instead of opening the site to read the attr
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12790 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-18 07:53:50 +00:00
jjhua 9ac4324794 For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12789 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-18 07:33:24 +00:00
jjhua 9621b0511f For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12788 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-18 07:02:09 +00:00
jjhua 59ac4c2b1b For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12787 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-18 06:14:35 +00:00
wanghuaz 245a7a055b Fixing bug 3508572. while restarting xcatd on service node, it will try to issue nodeset. for nfs-based statelite, it tries to issue litetree to get a folder and setup NFS exports. The problem is while issuing litetree command, xcatd is not available yet. So we added XCATBYPASS=Y before issuing litetree. After reviewing the context, litetree command is issued only on the CN's service node and the result is also used by the CN's service node only, so adding XCATBYPASS=y should be fine.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12786 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-18 06:04:21 +00:00
jjhua b11b8a8d08 For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12785 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-18 05:54:14 +00:00
yinle 684acd79c7 Modify lsslp man page to support use -T to specify the waiting time.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12783 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-18 03:15:18 +00:00
jjhua 2d550820b2 For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12782 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-18 03:15:00 +00:00
yinle 964a5098d0 Fix bug 3527505: lsslp -V gives no verbose information
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12779 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-18 03:07:48 +00:00
jjhua 1a71630307 For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12778 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-18 02:52:02 +00:00
jjhua a16709090b For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12777 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-18 02:38:09 +00:00
nott 09a7eecc6d merge oops
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12776 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-18 02:20:59 +00:00
nott af1b42c60e mult hasn fixes and updates
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12774 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-18 02:01:44 +00:00
jbjohnso 14dc354333 Flesh out cloning support for windows with specialize support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12773 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-17 21:06:53 +00:00
jbjohnso 7806922c3e Copy in mboot.c32 from custom path if applicable
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12770 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-17 17:19:37 +00:00
lissav b1c3e1326a fix defect 3526288
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12769 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-17 17:19:13 +00:00
lissav e8996a35dc fix for defect 3527641
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12767 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-17 17:09:03 +00:00
jbjohnso 22eff119c4 Fix problem where a memory address could inadvertently end up being an argument to sleep by
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12764 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-17 14:03:04 +00:00
wanghuaz f6e8687f47 1. bond-mld is shipped seperately, we should give admin the ability of putting it to different directory and using it. 2. while configuring bond0, only the correctly configured hfx interfaces can be added as bonding slaves. so admin don't need to adjust the interface num
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12763 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-17 11:36:23 +00:00
jjhua 8cbcd958d5 Populate %::XCATSITEVALS with XCATBYPASS=1 in the submit_request(), and use $::XCATSITEVALS{} instead of getting from site table again.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12761 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-17 09:43:17 +00:00
jjhua 89aea637cb For the places that open site table to read attributes, change to call xCAT::Utils->get_site_attribute instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12760 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-17 08:42:12 +00:00
jjhua 5550022ab1 in the get_site_attribute() subroutine, try %::XCATSITEVALS first, if the attribute is not popluated in %::XCATSITEVALS, then open site table to read the attribute
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12759 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-17 08:39:01 +00:00
yinle 77728d700e Fix bug 3527194: lsslp -s HMC gives no HMC info
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12757 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-17 08:29:27 +00:00
yinle 92dd4b49af Fix bug 3521680: rspconfig does not work for hmc if hwtype is not set
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12756 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-17 03:33:03 +00:00
yinle c25da18107 Fix bug 3527201: lsslp -s FRAME -i return no response on Linux ; Add multicast route on AIX
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12753 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-17 01:46:08 +00:00
jbjohnso 33c53a8182 Add a little message on success
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12752 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-16 20:56:12 +00:00
jbjohnso a9c0248442 CMM CLI syntax changed, accomodate
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12750 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-16 20:42:16 +00:00
jbjohnso 383370e40f Have slpdiscover be case insensitive in terms of known mac addresses
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12748 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-16 20:18:49 +00:00
lissav 5535a5de5f add setAttribs XML routine
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12744 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-16 17:34:18 +00:00
jbjohnso 9f0ab466ee Fix problem where SLP.pm would create too large an SLP packet if there are a number of IPv6 entities on the network
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12742 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-16 17:23:46 +00:00
jbjohnso a5913583ef Fix problem where group membership at startup hounded xCAT commands eternally
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12741 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-16 16:48:15 +00:00
lissav b5a0cd34f9 getNodesAttribs XML ALL attributes support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12738 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-16 16:25:49 +00:00
jbjohnso bdce8a8eb4 Since use_cache is a bit weird, NodeRange will instead force a build_cache(1) instead
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12736 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-16 15:18:55 +00:00
jbjohnso 43d4ca3b8f Have NodeRange make more assurances that it will not be caching data upon explicit request
xcatd explicitly has noderange redo cache if client has a <noderange> element.  This distinguishes it from 'getpostscript' type commands.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12734 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-16 15:11:26 +00:00
daniceexi f38190c129 defect 3525895: roll back the last change. Use the XCATBYPASS to run the commands instead of waiting a while
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12731 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-16 12:16:58 +00:00
daniceexi dab482bd6b Add the lease time for dhcpd.conf which can be configured from site table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12730 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-16 12:15:47 +00:00
yinle 6008d9f8f7 minor fix
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12726 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-16 03:16:49 +00:00
jbjohnso 30a91fe7bb Switch xCAT server connection to client back toblocking IO for large segments of code depending on blocking io
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12724 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 19:43:39 +00:00
yinle b29f4aee56 Fix bug 3525761: FB->lsslp -m -z -s CMM missing information in rh6.2
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12722 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 13:53:16 +00:00
jjhua 151296661c use the getIPaddress() in FSPUtils instead of Utils.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12721 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 12:54:26 +00:00
ligc 49e31739ca fix for bug 3525943: setuphanfs exports when running mkdsklsnode -b
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12718 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 08:45:41 +00:00
immarvin 0765c506a7 fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12717 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 08:28:29 +00:00
immarvin 44d42d823e fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12716 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 08:21:19 +00:00
immarvin ecc5adb8af fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12715 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 08:17:57 +00:00
immarvin e8d59222e6 fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12714 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 08:17:01 +00:00
immarvin e7f9cd17e6 fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12713 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 08:15:32 +00:00
immarvin 971251a612 fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12712 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 08:06:23 +00:00
immarvin 3aa61c9a08 fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12711 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 08:05:28 +00:00
immarvin 4460185d5d fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12710 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 07:58:52 +00:00
immarvin 3217ac2673 fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12709 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 07:51:12 +00:00
immarvin 92eff528bd fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12708 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 07:28:45 +00:00
immarvin 1a970c8dd9 fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12707 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 07:24:11 +00:00
immarvin 4467a5bb20 fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12706 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 07:21:12 +00:00
immarvin 6665d4e2ed fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12705 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 07:18:38 +00:00
immarvin b9a4cdf971 fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12704 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 07:17:36 +00:00
immarvin fa774a34cc fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12703 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 07:16:06 +00:00
immarvin 23943c013b fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12702 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 07:14:41 +00:00
immarvin c8c117774c fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12701 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 07:13:23 +00:00
immarvin 345d9d1c0a fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12699 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 07:09:19 +00:00
yinle 23dda49cdc Fix bug 3524622:lsslp return no response on P7 IH
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12698 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 07:09:06 +00:00
immarvin fb2c20583f fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12697 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 07:07:44 +00:00
immarvin e237572f42 fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12696 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 07:05:12 +00:00
immarvin 26db80fd6b fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12695 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 07:03:50 +00:00
immarvin 36dd321388 fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12694 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 07:02:26 +00:00
immarvin eaec844ee5 fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12693 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 06:58:51 +00:00
immarvin 1db86b8007 fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12692 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 06:57:51 +00:00
immarvin 1cd235342c fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12691 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 06:55:19 +00:00
immarvin 14c5ac7474 fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12690 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 06:24:34 +00:00
immarvin 80748cfb7c fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12689 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 03:48:00 +00:00
immarvin 3a304634fd fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12688 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 03:44:27 +00:00
immarvin 7bf6ed963a fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12687 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 03:41:53 +00:00
immarvin ebd5c56f74 fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12686 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 03:40:49 +00:00
immarvin 7bd00bdb9d fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12685 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 03:39:01 +00:00
immarvin 520bd7ed8b fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12684 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 03:37:12 +00:00
immarvin fb5baa7220 fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12683 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 03:36:04 +00:00
immarvin 59ac01b4fb fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12682 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 03:33:46 +00:00
immarvin 1d4915a573 fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12681 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 03:28:57 +00:00
immarvin 01c10b014b fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12680 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 03:25:47 +00:00
immarvin c12f23ee95 fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12679 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 03:22:15 +00:00
immarvin ebcdc7bbcb fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12678 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 03:20:08 +00:00
immarvin 6eb6685cc9 fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12677 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 03:17:41 +00:00
immarvin 919c7bb12e fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12676 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 03:12:41 +00:00
immarvin b4909c86bb fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12675 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 03:08:29 +00:00
immarvin e71c83bd7c fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12674 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 03:05:32 +00:00
immarvin 33e1a8e2d2 fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12672 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 03:04:22 +00:00
immarvin b8d8d08691 fix defect :change all logger calls to put xcat msgs into local4 - ID: 3513525
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12671 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-15 03:03:17 +00:00
jbjohnso 0c662e4e63 Put in draft clonevm with specialize for vsphere
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12668 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-14 21:02:35 +00:00
lissav f81a83bef4 add getAttribs XML support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12667 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-14 19:28:17 +00:00
daniceexi c5ab6661f0 defect 3524563: keeping the udevd does not hurt anything, so just keep it
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12665 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-14 14:17:39 +00:00
lissav c12bf5a549 fix comments for getAttribs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12664 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-14 13:44:00 +00:00
daniceexi 8b90088bf9 defect 3525895: check the status of xcatd before continuing in the xcatconfig
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12661 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-14 08:57:20 +00:00
wanghuaz 9fc48a2a59 Fixing bug that basename command required File::Basename pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12660 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-14 08:05:59 +00:00
arifali 4ff3dc9eba cleaned up a bit, and added support for netinst iso for debian, so that can be used for installation
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12658 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-13 23:12:06 +00:00
arifali cf6ffbc38d updated thed building of ubuntu repo to include the supported ubuntu distros all-in-one
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12657 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-13 22:51:24 +00:00
arifali bd8f038ff7 add cmos settings for m4 type machines similar to the m3 settings previously in the directory
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12655 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-13 19:33:41 +00:00
lissav 7c314e731f Add delEntries XML support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12654 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-13 11:44:38 +00:00
lissav 6bc5be20e1 report when no defined plugin, will at least see in bypass mode
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12653 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-13 11:03:59 +00:00
lissav 112389df2b Add more info on delEntries
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12652 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-13 10:36:16 +00:00
jbjohnso 00afad1db2 Correct mistaken variable prefix in optimization work
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12651 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-12 12:03:07 +00:00
jbjohnso 4b81110bf7 Fix problem where nodegroup enumerated groups could last forever, also eliminate calls to retain_cache with (0)
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12649 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-12 11:54:58 +00:00
jbjohnso 83be6fd96e Remove _clear_cache, we are instead just going to let things age out and rely upon use_cache to control when a caller
urgently needs to assure fresh data

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12648 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-12 11:54:49 +00:00
bp-sawyers 9ffff27d86 Fixed double %pre in xCAT.spec and improved dhcp require
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12646 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-11 21:13:40 +00:00
jbjohnso c82eea4b25 When doing getAllNodeAttribs, institute a noderange result cache to avoid many noderange() calls
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12645 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-11 19:33:27 +00:00
jbjohnso ef27e8e45e More aggressively retain cache
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12641 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-11 18:42:47 +00:00
jbjohnso ae2de192ef Have monitorctl induce prefetchcache when it's probable in Postage context
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12640 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-11 18:02:01 +00:00
jbjohnso 3de8c6bb41 Have Postage induce prefetched cache.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12637 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-11 15:31:02 +00:00
jbjohnso 6cead01cf9 Have SvrUtils potentiall prefetchcache
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12636 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-11 15:30:53 +00:00
jbjohnso 14c2613546 Shave off an unneeded database call
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12634 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-11 14:54:31 +00:00
jbjohnso 59b6c3310f Change Postage to induce prefetched cache
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12632 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-11 14:18:21 +00:00
jbjohnso c7f18f612d Fix problem where group mapping may get stuck under certain circumstances
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12630 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-11 14:15:06 +00:00
jbjohnso 9861a35e00 Make sure nodelist never retains a nodelist cache longer than 5 seconds under any condition
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12629 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-11 14:14:56 +00:00
jbjohnso 9f7c4f2dec Change option to 'prefetchcache'
Ensure reference counter doesn't go crazy on prefetch

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12628 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-11 14:14:48 +00:00
phamt 9d0cebeb07 Cleaned up code
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12623 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-11 13:57:46 +00:00
nott 1447febc36 fix epkg parsing in otherpkgs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12621 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-11 12:14:23 +00:00
lissav b8f7f7a241 give better example for delEntries
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12620 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-11 11:55:08 +00:00
lissav 3a8ee9cf5b give better example for delEntries
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12619 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-11 11:40:38 +00:00
nott 1fb38d63e4 fix rpm name and missing installp_bundle issues
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12617 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-11 11:23:45 +00:00
wanghuaz 3582608923 To configure bond0 working with hf0-7 for HFI DD2.1 and fix a typo
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12615 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-11 06:57:13 +00:00
jbjohnso 996604e435 Add 'eagercache' to getNodeAttribs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12613 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-10 20:57:08 +00:00
bp-sawyers 43ac09685a Improve html file names that getxcatdocs generates
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12610 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-10 20:35:05 +00:00
jbjohnso bb760cf069 Try to do more reuse of nodelist objects in db worker
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12608 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-10 19:59:49 +00:00
wanghuaz 5890139d47 Fixing bug 3508572: SvrUtils.pm issues command mkpath, mkpath is included by File::Path, instead of File::Basename. I cannot find any other command that is included by File::Basename, so just replace it with correct one.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12607 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-10 09:28:10 +00:00
immarvin 8ac8d760ad fixed bug 3495408 :nodeset offline doc and test
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12605 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-10 08:24:21 +00:00
immarvin 2624435903 fixed bug 3495408 :nodeset offline doc and test
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12599 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-10 08:11:16 +00:00
immarvin 5c89c73a44 fixed bug 3495408 :nodeset offline doc and test
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12598 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-10 08:09:59 +00:00
immarvin 6d55da8656 fixed bug 3495408 :nodeset offline doc and test
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12597 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-10 08:08:19 +00:00
immarvin eb988493a6 fixed bug 3495408 :nodeset offline doc and test
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12596 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-10 08:07:36 +00:00
immarvin e4db188074 fixed bug 3495408 :nodeset offline doc and test
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12595 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-10 08:06:47 +00:00
xq2005 40976c739a add the work around for kdump on sles diskless node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12593 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-10 04:20:51 +00:00
yinle 75a543f116 Fix the issue that too many IPs in the PRLIST of the package.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12591 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-10 02:49:07 +00:00
zhaoertao a7d074f395 fix bug 3524452: rcons to P7 IH LPAR getting Console not ready error
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12590 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-10 02:00:52 +00:00
bp-sawyers a3c2beca1d No longer require vsftpd.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12589 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-10 00:33:22 +00:00
nott 133beb2bd6 add force option
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12586 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-09 14:56:56 +00:00
nott df748cbf32 don't remove shared resources
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12584 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-09 14:34:05 +00:00
jbjohnso 3d008a7b33 Have xnba.pm more gracefully recover from error conditions
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12580 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-09 14:12:20 +00:00
jbjohnso 87edafb925 Have slpdiscover tolerate errors per managed target more gracefully
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12579 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-09 13:48:02 +00:00
phamt d71018a664 Allowed generated node names to come from free ones available, and not the highest base digit.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12577 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-08 21:32:11 +00:00
phamt b697c63032 Switched installation method for Linux from FTP to HTTP.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12576 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-08 19:42:43 +00:00
jbjohnso e519a1f925 Revise getnodetype function to not do N! log entries
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12574 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-08 18:53:05 +00:00
lissav 743d03e1ae fix syntax
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12573 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-08 18:32:57 +00:00
linggao cd3b725576 fixed the problem in rmc performance monitorng, it will ingore the error nodes instead of quiting
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12572 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-08 18:00:17 +00:00
jbjohnso e43ba22d99 Correct mistake in clicmds change
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12569 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-08 16:28:57 +00:00
lissav 6de4cfe891 fix man page, if no seed given then the seed becomes one of the nodes from the noderange, not necessarily the first
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12567 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-08 16:24:42 +00:00
lissav f0b6fde5d9 fix sinv error processing defect 3524781
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12565 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-08 16:20:11 +00:00
jbjohnso 6484d0b141 Revert "add use xCAT::FSPUtils;"
This reverts commit e49deecc8cfbba534ba7cf713b79709f63efaead.

This change broke SSH automation

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12564 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-08 16:15:47 +00:00
nott 140f67a0e4 fix resolv_conf bug
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12562 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-08 15:09:37 +00:00
nott 5a51b99724 fix resolv_conf info
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12561 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-08 14:23:29 +00:00
jbjohnso 0f753a95d0 New command 'tcons' to be like 'wcons' but using tmux instead of x windows
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12557 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-07 19:03:44 +00:00
bp-sawyers 95db581fae Add support for running rcons via sudo on aix
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12555 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-07 18:46:25 +00:00
phamt 7f995d604a Changed when old directory entry is removed from xCAT.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12553 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-07 15:22:15 +00:00
jjhua 403add1822 For DFM lsvm command, the noderange's type should be cec, not fsp
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12551 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-07 14:10:26 +00:00
jjhua 18a22cb2a7 There will be a performance issue in large cluster in the fix for 3524241, I made the fix again.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12550 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-07 14:08:29 +00:00
yinle cfcfbb429f Add filling-in prlist in the slp request.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12547 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-07 09:40:57 +00:00
zhaoertao 8453bc07d7 fix bug 3524241: some dfm commnds failed when noderange is lpar
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12546 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-07 09:14:50 +00:00
yinle 8434dfff50 Fix bug 3522940:FB->lsslp no response on aix71D
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12544 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-07 07:45:45 +00:00
zhaoertao eebe399699 fix bug 3519426: FB:rspconfig network=ip,host,gateway,netmask can't work
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12542 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-07 07:07:03 +00:00
yinle e97573587a Fix some mistakes.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12539 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-05 02:06:19 +00:00
jbjohnso e5bc9b43c7 Honor addkcmdline parameter in esxi5.x
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12535 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-04 21:02:45 +00:00
jbjohnso 84152575a0 Have ks= in esxi install honor noderes.nfsserver
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12534 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-04 20:51:12 +00:00
jbjohnso 020ac78e7f Be content with just a boot.cfg.<whatever>.tmpl file
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12533 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-04 20:45:44 +00:00
jbjohnso 2e6ccdb68d Have esx.pm put the kernel command line argument on 'b.b00' in tmpl case. It's still not the recommended approarch
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12532 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-04 20:36:43 +00:00
jwsimpson c047d8b5cb Defect 3514607 - RPM checks for ifix
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12530 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-04 17:16:42 +00:00
jbjohnso 0c9f723786 Correct loop variable names in various post scripts
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12526 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-04 14:27:19 +00:00
phamt 8c8d178eb3 Formatted code.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12525 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-04 14:23:08 +00:00
wanghuaz 5e12d730ff Fixing bug 3523438: ENV variable has issue with full installation
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12523 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-04 09:09:33 +00:00
ligc 4bb9056a68 fix for bug 3523412: makeconservercf noderange does not work
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12520 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-04 06:28:36 +00:00
daniceexi 8cf075b62d fixed the case that import sshkey failed,but no error message
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12519 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-04 02:25:19 +00:00
yinle 7c14981e7e Modify the help information about lsslp.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12517 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-04 02:09:04 +00:00
yinle d1a4d44103 Modify man page of lsslp for new lsslp code.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12514 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-04 02:02:01 +00:00
yinle 7e1fa1dcc5 Add support of lsslp -C -T.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12512 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-04 01:40:45 +00:00
phamt e2484fafe5 Formatted code.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12511 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-04 00:54:58 +00:00
lissav 8a15295c6a Put comment where output is actually sent to the callback
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12510 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-03 18:25:27 +00:00
jbjohnso 993b886f97 Recognize customized ESXi OS images
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12509 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-03 14:23:16 +00:00
lissav 29c5b25620 Put back example of setting up ssh keys, loss it somewhere
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12507 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-03 11:22:55 +00:00
yinle 6ddbbe0505 Add support of lsslp -C -T
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12505 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-03 09:48:32 +00:00
daniceexi 13db6d7692 Change the keyword to identify the flex power node. handle the failure case that setting network without output
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12503 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-03 08:03:26 +00:00
yinle 5623cb3a9e Fix bug 3522940: FB->lsslp no response on aix71D
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12500 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-03 06:47:36 +00:00
yinle 195d7771f3 Fix some mistakes.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12497 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-03 06:36:27 +00:00
jjhua 1745668bfa For FB, prompt some messages at the beginning of the setting
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12496 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-03 06:28:18 +00:00
jjhua 68607d70b7 add use xCAT::FSPUtils;
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12488 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-03 05:00:28 +00:00
jjhua 1225932728 add use xCAT::FSPUtils;
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12487 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-03 04:58:16 +00:00
jjhua a82e83dcc6 add use xCAT::FSPUtils;
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12486 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-03 04:49:07 +00:00
ligc d77845f04e fix for bug 3523175: use nfsv3 to mount the statelite directories
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12484 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-03 04:31:35 +00:00
jbjohnso f6460e219a Have xCAT instances more reliably relay abort commands and cleanly exit on ctrl-c by client
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12482 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-02 19:57:58 +00:00
jbjohnso abd9669f93 Have Table.pm force flush of more than 5 seconds old, in preparation for more aggresive cache retention
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12481 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-02 19:57:49 +00:00
linggao 3c38e7c850 doc added for sprcifying --keeprepo for ospkgs postscript
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12479 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-02 19:17:31 +00:00
lissav 5b31e3bd92 revert to 11591
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12477 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-02 18:40:08 +00:00
lissav 4269163b6f document support of MN
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12476 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-02 18:29:59 +00:00
lissav a65de74eaa fix rsync path for MN support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12475 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-02 14:29:27 +00:00
jjhua c43b98a161 fixed bug 3522919
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12474 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-02 13:47:59 +00:00
jbjohnso 638e9179a7 Fix problem where Client could attempt to coalesce data from server that doesn't cleanly cleave an xcat response
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12472 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-02 12:59:22 +00:00
lissav f9bb1c2c79 define mn attribute for Management Node in nodetype.nodetype
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12468 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-02 12:12:10 +00:00
lissav 5a090a858b Support xdsh/xdcp to MN, MN must be defined in nodelist table and nodetype.nodetype=mn
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12467 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-02 11:54:31 +00:00
wanghuaz 246777b976 Configure bond0 working with hf-x in confighfi postscript
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12465 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-02 11:20:42 +00:00
lissav 40609812d8 remove -M flag implementation
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12464 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-02 10:36:05 +00:00
lissav 79d548d7c7 remove -M flag implementation
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12463 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-02 10:31:01 +00:00
wanghuaz c0deadd4f6 Added top level files for compute.sles11.x86_64
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12462 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-02 07:53:35 +00:00
wanghuaz b31e7d41df PE otherpkgs list name has been changed to match different pe rpm names, now changing the upper level pkglist to include correct pe list
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12459 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-02 07:13:11 +00:00
jjhua 2c9a5c5a2f correct a typo
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12457 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-02 06:42:48 +00:00
jjhua 15e830a384 use the getIPaddress() in FSPUtils.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12456 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-02 06:31:36 +00:00
jjhua 3edf686eb9 use the getIPaddress() in FSPUtils.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12455 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-02 06:30:46 +00:00
jjhua 80dd11dbd4 use the getIPaddress() in FSPUtils.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12454 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-02 06:30:04 +00:00
jjhua 5f2d412304 add some comments
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12449 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-02 06:08:45 +00:00
jjhua 09054d303a add more comments to some special cases in preprocess_nodes()
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12448 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-02 05:51:24 +00:00
jjhua 46eb7b4b6c modified the comment for getIPaddress and getHcpAttribs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12443 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-02 05:10:42 +00:00
wanghuaz 9ee2f80be1 Changed pe otherpkg list name to match xCAT naming convention, instead of PE.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12441 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-02 04:39:57 +00:00
wanghuaz b38d5b8b86 PE now is providing different package names for different OS and arch, for example, **rh6x, **rh6p, **sles11x, **sles11p. So for convenience of system admins, we are shipping several otherpkgs list for different PE version, os and arch.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12440 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-02 03:49:05 +00:00
wanghuaz 49e283404b Fixing bug 3518890, update pe otherpkgs list
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12439 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-02 03:26:45 +00:00
ligc 2c8c856097 fix for bug 3522897: not allow chdef -t <object_type> xx=yy to change all objects
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12438 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-02 02:53:42 +00:00
yinle 055b0e382c Fix bug 3521914: fsp plugin bug at PPCenergy.pm line 182 with renergy on p7ih
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12435 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-02 02:34:07 +00:00
phamt 4ad9216707 Formatted code.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12434 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-01 23:43:11 +00:00
phamt 075a6e49e9 Formatted code.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12433 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-01 21:14:16 +00:00
jbjohnso 7c2e989bb8 Fix various mistakes in bmcsetup
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12432 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-01 20:38:45 +00:00
jbjohnso 83e79a0991 Add setting vlan tag to bmcsetup
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12431 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-01 20:38:39 +00:00
jbjohnso 85ee055285 Correct problem where xcatd could truncate very large responses
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12429 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-01 20:00:30 +00:00
jbjohnso 4e9d05f9d2 Correct syntax problems in invoking fcntl calls
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12427 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-01 18:28:38 +00:00
jbjohnso b41bbd14dc Fix problem where a bare newline could cause xcatd to be confused
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12425 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-01 17:52:55 +00:00
nott e52c4c98c6 add hasn support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12423 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-01 17:13:53 +00:00
lissav f18bfb379b start code for xdsh on MN, interface defined
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12421 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-01 15:54:17 +00:00
lissav 77a82387d2 start code for xdsh on MN, interface defined
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12420 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-01 15:53:19 +00:00
linggao 1fbb70b78b added --keeprepo flag for ospkgs posctscript
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12419 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-05-01 15:35:13 +00:00
linggao 708895577c Fixed the wrong callback structre that caused defect 3510390
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12417 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-30 19:42:06 +00:00
lissav 245dd3a189 fix setNodesAttribs1 in non-bypass mode
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12415 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-30 19:36:48 +00:00
jbjohnso fdc9202229 Actually include the serial payload in the discovery packet
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12413 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-30 19:27:33 +00:00
jbjohnso 039f6191f2 No longer bother trying to do 32-bit only x86 and ppc for genesis image
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12412 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-30 16:24:23 +00:00
jbjohnso a60faa9535 Move the new requires more appropriately
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12410 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-30 16:09:28 +00:00
jbjohnso 9bff9c6d8f Have xCAT require genesis and elilo-xcat
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12407 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-30 16:06:38 +00:00
jbjohnso e272264896 Fix discovery to do serial number
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12406 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-30 13:57:22 +00:00
nott c4894bc832 add -k and -u options
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12405 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-30 13:28:02 +00:00
jbjohnso dc5d96e183 Correct problem where multiple nics on the same subnet don't quite pan out very well in discovery
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12401 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-30 13:04:54 +00:00
arifali d226d3d75d ubuntu: add new genimage which has a few additions for dracut, when available, and re-enabled busybox-static, as that is available in ubuntu10.10. this current one works with 10.10
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12400 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-30 00:03:11 +00:00
arifali 4f0482d705 ubuntu: genimage fixes
- stateless requires busybox (see artifact 3522447 for more details)
- initial work on dracut committed, not sure if this is going to work yet, as ubuntu doesn't have dracut by default
- changed linux-image-generic to linux-image-server, and removed busybox-static as that didn't exist

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12399 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-29 23:00:07 +00:00
arifali 869869efe6 xcat-server: add changes that have gone into anaconda.pm
- genimage will follow
- tried to be consistent with the changes to anaconda.pm
- Added dracut stuff, not sure if that is going to work yet though (maybe the dvd version of the distro will work, will experiment)

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12398 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-29 22:42:59 +00:00
jbjohnso f232fc8b82 Rework Client to be more responsive to server code even with the XML coalescing in effect
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12395 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-29 00:36:33 +00:00
jbjohnso 54aa2a2202 Revert "Revert "fixed a defect when snmove failed if the source service node is down. defect 3487610""
This reverts commit f916dada5ddca8f67acd9bd9a050a158fde5d1df.

revert the mistaken revert

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12394 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-29 00:14:59 +00:00
jbjohnso d7088aa571 Pass 2 at correcting xcatd infinite patience with clients
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12393 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-29 00:13:41 +00:00
jbjohnso 75d37c0a6f Revert "Fix problem where unauthorized users could indefinitely hold an xcatd slot open so long as they stayed connected"
This reverts commit 293f2194c6fe119e71e3c053c3894748a44f9e7e.

Doing it a better way

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12392 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-29 00:13:35 +00:00
jbjohnso 6df0c51504 Revert "fixed a defect when snmove failed if the source service node is down. defect 3487610"
This reverts commit 73a31e731517ce234f85f23ce391b3fce1169b76.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12391 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-29 00:13:28 +00:00
jjhua dfaf88f244 remove getIPaddress() from Utils.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12390 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-28 09:28:24 +00:00
jjhua d55a7c6d5a performance enhancement for getIPaddress() in FSPxx.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12389 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-28 09:26:49 +00:00
jjhua 794f22057a performance enhancement for getIPaddress() in FIP.pm; some other performace issues will be fixed later.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12388 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-28 09:25:12 +00:00
jjhua 4b8f6d528a performance enhancement for getIPaddress() in fsp.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12387 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-28 09:25:04 +00:00
jjhua 1bc8fc7e64 performance enhancement for getIPaddress()
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12386 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-28 09:22:50 +00:00
jbjohnso 5d38b453ef Fix problem where unauthorized users could indefinitely hold an xcatd slot open so long as they stayed connected
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12379 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-27 18:36:52 +00:00
linggao bb244787a7 fixed a defect when snmove failed if the source service node is down. defect 3487610
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12377 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-27 17:57:37 +00:00
jwsimpson 558c7ba4bb support for shared file system
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12376 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-27 16:05:45 +00:00
jbjohnso 1c83b2641b Correct typo in xnba plugin
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12374 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-27 14:45:26 +00:00
lissav c4d0ab4062 man page for EXECUTEALWAYS clause in syncfile for xdcp -F
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12372 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-27 11:32:41 +00:00
lissav 7c48ae3e2e add EXECUTEALWAYS clause in syncfile for xdcp -F
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12371 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-27 11:26:51 +00:00
ligc 5cf83aad5b fix for --setuphanfs work with mkdsklsnode -b
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12370 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-27 10:06:10 +00:00
zhaoertao 92d59e063a fix a potential bug for SSHInteract
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12368 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-27 07:45:20 +00:00
jbjohnso 83bcc20597 Revisit the 'templated' boot config based on refined requirements
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12365 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-26 19:50:05 +00:00
jbjohnso ea23089441 Fix a problem in the boot partition in rhel
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12364 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-26 19:25:46 +00:00
bp-sawyers 5548c0684b Added wvid man page
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12362 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-26 19:08:15 +00:00
jbjohnso b99e150b60 Add boot device probing to suse
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12361 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-26 19:00:30 +00:00
jbjohnso 8250bc1673 Have RedHat installs reduce risk of overwriting SAN volumes. The strategy:
BIOS drive 80 is chosen if at all possible (don't know EFI way yet)
Failing that, first virtio block device
Failing that, then first block device served by ata_piix4, ahci, megaraid_sas, pmcraid
Failing that, first mptsas or mpt2sas
Failing that, first block device

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12360 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-26 18:41:18 +00:00
yinle 7ddb1fa4aa Add retry part to support lsslp -t retrytimes.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12358 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-26 15:32:21 +00:00
lissav 75ff38db92 Add setNodesAttribs1 (format 1) for setNodesAttribs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12357 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-26 15:19:21 +00:00
jbjohnso bab318526c Have xcatd accept multiple requests in a single connection
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12356 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-26 14:35:29 +00:00
jbjohnso bc9e8d2f92 Fix otherpkgs in the face of robots.txt
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12355 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-26 13:00:41 +00:00
jbjohnso 957464e075 Have wget http ignore robots.txt
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12352 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-26 12:40:46 +00:00
yinle a434851bc3 Fix some mistakes.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12350 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-26 11:45:50 +00:00
yinle c67dfb6688 Modify lsslp to support invoking SLP.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12348 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-26 10:22:30 +00:00
yinle abb3d4989a add support of lsslp -i (specify the nic to do lsslp) and fix a bug.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12346 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-26 08:56:24 +00:00
phamt f6cca9aa39 Added configuration panel for groups.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12345 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-26 03:49:06 +00:00
phamt f8630000f9 Added configuration panel for images and updated profiles configuration panel.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12344 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-25 23:36:32 +00:00
jbjohnso 5e9caf5a66 Actually fix typo
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12342 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-25 18:24:40 +00:00
jbjohnso 16843a2df4 Correct typo
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12341 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-25 18:24:32 +00:00
bp-sawyers d242ae9f30 Removed expect dependency
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12340 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-25 11:40:16 +00:00
bp-sawyers cbe0b30514 Always build the meta rpms and add a buildall=1 option
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12338 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-24 23:07:13 +00:00
bp-sawyers 1617b0b2e4 Fix xCAT-UI build problem
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12336 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-24 21:02:40 +00:00
jbjohnso 961646994d Have Table.pm properly bail out in the event of a bug
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12334 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-24 19:17:06 +00:00
jbjohnso 67505c4c3b Table.pm would die unceremoniously when faced with undefined argument, tolerate it
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12332 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-24 18:31:02 +00:00
phamt 4731bf5d4b Erase node from /etc/hosts during rmvm.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12331 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-24 18:30:59 +00:00
phamt e95876b3b5 Fixed bug #3458318
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12330 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-24 16:10:55 +00:00
phamt 8cbd409de5 Fixed bug #3458318
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12329 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-24 16:01:41 +00:00
phamt f9ef89062e Fixed bug #3458318
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12328 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-24 15:55:37 +00:00
phamt a0f2a9a993 Fixed bug #3458318
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12327 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-24 15:24:16 +00:00
wanghuaz e743131f19 Added checkpoint/restart script to setup related environment
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12325 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-24 11:02:08 +00:00
sjing 34ca6ec873 the fix for bug 3364300 - only allow root to run xcatbypass mode.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12323 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-24 02:36:17 +00:00
sjing cb66289972 the fix for bug 3364300 - not display passwords in xcat commands or logs.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12321 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-24 02:06:12 +00:00
sjing be056ae2d0 the fix for bug 3364300 - not display passwords in xcat commands or logs.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12319 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-24 02:03:10 +00:00
sjing d69ac67df9 the fix for bug 3364300 - not display passwords in xcat commands or logs.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12317 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-24 02:00:50 +00:00
sjing 846cb5662e the fix for bug 3364300 - not display passwords in xcat commands or logs.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12315 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-24 01:58:20 +00:00
sjing 92cdad2a2d the fix for bug 3364300 - not display passwords in xcat commands or logs.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12313 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-24 01:50:26 +00:00
sjing 66b2bcfce0 the fix for bug 3364300 - not display passwords in xcat commands or logs.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12311 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-24 01:47:48 +00:00
sjing f84a114049 the fix for bug 3364300 - not display passwords in xcat commands or logs.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12309 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-24 01:41:47 +00:00
sjing 1b3e43ba14 the fix for bug 3364300 - not display passwords in xcat commands or logs.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12307 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-24 01:38:00 +00:00
linggao d5a3ec70db drop -t support for genimage, defect 3520753
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12306 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-23 20:52:58 +00:00
lissav efaa159718 fix examples
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12302 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-23 17:40:41 +00:00
lissav a2eff1840f put XML table routines in tabutils.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12301 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-23 12:32:58 +00:00
lissav 285c79265f moving DButils.pm function into tabutils to make use of database access code already implemented
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12300 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-23 10:50:35 +00:00
xq2005 1402e078d0 change the mount path in kdump postscript
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12299 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-23 03:14:19 +00:00
jjhua 0804b949cb correct the typo, fixed bug 3520431
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12297 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-23 02:57:44 +00:00
lissav e16dc4a470 fix defect 3474497
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12296 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-22 18:57:50 +00:00
lissav b10b8057a6 get rid of warning for perl -c
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12294 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-22 10:25:50 +00:00
lissav 2ecf1cd9f0 change globals in tabch
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12292 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-22 10:17:43 +00:00
bp-sawyers 3b97f0c9ef Fix getxcatdocs to not use File::Path::make_path, which apparently isn't in all perls
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12290 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-20 13:37:58 +00:00
phamt 3d6021bca9 Removed /opt/xcat from .spec file.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12287 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-20 04:06:16 +00:00
phamt 4dc359e733 Added groups panel in service config tab. Added create, edit, and delete functionality into zVM service profile config panel. Removed /opt/xcat from .spec file.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12286 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-20 03:50:58 +00:00
zhaoertao 0825693212 fix bug 3518485 and 3518486, issues about ivm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12284 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-20 03:18:38 +00:00
arifali ecfadb5118 update script to create mklocalrepo.sh once the repository is created
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12283 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-19 22:31:05 +00:00
phamt 6ee305dd95 Added policy.rule=allow when creating new users for service page.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12282 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-19 18:56:55 +00:00
lissav d6b8daaf33 Start of fix for SF3519602
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12281 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-19 18:50:42 +00:00
lissav 40ae98400f revert perf change
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12278 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-19 15:32:28 +00:00
lissav bf313c1b3f revert code back to 11757
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12276 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-19 15:18:04 +00:00
jjhua 05a9e204d8 performance improvement. collect the CEC/Frames' Children in preprocess_nodes() of PPC.pm, instead of getIPaddress() in Utils.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12274 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-19 10:32:01 +00:00
jjhua 22e99e551b performance improvement. collect the CEC/Frames' Children in preprocess_nodes() of PPC.pm, instead of getIPaddress() in Utils.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12273 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-19 10:30:09 +00:00
sjing f0c9ca1996 When bad flags are specified, we need to return 1.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12270 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-19 07:18:31 +00:00
zhaoertao 9cd0c90e72 fix bug 3511324: rpower got uncorrect output
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12269 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-19 07:03:20 +00:00
zhaoertao b8c9a70a3c fix bug 3519391: FB:wrong rpower status for
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12265 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-19 06:22:00 +00:00
phamt 0e7ea664d4 Added selectable column to service tab on configure page.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12264 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-18 22:49:15 +00:00
jwsimpson 86b14c682a Defect 3469202 - PMR PMR29062 - update to 2.8 rinv man page for deconfig
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12263 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-18 20:00:51 +00:00
lissav 61b78221c6 improved XML
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12261 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-18 15:52:53 +00:00
xq2005 4e6128de01 update the cmdlist with crashkernelsize attribute
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12260 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-18 09:18:03 +00:00
jjhua d163da308f fix the error of the command mkhwconn frame -s
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12259 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-18 00:55:11 +00:00
jbjohnso 3351f818a9 Don't give up on a TCP socket if connection happens but SSL is slow
Have Client.pm consider basic tcp connectivity separate from SSL for timeout concerns

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12256 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-17 21:04:23 +00:00
lissav fa72494694 add getNodesAttribs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12255 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-17 18:29:51 +00:00
jbjohnso 7d30d83c97 Support customers wishing to have boot parameters grouped into the same config file as module liste
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12254 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-17 14:09:49 +00:00
lissav 8ec833f8b0 start of XML DB access plugin
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12253 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-17 13:19:27 +00:00
immarvin 1a90296659 fixed defect ID: 3509605 xcatconfig will not setup syslog for xCAT on linux
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12252 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-17 13:01:34 +00:00
jjhua 834894fbaf { } is for required arguments when the user has to choose between several items, one of which is required.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12249 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-17 06:12:27 +00:00
phamt a80623ace8 Added configure profile panel for self-service page.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12248 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-17 03:03:25 +00:00
arifali 5006b9db5f fix rsyslog for ubuntu on MN, and don't need to do it in posinst
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12247 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-16 19:40:18 +00:00
lissav 1b755d9d48 More updates for XML handling
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12246 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-16 18:39:07 +00:00
lissav a7a5218b5b Add support for XML in
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12245 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-16 12:52:08 +00:00
jbjohnso 2bf340b011 Enhance ipmi console with analogous enhancements to other console backends to mitigate memory usage when massive numbers of imms are not reachable
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12244 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-16 00:42:36 +00:00
jbjohnso 856de8cecd Have IPMI not send console data if a basic IPMI health check does not pass.
This means ipmi console backend may spend more time holding a lock when bmcs are unreachable, but it means that the service processor addresses are not pinged all at once

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12242 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-16 00:27:37 +00:00
jbjohnso db4022ec09 Have psh have /dev/null opened as stdin instead of nothing
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12240 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-15 13:11:55 +00:00
arifali c55553e5df xcat-server: fix enable apache2 for ubuntu/debian when xcat is installed
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12239 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-14 22:33:11 +00:00
bp-sawyers 380c3e3d49 fixed doc building problem with 775 docs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12238 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-14 17:34:04 +00:00
jbjohnso d5e4736a96 Fix NetworkUtils.pm to work correctly with IPv6 nets with '/64' in netmask field
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12237 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-14 16:09:38 +00:00
jbjohnso db1e95f0c8 Have packimage skip mounted filesystems (e.g. proc, sys, etc that might be accidentally hanging around).
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12235 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-14 14:19:34 +00:00
jbjohnso 9e912be932 Fix a typo in SSHInteract.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12234 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-13 12:43:32 +00:00
zhaoertao 24ac5b5ecf delete username HMC from usage page of rspconfig
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12231 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-13 03:10:34 +00:00
linggao 77d99a07e2 fix defect in ospkgs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12228 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-12 19:26:55 +00:00
phamt d13d61f0f7 Destroy dialog once close button is clicked.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12226 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-12 16:11:00 +00:00
lissav 3fb71bfd73 fix incorrect info on timeeout
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12224 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-12 16:00:07 +00:00
ligc fdc6485616 support updatenode ospkgs for SLES SDK
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12222 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-12 09:29:17 +00:00
jjhua ac03612e39 update the rpower manpage for the -T tooltype
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12221 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-12 08:53:04 +00:00
jjhua efc24bee4f rpower cec onstandby -T tooltype support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12219 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-12 08:13:55 +00:00
jjhua 211cf80b67 rpower cec onstandby -T tooltype support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12218 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-12 08:11:57 +00:00
ligc 820beb4ffa fix for bug 3496309: print warning message if could not find osimage information for nodes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12214 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-12 07:57:24 +00:00
immarvin ee23b11566 change all logger calls to put xcat msgs into local4
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12213 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-12 05:47:36 +00:00
immarvin 2dbc51d2d7 change all logger calls to put xcat msgs into local4
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12212 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-12 05:45:09 +00:00
immarvin c07ec5a185 change all logger calls to put xcat msgs into local4
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12211 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-12 05:40:58 +00:00
immarvin 63bc1b4476 change all logger calls to put xcat msgs into local4
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12210 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-12 05:37:26 +00:00
immarvin 5c74fae8cd change all logger calls to put xcat msgs into local4
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12209 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-12 05:27:42 +00:00
immarvin ba0a9dd975 change all logger calls to put xcat msgs into local4
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12208 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-12 05:26:55 +00:00
arifali f18a325527 xcat-nbroot2: ubuntu: Genesis environment changes to support ITE configuration
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12205 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-11 23:29:20 +00:00
phamt 90b9b596e0 Changed location where directory entry is retrieved.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12204 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-11 22:40:44 +00:00
phamt 57b7c99c0f Moved profile configuration and directory entry onto the xCAT MN under /var/opt/xcat/profiles.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12203 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-11 22:33:50 +00:00
jbjohnso 67adfabc49 For ITE case, skip user name and password setup
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12202 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-11 20:49:49 +00:00
jbjohnso a322586be7 Genesis envirenment changes to support ITE configuration
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12201 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-11 20:49:41 +00:00
phamt d060592573 Added configure tab for self-service page. Fixed bug in nodes table where node attributes are not loaded when there is more than 50 nodes.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12200 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-11 19:59:16 +00:00
jbjohnso 72254ce79c Provide a hook for TLS cert delivery by updates.img.
Note this is of little use in a PXE environment today, as MITM to the initrd or ipxe subverts all of this.
This however is interesting for secure boot environments and remote media boot strap to provide an unbroken trust chain

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12198 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-11 13:39:51 +00:00
arifali 635505a340 xcat-server: fix rsyslog if imuxsock is not included in rsyslog.conf
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12197 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-11 13:11:39 +00:00
sjing 455cd126ca not try to give "Error" message when the return code of actual command is non-zero, instead, use the return code of the actual command as the return code of xcatchroot.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12195 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-11 10:33:50 +00:00
sjing 60268e8096 fixed the issue when -l is specified as '/'
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12192 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-11 05:52:42 +00:00
sjing de59e42d39 check if nim resources exist before copying them to SN.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12190 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-11 04:48:03 +00:00
daniceexi 48c280bae1 fix the issue that rootimg/sys was not umounted by genimage
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12184 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-10 17:23:20 +00:00
yinle 17fba594b1 Fix bug 3512371:hcp in HMC node definition
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12182 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-10 13:28:24 +00:00
jbjohnso 17593ac412 Move send_service_request_single inside the while loop so that it actually would work as a retry mechanism
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12180 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-10 12:39:37 +00:00
jbjohnso f9d6ddd02c Fix typo in slpdiscover
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12179 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-10 12:34:04 +00:00
ligc 778b0b915a fix for bug 3497125: warning message for plain_pkgs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12178 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-10 11:38:40 +00:00
arifali f1152ae54d change build script for ubuntu
* Generalised the CODENAME to be taken out of /etc/lsb-release
* added building of xcat-dep, the script for that will be added later
* added for loop to create packages rather than one line per package

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12176 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-10 11:00:00 +00:00
arifali ae1b2cf9d5 xcat: further debain changes
* added xcat-genesis-amd64 to recommends
* added openslp-xcat to Depends as per the spec file
* copying xHRM to postscripts as per the spec file

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12175 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-10 10:39:34 +00:00
arifali 569cd9323e xcat-client: fix environment issue for MANPATH in postinst
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12174 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-10 10:34:00 +00:00
arifali 9f010a3b76 xcat-ui: fixed debian files
- don't need apachedaemon, as this is same across ubuntu and debian
- added the plugins in the correct place
- created the link for webportal

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12173 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-10 10:28:30 +00:00
arifali 3946f00fd5 corrected/added xcat-ws.conf for ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12172 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-10 10:25:29 +00:00
immarvin 1554d29c0f fixed nfs mount problem and bug:CN fail to acquire eth address during deployment(ID: 3515413)
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12170 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-10 05:14:00 +00:00
zhaoertao 1428987d4f fix bug 3513481. There was no command 'getent' in AIX.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12168 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-10 02:45:38 +00:00
lissav 153329d268 fix syntax
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12167 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-09 19:10:53 +00:00
jbjohnso 65032f72e5 Fix problem where ESXi clone from a non-xCAT template may fail in the face of xCAT mac address management
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12164 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-09 14:05:25 +00:00
yinle 95ae6e5ae6 Fix bug 3516024: xcatsetup can't define service/storage node over 1 bb
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12162 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-09 08:50:56 +00:00
arifali 2e2a78e7f9 xcat-server: fixed further debian packaging
* merging in fixes that were included in the spec file.
* generalised rules file

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12161 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-08 21:08:04 +00:00
arifali 7f7176f039 fixed further debian packaging, merging in fixes that were included in the spec file
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12160 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-08 18:10:03 +00:00
arifali e0bea579dc added syslinux-xcat into Depends for xCAT
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12159 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-07 23:22:42 +00:00
arifali ade7ff742c changed control file similar to xCAT
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12158 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-07 23:19:12 +00:00
arifali 703ffda5ac change Depends for xCAT so that now it uses ipmitool-xcat instead of ipmitool
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12157 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-07 23:08:32 +00:00
arifali a56f0baa89 change the dependancy for xCAT from conserver to conserver-xcat in the debian packaging
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12154 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-07 20:28:39 +00:00
bp-sawyers e9f36b6f10 Improve the hosts table description
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12149 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-06 18:58:33 +00:00
phamt d03e83e52a Fixed node delete bug. Changed copy CD tab into a dialog. Loaded correct plugins for service page.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12148 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-06 18:11:08 +00:00
yinle b2b69cb9d5 Fix bug 3504211: update xcat from 2.6.11 to 2.7 occur error on sles
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12147 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-06 03:33:56 +00:00
yinle c9eeddbfeb Fix bug 3504211: update xcat from 2.6.11 to 2.7 occur error on sles
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12146 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-06 03:31:50 +00:00
phamt 56c12c59e6 Added option to list all disks in disk pool.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12143 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-06 02:54:50 +00:00
phamt 2061e7e0ee Added refresh, add, and remove actions on provision image page.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12142 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-06 02:31:08 +00:00
zhaoertao c6178a5a94 fix bug 3513522: provide more detailed information for 'conn' command
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12141 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-06 02:21:26 +00:00
arifali 60867d1ce9 Initial commit of debian files for xCAT-genesis
* This will only compile on maverick if you install the lldpad from the latest repo from ubuntu i.e. precise (12.04)
* The package that this produces hasn't been tested yet, so will be testing once all the core packages are built

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12139 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-05 22:46:12 +00:00
jbjohnso aab44b34bd Fix problem where mknb failed to create a correct discovery configuration on rhel6 uefi environments
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12138 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-05 21:12:08 +00:00
jbjohnso 4e8e9cc11d Have slpdiscover manage mac table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12135 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-05 17:06:39 +00:00
jbjohnso 51b6f71eb6 Remove extraneous set -x
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12134 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-05 17:06:25 +00:00
sjing 7fe393e420 Fixed the bug -f does not work if the Cstate of nim machine is ready.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12132 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-05 14:12:04 +00:00
jbjohnso a3f7e76b03 Have slpdiscover.pm program chassis name
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12131 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-05 14:10:37 +00:00
zhaoertao a41c3051f7 fix bug 3513160: update manpage for rscan
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12130 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-05 06:08:24 +00:00
yinle 378134bf87 Fix bug 3515039, xcatsetup define service node error
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12127 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-05 03:15:51 +00:00
arifali e8c17fdd80 Added initial xCAT-rmc debian files
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12126 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-04 23:01:42 +00:00
linggao 61e76db19a fix the error callback in dhcp.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12123 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-04 20:08:10 +00:00
jbjohnso 6cd35e6f9c Instead of pestering user, when CMM is detected auto-switch behavior
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12121 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-04 19:28:14 +00:00
jbjohnso 36d3b43194 Fix ssh to wait for system> prompt before trying to type. Also, defer MM reset until all 'clicmds' are processed
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12120 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-04 19:13:12 +00:00
jbjohnso 60f1f2ed5f Fix nodestat reliability issue
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12118 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-04 17:43:24 +00:00
lissav bf841a2946 fix tabch -h
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12117 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-04 14:59:07 +00:00
jbjohnso 73cd343bf5 Have slpdiscover get more fleshed out for CMM
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12115 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-04 14:35:13 +00:00
mellor 0b950cd054 defect 3491680 avoid LL error when setting same config values
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12113 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-03 21:53:48 +00:00
arifali e354728c53 fix rules file to add the svn version information to modifyUtils
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12112 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-03 21:51:48 +00:00
arifali f2577efa77 Fix building debian packages so that the .svn files are not included
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12111 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-03 21:37:16 +00:00
arifali f0e9de7796 Added IBMhpc debian files
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12110 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-03 19:50:44 +00:00
jbjohnso 35fab70399 Add missing use statement to support the ip lookup checked in previously
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12108 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-03 18:55:35 +00:00
jbjohnso 9271d58115 Have blade.pm support filling in based on name lookup
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12107 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-03 18:54:19 +00:00
jbjohnso 7e3c1b8b90 Add more neutral syntax for rspconfig account management of AMM, not everyone wants 'USERID'
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12106 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-03 18:26:23 +00:00
jbjohnso 0e30e06d04 Change clicmds argument passing to be more flexible
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12105 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-03 15:26:52 +00:00
jbjohnso 8a3b5596af Flesh out the blade clicmds ssh support a bit more and accomodate CMM default password behavior/requirements
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12104 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-03 15:13:54 +00:00
phamt cb1b957167 Fixed build error.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12103 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-02 20:47:51 +00:00
lissav 29d1c397a4 fix defect 3514127
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12102 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-02 20:23:38 +00:00
phamt f3c4eb0b38 Removed editable disk pool column.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12100 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-02 20:21:30 +00:00
lissav f63aaf9ebf fix defect 3513526
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12097 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-02 20:05:53 +00:00
jbjohnso 905caa2b18 Enhance blade.pm in preparation for deeper CMM support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12096 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-02 19:27:34 +00:00
phamt e9fc69a84e Enabled editable disk pool.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12095 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-02 19:04:07 +00:00
daniceexi 8e3bb4ee70 fix the issue if having entry has dir path in the .pkglist, genimage failed
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12093 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-02 17:35:34 +00:00
phamt 75d9038371 Added refresh button, and enabled adding/removing multiple regions to disk pool.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12092 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-02 15:43:37 +00:00
phamt 7d2b1048eb Enabled adding/removing multiple regions to disk pool.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12091 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-02 15:21:49 +00:00
jbjohnso 9933536568 Have name match the filename
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12090 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-02 13:41:37 +00:00
jbjohnso 8be05fe72f Rename SSH.pm to SSHInteract.pm to avoid conflict
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12089 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-02 13:40:59 +00:00
jbjohnso f7d4b54e7c Add a hidden ripmi directive for debug and development support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12088 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-02 13:40:37 +00:00
phamt 7bef9e3d4b Added storage management to zVM resources page.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12087 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-02 04:08:30 +00:00
jjhua d7011e64bb fixed the point 2 of defect 3513208, when run genimage with mlnxofed_ib_install twice for sles11sp1, the genimage will fail. A special case for sles11sp1
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12086 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-01 06:36:03 +00:00
ligc c791b1d857 fix for bug 3487614: xcataixpost: add timestamp when running postscripts
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12083 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-01 03:57:47 +00:00
immarvin 6d0fd8bd7f initialize the variable XCATROOT when loading the .pm file
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12082 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-01 03:17:14 +00:00
ligc 48749916c6 fix for bug 3487614: change to /xcatpost/mypostscript and add timestamp when running postscripts
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12080 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-04-01 02:14:04 +00:00
ligc 2d6e8d8a5d fix for bug 3487614: add timestamp when running postscripts
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12078 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-31 02:58:07 +00:00
wanghuaz f386741c7c Fixing bug 3497120: Not to disable nsddevices by default
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12075 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-30 09:16:42 +00:00
wanghuaz 9c8932552f Fixing bug 3512768: minor error in description of postinstall attribute
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12074 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-30 08:48:27 +00:00
yinle 9d0320735a minor fix
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12073 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-30 07:16:24 +00:00
wanghuaz 94d0e7c1e6 Top level update in hpc integration to include the latest pkglist, otherpkgs and postinstalls. Also changed the way to install hpc apps from postinstall to otherpkgs. PE and GPFS otherpkg list have been added the pkg names. PE and GPFS postinstall script have removed package installation part. LoadL otherpkg and postintall don't do any change since only full license rpm needs to install by xCAT, other Loadl packages are still installed from their own script, so moving loadl license rpm from postinstall to otherpkg might add more work to user, we can simply do it from postinstall.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12072 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-30 06:33:32 +00:00
zhaoertao eba699b147 modify the fsp-api action for rpower cycle to support rbootseq
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12071 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-30 05:47:32 +00:00
jjhua ca365a92be add the pciutils and pciutils-libs because we use the lspic in the mlnxofed_ib_install scripts.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12069 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-30 05:22:30 +00:00
wanghuaz 3ff5eba8fc Use otherpkgs to install gpfs packages
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12067 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-30 04:31:08 +00:00
linggao 37c604a69d minor fix for getNodesetStates in pxe and yaboot
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12065 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-29 22:22:32 +00:00
linggao 6c81bc84ce More efficient when calling getstate for pxe,xnba and yaboot during node deployment or updatenode
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12063 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-29 20:33:32 +00:00
jbjohnso 13f01c5a87 Change the invocation that relied upon telnetcmds name
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12061 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-29 20:26:25 +00:00
jbjohnso 2638fd549b Step 1 of blade.pm ssh-ification... rename telnetcmds to clicmds... cosmetic change
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12060 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-29 20:26:16 +00:00
jbjohnso e88e88e925 Add xCAT::SSH to help ssh-ify blade.pm to cope with CMMs that do not do telnet by default
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12059 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-29 20:10:50 +00:00
linggao 4aef6cbfbc fixed compiling error
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12057 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-29 19:12:25 +00:00
jbjohnso 24ee4eb3ce Apply changes from xnba.pm to pxe.pm and yaboot.pm for getstate external calls
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12053 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-29 18:14:03 +00:00
jbjohnso ef19a2bbdd Have xnba.pm cope with extrnal cals to getstate
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12052 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-29 18:08:49 +00:00
nott e0a151ba9b add configdump to nimimage
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12051 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-29 14:14:49 +00:00
jbjohnso f92ab6d4a4 Change psh to not leave STDIN open. Hopefully this helps ssh not get hung up expecting enters inexplicably
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12049 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-29 13:30:10 +00:00
wanghuaz e4037c6e09 some hpc packages listed in otherpkg list requires /proc filesystem. Previously those packages are installed from postintall script and the postintall script mounted /proc filesystem for them. Now if use otherpkgs to install HPC packages, we have to mount /proc file system also.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12047 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-29 08:22:41 +00:00
jjhua 1fdfbc2a34 fixed the bug 3512662, add the ib rh into the xCAT-server.spec
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12046 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-29 04:51:46 +00:00
ligc 9b0eef0aa9 fix for bug 3487614: move scripts to /xcatpost/mypostscript* and the requirement from bug 3497125
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12044 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-29 03:16:38 +00:00
wanghuaz 0c51beba69 add minor change to last checkin
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12042 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-29 02:57:21 +00:00
jbjohnso db4d440467 Have SvrUtils allow 'export' of sendmsg for brevity in calling code if calling code so desires it.
Get ready to have blade.pm do ssh out of the gate on at least CMMs
Get ready for SLP based 'node' discovery, including MM initial setup

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12039 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-28 21:06:04 +00:00
mellor 73bc80c97b defect 3476911 rollupdate check for bad input values
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12037 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-28 19:41:41 +00:00
nott cb4a9f01cb add support for dump re-target
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12036 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-28 13:39:48 +00:00
jjhua 8fe63331bd fixed defect 3512263.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12033 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-28 12:33:40 +00:00
xq2005 3f2f5ea67d modify the kdump cnfigure file in postscript
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12031 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-28 10:04:56 +00:00
wanghuaz ee4281f364 Using a new method to install PE packages. otherpkgs now accept system environment, so we can use this way to install pe licience rpm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12030 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-28 08:38:57 +00:00
wanghuaz 63bc149a82 Using a new method to install PE packages. otherpkgs now accept system environment, so we can use this way to install pe licience rpm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12029 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-28 07:41:57 +00:00
xq2005 512795a33e fix bug for kdump setup on rhels6.1 stateless node
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12028 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-28 07:12:18 +00:00
linggao 578afdf5d0 added interactive flag for genimage prompt
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12027 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-27 20:59:36 +00:00
linggao b4cb354d0b man page update for genimage
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12025 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-27 20:24:53 +00:00
linggao de4e245335 added interactive feature for genimage
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12023 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-27 19:28:49 +00:00
lissav 0377e50e05 Add additional LL setup for authentication when running db2sqlsetup -S -o
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12021 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-27 15:17:07 +00:00
phamt db43394393 Added dedicated disk support in nodeset for RH.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12019 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-27 13:14:11 +00:00
zhaoertao 19bc3d77c4 delete the using and implementation of getNodeSpecAttribs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12017 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-27 11:21:58 +00:00
xq2005 7421eba5ba fix bugs in enablekdump postscript
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12015 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-27 02:58:24 +00:00
jjhua cb9f6e46ec correct the loop number
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12014 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-27 02:44:56 +00:00
jjhua f76fac2a3a For AIX, remove the original ib configuration; use the loop number instead of 0, 1, 2...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12010 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-27 02:07:46 +00:00
jjhua d0066e515a For AIX, remove the original ib configuration; use the loop number instead of 0, 1, 2...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12009 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-27 02:07:31 +00:00
jbjohnso a18bc88b18 Enhance mktoolscenter
support multiple repositories, more obviously fail on mount error, give usage in the face of unrecognized cli arguments
support mounting from an external nfs source rather than xcat

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12007 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-26 19:46:50 +00:00
jbjohnso 47b6c89a4c Have MacMap throttle itself to 64 switches at a time to fend off memory starvation
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12005 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-26 17:36:22 +00:00
xq2005 a8dcb097f0 configure the kdump file in enablekdump postscript
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12004 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-26 15:04:36 +00:00
jbjohnso a92b34d80d Fix SLP mistake of discarding two bytes from the attribute list erroneously
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12003 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-26 14:19:16 +00:00
jbjohnso a2f1109df8 Fix problem where we failed to broadcast all requested service types
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12002 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-26 13:39:46 +00:00
xq2005 452134db27 support kdump on sles in enablekdump
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12001 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-26 08:39:51 +00:00
xq2005 a5975a08f2 kdump for sles when nodeset
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12000 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-26 07:35:16 +00:00
sjing a0a69bd3d6 enhanced logging in aixlitesetup.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11998 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-26 05:47:26 +00:00
wanghuaz d501fd51b9 add the support to delete all multiple mac addresses from lease file
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11995 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-26 03:48:39 +00:00
jbjohnso f2eb40b81c Have relay_fds work to try to batch more xml transformations together generically to improve execution time
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11993 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-25 18:10:48 +00:00
jbjohnso 663d5cf3d1 Remove leftover extraneous output from xcatd
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11989 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-25 17:45:40 +00:00
jbjohnso 0a069e3b88 Have Client work to aggregate some XML processing
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11988 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-25 17:45:34 +00:00
jbjohnso 13fd08ee8d Have xcatd bulk xml transform 'unable to find plugin to handle' message to cut back server load'.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11987 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-25 17:45:27 +00:00
jbjohnso e4cb55b3f9 Avoid redundant calls to the same table to do plugin lookup during plugin_command
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11986 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-25 15:16:11 +00:00
jbjohnso 120fa47c0e Rework plugin_comand to use XCATSITEVALS instead of polling site table for select plugins
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11985 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-25 15:16:05 +00:00
jbjohnso e24cc45b70 Fix problem where Table.pm fails to skip cache for low nodecounts
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11984 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-25 15:15:58 +00:00
bp-sawyers 242fe69dbd Fix bug in buildcore.sh where it would not uppercase the args in some cases
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11980 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-24 13:27:52 +00:00
bp-sawyers 9a73363d90 fix builddep.sh to get rid of older versions of the rpms
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11977 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-23 19:46:54 +00:00
nott 5389ce87ce fix for rc.dd_boot script
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11976 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-23 19:06:45 +00:00
jbjohnso 0c658a7b53 Fix other typos
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11970 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-23 15:14:43 +00:00
lissav e15f58b00a Do not add otherpkgs for AIX defect 3508761
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11969 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-23 15:07:22 +00:00
jbjohnso da28995179 Fix teh other typo
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11967 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-23 15:02:26 +00:00
jbjohnso 93610b9095 fix typo in doxcat
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11966 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-23 14:30:14 +00:00
jjhua f4a06ff3e6 fixed 3499932 and 3499065: remove the original ib configuration; use the loop number instead of 0, 1, 2...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11960 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-23 09:43:09 +00:00
jjhua 567a13c591 fixed 3499932 and 3499065: remove the original ib configuration; use the loop number instead of 0, 1, 2...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11959 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-23 09:42:53 +00:00
zhaoertao 36fc7fca02 for bug 3510200: only don't user HMC
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11957 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-23 09:35:08 +00:00
zhaoertao 20606e36d5 fix bug 3510200: can use username other than USERID
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11956 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-23 08:44:03 +00:00
ligc cd3110086c fix for bug 3487614: Full installation, extract the common code for generating the mypostscript file and make it common across all scripts
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11953 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-23 08:30:50 +00:00
ligc 8168b22e49 fix for bug 3487614: Full installation, extract the common code for generating the mypostscript file and make it common across all scripts
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11952 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-23 08:26:38 +00:00
yinle 28354c529c minor fix
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11951 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-23 02:16:10 +00:00
daniceexi e53d9d1394 defect 3496107: remove the uninstall of OpenIPMI-tools and tftp-server, try to install conserver-xcat instead of conserver
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11949 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-23 01:26:09 +00:00
jbjohnso 71cf318ee9 Update other p* commands to also be sudo friendly
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11947 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-22 13:57:17 +00:00
jbjohnso 492305799b Fix psh to update homedirectory in event of sudo
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11946 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-22 13:52:39 +00:00
jbjohnso 13765372a6 Have rcons check and set $HOME since sudo won't give an accurate looking home directory
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11945 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-22 13:52:29 +00:00
lissav 0014099d9c check for AIX in otherpkgs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11944 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-22 13:51:08 +00:00
bp-sawyers 93fc27b4f2 Have perl-DBD-DB2Lite not automatically installed from xcat-dep on aix
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11942 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-22 09:43:56 +00:00
ligc 1e6ae34771 fix for bug 3509482: use SNs ip addresses known by compute nodes as the replication list
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11940 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-22 08:38:56 +00:00
ligc 0adf04aa06 fix for bug 3509482: use SNs ip addresses known by compute nodes as the replication list
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11939 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-22 08:32:24 +00:00
jbjohnso 177de72a68 Just comment some of the new xcatd changes
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11937 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-21 17:50:24 +00:00
jbjohnso 9184142745 Bring in some logic from IPMI plugin to get a better assurance of optimal receive buffer behavior
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11936 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-21 17:50:15 +00:00
jbjohnso 31fb9e555f Have SLP support IPv6-less perl environments
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11935 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-21 17:25:20 +00:00
jbjohnso 459dca23dd Fix tftp startup for systems that have explicitly disabled IPv6 in kernel
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11933 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-21 16:01:15 +00:00
jbjohnso 7c64bb6b05 Have xCAT more aggressively drain the listen queue on the main listening socket.
This change manages to have xCAT successfully field a large amount of incoming connections with a relatively small listen queue.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11932 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-21 15:14:07 +00:00
daniceexi 4bb34e0e92 fixing bug 3490738: one additional change from last chackin
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11930 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-21 09:54:53 +00:00
daniceexi 9e173d19ff fixing bug 3490738: for getmacs -F option, mac address now can be with or without colon, uppercase and lowcase is also supported.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11929 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-21 09:49:34 +00:00
daniceexi a7b456d288 defect 3508456: add env vars XCATROOT and PATH in the /etc/environment for aix so that xcatd can be started successfully from /etc/inittab
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11927 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-21 09:16:13 +00:00
yinle 13ad428934 Fix bug 3504211:update xcat from 2.6.11 to 2.7 occur error on sles
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11925 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-21 07:25:44 +00:00
zhaoertao e7cf5580d0 modify password for USERID failed, need update password for SNMPv3.1
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11924 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-21 07:20:30 +00:00
zhaoertao d27ef5117f fix bug 3500392: FB->console abnormal if off/on blade
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11922 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-21 07:13:03 +00:00
zhaoertao 1c006a4162 fix bug 3500392: FB->console abnormal if off/on blade
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11921 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-21 07:12:47 +00:00
ligc 608177e77f fix for bug 3509543: mknimimage -u nfs_vers=4 to work with multiple installp_bundles
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11917 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-21 02:19:58 +00:00
jbjohnso dbb6040955 Prevent some extraneous process spawing and futile transmit attempts.
Also, do broadcast IPv4 in addition to multicast IPv4 and multicast IPv6.  Some switches seem to make the admin work for multicast to work at all...

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11916 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-20 20:55:41 +00:00
jbjohnso dae8ae2210 Do some retries on SLP transmits
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11915 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-20 18:38:22 +00:00
bp-sawyers 16ab82b5a5 Have the xCAT rpms require the more specific version of perl-xCAT (e.g. 2.7.1 instead of 2.7)
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11912 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-20 15:49:33 +00:00
jbjohnso ccb3040219 Add RFC 3059 support for AMM support
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11911 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-20 14:21:48 +00:00
xq2005 3203501826 add the REST API of gettab
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11909 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-20 09:16:06 +00:00
daniceexi 2d30063a80 Add the script detect_dhcpd for dhcp server detecting
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11907 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-20 08:11:25 +00:00
xq2005 95d5f9db58 add REST API for capture image
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11906 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-20 07:54:21 +00:00
xq2005 c8a1f2046c fix bug 3505123 for ganglia node map in order
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11904 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-20 06:31:03 +00:00
wanghuaz 5be6a260b6 install pe license rpm and accept the licenses by default
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11902 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-20 05:49:59 +00:00
jbjohnso 22d2645e28 Add IPv4 support.
After adding IPv4 support, noted that IMM and AMM behaved far less nicely,
restore the service-request prelude to attribute request as a result

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11900 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-19 21:06:17 +00:00
jbjohnso 05e6a27704 Refactor get_interfaces internal function.
First off, have it called outside a loop to avoid many invocations of 'ip'
Secondly, IPv4 multicast demands local ip address, extract those too

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11899 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-19 21:06:09 +00:00
linggao 1ce980f4e7 fix a problem in otherpkgs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11894 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-19 14:51:04 +00:00
xq2005 4da98c6d66 add the API of image check command
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11893 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-19 09:31:33 +00:00
xq2005 2f65463e87 REST API for image list
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11892 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-19 08:50:55 +00:00
xq2005 430bb12d13 xdcp command in REST API
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11891 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-19 06:46:10 +00:00
wanghuaz 0059615b2a fixed a problem in power 775 that compute node cannot get its xcatserver ip from dhcp server over hfi, which was introduced by revision 10534.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11890 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-19 05:37:09 +00:00
jbjohnso 5dddb7ed3d Skip Service Request, contrary to slptool impressions, it's actually pretty
pointless (at least for us, services are pretty deterministic and skipping straight to attribute request makes a lot of sense).

To make up for giving up the service request provide url list, track and fill in srvtype when the reply comes back so that caller knows which data elements match which of the requested service types.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11889 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-18 21:46:07 +00:00
jbjohnso df4c56729d Finish IPv6-only phase 1 of native xCAT SLP library
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11888 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-17 20:00:11 +00:00
jbjohnso 1e3fa72a93 Implement sending attribute request, after processing replies, phase 1 of slp is done
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11887 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-17 20:00:05 +00:00
jbjohnso d93542fc49 Advance state of SLP.pm to actually take and parse service replies
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11886 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-17 19:59:58 +00:00
jbjohnso f9886db053 Rework SLP.pm to do each srvtype as a distinct packet, now mandate caller
to specifiy srvtypes.  Problem being that SLP hashed multicast addresses don't pan out so well if not very precise

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11885 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-17 19:59:52 +00:00
jbjohnso 2152035a14 Add SLP.pm to perl-xCAT. Currently selectively does IPv6 SLP
TODO includes IPv4 SLP and reworked multi-srvtype support since RFC indicated behavior doesn't work (divide multiple srvtypes into separate packets to workaround)

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11884 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-17 19:59:46 +00:00
jbjohnso 85a3468e0f Have xCATd more robustly give client 5 seconds to receive message
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11883 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-16 18:41:47 +00:00
daniceexi 9e2b250062 fixed the issue that xnba,pxe,vsmppex,yaboot failed for service node when no valid nodes in the handled network
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11882 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-16 10:31:33 +00:00
wanghuaz f8138b1687 fixing bug 3505826: don't run yum install command if otherpkg list only contains marked removable pkg and no package to install
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11879 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-16 07:05:26 +00:00
bp-sawyers 42e3641b01 fix certificate problems in getxcatdocs
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11877 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-15 19:41:53 +00:00
jbjohnso 5d3d584e22 Don't try to sabotage tftp unless sure new tftp can work
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11875 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-15 15:51:48 +00:00
jbjohnso bc6b0712c3 Refine tftp startup handling to cope better with more states (dealing with xinetd reconfiged or not reconfiged, xinetd without tftp slave active and with slave active)
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11872 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-15 15:46:54 +00:00
jbjohnso 6d92251583 Change tftp to run standalone instead of xinetd slave to fix various limitations of the xinetd approach
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11870 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-15 15:19:40 +00:00
phamt 8e7a0f2475 Changed unknown node type label
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11868 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-15 14:13:15 +00:00
phamt a9ef623bb6 Removed trailing comma.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11867 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-15 13:58:36 +00:00
phamt 6e77ab5a47 Removed trailing comma.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11864 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-15 13:51:22 +00:00
phamt c7e3f36391 Fixed select all checkbox in nodes table.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11862 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-15 13:38:00 +00:00
xq2005 1b9f6bc02f fix bug 3505088 for ganglia monitor page not stable
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11860 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-15 10:40:31 +00:00
xq2005 99e038c6a2 turn the debugging
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11859 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-15 07:08:32 +00:00
xq2005 af24bd9b4b add the xdsh rest api interface
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11858 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-15 06:54:28 +00:00
phamt f67806347e Fixed bugs on System p provision page.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11856 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-15 05:09:28 +00:00
mellor c5774a5223 defect 3504334 -- fix rollupdate for xLinux rpower timeout errors
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11855 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-14 21:22:08 +00:00
bp-sawyers ddf7f8238d Fix problem of not building nbroot-core rpms
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11854 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-14 19:42:29 +00:00
phamt bbbea35614 Updated rcons.php
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11851 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-14 19:21:21 +00:00
phamt 442bbe9156 Fixed rcons to reference jquery.min.js. Added IP address and hostname range to z/VM clone and provision page. Updated update page with new links to xCAT repository. Cleaned up code.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11850 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-14 19:20:37 +00:00
phamt f1459db8ba Removed rconsShow.php so it could be updated.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11848 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-14 19:18:03 +00:00
linggao 0aa203fa99 use XCATSITEVALS in Postage.pm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11847 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-14 13:30:32 +00:00
phamt 9409e1f397 Changed vertical-align on z/VM provision new page.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11845 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-14 04:38:48 +00:00
phamt 9df72493d4 Fixed add node dialogs. Added change password option under Settings. Cleaned up code.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11844 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-14 04:32:06 +00:00
jjhua 8805c4c1f1 add the rpower with cycle action for NGP
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11842 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-13 14:18:10 +00:00
zhaoertao 1c996c4c7a modify the output of 'rpower blade state'
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11841 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-13 14:04:59 +00:00
zhaoertao b7d1caeef7 fix bug 3500392: the DFM link between hdwr_svr and blades need to be reconnected
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11839 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-13 11:54:21 +00:00
daniceexi 190927b42c update the output format of rscan
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11836 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-13 11:36:25 +00:00
xq2005 5e49f775b4 add the rest api for vms
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11835 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-13 08:34:30 +00:00
zhaoertao 74e2960ed7 modify the output of rpower blade state
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11833 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-13 04:31:05 +00:00
zhaoertao 229618d4ed use 'cec_state' instead of 'bpa_state' for 'rpower blade state'
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11832 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-13 03:06:04 +00:00
jbjohnso a518f9a850 Offer '-o' to force powerdown on failed suspend attempt, '-r' to force reset
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11829 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-12 20:58:35 +00:00
lissav 01cb1ef7e7 fix defect 3502735
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11824 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-12 17:03:38 +00:00
daniceexi 8797bd6954 fix the issue for xcatdebug:1. aix cannot recognize the signal NUM50,NUM51. 2. the xcatdeug -f does not work after the change that loading plugin when really running of command
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11822 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-12 11:54:28 +00:00
jjhua 3c021b2b23 rspconfig manpage updates for NGP
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11818 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-12 09:39:46 +00:00
zhaoertao 4eeaae182a modify the time interval used to retry rcons
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11816 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-12 09:15:57 +00:00
zhaoertao 4bc914d0e6 fix bug 3496892: need to check the state of lpar strictly
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11815 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-12 07:48:52 +00:00
xq2005 cc33f2065d sync from 2.7 for ganglia configure
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11813 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-12 05:23:38 +00:00
jbjohnso 43fbad64ac Weaken Postage.pm requirement of PPCdb
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11811 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-11 00:29:52 +00:00
bp-sawyers eb13fe149e Created 2.7 branch, so changing trunk to 2.8
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11807 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-03-09 14:17:16 +00:00
2147 changed files with 193345 additions and 39112 deletions
-9
View File
@@ -1,9 +0,0 @@
xCAT - eXtreme Cloud Administration Toolkit
xCAT is a toolkit for the deployment and administration of clusters.
xCAT documentation is available at: http://xcat.sourceforge.net/
xCAT is made available as open source software under the EPL license:
http://www.opensource.org/licenses/eclipse-1.0.php
+1 -1
View File
@@ -1 +1 @@
2.7.6
2.8.3ocf
+241
View File
@@ -0,0 +1,241 @@
#!/bin/sh
# Update GSA Ubuntu Repositories or create a local repository
#
# Author: Leonardo Tonetto (tonetto@linux.vnet.ibm.com)
# Revisor: Arif Ali (aali@ocf.co.uk)
#
# After running this script, add the following line to
# /etc/apt/sources.list for local repository
# deb file://<core_repo_path>/xcat-core/ maverick main
# deb file://<dep_repo_path>/xcat-dep/ maverick main
#
# For the purpose of getting the distribution name
# Supported distributions
dists="squeeze"
a_flag= # automatic flag - only update if repo was updated
c_flag= # xcat-core (trunk-delvel) path
d_flag= # xcat-dep (trunk) path
local_flag= # build the repository localy
while getopts 'c:d:u:p:l:a' OPTION
do
case $OPTION in
c) c_flag=1
xcat_core_path="$OPTARG"
;;
d) d_flag=1
xcat_dep_path="$OPTARG"
;;
l) local_flag=1
local_repo_path="$OPTARG"
;;
a) a_flag=1
;;
?) printf "Usage: %s -c <core_trunk_path> [-d <dep_trunk_path>] -l <local-repo_path> [-a]\n" $(basename $0) >&2
echo "-a Automatic: update only if there's any update on repo"
exit 2
;;
esac
done
shift $(($OPTIND - 1))
if [ -z "$c_flag" -a -z "$d_flag" ]
then
printf "Usage: %s -c <core_trunk_path> [-d <dep_trunk_path>] { -l <local-repo_path> | [-u <gsa_id> -p <gsa_passwd>] } [-a]\n" $(basename $0) >&2
echo "-a Automatic: update only if there's any update on repo"
exit 2
fi
if [ ! -d $xcat_core_path ]
then
printf "%s: No such directory\n" "$xcat_core_path" >&2
exit 2
fi
if [ "$d_flag" ]
then
if [ ! -d $xcat_dep_path ]
then
printf "%s: No such directory\n" "$xcat_dep_path" >&2
exit 2
fi
fi
if [ "$local_flag" ]
then
repo_xcat_core_path=$local_repo_path"/xcat-core"
repo_xcat_dep_path=$local_repo_path"/xcat-dep"
else
printf "Usage: %s -c <core_trunk_path> [-d <dep_trunk_path>] -l <local-repo_path> [-a]\n" $(basename $0) >&2
echo "-a Automatic: update only if there's any update on repo"
exit 2
fi
if [ "$a_flag" ]
then
touch svcupdate.trace
SVCUP='svcupdate.trace'
svn update $xcat_core_path 1> $SVCUP 2>&1
if ! grep 'Tree is up to date' $SVCUP
then
update_core=1
else
update_core=
fi
rm -f $SVCUP
else
update_core=1
fi
if [ "$c_flag" -a "$update_core" ]
then
echo "###############################"
echo "# Building xcat-core packages #"
echo "###############################"
CMD_PATH=`pwd`
cd $xcat_core_path
./build-debs-all "snap" "Nightly_Builds"
echo "#################################"
echo "# Creating xcat-core repository #"
echo "#################################"
if [ -d $repo_xcat_core_path ]; then
rm -rf $repo_xcat_core_path
fi
mkdir -p $repo_xcat_core_path/conf
find . -iname '*.deb' -exec mv {} $repo_xcat_core_path \;
rm -rf debs/
cd $CMD_PATH
rm -rf $repo_xcat_core_path/conf/distributions
for dist in $dists; do
cat << __EOF__ >> $repo_xcat_core_path/conf/distributions
Origin: xCAT internal repository
Label: xcat-core bazaar repository
Codename: $dist
Architectures: amd64
Components: main
Description: Repository automatically genereted conf
__EOF__
done
cat << __EOF__ > $repo_xcat_core_path/conf/options
verbose
basedir .
__EOF__
for dist in $dists; do
for file in `ls $repo_xcat_core_path/*.deb`; do
reprepro -b $repo_xcat_core_path includedeb $dist $file;
done
done
mv $xcat_core_path/latest_version $repo_xcat_core_path/xcat-core_latest-build
cat << '__EOF__' > $repo_xcat_core_path/mklocalrepo.sh
codename=`lsb_release -a 2>null | grep Codename | awk '{print $2}'`
cd `dirname $0`
echo deb file://"`pwd`" $codename main > /etc/apt/sources.list.d/xcat-core.list
__EOF__
chmod 775 $repo_xcat_core_path/mklocalrepo.sh
rm -rf $repo_xcat_core_path/*.deb
if [ -z "$local_flag" ]
then
echo "###############################"
echo "# Updating GSA xcat-core repo #"
echo "###############################"
lftp -e "mirror -R --delete-first $repo_xcat_core_path /projects/i/ipl-xcat/ubuntu/; exit;" -u $gsa_id,$gsa_passwd -p 22 sftp://ausgsa.ibm.com
fi ### if [ -z "$local_flag" ]
fi ### if [ "$a_flag" ]
if [ "$a_flag" -a "$d_flag" ]
then
touch svcupdate.trace
SVCUP='svcupdate.trace'
svn update $xcat_dep_path 1> $SVCUP 2>&1
if ! grep 'Tree is up to date' $SVCUP
then
update_dep=1
else
update_dep=
fi
rm -f $SVCUP
else
update_dep=1
fi
if [ "$d_flag" -a "$update_dep" ]
then
echo "##############################"
echo "# Building xcat-dep packages #"
echo "##############################"
CMD_PATH=`pwd`
cd $xcat_dep_path
./build-debs-all "snap" "Nightly_Builds"
echo "################################"
echo "# Creating xcat-dep repository #"
echo "################################"
rm -rf $repo_xcat_dep_path
mkdir -p $repo_xcat_dep_path/conf
find $xcat_dep_path -iname '*.deb' -exec cp {} $repo_xcat_dep_path \;
rm -rf $repo_xcat_core_path/conf/distributions
for dist in $dists; do
cat << __EOF__ >> $repo_xcat_dep_path/conf/distributions
Origin: xCAT internal repository
Label: xcat-dep bazaar repository
Codename: $dist
Architectures: amd64
Components: main
Description: Repository automatically genereted conf
__EOF__
done
cat << __EOF__ > $repo_xcat_dep_path/conf/options
verbose
basedir .
__EOF__
for dist in $dists; do
for file in `ls $repo_xcat_dep_path/*.deb`; do
reprepro -b $repo_xcat_dep_path includedeb $dist $file;
done
done
cat << '__EOF__' > $repo_xcat_dep_path/mklocalrepo.sh
codename=`lsb_release -a 2>null | grep Codename | awk '{print $2}'`
cd `dirname $0`
echo deb file://"`pwd`" $codename main > /etc/apt/sources.list.d/xcat-dep.list
__EOF__
chmod 775 $repo_xcat_dep_path/mklocalrepo.sh
rm -rf $repo_xcat_dep_path/*.deb
if [ -z "$local_flag" ]
then
echo "##############################"
echo "# Updating GSA xcat-dep repo #"
echo "##############################"
lftp -e "mirror -R --delete-first $repo_xcat_dep_path /projects/i/ipl-xcat/ubuntu/; exit;" -u $gsa_id,$gsa_passwd -p 22 sftp://ausgsa.ibm.com
fi ### if [ -z "$local_flag" ]
fi ### if [ "$d_flag" -a "$a_flag"]
if [ -z "$local_flag" ] # delete the temp repo after upload is done
then
rm -rf ./gsa-repo_temp
fi
exit 0
+10 -11
View File
@@ -6,6 +6,7 @@
#
# Author: Leonardo Tonetto <tonetto@linux.vnet.ibm.com>
# Revisor: Adalberto Medeiros <adalbas@linux.vnet.ibm.com>
# Revisor2: Arif Ali <aali@ocf.co.uk>
#
# Input:
#
@@ -29,7 +30,7 @@ fi
XCAT_VERSION=`cat Version`
TRUNK_REVISION=`svnversion | cut -d ":" -f1`
CUR_DATE=`date +%Y%m%d`
VERSION="$XCAT_VERSION$PKG_LOCATION-rev$TRUNK_REVISION-$CUR_DATE"
VERSION="${XCAT_VERSION}-${PKG_LOCATION}${CUR_DATE}"
function makedeb {
SRC_ROOT=$1
@@ -47,7 +48,7 @@ function makedeb {
do
DIR=`echo ${DEBIAN_DIR} | sed -e 's/[/]debian$//'`
cd ${DIR}
dch -v $VERSION -c debian/changelog "$BUILD_STRING"
dch -v $VERSION -b -c debian/changelog "$BUILD_STRING"
dpkg-buildpackage
cd -
RC=$?
@@ -60,21 +61,19 @@ function makedeb {
#
# Clean up
#
# Eliminate unnecessary directories and debian/files made by dpgk-buildpakcage
# Eliminate unnecessary directories and debian/files made by dpkg-buildpackage
find $SRC_ROOT -maxdepth 3 -type d -name "xcat-*" | grep debian | xargs rm -rf
find $SRC_ROOT -maxdepth 3 -type f -name "files" | grep debian | xargs rm -f
}
# build all debian packages
makedeb xCAT-client $PKG_LOCATION "$BUILD_STRING" $VERSION
makedeb xCAT-nbroot $PKG_LOCATION "$BUILD_STRING" $VERSION
makedeb perl-xCAT $PKG_LOCATION "$BUILD_STRING" $VERSION
makedeb xCAT-server $PKG_LOCATION "$BUILD_STRING" $VERSION
makedeb xCAT-UI $PKG_LOCATION "$BUILD_STRING" $VERSION
makedeb xCAT $PKG_LOCATION "$BUILD_STRING" $VERSION
makedeb xCATsn $PKG_LOCATION "$BUILD_STRING" $VERSION
makedeb xCAT-test $PKG_LOCATION "$BUILD_STRING" $VERSION
packages="xCAT-client xCAT-nbroot xCAT-nbroot2 perl-xCAT xCAT-server xCAT-UI xCAT xCATsn xCAT-test xCAT-IBMhpc xCAT-rmc"
for file in `echo $packages`
do
makedeb $file $PKG_LOCATION "$BUILD_STRING" $VERSION
done
if [ -d debs ]; then
rm -rf debs
+345 -142
View File
@@ -1,215 +1,418 @@
#!/bin/sh
#!/bin/bash
# Update GSA Ubuntu Repositories or create a local repository
#
# Author: Leonardo Tonetto (tonetto@linux.vnet.ibm.com)
# Revisor: Arif Ali (aali@ocf.co.uk)
#
# After running this script, add the following line to
# /etc/apt/sources.list for local repository
# deb file://<core_repo_path>/xcat-core/ maverick main
#
# Getting Started:
# - Check out the xcat-core svn repository (either the trunk or a branch) into
# a dir called <rel>/src/xcat-core, where <rel> is the same as the release dir it will be
# uploaded to in sourceforge (e.g. devel, or 2.3).
# - You probably also want to put root's pub key from the build machine onto sourceforge for
# the upload user listed below, so you don't have to keep entering pw's. You can do this
# at https://sourceforge.net/account/ssh
# - make sure reprepro is installed on the build machine
# - Run this script from the local svn repository you just created. It will create the other directories that are needed.
# Usage: attr=value attr=value ... ./build-ubunturepo { -c | -d }
# PROMOTE=1 - if the attribute "PROMOTE" is specified, means an official dot release. This does not
# actually build xcat, just uploads the most recent snap build to https://sourceforge.net/projects/xcat/files/xcat/ .
# If not specified, a snap build is assumed, which uploads to https://sourceforge.net/projects/xcat/files/yum/
# or https://sourceforge.net/projects/xcat/files/aix/.
# PREGA=1 - use this option with PROMOTE=1 on a branch that already has a released dot release, but this build is
# a GA candidate build, not to be released yet. This will result in the tarball being uploaded to
# https://sourceforge.net/projects/xcat/files/yum/ or https://sourceforge.net/projects/xcat/files/aix/
# (but the tarball file name will be like a released tarball, not a snap build). When you are ready to
# release this build, use PROMOTE=1 without PREGA
# BUILDALL=1 - build all rpms, whether they changed or not. Should be used for snap builds that are in prep for a release.
# UP=0 or UP=1 - override the default upload behavior
#
# For the dependency packages 1. please run the build-debs-all in xcat-dep svn first( there is usage detail in that script)
# 2. run ./build-ubunturepo -d
#
############################
printusage()
{
printf "Usage: %s {-c | -d} \n" $(basename $0) >&2
echo " -c : Build the xcat core packages and create the repo"
echo " -d : Create the xcat dep repo. Building the xcat dep packages can refer \"build-debs-all\" from svn"
}
# For the purpose of getting the distribution name
. /etc/lsb-release
# Process cmd line variable assignments, assigning each attr=val pair to a variable of same name
for i in $*; do
echo $i | grep '='
if [ $? != 0 ];then
continue
fi
# upper case the variable name
varstring=`echo "$i"|cut -d '=' -f 1|tr '[a-z]' '[A-Z]'`=`echo "$i"|cut -d '=' -f 2`
export $varstring
done
# Supported distributions
dists="maverick natty oneiric precise"
a_flag= # automatic flag - only update if repo was updated
c_flag= # xcat-core (trunk-delvel) path
d_flag= # xcat-dep (trunk) path
u_flag= # gsa user-id
p_flag= # gsa passwd
local_flag= # build the repository localy
r_flag= #genesis base rpm package path
while getopts 'c:d:u:p:l:a' OPTION
while getopts 'cdr:' OPTION
do
case $OPTION in
c) c_flag=1
xcat_core_path="$OPTARG"
;;
d) d_flag=1
xcat_dep_path="$OPTARG"
;;
u) u_flag=1
gsa_id="$OPTARG"
;;
p) p_flag=1
gsa_passwd="$OPTARG"
;;
l) local_flag=1
local_repo_path="$OPTARG"
;;
a) a_flag=1
;;
?) printf "Usage: %s -c <core_trunk_path> [-d <dep_trunk_path>] { -l <local-repo_path> | [-u <gsa_id> -p <gsa_passwd>] } [-a]\n" $(basename $0) >&2
echo "-a Automatic: update only if there's any update on repo"
r) r_flag=1
genesis_rpm_path="$OPTARG"
;;
?) printusage
exit 2
;;
esac
done
shift $(($OPTIND - 1))
if [ -z "$c_flag" ]
then
printf "Usage: %s -c <core_trunk_path> [-d <dep_trunk_path>] { -l <local-repo_path> | [-u <gsa_id> -p <gsa_passwd>] } [-a]\n" $(basename $0) >&2
echo "-a Automatic: update only if there's any update on repo"
exit 2
fi
if [ ! -d $xcat_core_path ]
then
printf "%s: No such directory\n" "$xcat_core_path" >&2
if [ -z "$c_flag" -a -z "$d_flag" ];then
printusage
exit 2
fi
if [ "$d_flag" ]
then
if [ ! -d $xcat_dep_path ]
then
printf "%s: No such directory\n" "$xcat_dep_path" >&2
exit 2
fi
if [ "$c_flag" -a "$d_flag" ];then
printusage
exit 2
fi
if [ "$local_flag" ]
then
repo_xcat_core_path=$local_repo_path"/xcat-core"
repo_xcat_dep_path=$local_repo_path"/xcat-dep"
else
if [ -z "$u_flag" ]
then
if [ "$p_flag" ]
then
printf "Usage: %s -c <core_trunk_path> [-d <dep_trunk_path>] { -l <local-repo_path> | [-u <gsa_id> -p <gsa_passwd>] } [-a]\n" $(basename $0) >&2
echo "-a Automatic: update only if there's any update on repo"
exit 2
fi
echo -n "GSA id: "
read gsa_id
echo -n "GSA password: "
stty -echo; read gsa_passwd; stty echo;
echo ""; echo "";
fi
uploader="bp-sawyers"
# Find where this script is located to set some build variables
old_pwd=`pwd`
cd `dirname $0`
curdir=`pwd`
repo_xcat_core_path="`pwd`/gsa-repo_temp/xcat-core"
repo_xcat_dep_path="`pwd`/gsa-repo_temp/xcat-dep"
#define the dep source code path, core build target path and dep build target path
local_core_repo_path="$curdir/../../xcat-core"
xcat_dep_path="$curdir/../../../xcat-dep/src/xcat-dep"
local_dep_repo_path="$curdir/../../../xcat-dep/xcat-dep"
#define the url used for creating the source list file
#define the upload dir used for uploading packages
sf_repo_url="https://sourceforge.net/projects/xcat/files/ubuntu"
sf_dir="/home/frs/project/x/xc/xcat"
#use flock to only one person build at the same time
# Get a lock, so can not do 2 builds at once
exec 8>/var/lock/xcatbld.lock
if ! flock -n 8; then
echo "Can't get lock /var/lock/xcatbld.lock. Someone else must be doing a build right now. Exiting...."
exit 1
fi
if [ "$a_flag" ]
export HOME=/root
#sync the gpg key to the build machine local
gsa_url=http://pokgsa.ibm.com/projects/x/xcat/build/linux
mkdir -p $HOME/.gnupg
for key_name in pubring.gpg secring.gpg trustdb.gpg; do
if [ ! -f $HOME/.gnupg/$key_name ] || [ `wc -c $HOME/.gnupg/$key_name|cut -f 1 -d' '` == 0 ]; then
rm -f $HOME/.gnupg/$key_name
wget -P $HOME/.gnupg $gsa_url/keys/$key_name
chmod 600 $HOME/.gnupg/$key_name
fi
done
if [ "$c_flag" ]
then
touch svcupdate.trace
SVCUP='svcupdate.trace'
svn update $xcat_core_path 1> $SVCUP 2>&1
if ! grep 'Tree is up to date' $SVCUP
then
update_core=1
# strip the /src/xcat-core from the end of the dir to get the next dir up and use as the release
if [ -z "$REL" ]; then
t=${curdir%/src/xcat-core}
REL=`basename $t`
fi
ver=`cat Version`
if [ "$PROMOTE" != 1 ]; then
code_change=0
update_log=''
#get the version
if [ "$REL" = "xcat-core" ];then
git_flag=1
REL=`git rev-parse --abbrev-ref HEAD`
if [ "$REL" = "master" ]; then
REL="devel"
fi
if [ -z "$GITUP" ];then
update_log=../coregitup
echo "git pull > $update_log"
git pull > $update_log
else
update_log=$GITUP
fi
if ! grep -q 'Already up-to-date' $update_log; then
code_change=1
fi
else
git_flag=0
if [ -z "$SVNUP" ]; then
update_log=../coresvnup
echo "svn up > $update_log"
svn up > $update_log
else
update_log=$SVNUP
fi
if ! grep -q 'At revision' $update_log;then
code_change=1
fi
fi
ver=`cat Version`
short_ver=`cat Version|cut -d. -f 1,2`
short_short_ver=`cat Version|cut -d. -f 1`
package_dir_name=debs$REL
#TODO: define the core path and tarball name
tarball_name="core-debs-snap.tar.bz2"
if [ $code_change == 0 -a "$UP" != 1 -a "$BUILDALL" != 1 ]; then
echo "Nothing new detected"
exit 0
fi
echo "###############################"
echo "# Building xcat-core packages #"
echo "###############################"
#the package type: local | snap | alpha
#the build introduce stirng
pkg_type="snap"
build_string="Snap_Build"
cur_date=`date +%Y%m%d`
pkg_version="${short_ver}-${pkg_type}${cur_date}"
if [ ! -d ../../$package_dir_name ];then
mkdir -p "../../$package_dir_name"
fi
packages="xCAT-client xCAT-genesis-scripts perl-xCAT xCAT-server xCAT-UI xCAT xCATsn xCAT-test xCAT-OpenStack"
for file in `echo $packages`
do
file_low=`echo $file | tr '[A-Z]' '[a-z]'`
if grep -q $file $update_log || [ "$BUILDALL" == 1 -o "$file" = "perl-xCAT" ]; then
rm -f ../../$package_dir_name/${file_low}_*.deb
#only for genesis package
rm -f ../../$package_dir_name/${file_low}-amd64_*.deb
cd $file
dch -v $pkg_version -b -c debian/changelog $build_string
dpkg-buildpackage -uc -us
rc=$?
if [ $rc -gt 0 ]; then
echo "Error: $file build package failed exit code $rc"
fi
cd -
find $file -maxdepth 3 -type d -name "${file_low}*" | grep debian | xargs rm -rf
find $file -maxdepth 3 -type f -name "files" | grep debian | xargs rm -rf
mv ${file_low}* ../../$package_dir_name/
fi
done
find ../../$package_dir_name/* ! -name *.deb | xargs rm -f
else
update_core=
if [ "$REL" = "xcat-core" ];then
git_flag=1
REL=`git rev-parse --abbrev-ref HEAD`
if [ "$REL" = "master" ]; then
REL="devel"
fi
fi
package_dir_name=debs$REL
fi
rm -f $SVCUP
else
update_core=1
fi
if [ "$update_core" ]
then
echo "###############################"
echo "# Building xcat-core packages #"
echo "###############################"
CMD_PATH=`pwd`
cd $xcat_core_path
./build-debs-all "snap" "Nightly_Builds"
if [ "$PROMOTE" = 1 ]; then
upload_dir="xcat-core"
tar_name="xcat-core-$ver.tar.bz2"
else
upload_dir="core-snap"
tar_name="core-debs-snap.tar.bz2"
fi
echo "#################################"
echo "# Creating xcat-core repository #"
echo "#################################"
if [ -d $repo_xcat_core_path ]; then
rm -rdf $repo_xcat_core_path
#clean the repo directory
if [ -e $local_core_repo_path ]; then
rm -rf $local_core_repo_path
fi
mkdir -p $repo_xcat_core_path/conf
mkdir -p $local_core_repo_path
cd $local_core_repo_path
mkdir conf
find . -iname '*.deb' -exec mv {} $repo_xcat_core_path \;
rm -rdf debs/
cd $CMD_PATH
cat << __EOF__ > $repo_xcat_core_path/conf/distributions
for dist in $dists; do
cat << __EOF__ >> conf/distributions
Origin: xCAT internal repository
Label: xcat-core bazaar repository
Codename: maverick
Architectures: i386 amd64
Codename: $dist
Architectures: amd64
Components: main
Description: Repository automatically genereted conf
__EOF__
SignWith: yes
cat << __EOF__ > $repo_xcat_core_path/conf/options
__EOF__
done
cat << __EOF__ > conf/options
verbose
ask-passphrase
basedir .
__EOF__
for file in `ls $repo_xcat_core_path/*.deb`; do
reprepro -b $repo_xcat_core_path includedeb maverick $file;
#import the deb packages into the repo
for dist in $dists; do
for file in `ls ../$package_dir_name/*.deb`; do
reprepro -b ./ includedeb $dist $file;
done
done
mv $xcat_core_path/latest_version $repo_xcat_core_path/xcat-core_latest-build
#create the mklocalrepo script
cat << __EOF__ > mklocalrepo.sh
. /etc/lsb-release
cd `dirname $0`
echo deb file://"`pwd`" $DISTRIB_CODENAME main > /etc/apt/sources.list.d/xcat-core.list
__EOF__
if [ -z "$local_flag" ]
then
echo "###############################"
echo "# Updating GSA xcat-core repo #"
echo "###############################"
lftp -e "mirror -R --delete-first $repo_xcat_core_path /projects/i/ipl-xcat/ubuntu/; exit;" -u $gsa_id,$gsa_passwd -p 22 sftp://ausgsa.ibm.com
fi ### if [ -z "$local_flag" ]
fi ### if [ "$a_flag" ]
chmod 775 mklocalrepo.sh
if [ "$a_flag" -a "$d_flag" ]
then
touch svcupdate.trace
SVCUP='svcupdate.trace'
svn update $xcat_dep_path 1> $SVCUP 2>&1
if ! grep 'Tree is up to date' $SVCUP
then
update_dep=1
else
update_dep=
#create the xcat-core.list file
#echo "deb ${sf_repo_url}/${REL}/${upload_dir}/ precise main" > xcat-core.list
cd ../
if ! grep xcat /etc/group ; then
groupadd xcat
fi
chgrp -R root xcat-core
chmod -R g+w xcat-core
#build the tar ball
tar -hjcf $tar_name xcat-core
chgrp root $tar_name
chmod g+w $tar_name
if [ ! -e core-snap ]; then
ln -s xcat-core core-snap
fi
rm -f $SVCUP
else
update_dep=1
# Decide whether to upload or not
if [ -n "$UP" ] && [ "$UP" == 0 ]; then
echo "No need to upload"
cd $old_pwd
exit 0
fi
#upload the deb packages
if [ "$REL" = "devel" -o "$PREGA" != 1 ]; then
i=0
echo "Uploading RPMs from $upload_dir to ${sf_dir}/ubuntu/${REL}/ ..."
while [ $((i+=1)) -le 5 ] && ! rsync -urLv --delete $upload_dir ${uploader},xcat@web.sourceforge.net:${sf_dir}/ubuntu/${REL}/
do : ; done
fi
#upload the tar ball
#for the GA build, upload to https://sourceforge.net/projects/xcat/files/xcat/<version>.x_Ubuntu/
#for other scenario, upload to https://sourceforge.net/projects/xcat/files/ubuntu/<version>
if [ "$PROMOTE" = 1 -a "$REL" != "devel" -a "$PREGA" != 1 ]; then
i=0
echo "Uploading $tar_name to ${sf_dir}/xcat/${REL}.x_Ubuntu/ ..."
while [ $((i+=1)) -le 5 ] && ! rsync -v $tar_name ${uploader},xcat@web.sourceforge.net:${sf_dir}/xcat/${REL}.x_Ubuntu/
do : ; done
else
i=0
echo "Uploading $tar_name to ${sf_dir}/ubuntu/${REL}/ ..."
while [ $((i+=1)) -le 5 ] && ! rsync -v $tar_name ${uploader},xcat@web.sourceforge.net:${sf_dir}/ubuntu/${REL}/
do : ; done
fi
cd $old_pwd
fi
if [ "$d_flag" -a "$update_dep" ]
if [ "$d_flag" ]
then
echo "################################"
echo "# Creating xcat-dep repository #"
echo "################################"
rm -rdf $repo_xcat_dep_path
mkdir -p $repo_xcat_dep_path/conf
find $xcat_dep_path -iname '*.deb' -exec cp {} $repo_xcat_dep_path \;
cat << __EOF__ > $repo_xcat_dep_path/conf/distributions
#clean all old files
if [ -e $local_dep_repo_path ];then
rm -rf $local_dep_repo_path
fi
mkdir -p $local_dep_repo_path
cd $local_dep_repo_path
mkdir conf
#create the conf/distributions file
for dist in $dists; do
cat << __EOF__ >> conf/distributions
Origin: xCAT internal repository
Label: xcat-dep bazaar repository
Codename: maverick
Architectures: i386 amd64
Codename: $dist
Architectures: amd64
Components: main
Description: Repository automatically genereted conf
__EOF__
SignWith: yes
cat << __EOF__ > $repo_xcat_dep_path/conf/options
__EOF__
done
cat << __EOF__ > conf/options
verbose
ask-passphrase
basedir .
__EOF__
for file in `ls $repo_xcat_dep_path/*.deb`; do
reprepro -b $repo_xcat_dep_path includedeb maverick $file;
for dist in $dists; do
for file in `ls ../debs/*.deb`; do
reprepro -b ./ includedeb $dist $file;
done
done
if [ -z "$local_flag" ]
then
echo "##############################"
echo "# Updating GSA xcat-dep repo #"
echo "##############################"
lftp -e "mirror -R --delete-first $repo_xcat_dep_path /projects/i/ipl-xcat/ubuntu/; exit;" -u $gsa_id,$gsa_passwd -p 22 sftp://ausgsa.ibm.com
fi ### if [ -z "$local_flag" ]
fi ### if [ "$d_flag" -a "$a_flag"]
cat << '__EOF__' > mklocalrepo.sh
. /etc/lsb-release
cd `dirname $0`
echo deb file://"`pwd`" $DISTRIB_CODENAME main > /etc/apt/sources.list.d/xcat-dep.list
__EOF__
if [ -z "$local_flag" ] # delete the temp repo after upload is done
then
rm -rdf ./gsa-repo_temp
chmod 775 mklocalrepo.sh
#echo ""deb ${sf_repo_url}/xcat-dep/ precise main"" > xcat-dep.list
cd ..
if ! grep xcat /etc/group ; then
groupadd xcat
fi
chgrp -R root xcat-dep
chmod -R g+w xcat-dep
#create the tar ball
dep_tar_name=xcat-dep-ubuntu.tar.bz
tar -hjcf $dep_tar_name xcat-dep
chgrp root $dep_tar_name
chmod g+w $dep_tar_name
if [ -n "$UP" ] && [ "$UP" == 0 ];then
echo "No need to upload the dep packages"
cd $old_pwd
exit 0
fi
#upload the dep packages
i=0
echo "Uploading debs from xcat-dep to ${sf_dir}/ubuntu/xcat-dep/ ..."
while [ $((i+=1)) -le 5 ] && ! rsync -urLv --delete xcat-dep ${uploader},xcat@web.sourceforge.net:${sf_dir}/ubuntu/
do : ; done
#upload the tarball
cd $old_pwd
fi
exit 0
+189 -94
View File
@@ -19,14 +19,20 @@
# directories that are needed.
# Usage: buildcore.sh [attr=value attr=value ...]
# PROMOTE=1 - if the attribute "PROMOTE" is specified, means an official dot release.
# Otherwise, and snap build is assumed.
# PREGA=1 - means this is a branch that has not been released yet, so during the promote, copy the
# xcat-core tarball to the SF web site instead of the FRS area.
# Before running buildcore.sh, you must change the local git repo to the branch you want built, using: git checkout <branch>
# PROMOTE=1 - if the attribute "PROMOTE" is specified, means an official dot release. This does not
# actually build xcat, just uploads the most recent snap build to https://sourceforge.net/projects/xcat/files/xcat/ .
# If not specified, a snap build is assumed, which uploads to https://sourceforge.net/projects/xcat/files/yum/
# or https://sourceforge.net/projects/xcat/files/aix/.
# PREGA=1 - use this option with PROMOTE=1 on a branch that already has a released dot release, but this build is
# a GA candidate build, not to be released yet. This will result in the tarball being uploaded to
# https://sourceforge.net/projects/xcat/files/yum/ or https://sourceforge.net/projects/xcat/files/aix/
# (but the tarball file name will be like a released tarball, not a snap build). When you are ready to
# release this build, use PROMOTE=1 without PREGA
# BUILDALL=1 - build all rpms, whether they changed or not. Should be used for snap builds that are in prep for a release.
# UP=0 or UP=1 - override the default upload behavior
# SVNUP=<filename> - control which rpms get built by specifying a coresvnup file
# FRSYUM=0 - put the yum repo and snap builds in the old project web area instead of the FRS area.
# GITUP=<filename> - control which rpms get built by specifying a coregitup file
# EMBED=<embedded-environment> - the environment for which a minimal version of xcat should be built, e.g. zvm or flex
# VERBOSE=1 - to see lots of verbose output
@@ -34,6 +40,17 @@
UPLOADUSER=bp-sawyers
FRS=/home/frs/project/x/xc/xcat
# These are the rpms that should be built for each kind of xcat build
ALLBUILD="perl-xCAT xCAT-client xCAT-server xCAT-IBMhpc xCAT-rmc xCAT-UI xCAT-test xCAT-buildkit xCAT xCATsn xCAT-genesis-scripts xCAT-OpenStack"
ZVMBUILD="perl-xCAT xCAT-server xCAT-UI"
ZVMLINK="xCAT-client xCAT xCATsn"
PCMBUILD="xCAT"
PCMLINK="perl-xCAT xCAT-client xCAT-server xCAT-buildkit xCAT-genesis-scripts-x86_64"
# Note: for FSM, the FlexCAT rpm is built separately from gsa/git
FSMBUILD="perl-xCAT xCAT-client xCAT-server"
FSMLINK=""
# If you add more embed cases, also change the if [ -n "$EMBED" ]... below
# Process cmd line variable assignments, assigning each attr=val pair to a variable of same name
for i in $*; do
# upper case the variable name
@@ -68,51 +85,79 @@ if [ "$OSNAME" != "AIX" ]; then
export HOME=/root # This is so rpm and gpg will know home, even in sudo
fi
# this is needed only when we are transitioning the yum over to frs
if [ "$FRSYUM" != 0 ]; then
YUMDIR=$FRS
YUMREPOURL="https://sourceforge.net/projects/xcat/files/yum"
else
YUMDIR=htdocs
YUMREPOURL="http://xcat.sourceforge.net/yum"
# for the git case, query the current branch and set REL (changing master to devel if necessary)
function setbranch {
#git checkout $BRANCH
#REL=`git rev-parse --abbrev-ref HEAD`
REL=`git name-rev --name-only HEAD`
if [ "$REL" = "master" ]; then
REL="devel"
fi
}
if [ "$REL" = "xcat-core" ]; then # using git
GIT=1
setbranch # this changes the REL variable
fi
YUMDIR=$FRS
YUMREPOURL="https://sourceforge.net/projects/xcat/files/yum"
# Set variables based on which type of build we are doing
if [ -n "$EMBED" ]; then EMBEDDIR="/$EMBED"
else EMBEDDIR=""; fi
XCATCORE="xcat-core" # core-snap is a sym link to xcat-core
echo "svn --quiet up Version"
svn --quiet up Version
VER=`cat Version`
SHORTVER=`cat Version|cut -d. -f 1,2`
SHORTSHORTVER=`cat Version|cut -d. -f 1`
if [ "$PROMOTE" = 1 ]; then
CORE="xcat-core"
if [ "$OSNAME" = "AIX" ]; then
TARNAME=core-aix-$VER.tar.gz
if [ -n "$EMBED" ]; then
EMBEDDIR="/$EMBED"
if [ "$EMBED" = "zvm" ]; then
EMBEDBUILD=$ZVMBUILD
EMBEDLINK=$ZVMLINK
elif [ "$EMBED" = "pcm" ]; then
EMBEDBUILD=$PCMBUILD
EMBEDLINK=$PCMLINK
elif [ "$EMBED" = "fsm" ]; then
EMBEDBUILD=$FSMBUILD
EMBEDLINK=$FSMLINK
else
TARNAME=xcat-core-$VER.tar.bz2
echo "Error: EMBED setting $EMBED not recognized."
exit 2
fi
else
CORE="core-snap"
if [ "$OSNAME" = "AIX" ]; then
TARNAME=core-aix-snap.tar.gz
else
TARNAME=core-rpms-snap.tar.bz2
fi
EMBEDDIR=""
EMBEDBUILD=$ALLBUILD
EMBEDLINK=""
fi
XCATCORE="xcat-core" # core-snap is a sym link to xcat-core
if [ "$GIT" = "1" ]; then # using git - need to include REL in the path where we put the built rpms
DESTDIR=../../$REL$EMBEDDIR/$XCATCORE
else
DESTDIR=../..$EMBEDDIR/$XCATCORE
fi
DESTDIR=../..$EMBEDDIR/$XCATCORE
SRCD=core-snap-srpms
# currently aix builds ppc rpms, but someday it should build noarch
if [ "$OSNAME" = "AIX" ]; then
NOARCH=ppc
SYSGRP=system
else
NOARCH=noarch
SYSGRP=root
fi
function setversionvars {
VER=`cat Version`
SHORTVER=`cat Version|cut -d. -f 1,2`
SHORTSHORTVER=`cat Version|cut -d. -f 1`
}
if [ "$PROMOTE" != 1 ]; then # very long if statement to not do builds if we are promoting
# we are doing a snap build
CORE="core-snap"
if [ "$OSNAME" = "AIX" ]; then
TARNAME=core-aix-snap.tar.gz
else
TARNAME=core-rpms-snap.tar.bz2
fi
mkdir -p $DESTDIR
SRCDIR=$DESTDIR/../$SRCD
mkdir -p $SRCDIR
@@ -133,18 +178,39 @@ else
#echo "source=$source"
fi
# If they have not given us a premade update file, do an svn update and capture the results
if [ -z "$SVNUP" ]; then
SVNUP=../coresvnup
echo "svn up > $SVNUP"
svn up > $SVNUP
fi
# If they have not given us a premade update file, do an svn update or git pull and capture the results
SOMETHINGCHANGED=0
if ! $GREP 'At revision' $SVNUP; then
SOMETHINGCHANGED=1
if [ "$GIT" = "1" ]; then # using git
if [ -z "$GITUP" ]; then
GITUP=../coregitup
echo "git pull > $GITUP"
git pull > $GITUP
if [[ $? != 0 ]]; then
# do not continue so we do not build with old files
echo "The 'git pull' command failed. Exiting the build."
exit 3
fi
fi
if ! $GREP 'Already up-to-date' $GITUP; then
SOMETHINGCHANGED=1
fi
else # using svn
GIT=0
if [ -z "$SVNUP" ]; then
SVNUP=../coresvnup
echo "svn up > $SVNUP"
svn up > $SVNUP
fi
if ! $GREP 'At revision' $SVNUP; then
SOMETHINGCHANGED=1
fi
# copy the SVNUP variable to GITUP so the rest of the script doesnt have to worry whether we did svn or git
GITUP=$SVNUP
fi
# Process for making most of the rpms
setversionvars
# Function for making the noarch rpms
function maker {
rpmname="$1"
./makerpm $rpmname "$EMBED"
@@ -159,9 +225,11 @@ function maker {
}
# If anything has changed, we should always rebuild perl-xCAT
if [ $SOMETHINGCHANGED == 1 -o "$BUILDALL" == 1 ]; then # Use to be: $GREP perl-xCAT $SVNUP; then
UPLOAD=1
maker perl-xCAT
if [ $SOMETHINGCHANGED == 1 -o "$BUILDALL" == 1 ]; then # Use to be: $GREP perl-xCAT $GITUP; then
if [[ " $EMBEDBUILD " = *\ perl-xCAT\ * ]]; then
UPLOAD=1
maker perl-xCAT
fi
fi
if [ "$OSNAME" = "AIX" ]; then
# For the 1st one we overwrite, not append
@@ -169,10 +237,12 @@ if [ "$OSNAME" = "AIX" ]; then
fi
# Build the rest of the noarch rpms
for rpmname in xCAT-client xCAT-server xCAT-IBMhpc xCAT-rmc xCAT-UI xCAT-test; do
if $GREP $rpmname $SVNUP || [ "$BUILDALL" == 1 ]; then
for rpmname in xCAT-client xCAT-server xCAT-IBMhpc xCAT-rmc xCAT-UI xCAT-test xCAT-buildkit; do
#if [ "$EMBED" = "zvm" -a "$rpmname" != "xCAT-server" -a "$rpmname" != "xCAT-UI" ]; then continue; fi # for zvm embedded env only need to build server and UI
if [[ " $EMBEDBUILD " != *\ $rpmname\ * ]]; then continue; fi
if [ "$OSNAME" = "AIX" -a "$rpmname" = "xCAT-buildkit" ]; then continue; fi # do not build xCAT-buildkit on aix
if $GREP $rpmname $GITUP || [ "$BUILDALL" == 1 ]; then
UPLOAD=1
if [ "$EMBED" = "zvm" -a "$rpmname" != "xCAT-server" -a "$rpmname" != "xCAT-UI" ]; then continue; fi # for embedded envs only need to build server special
maker $rpmname
fi
if [ "$OSNAME" = "AIX" ]; then
@@ -182,35 +252,40 @@ for rpmname in xCAT-client xCAT-server xCAT-IBMhpc xCAT-rmc xCAT-UI xCAT-test; d
fi
done
if [ "$OSNAME" != "AIX" -a "$EMBED" != "zvm" ]; then
if grep -v nbroot2 $SVNUP|$GREP xCAT-nbroot || [ "$BUILDALL" == 1 ]; then
UPLOAD=1
ORIGFAILEDRPMS="$FAILEDRPMS"
for arch in x86_64 x86 ppc64; do
./makerpm xCAT-nbroot-core $arch
if [ $? -ne 0 ]; then FAILEDRPMS="$FAILEDRPMS xCAT-nbroot-core-$arch"; fi
done
if [ "$FAILEDRPMS" = "$ORIGFAILEDRPMS" ]; then # all succeeded
rm -f $DESTDIR/xCAT-nbroot-core*rpm
rm -f $SRCDIR/xCAT-nbroot-core*rpm
mv $source/RPMS/noarch/xCAT-nbroot-core-*rpm $DESTDIR
mv $source/SRPMS/xCAT-nbroot-core-*rpm $SRCDIR
# Build xCAT-genesis-scripts for xcat-core. xCAT-genesis-base gets built by hand and put in xcat-dep.
# The mknb cmd combines them at install time.
if [ "$OSNAME" != "AIX" ]; then
if [[ " $EMBEDBUILD " = *\ xCAT-genesis-scripts\ * ]]; then
if $GREP xCAT-genesis-scripts $GITUP || [ "$BUILDALL" == 1 ]; then
UPLOAD=1
ORIGFAILEDRPMS="$FAILEDRPMS"
./makerpm xCAT-genesis-scripts x86_64 "$EMBED"
if [ $? -ne 0 ]; then FAILEDRPMS="$FAILEDRPMS xCAT-genesis-scripts-x86_64"; fi
if [ "$FAILEDRPMS" = "$ORIGFAILEDRPMS" ]; then # all succeeded
rm -f $DESTDIR/xCAT-genesis-scripts*rpm
rm -f $SRCDIR/xCAT-genesis-scripts*rpm
mv $source/RPMS/noarch/xCAT-genesis-scripts-*rpm $DESTDIR
mv $source/SRPMS/xCAT-genesis-scripts-*rpm $SRCDIR
fi
fi
fi
fi
# Build the xCAT and xCATsn rpms for all platforms
for rpmname in xCAT xCATsn; do
if [ "$EMBED" = "zvm" ]; then break; fi
if [ $SOMETHINGCHANGED == 1 -o "$BUILDALL" == 1 ]; then # used to be: if $GREP -E "^[UAD] +$rpmname/" $SVNUP; then
for rpmname in xCAT xCATsn xCAT-OpenStack; do
#if [ "$EMBED" = "zvm" ]; then break; fi
if [[ " $EMBEDBUILD " != *\ $rpmname\ * ]]; then continue; fi
if [ $SOMETHINGCHANGED == 1 -o "$BUILDALL" == 1 ]; then # used to be: if $GREP -E "^[UAD] +$rpmname/" $GITUP; then
UPLOAD=1
ORIGFAILEDRPMS="$FAILEDRPMS"
if [ "$OSNAME" = "AIX" ]; then
./makerpm $rpmname
if [ "$rpmname" = "xCAT-OpenStack" ]; then continue; fi # do not bld openstack on aix
./makerpm $rpmname "$EMBED"
if [ $? -ne 0 ]; then FAILEDRPMS="$FAILEDRPMS $rpmname"; fi
else
for arch in x86_64 i386 ppc64 s390x; do
./makerpm $rpmname $arch
for arch in x86_64 ppc64 s390x; do
if [ "$rpmname" = "xCAT-OpenStack" -a "$arch" != "x86_64" ]; then continue; fi # only bld openstack for x86_64 for now
./makerpm $rpmname $arch "$EMBED"
if [ $? -ne 0 ]; then FAILEDRPMS="$FAILEDRPMS $rpmname-$arch"; fi
done
fi
@@ -222,24 +297,30 @@ for rpmname in xCAT xCATsn; do
fi
fi
done
# no longer put in xCAT-rmc
if [ "$OSNAME" = "AIX" ]; then
echo "rpm -Uvh xCAT-$SHORTSHORTVER*rpm" >> $DESTDIR/instxcat
echo "rpm -Uvh xCAT-rmc-$SHORTSHORTVER*rpm" >> $DESTDIR/instxcat
fi
# Make sym links in the embed subdirs for the rpms we do not have to build special
cd $DESTDIR
if [ "$EMBED" = "zvm" ]; then
if [ -n "$EMBED" -a -n "$EMBEDLINK" ]; then
cd $DESTDIR
maindir="../../$XCATCORE"
rm -f xCAT-client-$SHORTSHORTVER*rpm
ln -s $maindir/xCAT-client-$SHORTSHORTVER*rpm .
rm -f xCAT-$SHORTSHORTVER*rpm
ln -s $maindir/xCAT-$SHORTSHORTVER*.s390x.rpm .
rm -f xCATsn-$SHORTSHORTVER*rpm
ln -s $maindir/xCATsn-$SHORTSHORTVER*.s390x.rpm .
for rpmname in $EMBEDLINK; do
if [ "$rpmname" = "xCAT" -o "$rpmname" = "xCATsn" ]; then
if [ "$EMBED" = "zvm" ]; then
echo "Creating link for $rpmname-$SHORTSHORTVER"'*.s390x.rpm'
rm -f $rpmname-$SHORTSHORTVER*rpm
ln -s $maindir/$rpmname-$SHORTSHORTVER*.s390x.rpm .
fi
else
echo "Creating link for $rpmname-$SHORTSHORTVER"'*rpm'
rm -f $rpmname-$SHORTSHORTVER*rpm
ln -s $maindir/$rpmname-$SHORTSHORTVER*rpm .
fi
done
cd - >/dev/null
fi
cd - >/dev/null
# Decide if anything was built or not
@@ -274,10 +355,10 @@ if [ "$OSNAME" != "AIX" ]; then
echo '%_gpg_name Jarrod Johnson' >> $MACROS
fi
echo "Signing RPMs..."
build-utils/rpmsign.exp `find $DESTDIR -type f -name '*.rpm'` | grep -v -E '(was already signed|rpm --quiet --resign|WARNING: standard input reopened)'
build-utils/rpmsign.exp $SRCDIR/*rpm | grep -v -E '(was already signed|rpm --quiet --resign|WARNING: standard input reopened)'
createrepo $DESTDIR
createrepo $SRCDIR
build-utils/rpmsign.exp `find $DESTDIR -type f -name '*.rpm'` | grep -v -E '(already contains identical signature|was already signed|rpm --quiet --resign|WARNING: standard input reopened)'
build-utils/rpmsign.exp $SRCDIR/*rpm | grep -v -E '(already contains identical signature|was already signed|rpm --quiet --resign|WARNING: standard input reopened)'
createrepo --checksum sha $DESTDIR # specifying checksum so the repo will work on rhel5
createrepo --checksum sha $SRCDIR
rm -f $SRCDIR/repodata/repomd.xml.asc
rm -f $DESTDIR/repodata/repomd.xml.asc
gpg -a --detach-sign $DESTDIR/repodata/repomd.xml
@@ -290,23 +371,26 @@ if [ "$OSNAME" != "AIX" ]; then
fi
fi
# make everything have a group of xcat, so anyone can manage them once they get on SF
# set group and permissions correctly on the built rpms
if [ "$OSNAME" = "AIX" ]; then
if ! lsgroup xcat >/dev/null 2>&1; then
mkgroup xcat
fi
chmod +x $DESTDIR/instxcat
else # linux
if ! $GREP xcat /etc/group; then
groupadd xcat
fi
fi
chgrp -R xcat $DESTDIR
chgrp -R $SYSGRP $DESTDIR
chmod -R g+w $DESTDIR
chgrp -R xcat $SRCDIR
chgrp -R $SYSGRP $SRCDIR
chmod -R g+w $SRCDIR
fi # end of very long if-not-promote
else # end of very long if-not-promote
# we are only promoting (not building)
setversionvars
setbranch
CORE="xcat-core"
if [ "$OSNAME" = "AIX" ]; then
TARNAME=core-aix-$VER.tar.gz
else
TARNAME=xcat-core-$VER.tar.bz2
fi
fi
cd $DESTDIR
@@ -346,14 +430,17 @@ else
verboseflag=""
fi
echo "Creating $TARNAME ..."
if [[ -e $TARNAME ]]; then
mkdir -p previous
mv -f $TARNAME previous
fi
if [ "$OSNAME" = "AIX" ]; then
tar $verboseflag -hcf ${TARNAME%.gz} $XCATCORE
rm -f $TARNAME
gzip ${TARNAME%.gz}
else
tar $verboseflag -hjcf $TARNAME $XCATCORE
fi
chgrp xcat $TARNAME
chgrp $SYSGRP $TARNAME
chmod g+w $TARNAME
# Decide whether to upload or not
@@ -407,8 +494,16 @@ if [ "$OSNAME" != "AIX" -a "$REL" = "devel" -a "$PROMOTE" != 1 -a -z "$EMBED" ];
rpm2cpio ../$XCATCORE/xCAT-client-*.$NOARCH.rpm | cpio -id '*.html'
rpm2cpio ../$XCATCORE/perl-xCAT-*.$NOARCH.rpm | cpio -id '*.html'
rpm2cpio ../$XCATCORE/xCAT-test-*.$NOARCH.rpm | cpio -id '*.html'
rpm2cpio ../$XCATCORE/xCAT-buildkit-*.$NOARCH.rpm | cpio -id '*.html'
rpm2cpio ../$XCATCORE/xCAT-OpenStack-*.x86_64.rpm | cpio -id '*.html'
i=0
while [ $((i+=1)) -le 5 ] && ! rsync $verboseflag -r opt/xcat/share/doc/man1 opt/xcat/share/doc/man3 opt/xcat/share/doc/man5 opt/xcat/share/doc/man7 opt/xcat/share/doc/man8 $UPLOADUSER,xcat@web.sourceforge.net:htdocs/
do : ; done
# extract and upload the tools readme
rpm2cpio ../$XCATCORE/xCAT-server-*.$NOARCH.rpm | cpio -id ./opt/xcat/share/xcat/tools/README.html
i=0
while [ $((i+=1)) -le 5 ] && ! rsync $verboseflag opt/xcat/share/xcat/tools/README.html $UPLOADUSER,xcat@web.sourceforge.net:htdocs/tools/
do : ; done
cd ..
fi
+31 -25
View File
@@ -97,15 +97,15 @@ if [ "$OSNAME" != "AIX" ]; then
# Sign the rpms that are not already signed. The "standard input reopened" warnings are normal.
echo "Signing RPMs..."
$XCATCOREDIR/build-utils/rpmsign.exp `find . -type f -name '*.rpm'` | grep -v -E '(was already signed|rpm --quiet --resign|WARNING: standard input reopened)'
$XCATCOREDIR/build-utils/rpmsign.exp `find . -type f -name '*.rpm'` | grep -v -E '(already contains identical signature|was already signed|rpm --quiet --resign|WARNING: standard input reopened)'
# Create the repodata dirs
echo "Creating repodata directories..."
for i in `find -mindepth 2 -maxdepth 2 -type d `; do
if [ -n "$VERBOSEMODE" ]; then
createrepo $i
createrepo --checksum sha $i # specifying checksum so the repo will work on rhel5
else
createrepo $i >/dev/null
createrepo --checksum sha $i >/dev/null
fi
rm -f $i/repodata/repomd.xml.asc
gpg -a --detach-sign $i/repodata/repomd.xml
@@ -126,7 +126,7 @@ if [ "$OSNAME" != "AIX" ]; then
fi
if [ "$OSNAME" == "AIX" ]; then
# Build the instoss file
# Build the instoss file ------------------------------------------
cat >instoss << 'EOF'
#!/bin/ksh
@@ -146,22 +146,32 @@ else
fi
cd $OSVER
# Have to install rpms 1 at a time, since some may be already installed.
# The only interdependency between the dep rpms so far is that net-snmp requires bash
# pyodbc is dependent on unixODBC
# The only interdependency between the dep rpms so far is that net-snmp requires bash, and
# pyodbc requires unixODBC. (The bash dependency is taken care of automatically because it
# comes earlier in the alphabet.)
# first run /usr/sbin/updtvpkg to make sure any installp software is
# registered with RPM.
echo "Running updtvpkg. This could take a few minutes."
/usr/sbin/updtvpkg
echo "updtvpkg has completed."
rpm -Uvh unixODBC*
for i in `ls *.rpm|grep -v -E '^tcl-|^tk-|^expect-|^unixODBC-|^xCAT-UI-deps'`; do
for i in `ls *.rpm|grep -v -E '^tcl-|^tk-|^expect-|^unixODBC-|^xCAT-UI-deps|^perl-DBD-DB2Lite'`; do
if [ "$i" == "perl-Net-DNS-0.66-1.aix5.3.ppc.rpm" ]; then
opts="--nodeps"
else
opts=""
fi
# this next if stmt means: if i does not start with perl-DBD-DB2
# just in case we need it sometime, this next if stmt would mean: if it does not start with perl-DBD-DB2
#if [ "${i#perl-DBD-DB2}" == "$i" ]; then
echo rpm -Uvh $opts $i
rpm -Uvh $opts $i
#fi
echo rpm -Uvh $opts $i
rpm -Uvh $opts $i
done
# don't try to install tcl, tk, or expect if they are already installed!
# this section about expect/tcl/tk can be removed once 2.8 releases, because 2.8 no longer requires expect
lslpp -l | grep expect.base > /dev/null 2>&1
if [ $? -gt 0 ]; then
if [ "$OSVER" == "5.3" ]; then
@@ -174,24 +184,19 @@ if [ $? -gt 0 ]; then
fi
fi
EOF
# end of instoss file content
# end of instoss file content ---------------------------------------------
chmod +x instoss
fi
# Get the permissions correct. Have to have all dirs/files with a group of xcat
# and have them writeable by group, so any member of the xcat can build.
# Get the permissions and group correct
if [ "$OSNAME" == "AIX" ]; then
if ! lsgroup xcat >/dev/null 2>&1; then
mkgroup xcat
fi
SYSGRP=system
else
if ! $GREP xcat /etc/group; then
groupadd xcat
fi
SYSGRP=root
fi
chgrp -R xcat *
chgrp -R $SYSGRP *
chmod -R g+w *
# Build the tarball
@@ -213,7 +218,8 @@ else
echo "Creating $DFNAME ..."
tar $verbosetar -jcf $DFNAME xcat-dep
fi
cd xcat-dep
#cd xcat-dep <-- now we want to stay above xcat-dep, so we can rsync the whole dir
if [ "$UP" == 0 ]; then
exit 0;
@@ -235,12 +241,12 @@ if [ "$FRSYUM" != 0 ]; then
else
links="-l"
fi
echo "Uploading RPMs to $YUMDIR/$YUM/xcat-dep/ ..."
while [ $((i+=1)) -le 5 ] && ! rsync $links -ruv --delete * $UPLOADUSER,xcat@web.sourceforge.net:$YUMDIR/$YUM/xcat-dep/
echo "Uploading RPMs from xcat-dep to $YUMDIR/$YUM/ ..."
while [ $((i+=1)) -le 5 ] && ! rsync $links -ruv --delete xcat-dep $UPLOADUSER,xcat@web.sourceforge.net:$YUMDIR/$YUM/
do : ; done
# Upload the tarball to the SF FRS Area
i=0
echo "Uploading $DFNAME to $FRS/xcat-dep/$FRSDIR/ ..."
while [ $((i+=1)) -le 5 ] && ! rsync -v ../$DFNAME $UPLOADUSER,xcat@web.sourceforge.net:$FRS/xcat-dep/$FRSDIR/
while [ $((i+=1)) -le 5 ] && ! rsync -v $DFNAME $UPLOADUSER,xcat@web.sourceforge.net:$FRS/xcat-dep/$FRSDIR/
do : ; done
+2 -2
View File
@@ -13,11 +13,11 @@ then
exit 1
fi
echo "The location for rpm building is ${RPMROOT}"
cd `dirname $0`/xCAT-nbroot2
cd `dirname $0`/xCAT-genesis-builder
tar --exclude .svn -cjvf $RPMROOT/SOURCES/xCAT-genesis-builder.tar.bz2 .
#mv -f *.gz $RPMROOT/SOURCES
cp LICENSE.html $RPMROOT/BUILD
cp xCAT-genesis-builder.spec $RPMROOT/SOURCES
cd -
rm -f $RPMROOT/SRPMS/xCAT-genesis-builder-$VER*rpm $RPMROOT/RPMS/*/xCAT-genesis-builder-$VER*rpm
rpmbuild -ba xCAT-nbroot2/xCAT-genesis-builder.spec
rpmbuild -ba xCAT-genesis-builder/xCAT-genesis-builder.spec
+46 -12
View File
@@ -24,7 +24,7 @@ function makenoarch {
else # linux
echo "Building $RPMROOT/RPMS/noarch/$RPMNAME-$VER-snap*.noarch.rpm $EMBEDTXT..."
tar --exclude .svn -czf $RPMROOT/SOURCES/$RPMNAME-$VER.tar.gz $RPMNAME
rm -f $RPMROOT/SRPMS/xCAT-server-$VER*rpm $RPMROOT/RPMS/noarch/$RPMNAME-$VER*rpm
rm -f $RPMROOT/SRPMS/$RPMNAME-$VER*rpm $RPMROOT/RPMS/noarch/$RPMNAME-$VER*rpm
rpmbuild $QUIET -ta $RPMROOT/SOURCES/$RPMNAME-$VER.tar.gz
RC=$?
fi
@@ -32,9 +32,9 @@ function makenoarch {
# Make one of the following rpms: xCAT, xCATsn
# Make one of the following rpms: xCAT, xCATsn, xCAT-buildkit, xCAT-OpenStack
function makexcat {
if [ "$OSNAME" != "AIX" -a -z "$2" ]; then
if [ "$OSNAME" != "AIX" -a "$1" != "xCAT-buildkit" -a -z "$2" ]; then
echo 'Usage: makerpm <RPMname> <arch> [<embedded-system>]'
exit 1
fi
@@ -68,24 +68,36 @@ function makexcat {
RC=$?
else # linux
ARCH="$2"
cd `dirname $0`/$RPMNAME
TARGET="--target $ARCH"
if [ "$RPMNAME" = "xCAT" ]; then
tar --exclude .svn -czf $RPMROOT/SOURCES/postscripts.tar.gz postscripts LICENSE.html
cd `dirname $0`/$RPMNAME
tar --exclude .svn --exclude upflag -czf $RPMROOT/SOURCES/postscripts.tar.gz postscripts LICENSE.html
tar --exclude .svn -czf $RPMROOT/SOURCES/prescripts.tar.gz prescripts
tar --exclude .svn -czf $RPMROOT/SOURCES/templates.tar.gz templates
cp xcat.conf $RPMROOT/SOURCES
cp xCATMN $RPMROOT/SOURCES
else # xCATsn
cd - >/dev/null
elif [ "$RPMNAME" = "xCATsn" ]; then
cd `dirname $0`/$RPMNAME
tar --exclude .svn -czf $RPMROOT/SOURCES/license.tar.gz LICENSE.html
cp xcat.conf $RPMROOT/SOURCES
cp xCATSN $RPMROOT/SOURCES
cd - >/dev/null
elif [ "$RPMNAME" = "xCAT-buildkit" ]; then
ARCH="noarch"
TARGET=""
tar --exclude .svn --exclude xCAT-buildkit.spec -czf $RPMROOT/SOURCES/$RPMNAME-$VER.tar.gz $RPMNAME
elif [ "$RPMNAME" = "xCAT-OpenStack" ]; then
tar --exclude .svn --exclude xCAT-OpenStack.spec -czf $RPMROOT/SOURCES/$RPMNAME-$VER.tar.gz $RPMNAME
else # do not recognize rpm
echo "Unrecognized rpm: $RPMNAME"
exit 2
fi
cd - >/dev/null
rm -f $RPMROOT/SRPMS/$RPMNAME-$VER*rpm $RPMROOT/RPMS/$ARCH/$RPMNAME-$VER*rpm
echo "Building $RPMROOT/RPMS/$ARCH/$RPMNAME-$VER-snap*.$ARCH.rpm $EMBEDTXT..."
rpmbuild $QUIET -ba $RPMNAME/$RPMNAME.spec --target $ARCH
rpmbuild $QUIET -ba $RPMNAME/$RPMNAME.spec $TARGET
RC=$?
fi
}
@@ -115,9 +127,9 @@ function makenbroot {
# Make the xCAT-nbroot-core rpm
# Make the xCAT-genesis rpm
function makegenesis {
DIR="xCAT-nbroot2"
DIR="xCAT-genesis-builder"
RPMNAME="$1"
cd `dirname $0`/$DIR
tar --exclude .svn -cjf $RPMROOT/SOURCES/$RPMNAME.tar.bz2 .
@@ -128,6 +140,25 @@ function makegenesis {
echo "Building $RPMROOT/RPMS/noarch/$RPMNAME-$VER-snap*.noarch.rpm $EMBEDTXT..."
rpmbuild $QUIET -ba $DIR/$RPMNAME.spec
}
function makegenesisscripts {
DIR="xCAT-genesis-scripts"
if [ -z "$2" ]; then
echo 'Usage: makerpm xCAT-genesis-scripts <arch> [<embedded-system>]'
exit 1
fi
RPMNAME="$1"
ARCH="$2"
TARGET="--target $ARCH"
cd `dirname $0`/
tar --exclude .svn -cjf $RPMROOT/SOURCES/$RPMNAME.tar.bz2 $DIR
cp $DIR/LICENSE.html $RPMROOT/BUILD
cp $DIR/$RPMNAME.spec $RPMROOT/SOURCES
cd - >/dev/null
rm -f $RPMROOT/SRPMS/$RPMNAME-$ARCH-$VER*rpm $RPMROOT/RPMS/noarch/$RPMNAME-$ARCH-$VER*rpm
echo "Building $RPMROOT/RPMS/noarch/$RPMNAME-$ARCH-$VER-snap*.noarch.rpm $EMBEDTXT..."
rpmbuild $QUIET -ba $DIR/$RPMNAME.spec $TARGET
}
# Export the name of the embedded system we are building for
@@ -172,15 +203,18 @@ else # linux
fi
if [ "$1" = "xCAT" -o "$1" = "xCATsn" ]; then
if [ "$1" = "xCAT" -o "$1" = "xCATsn" -o "$1" = "xCAT-buildkit" -o "$1" = "xCAT-OpenStack" ]; then
exportEmbed $3
makexcat $1 $2
elif [ "$1" = "xCAT-nbroot" -o "$1" = "xCAT-nbroot-core" ]; then
exportEmbed $3
makenbroot xCAT-nbroot-core $2
elif [ "$1" = "xCAT-genesis-builder" ]; then
exportEmbed $2
makegenesis $1
elif [ "$1" = "xCAT-genesis-scripts" ]; then
exportEmbed $3
makegenesis $1 $2
makegenesisscripts $1 $2
else # must be one of the noarch rpms
exportEmbed $2
makenoarch $1
+61 -51
View File
@@ -157,61 +157,69 @@ B<tabedit> or B<chtab> commands. They can be viewed using B<nodels> or B<tabdum
Alternatively, the xCAT database can be viewed and edited as logical objects, instead of flat tables.
In this mode, xCAT takes care of which table each attribute should go in. To treat the database
as logical object definitions, use the commands: lsdef, mkdef, chdef, rmdef. See Object Definitions
as logical object definitions, use the commands: B<lsdef>, B<mkdef>, B<chdef>, B<rmdef>. See Object Definitions
below.
xCAT allows the use of different database applications, depending on the needs of your cluster.
The default database is SQLite, which is a daemonless, zero-config database. But you could instead
choose to use something like postgresql for greater scalability and remote access in the
hierarchical/service node case. To use a different database or a different location, create
the file /etc/xcat/cfgloc.
See the appropriate xCAT docuementation for the format of the file for the database you choose.
The following example is for PostgreSQL:
the file /etc/xcat/cfgloc. See the appropriate xCAT docuementation for the format of the file for the database you choose.
The following example /etc/xcat/cfgloc file is for PostgreSQL:
=over 4
=item Pg:dbname=xcat;host=<mgmtnode>|<pgadminuserid>|<pgadminpasswd>
Pg:dbname=xcat;host=<mgmtnode>|<pgadminuserid>|<pgadminpasswd>
where mgmtnode is the hostname of the management node adapter on the cluster side, and the pgadminuserid and pgadminpasswd are the database admin and password.
=back
=head2 GROUPS AND REGULAR EXPRESSIONS IN TABLES
The xCAT database spans a number of tables, some with records associated with particular nodes
(such as nodelist and nodehm) and others that do not have a direct relationship with any given node.
The tables not associated with a given node are straightforward, the data is stored and retrieved
as-is from the database without interpretation, and without any generic inheritance
(though some calling code may implement inheritance for specific fields, for example
nodehm.power inheriting from nodehm.mgt).
The tables with records typically retrieved by node name have some extra features to enable a more
The xCAT database has a number of tables, some with rows that are keyed by node name
(such as noderes and nodehm) and others that are not keyed by node name (for example, the policy table).
The tables that are keyed by node name have some extra features that enable a more
template-based style to be used:
Any group name can be used in lieu of a node name in the node field, and that record will then
be taken to be applicable to any node in that group. If a field is requested for a specific node,
and either a record doesn't exist specifically for that nodename or a record exists, but has no
definition for the requested field, that node's groups are then used to search for
records. If multiple records could apply from two different groups, the precedence is
the order the groups are specified in the nodelist table for that node. This is nearly identical to
most xCAT 1.x tab file conventions. This is useful in tables such as noderes, where typical
configurations have exactly the same field values for large sets of nodes.
Any group name can be used in lieu of a node name in the node field, and that row will then
provide "default" attribute values for any node in that group. A row with a specific node name
can then override one or more attribute values for that specific node. For example, if the nodehm table contains:
xCAT 2 extends the above to be made useful where a field will vary for every node with a given tag,
but in ways that would be trivial to describe. If a field is of the format /I<pattern>/I<replacement>/,
it is taken to be a perl regular expression, to be performed on the nodename. For example, the bmc field
of the ipmi table might be B</\z/-bmc/> for a record with node=ipmi to specify that the BMC hostname is derived
by appending B<-bmc> to the end of the nodename of every node in the ipmi group.
#node,power,mgt,cons,termserver,termport,conserver,serialport,serialspeed,serialflow,getmac,cmdmapping,comments,disable
"mygroup",,"ipmi",,,,,,"19200",,,,,
"node1",,,,,,,,"115200",,,,,
As an extension to the above, a regular expression extended with arithmetic operators is available,
by using the format |I<pattern>|I<replacement>|. This behaves similarly to the above, but () enclosed parts
in I<replacement> are taken to signify arithmetic operations and substituted in. All operations are integer
arithmetic, so 5/4 would come out as 1. The typical perl positional variables are available in such expressions.
In the above example, the node group called mygroup sets mgt=ipmi and serialspeed=19200. Any nodes that are in this group
will have those attribute values, unless overridden. For example, if node2 is a member of mygroup, it will automatically
inherit these attribute values (even though it is not explicitly listed in this table). In the case of node1 above, it
inherits mgt=ipmi, but overrides the serialspeed to be 115200, instead of 19200. A useful, typical way to use this
capability is to create a node group for your nodes and for all the attribute values that are the same for every node,
set them at the group level. Then you only have to set attributes for each node that vary from node to node.
For example, if you have many blades in your cluster and their hostnames have a regular
pattern of blade1, blade2, etc., and your BladeCenter management modules also have a hostname
pattern of amm1, amm2, etc., then your B<mp> table could be expressed by the following single row:
xCAT extends the group capability so that it can also be used for attribute values that vary from node to node
in a very regular pattern. For example, if in the ipmi table you want the bmc attribute to be set to whatever the nodename is with
"-bmc" appended to the end of it, then use this in the ipmi table:
"blade","|\D+(\d+)|amm(($1-1)/14+1)|","|\D+(\d+)|(($1-1)%14+1)|",,
#node,bmc,bmcport,taggedvlan,bmcid,username,password,comments,disable
"compute","/\z/-bmc/",,,,,,,
In this example, "compute" is a node group that contains all of the compute nodes. The 2nd attribute (bmc) is a regular
expression that is similar to a substitution pattern. The 1st part "\z" matches the end of the node name and substitutes "-bmc", effectively appending it to the node name.
Another example is if node1 is to have IP address 10.0.0.1, node2 is to have IP address 10.0.0.2, etc.,
then this could be represented in the hosts table with the single row:
#node,ip,hostnames,otherinterfaces,comments,disable
"compute","|node(\d+)|10.0.0.($1+0)|",,,,
In this example, the regular expression in the ip attribute uses "|" to separate the 1st and 2nd part. This means that
xCAT will allow arithmetic operations in the 2nd part. In the 1st part, "(\d+)", will match the number part of the node
name and put that in a variable called $1. The 2nd part
is what value to give the ip attribute. In this case it will set it to the string "10.0.0." and the number that is
in $1. (Zero is added to $1 just to remove any leading zeroes.)
A more involved example is with the mp table. If your blades have node names node01, node02, etc., and your chassis
node names are cmm01, cmm02, etc., then you might have an mp table like:
#node,mpa,id,nodetype,comments,disable
"blade","|\D+(\d+)|cmm(sprintf('%02d',($1-1)/14+1))|","|\D+(\d+)|(($1-1)%14+1)|",,
Before you panic, let me explain each column:
@@ -221,32 +229,34 @@ Before you panic, let me explain each column:
This is a group name. In this example, we are assuming that all of your blades belong to this
group. Each time the xCAT software accesses the B<mp> table to get the management module and slot number
of a specific blade (e.g. B<blade20>), this row will match (because B<blade20> is in the B<blade> group).
Once this row is matched for B<blade20>, then the processing described in the following items will take
of a specific blade (e.g. B<node20>), this row will match (because B<node20> is in the B<blade> group).
Once this row is matched for B<node20>, then the processing described in the following items will take
place.
=item B<|\D+(\d+)|amm(($1-1)/14+1)|>
=item B<|\D+(\d+)|cmm(sprintf('%02d',($1-1)/14+1))|>
This is a perl substitution pattern that will produce the value for the second column of the table (the
management module hostname).
The text B<\D+(\d+)> between the 1st two vertical bars is
management module hostname). The text B<\D+(\d+)> between the 1st two vertical bars is
a regular expression that matches the node
name that was searched for in this table (in this example B<blade20>). The text that matches
name that was searched for in this table (in this example B<node20>). The text that matches
within the 1st set of parentheses is set to $1. (If there was a 2nd set of parentheses, it would
be set to $2, and so on.) In our case, the \D+ matches the non-numeric part of the name
(B<blade>) and the \d+ matches the numeric part (B<20>). So $1 is set to B<20>. The text B<amm(($1-1)/14+1)> between the
2nd and 3rd vertical bars produces the string that should be used as the value
for this column in a hypothetical row for blade20. Since $1 is set to 20, the expression B<($1-1)/14+1> equals
19/14 + 1, which equals 2. Therefore the whole string is B<amm2>, which will be used as the hostname
(B<node>) and the B<\d+> matches the numeric part (B<20>). So $1 is set to B<20>. The text B<cmm(sprintf('%02d',($1-1)/14+1))> between the
2nd and 3rd vertical bars produces the string that should be used as the value for the mpa attribute for node20.
Since $1 is set to 20, the expression B<($1-1)/14+1> equals
19/14 + 1, which equals 2. (The division is integer division,
so 19/14 equals 1. Fourteen is used as the divisor, because there are 14 blades in each chassis.) The value of 2 is then passed into sprintf() with a format string to add a leading
zero, if necessary, to always make the number two digits. Lastly the string B<cmm> is added to the beginning,
making the resulting string B<cmm02>, which will be used as the hostname
of the management module.
=item B<|\D+(\d+)|(($1-1)%14+1)|>
This item is similar to the one above. This substituion pattern will produce the value for
the 3rd column (the BladeCenter chassis slot number for this blade). Because this row was
the match for B<blade20>, the parentheses
the 3rd column (the chassis slot number for this blade). Because this row was
the match for B<node20>, the parentheses
within the 1st set of vertical bars will set $1 to 20. Since % means modulo division, the
expression B<($1-1)%14+1> will evaluate to 6.
expression B<($1-1)%14+1> will evaluate to B<6>.
=back
+2 -2
View File
@@ -1,8 +1,8 @@
Source: perl-xcat
Section: libs
Priority: extra
Maintainer: Arif Ali <aali@ocf.co.uk>
Build-Depends: debhelper (>= 5), libsoap-lite-perl
Maintainer: xCAT <xcat-user@lists.sourceforge.net>
Build-Depends: debhelper (>= 5), libsoap-lite-perl, libdbi-perl
Standards-Version: 3.7.2
Package: perl-xcat
+2 -2
View File
@@ -1,7 +1,7 @@
xCAT/* usr/lib/perl5/xCAT
xCAT/* /opt/xcat/lib/perl/xCAT/
share/man/man5/* opt/xcat/share/man/man5
share/doc/man5/* opt/xcat/share/doc/man5
share/man/man7/* opt/xcat/share/man/man7
share/doc/man7/* opt/xcat/share/doc/man7
LICENSE.html opt/xcat/share/doc/packages/perl-xCAT
README opt/xcat/
README opt/xcat/
+3 -3
View File
@@ -14,7 +14,6 @@ export DH_COMPAT=5
build:
dh_testdir
./modifyUtils `cat ../Version`
./db2man
clean:
@@ -26,7 +25,7 @@ install:
dh_testdir
dh_testroot
dh_installdirs
dh_install
dh_install -X".svn"
# Build architecture-independent files here.
@@ -40,7 +39,7 @@ binary-arch: build install
dh_installchangelogs
dh_installdocs
# dh_installexamples
dh_install
dh_install -X".svn"
chmod 644 `pwd`/debian/perl-xcat/opt/xcat/lib/perl/xCAT/*
chmod 755 `pwd`/debian/perl-xcat/opt/xcat/lib/perl/xCAT/data
chmod 644 `pwd`/debian/perl-xcat/opt/xcat/share/doc/packages/perl-xCAT/*
@@ -49,6 +48,7 @@ binary-arch: build install
chmod 644 `pwd`/debian/perl-xcat/opt/xcat/share/doc/man5/*
chmod 644 `pwd`/debian/perl-xcat/opt/xcat/share/man/man7/*
chmod 644 `pwd`/debian/perl-xcat/opt/xcat/share/doc/man7/*
./modifyUtils `cat ../Version` `svn info | grep Revision | cut -d" " -f 2`
# dh_installmenu
# dh_installdebconf
# dh_installlogrotate
+10 -18
View File
@@ -1,34 +1,26 @@
#!/bin/sh
# Put the version, svn revision #, and build date into the Version function in Version.pm
if [ -z "$2" ]
if [ -z "$1" ]
then
echo "modifyUtils: Error: must specify the xCAT version and svn revision number as arguments" >&2
echo "modifyUtils: Error: must specify the xCAT version as an argument" >&2
exit
fi
VER=$1
SVNREF="svn r$2, "
#SVNINFO=`svn info 2>/dev/null|grep Revision`
#/bin/echo -e $SVNINFO
#if [ $? -ne 0 -a -f .svninfo ]; then
# SVNINFO=`cat .svninfo 2>/dev/null|grep Revision`
#fi
#if [ $? -eq 0 ]
# then
# SVNREF="svn r"`echo $SVNINFO|awk '{print $2}'`", "
# else
# SVNREF=""
# fi
BUILDDATE=`date`
#echo ". '(${SVNREF}built $BUILDDATE)'"
#echo ". '(built $BUILDDATE)'"
if [ "$(uname)" = "AIX" ]
then
sed -e s/"#XCATVERSIONSUBHERE"/". '$VER'"/ -e s/"#XCATSVNBUILDSUBHERE"/". ' (${SVNREF}built $BUILDDATE)'"/ xCAT/Version.pm >xCAT/Version.pm.new
sed -e s/"#XCATVERSIONSUBHERE"/". '$VER'"/ -e s/"#XCATSVNBUILDSUBHERE"/". ' (built $BUILDDATE)'"/ xCAT/Version.pm >xCAT/Version.pm.new
mv xCAT/Version.pm.new xCAT/Version.pm
else
sed -i -e s/"#XCATVERSIONSUBHERE"/". '$VER'"/ -e s/"#XCATSVNBUILDSUBHERE"/". ' (${SVNREF}built $BUILDDATE)'"/ xCAT/Version.pm
if [ -f "/etc/debian_version" ];then
FILENAME="debian/perl-xcat/opt/xcat/lib/perl/xCAT/Version.pm"
else
FILENAME="xCAT/Version.pm"
fi
sed -i -e s/"#XCATVERSIONSUBHERE"/". '$VER'"/ -e s/"#XCATSVNBUILDSUBHERE"/". ' (built $BUILDDATE)'"/ $FILENAME
fi
+20 -12
View File
@@ -24,7 +24,7 @@ Provides perl xCAT libraries for core functionality. Required for all xCAT inst
Includes xCAT::Table, xCAT::NodeRange, among others.
%define zvm %(if [ "$zvm" = "1" ];then echo 1; else echo 0; fi)
%define svninfo %(svn info | grep Revision | awk '{print $2}')
%define fsm %(if [ "$fsm" = "1" ];then echo 1; else echo 0; fi)
%prep
%setup -q -n perl-xCAT
@@ -33,12 +33,15 @@ Includes xCAT::Table, xCAT::NodeRange, among others.
# All of the tarball source has been unpacked there and is in the same file structure
# as it is in svn.
%if %fsm
%else
# Modify the Version() function in xCAT/Utils.pm to automatically have the correct version
./modifyUtils %{version} %{svninfo}
./modifyUtils %{version}
# Build the pod version of the man pages for each DB table. It puts them in the man5 and man7 subdirs.
# Then convert the pods to man pages and html pages.
./db2man
%endif
%install
# The install phase puts all of the files in the paths they should be in when the rpm is
@@ -75,6 +78,18 @@ rm $RPM_BUILD_ROOT/%{prefix}/lib/perl/xCAT/PPC*.pm
cp xCAT/PPCdb.pm $RPM_BUILD_ROOT/%{prefix}/lib/perl/xCAT/
chmod 644 $RPM_BUILD_ROOT/%{prefix}/lib/perl/xCAT/PPCdb.pm
%endif
# Don't ship these on FSM, to reduce dependencies
%if %fsm
rm $RPM_BUILD_ROOT/%{prefix}/lib/perl/xCAT/hpoa.pm
rm $RPM_BUILD_ROOT/%{prefix}/lib/perl/xCAT/vboxService.pm
rm $RPM_BUILD_ROOT/%{prefix}/lib/perl/xCAT/FSP*.pm
rm $RPM_BUILD_ROOT/%{prefix}/lib/perl/xCAT/RemoteShellExp.pm
rm $RPM_BUILD_ROOT/%{prefix}/lib/perl/xCAT/LparNetbootExp.pm
rm $RPM_BUILD_ROOT/%{prefix}/lib/perl/xCAT/PPC*.pm
# have to put PPCdb.pm back because it is needed by Postage.pm
cp xCAT/PPCdb.pm $RPM_BUILD_ROOT/%{prefix}/lib/perl/xCAT/
chmod 644 $RPM_BUILD_ROOT/%{prefix}/lib/perl/xCAT/PPCdb.pm
%endif
cp LICENSE.html $RPM_BUILD_ROOT/%{prefix}/share/doc/packages/perl-xCAT
chmod 644 $RPM_BUILD_ROOT/%{prefix}/share/doc/packages/perl-xCAT/*
@@ -82,6 +97,8 @@ chmod 644 $RPM_BUILD_ROOT/%{prefix}/share/doc/packages/perl-xCAT/*
cp README $RPM_BUILD_ROOT/%{prefix}
chmod 644 $RPM_BUILD_ROOT/%{prefix}/README
%if %fsm
%else
# These were built dynamically in the build phase
cp share/man/man5/* $RPM_BUILD_ROOT/%{prefix}/share/man/man5
chmod 644 $RPM_BUILD_ROOT/%{prefix}/share/man/man5/*
@@ -91,6 +108,7 @@ cp share/man/man7/* $RPM_BUILD_ROOT/%{prefix}/share/man/man7
chmod 644 $RPM_BUILD_ROOT/%{prefix}/share/man/man7/*
cp share/doc/man7/* $RPM_BUILD_ROOT/%{prefix}/share/doc/man7
chmod 644 $RPM_BUILD_ROOT/%{prefix}/share/doc/man7/*
%endif
%clean
# This step does not happen until *after* the %files packaging below
@@ -122,18 +140,8 @@ fi
if [ "$1" -gt 1 ]; then #Ugrade only, restart daemon and migrate settings
if [ -x /etc/init.d/xcatd ] && [ -f "/proc/cmdline" ]; then
. /etc/profile.d/xcat.sh
/etc/init.d/xcatd reload
fi
fi
%else
if [ "$1" -gt 1 ]; then #Ugrade only, restart daemon and migrate settings
if [ -n "$INUCLIENTS" ] && [ $INUCLIENTS -eq 1 ]; then
#Do nothing in not running system
echo "Do not restartxcatd in not running system"
else
XCATROOT=$RPM_INSTALL_PREFIX0 $RPM_INSTALL_PREFIX0/sbin/restartxcatd -r
fi
fi
%endif
exit 0
+821
View File
@@ -0,0 +1,821 @@
# IBM(c) 2012 EPL license http://www.eclipse.org/legal/epl-v10.html
package xCAT::CFMUtils;
BEGIN
{
$::XCATROOT = $ENV{'XCATROOT'} ? $ENV{'XCATROOT'} : '/opt/xcat';
}
use lib "$::XCATROOT/lib/perl";
use strict;
use warnings;
use File::Path;
use File::Copy;
use File::Find;
use Getopt::Long;
use Data::Dumper;
use File::Basename;
use xCAT::Table;
use xCAT::Utils;
use xCAT::MsgUtils;
1;
#-----------------------------------------------------------------------------
=head3 initCFMdir
Initialize CFM directories and files. The default layout under cfmdir is:
.
|-- etc
| |-- group.merge -> /etc/group.merge
| |-- hosts -> /etc/hosts
| |-- passwd.merge -> /etc/passwd.merge
| |-- shadow.merge -> /etc/shadow.merge
|-- group.OS -> /etc/group.OS
|-- passwd.OS -> /etc/passwd.OS
|-- shadow.OS -> /etc/shadow.OS
Note: the *.OS files are the backups for the original /etc/passwd, shadow, group files
Arguments:
$cfmdir
Returns:
0 - initialize successfully
1 - initialize failed
Globals:
none
Error:
none
Example:
xCAT::CFMUtils->initCFMdir($cfmdir);
=cut
#-----------------------------------------------------------------------------
sub initCFMdir
{
my ($class, $cfmdir) = @_;
# below system files will be synced to all compute nodes
my @sysfiles = ("/etc/hosts");
# the /etc/passwd, shadow, group files will be merged
my @userfiles = ("/etc/passwd", "/etc/shadow", "/etc/group");
# create the cfmdir
if (! -d $cfmdir)
{
mkpath $cfmdir;
}
# backup the OS files and create links under cfmdir
foreach my $file (@userfiles)
{
my $backup = $file.".OS";
if (! -e $backup)
{
copy($file, $backup);
}
if (! -e "$cfmdir/".basename($backup))
{
symlink($backup, "$cfmdir/".basename($backup));
}
}
# Initialize CFM directory and related files
if (! -d "$cfmdir/etc")
{
mkpath "$cfmdir/etc";
}
# link the system files
foreach my $file (@sysfiles)
{
symlink($file, "$cfmdir/$file");
}
# touch and link the merge files for /etc/passwd, shadow, group
foreach my $file (@userfiles)
{
my $merge = $file.".merge";
if (! -e "$merge")
{
xCAT::Utils->runcmd("touch $merge", -1);
}
if (! -e "$cfmdir/$merge")
{
symlink($merge, "$cfmdir/$merge");
}
}
}
#-----------------------------------------------------------------------------
=head3 updateUserInfo
Update the /etc/passwd, shadow, group merge files under specified CFM directory
Arguments:
$cfmdir - CFM directory for osimage
Returns:
0 - update successfully
1 - update failed
Globals:
$::CALLBACK
Error:
none
Example:
my $ret = xCAT::CFMUtils->updateUserInfo($cfmdir);
=cut
#-----------------------------------------------------------------------------
sub updateUserInfo {
my ($class, $cfmdir) = @_;
my @userfiles = ("/etc/passwd", "/etc/shadow", "/etc/group");
my @osfiles = glob("$cfmdir/*.OS");
if (!@osfiles)
{
if ($::VERBOSE)
{
my $rsp = {};
$rsp->{data}->[0] = "Skiping the update of the /etc/passwd, shadow, group merge files under the CFM directory.";
xCAT::MsgUtils->message("I", $rsp, $::CALLBACK);
}
return 0;
}
foreach my $file (@userfiles)
{
my @oldrecords = ();
my @newrecords = ();
my $backup = basename($file).".OS";
# get the records from /etc/passwd, shadow, group file and backup files(.OS files)
# and all the files from /install/osimages/$imgname/cfmdir directory
foreach my $userinfo ($file, "$cfmdir/$backup")
{
my $fp;
open($fp, $userinfo);
my @records = ();
while (<$fp>)
{
my $line = xCAT::CFMUtils->trim($_);
if (($line =~ /^#/) || ($line =~ /^\s*$/ ))
{ #comment line or blank line
next;
} else
{
push @records, $line;
}
}
close($fp);
# check the records from /etc/passwd, shadow, group file or backup
if ($userinfo =~ /^\/etc/ )
{
@newrecords = @records;
} else {
@oldrecords = @records;
}
}
# update the merge file
my $mergefile = $cfmdir."/".$file.".merge";
my @diff = xCAT::CFMUtils->arrayops("D", \@newrecords, \@oldrecords);
# output the diff to merge files
my $fp;
open($fp, '>', $mergefile);
if (@diff)
{
for my $record (@diff)
{
# skip to add ROOT relative records into MERGE file
if ($record =~ /^root/)
{
next;
}
print $fp "$record\n";
}
}
close ($fp);
}
return 0;
}
#-----------------------------------------------------------------------------
=head3 setCFMSynclistFile
Set osimage synclists attribute for CFM function, the CMF synclist file is:
/install/osimages/<imagename>/synclist.cfm
Arguments:
$imagename - the specified osimage name
Returns:
It returns the cfmdir path if it is defined for an osimage object
Globals:
$::CALLBACK
Error:
none
Example:
my $cfmdir = xCAT::CFMUtils->setCFMSynclistFile($imagename);
if ($cfmdir) { # update the CFM synclist file }
=cut
#-----------------------------------------------------------------------------
sub setCFMSynclistFile {
my ($class, $img) = @_;
my $cfmdir;
my $synclists;
my $cfmsynclist = "/install/osimages/$img/synclist.cfm";
# get the cfmdir and synclists attributes
my $osimage_t = xCAT::Table->new('osimage');
my $records = $osimage_t->getAttribs({imagename=>$img}, 'cfmdir', 'synclists');
if (defined ($records->{'cfmdir'}))
{
$cfmdir = $records->{'cfmdir'};
if (defined ($records->{'synclists'})) {$synclists = $records->{'synclists'}}
} else {
# no cfmdir defined, return directly
return 0;
}
my $found = 0;
my $index = 0;
if ($synclists)
{
# the synclists is a comma separated list
my @lists = split(/,/, $synclists);
foreach my $synclist (@lists)
{
# find the synclist configuration for CFM
if ($synclist eq $cfmsynclist)
{
$found = 1;
last;
}
$index += 1;
}
if ($found == 0)
{
# the CFM synclist is not defined, append it to $synclists
$synclists = "$synclists,$cfmsynclist";
# set the synclists attribute
$osimage_t->setAttribs({imagename=>$img}, {'synclists' => $synclists});
}
} else {
# no synclists defined, set it to CFM synclist file
if ($cfmdir) { $synclists = $cfmsynclist; }
$osimage_t->setAttribs({imagename=>$img}, {'synclists' => $synclists});
}
return $cfmdir;
}
#-----------------------------------------------------------------------------
=head3 updateCFMSynclistFile
Update the synclist file(/install/osimages/<imagename>/synclist.cfm) for CFM function.
It will recursively scan the files under cfmdir directory and then add them to CFM synclist file.
Note:
The files with suffix ".append" will be appended to the dest file(records in "APPEND:" section).
The files with suffix ".merge" will be merged to the dest file(records in "MERGE:" section).
In addition, it will reserve the user specified records in the synclist file. The example synclist file:
<cfmdir>/etc/hosts -> /etc/hosts
/root/install.log -> /tmp/install.log
...
APPEND:
<cfmdir>/etc/hosts.append -> /etc/hosts
/root/install.log.syslog -> /tmp/install.log
...
EXECUTE:
...
EXECUTEALWAYS:
...
MERGE:
<cfmdir>/etc/group.merge -> /etc/group
<cfmdir>/etc/shadow.merge -> /etc/shadow
<cfmdir>/etc/passwd.merge -> /etc/passwd
Arguments:
\@imagenames - reference to the osimage names array
Returns:
0 - update successfully
1 - update failed
Globals:
$::CALLBACK
Error:
none
Example:
my $ret = CAT::CFMUtils->updateCFMSynclistFile(\@imagenames);
=cut
#-----------------------------------------------------------------------------
sub updateCFMSynclistFile {
my ($class, $imgs) = @_;
my @osimgs = @$imgs;
if (!@osimgs)
{
my $rsp = {};
$rsp->{error}->[0] = "No osimage names specified to process.";
xCAT::MsgUtils->message("E", $rsp, $::CALLBACK);
return 1;
}
foreach my $osimg (@osimgs)
{
my $cfmdir;
$cfmdir = xCAT::CFMUtils->setCFMSynclistFile($osimg);
if ($cfmdir) # check for /install/osiamges/$osimg/cfmdir
{
my $cfmsynclist = "/install/osimages/$osimg/synclist.cfm";
if (! -d $cfmdir)
{
# skip this one go on to the next image, nothing to do for
# CFMUtils in this image
next;
}
# create the parent directory of CFM synclist file
if (! -d dirname($cfmsynclist))
{
mkpath dirname($cfmsynclist);
}
# update /etc/passwd, shadow, group merge files
my $ret = xCAT::CFMUtils->updateUserInfo($cfmdir);
if ($ret !=0 )
{
my $rsp = {};
$rsp->{error}->[0] =
"Update /etc/passwd, shadow, group merge files failed.";
xCAT::MsgUtils->message("E", $rsp, $::CALLBACK);
return 1;
}
# recursively list the files under cfm directory
my @files = ();
find ( { wanted => sub { push @files, $File::Find::name if -f }, follow => 1 }, $cfmdir);
if (!@files) # not files under cfm directory, skip to next loop
{
next;
}
my $fp;
open($fp, '>', $cfmsynclist);
my @mergefiles = ();
my @appendfiles = ();
foreach my $file (@files)
{
my $name = basename($file);
#TODO: find a better way to get the suffix
my $suffix = ($name =~ m/([^.]+)$/)[0];
my $dest = substr($file, length($cfmdir));
if ($suffix eq "OS") # skip the backup files
{
next;
} elsif ($suffix eq "merge") # merge file
{
push(@mergefiles, $file);
} elsif ($suffix eq "append") { # append file
push(@appendfiles, $file);
} else { # output the syncing files maintained by CFM
print $fp "$file -> $dest\n";
}
}
# output the APPEND records maintained by CFM
if (@appendfiles) {
print $fp "APPEND:\n";
}
foreach my $file (@appendfiles)
{
my $dest = substr($file, length($cfmdir), length($file) - length(".append") - length($cfmdir));
print $fp "$file -> $dest\n";
}
# output the MERGE records maintained by CFM
if (@mergefiles) {
print $fp "MERGE:\n";
}
foreach my $file (@mergefiles)
{
my @userfiles = ("/etc/passwd", "/etc/shadow", "/etc/group");
my $dest = substr($file, length($cfmdir), length($file) - length(".merge") - length($cfmdir));
# only /etc/passwd, /etc/shadow, /etc/groups merging is supported
if (grep(/$dest/, @userfiles)) {
print $fp "$file -> $dest\n";
}
}
# close the file
close($fp);
}
}
return 0;
}
#-----------------------------------------------------------------------------
=head3 setCFMPkglistFile
Set the pkglist attribute of linuximage object for CFM function
Arguments:
$imagename - the specified linuximage name
Returns:
0 - update successfully
1 - update failed
Globals:
$::CALLBACK
Error:
none
Example:
my $ret = xCAT::CFMUtils->setCFMPkglistFile($imagename);
=cut
#-----------------------------------------------------------------------------
sub setCFMPkglistFile {
my ($class, $img) = @_;
my $pkglists = "";
my $cfmpkglist = "/install/osimages/$img/pkglist.cfm";
# get the pkglist files
my $linuximage_t = xCAT::Table->new('linuximage');
my $records = $linuximage_t->getAttribs({imagename => $img}, 'pkglist');
if ($records)
{
if ($records->{'pkglist'}) { $pkglists = $records->{'pkglist'}; }
} else
{
if ($::VERBOSE)
{
my $rsp = {};
$rsp->{data}->[0] = "There are no records for pkglist attribute in the linuximage:$img. There is nothing to process.";
xCAT::MsgUtils->message("I", $rsp, $::CALLBACK);
}
}
my $found = 0;
if ($pkglists)
{
foreach my $pkglist (split(/,/, $pkglists))
{
if ($pkglist eq $cfmpkglist) # the pkglist file for CFM is found, exit the loop
{
$found = 1;
last;
}
}
# the pkglist file for CFM is not found, append it to $pkglits
if (!$found)
{
$pkglists = "$pkglists,$cfmpkglist";
# set the pkglist attribute for linuximage
$linuximage_t->setAttribs({imagename => $img}, {'pkglist' => $pkglists});
}
} else
{
# the pkglist file for linuximage is not defined, set it to $cfmpkglist
$pkglists = $cfmpkglist;
$linuximage_t->setAttribs({imagename => $img}, {'pkglist' => $pkglists});
}
return 0;
}
#-----------------------------------------------------------------------------
=head3 updateCFMPkglistFile
Update the ospkglist file
Arguments:
$imagename - the specified linuximage name
@curospkgs - the currently selected OS packages list
Returns:
0 - update successfully
1 - update failed
Globals:
none
Error:
none
Example:
my $ret = CAT::CFMUtils->updateCFMPkglistFile($imagename, @cur_selected_pkgs);
=cut
#-----------------------------------------------------------------------------
sub updateCFMPkglistFile {
my ($class, $img, $ospkgs) = @_;
my @cur_selected = @$ospkgs;
my $cfmpkglist = "/install/osimages/$img/pkglist.cfm";
my $ret = xCAT::CFMUtils->setCFMPkglistFile($img);
if ($ret)
{
my $rsp = {};
$rsp->{error}->[0] = "Set pkglist attribute for CFM failed.";
xCAT::MsgUtils->message("E", $rsp, $::CALLBACK);
return 1;
}
# check the parent directory of cfmpkglist file
if (! -d dirname($cfmpkglist))
{
mkpath dirname($cfmpkglist);
}
# get previous selected and removed OS packages list from pkglist file
my ($pre_selected_ref, $pre_removed_ref) = xCAT::CFMUtils->getPreOSpkgsList($cfmpkglist);
my @pre_selected = @$pre_selected_ref;
my @pre_removed = @$pre_removed_ref;
# get the #INCLUDE file from cfmpkglist file
my @incfiles = xCAT::CFMUtils->getIncludefiles($cfmpkglist);
# get the packages list in the #INCLUDE files
my @basepkgs = ();
foreach my $inc (@incfiles)
{
my ($selected_ref, $removed_ref) = xCAT::CFMUtils->getPreOSpkgsList($inc);
my @selected = @$selected_ref;
@basepkgs = xCAT::CFMUtils->arrayops("U", \@basepkgs, \@selected);
}
# get diff between previous and current selected OS packages lists
my @diff = xCAT::CFMUtils->getPkgsDiff(\@pre_selected, \@cur_selected);
# merge the diff to previous removed OS packages list
my @all_removed = xCAT::CFMUtils->arrayops("U", \@pre_removed, \@diff);
# get the rollbacked OS packages list, the packages are existing in both removed and selected lists
# if so, we should remove the rollbacked OS packages from removed list
my @rollback = xCAT::CFMUtils->arrayops("I", \@all_removed, \@cur_selected);
my @cur_removed = xCAT::CFMUtils->arrayops("D", \@all_removed, \@rollback);
# remove the BASE packages from selected pakages
@basepkgs = xCAT::CFMUtils->arrayops("I", \@basepkgs, \@cur_selected);
@cur_selected = xCAT::CFMUtils->arrayops("D", \@cur_selected, \@basepkgs);
# update the pkglist file
my $fp;
open($fp, '>', $cfmpkglist);
foreach my $inc (@incfiles)
{
print $fp "#INCLUDE:$inc#\n";
}
# the pacakges be installed
if (@cur_selected)
{
foreach my $pkg (@cur_selected)
{
print $fp "$pkg\n";
}
}
# the packages be removed
if (@cur_removed)
{
foreach my $pkg (@cur_removed)
{
print $fp "-$pkg\n";
}
}
# close the file
close($fp);
return 0;
}
#-----------------------------------------------------------------------------
=head3 getPreOSpkgsList
Get previously selected and removed OS packages lists from pkglist file
Arguments:
$ospkglist - the path for ospkglist file
Returns:
refs for selected and removed OS packages arrays
Globals:
none
Error:
none
Example:
my ($pre_selected_ref, $pre_removed_ref) = xCAT::CFMUtils->getPreOSpkgsList($ospkglist);
my @pre_selected = @$pre_selected_ref;
my @pre_removed = @$pre_removed_ref;
=cut
#-----------------------------------------------------------------------------
sub getPreOSpkgsList {
my ($class, $pkglist) = @_;
my @selected = ();
my @removed = ();
my @pkglistfiles = ();
# get the #INCLUDE file from cfmpkglist file
my @incfiles = xCAT::CFMUtils->getIncludefiles($pkglist);
foreach my $inc (@incfiles)
{
push @pkglistfiles, $inc;
}
# assume the #INCLUDE file includes the BASE packages
push @pkglistfiles, $pkglist;
foreach my $file (@pkglistfiles)
{
my $pkglistfp;
open($pkglistfp, xCAT::CFMUtils->trim($file));
while (<$pkglistfp>)
{
my $line = xCAT::CFMUtils->trim($_);
if (($line =~ /^#/) || ($line =~ /^\s*$/ ) || ($line =~ /^@/))
{ #comment line or blank line
next;
} else
{
if ($line =~ /^-/)
{ # the package be removed
push @removed, substr($line, 1);
} else
{ # the package be installed
push @selected, $line;
}
}
}
close($pkglistfp);
}
# delete the removed packages from selected list
my @intersection = xCAT::CFMUtils->arrayops("I", \@removed, \@selected);
@selected = xCAT::CFMUtils->arrayops("D", \@selected, \@intersection);
return (\@selected, \@removed);
}
#-----------------------------------------------------------------------------
=head3 getPkgsDiff
Get the differences between previous and current packages list
Arguments:
@pre - previous selected packages list
@cur - current selected packages list
Returns:
@diff - the differencen list
Globals:
none
Error:
none
Example:
my @diff = xCAT::CFMUtils->getPkgsDiff(\@pre_selected, \@cur_selected);
=cut
#-----------------------------------------------------------------------------
sub getPkgsDiff {
my ($class, $pre, $cur) = @_;
# get the intersection firstly
my @tmp = xCAT::CFMUtils->arrayops("I", \@$pre, \@$cur);
# get the difference
my @diff = xCAT::CFMUtils->arrayops("D", \@$pre, \@tmp);
#print Dumper(@diff);
return @diff;
}
#-----------------------------------------------------------------------------
=head3 getIncludefiles
Get the #INCLUDE files from the given file
Arguments:
$file - the given file
Returns:
@files - the #INCLUDE files list
Globals:
none
Error:
none
Example:
my @diff = xCAT::CFMUtils->getIncludefiles($file);
=cut
#-----------------------------------------------------------------------------
sub getIncludefiles {
my ($class, $file) = @_;
my @files = ();
my $fp;
open($fp, $file);
while (<$fp>)
{
my $line = xCAT::CFMUtils->trim($_);
if ($line =~ /^\s*$/)
{ # blank line
next;
}
# find the #INCLUDE line
if ($line =~ /^\s*#INCLUDE:[^#^\n]+#/)
{
#print "The line is: [$line]\n";
my $incfile = substr($line, length("#INCLUDE:"), length($line)-length("#INCLUDE:")-1);
push @files, $incfile;
}
}
close($fp);
return @files;
}
#-----------------------------------------------------------------------------
=head3 trim
Strip left and right whitspaces for a string
Arguments:
$string
Returns:
@string
Globals:
none
Error:
none
Example:
my @new_string = xCAT::CFMUtils->trim($string);
=cut
#-----------------------------------------------------------------------------
sub trim {
my ($class, $string) = @_;
# trim the left whitespaces
$string =~ s/^\s*//;
# trim the right whitespaces
$string =~ s/\s*$//;
return $string;
}
# Function: compute Union, Intersection or Difference of unique lists
# Usage: arrayops ("U"/"I"/"D", @a, @b)
# Return: @union/@intersection/@difference
#-----------------------------------------------------------------------------
=head3 arrayops
Compute Union/Intersection/Difference for 2 unique lists
Arguments:
$flag - "U"/"I"/"D"
\@array1 - reference to an arrary
\@array2 - reference to an arrary
Returns:
@union/@intersection/@difference
Globals:
none
Error:
none
Example:
my @array = xCAT::CFMUtils->arrayops(\@array1, \@array2);
=cut
#-----------------------------------------------------------------------------
sub arrayops {
my ($class, $ops, $array1, $array2) = @_;
my @union = ();
my @intersection = ();
my @difference = ();
my %count = ();
foreach my $element (@$array1, @$array2)
{
$count{$element}++
}
foreach my $element (keys %count) {
push @union, $element;
push @{ $count{$element} > 1 ? \@intersection : \@difference }, $element;
}
if ($ops eq "U") { return @union; }
if ($ops eq "I") { return @intersection; }
if ($ops eq "D") { return @difference; }
#return (\@union, \@intersection, \@difference);
}
+99 -40
View File
@@ -9,10 +9,7 @@ BEGIN
# if AIX - make sure we include perl 5.8.2 in INC path.
# Needed to find perl dependencies shipped in deps tarball.
if ($^O =~ /^aix/i) {
use lib "/usr/opt/perl5/lib/5.8.2/aix-thread-multi";
use lib "/usr/opt/perl5/lib/5.8.2";
use lib "/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi";
use lib "/usr/opt/perl5/lib/site_perl/5.8.2";
unshift(@INC, qw(/usr/opt/perl5/lib/5.8.2/aix-thread-multi /usr/opt/perl5/lib/5.8.2 /usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi /usr/opt/perl5/lib/site_perl/5.8.2));
}
my $inet6support;
@@ -27,6 +24,15 @@ if ($inet6support) {
if ($inet6support) {
$inet6support = eval { require IO::Socket::SSL; IO::Socket::SSL->import('inet6'); 1;};
}
if ($^O =~ /^linux/i) {
# Is IPv6 enabled on the MN or xcat client node at all?
my $ipv6enabled = `ip addr | grep inet6`;
if (!$ipv6enabled) {
$inet6support = 0;
}
}
unless ($inet6support) {
eval { require Socket };
eval { require IO::Socket::INET };
@@ -119,7 +125,7 @@ sub submit_request {
unless ($cafile) { $cafile = $homedir."/.xcat/ca.pem"; }
$xCAT::Client::EXITCODE = 0; # clear out exit code before invoking the plugin
if (ref($request) eq 'HASH') { # the request is an array, not pure XML
$request->{clienttype}->[0] = "cli"; # setup clienttype for auditlog
$request->{clienttype}->[0] = "cli"; # setup clienttype for auditlog
}
# If XCATBYPASS is set, invoke the plugin process_request method directly
# without going through the socket connection to the xcatd daemon
@@ -129,6 +135,7 @@ if (ref($request) eq 'HASH') { # the request is an array, not pure XML
if (!(defined($request->{username}))) {
$request->{username}->[0] = getpwuid($>);
}
# only allow root to run
unless ($request->{username}->[0] =~ /root/) {
print ("WARNING: Only allow root to run XCATBYPASS mode, your current user ID is $request->{username}->[0].\n");
@@ -146,14 +153,16 @@ if (ref($request) eq 'HASH') { # the request is an array, not pure XML
}
} else {
# figure out default plugins dir
my $sitetab=xCAT::Table->new('site');
unless ($sitetab) {
print ("ERROR: Unable to open basic site table for configuration\n");
}
#my $sitetab=xCAT::Table->new('site');
#unless ($sitetab) {
# print ("ERROR: Unable to open basic site table for configuration\n");
#}
$plugins_dir=$::XCATROOT.'/lib/perl/xCAT_plugin';
scan_plugins();
}
populate_site_hash();
# don't do XML transformation -- assume request is well-formed
# my $xmlreq=XMLout($request,RootName=>xcatrequest,NoAttr=>1,KeyAttr=>[]);
# $request = XMLin($xmlreq,SuppressEmpty=>undef,ForceArray=>1) ;
@@ -170,11 +179,28 @@ if (ref($request) eq 'HASH') { # the request is an array, not pure XML
if ($ENV{XCATHOST}) {
$xcathost=$ENV{XCATHOST};
}
my %connargs=();
if ($xcathost =~ s/%([^\]|:]*)//) {
$connargs{PeerScope} = $1;
}
$connargs{PeerAddr} = $xcathost;
$connargs{Timeout} = 15;
if ($connargs{PeerScope} and $connargs{PeerScope} =~ /[a-zA-Z]/) { #non-numeric, need to translate...
my @ipdata = `ip link`;
@ipdata = grep(/[^@]$connargs{PeerScope}(:|@)/,@ipdata);
if (scalar(@ipdata) != 1) {
print STDERR "Unable to identify scope ".$connargs{PeerScope}."\n";
exit(1);
}
$connargs{PeerScope} = $ipdata[0];
$connargs{PeerScope} =~ s/:.*//;
}
my $pclient;
if ($inet6support) {
$pclient = IO::Socket::INET6->new(
PeerAddr => $xcathost,
Timeout => 15,
$pclient = IO::Socket::INET6->new(
%connargs,
);
} else {
$pclient = IO::Socket::INET->new(
@@ -198,12 +224,12 @@ if (ref($request) eq 'HASH') { # the request is an array, not pure XML
SSL_cert_file => $certfile,
SSL_ca_file => $cafile,
SSL_use_cert => 1,
Timeout => 0,
);
Timeout => 0,
);
} else {
$client = IO::Socket::SSL->start_SSL($pclient,
Timeout => 0,
);
$client = IO::Socket::SSL->start_SSL($pclient,
Timeout => 0,
);
}
unless ($client) {
print "Unable to open socket connection to xcatd daemon on $xcathost.\n";
@@ -286,6 +312,7 @@ if (ref($request) eq 'HASH') { # the request is an array, not pure XML
$massresponse="";
unless ($cleanexit) {
print STDERR "ERROR/WARNING: communication with the xCAT server seems to have been ended prematurely\n";
$xCAT::Client::EXITCODE = 1;
}
sub validateXML {
@@ -373,7 +400,6 @@ sub plugin_command {
my $callback = shift;
my %handler_hash;
my $usesiteglobal = 0;
# We require these only in bypass mode to reduce start up time for the normal case
#use lib "$::XCATROOT/lib/perl";
#use xCAT::NodeRange;
@@ -407,11 +433,6 @@ sub plugin_command {
unless (@nodes) {
$req->{emptynoderange} = [1];
}
if(@nodes == 0 ) {
print "No nodes or noderanges specified\n";
return 1;
}
}
if (@nodes) { $req->{node} = \@nodes; }
my %unhandled_nodes;
@@ -429,17 +450,18 @@ sub plugin_command {
if ($hdlspec =~ /^site:/) { #A site entry specifies a plugin
my $sitekey = $hdlspec;
$sitekey =~ s/^site://;
$sitetab = xCAT::Table->new('site');
my $sent = $sitetab->getAttribs({key=>$sitekey},['value']);
if ($sent and $sent->{value}) { #A site style plugin specification is just like
#$sitetab = xCAT::Table->new('site');
#my $sent = $sitetab->getAttribs({key=>$sitekey},['value']);
#if ($sent and $sent->{value}) { #A site style plugin specification is just like
if ($::XCATSITEVALS{$sitekey}) { #A site style plugin specification is just like
#a static global, it grabs all nodes rather than some
$useglobals = -1; #If they tried to specify anything, don't use the default global handlers at all
unless (@nodes) {
$handler_hash{$sent->{value}} = 1;
$handler_hash{$::XCATSITEVALS{$sitekey}} = 1;
$usesiteglobal = 1;
}
foreach (@nodes) { #Specified a specific plugin, not a table lookup
$handler_hash{$sent->{value}}->{$_} = 1;
$handler_hash{$::XCATSITEVALS{$sitekey}}->{$_} = 1;
}
}
} elsif ($hdlspec =~ /:/) { #Specificed a table lookup path for plugin name
@@ -538,7 +560,8 @@ sub plugin_command {
}
} #Otherwise, global handler is implicitly disabled
} else {
return 1; #TODO: error back that request has no known plugin for it
print "Error request: $req->{command}->[0] has no known plugin for it.\n";
return 1;
}
if ($useunhandled) {
my $queuelist;
@@ -602,7 +625,10 @@ sub plugin_command {
no strict "refs";
# eval { #REMOVEEVALFORDEBUG
# if ($dispatch_requests) {
dispatch_request($req,$callback,$modname);
# backup the original req and recover it after the a run
my $org_req = {%$req};
dispatch_request($req,$callback,$modname);
$req = {%$org_req};
# } else {
# $SIG{CHLD}='DEFAULT';
# ${"xCAT_plugin::".$modname."::"}{process_request}->($req,$callback,\&do_request);
@@ -723,7 +749,7 @@ sub dispatch_request {
if (ref $_->{'_xcatdest'} and (ref $_->{'_xcatdest'}) eq 'ARRAY') {
_->{'_xcatdest'} = $_->{'_xcatdest'}->[0];
}
if ($onlyone and not ($_->{'_xcatdest'} and xCAT::Utils->thishostisnot($_->{'_xcatdest'}))) {
if ($onlyone and not ($_->{'_xcatdest'} and xCAT::NetworkUtils->thishostisnot($_->{'_xcatdest'}))) {
$SIG{CHLD}='DEFAULT';
${"xCAT_plugin::".$modname."::"}{process_request}->($_,$dispatch_cb,\&do_request);
return;
@@ -764,7 +790,7 @@ sub dispatch_request {
my $request_satisfied=0;
foreach $xcatdest (@xcatdests) {
my $dlock;
if ($xcatdest and xCAT::Utils->thishostisnot($xcatdest)) {
if ($xcatdest and xCAT::NetworkUtils->thishostisnot($xcatdest)) {
#----- added to Client.pm -----#
$dispatch_cb->({warning=>['XCATBYPASS is set, skipping hierarchy call to '.$_->{'_xcatdest'}.'']});
#----- end added to Client.pm -----#
@@ -895,11 +921,28 @@ sub build_response {
} # end of submit_request()
####################################
# populates all the site attributes into %::XCATSITEVALS
# This is used with XCATBYPASS=1
###################################
sub populate_site_hash {
%::XCATSITEVALS=();
my $sitetab = xCAT::Table->new('site',-create=>0);
unless ($sitetab) {
print ("ERROR: Unable to open basic site table for configuration\n");
return;
}
my @records = $sitetab->getAllAttribs(qw/key value/);
foreach (@records) {
$::XCATSITEVALS{$_->{key}}=$_->{value};
}
}
##########################################
# handle_response is a default callback that can be passed into submit_response()
# It is invoked repeatedly by submit_response() to print out the data returned by
# handle_response is a default callback that can be passed into submit_request()
# It is invoked repeatedly by submit_request() to print out the data returned by
# the plugin.
#
# The normal flow is:
@@ -979,14 +1022,14 @@ sub build_response {
##########################################
sub handle_response {
my $rsp = shift;
if ($ENV{'XCATSHOWXML'}) {
if ($ENV{'XCATSHOWXML'}) {
my $xmlrec=XMLout($rsp,RootName=>'xcatresponse',NoAttr=>1,KeyAttr=>[]);
print "$xmlrec\n";
return;
}
#print "in handle_response\n";
# Handle errors
if ($rsp->{errorcode}) {
if (defined($rsp->{errorcode})) {
if (ref($rsp->{errorcode}) eq 'ARRAY') {
foreach my $ecode (@{$rsp->{errorcode}}) {
$xCAT::Client::EXITCODE |= $ecode;
@@ -1000,22 +1043,38 @@ sub handle_response {
#print "printing error\n";
if (ref($rsp->{error}) eq 'ARRAY') {
foreach my $text (@{$rsp->{error}}) {
print STDERR "Error: $text\n";
if ($rsp->{NoErrorPrefix}) {
print STDERR "$text\n";
} else {
print STDERR "Error: $text\n";
}
}
}
else {
print ("Error: ".$rsp->{error}."\n");
if ($rsp->{NoErrorPrefix}) {
print STDERR ($rsp->{error}."\n");
} else {
print STDERR ("Error: ".$rsp->{error}."\n");
}
}
}
if ($rsp->{warning}) {
#print "printing warning\n";
if (ref($rsp->{warning}) eq 'ARRAY') {
foreach my $text (@{$rsp->{warning}}) {
print STDERR "Warning: $text\n";
if ($rsp->{NoWarnPrefix}) {
print STDERR "$text\n";
} else {
print STDERR "Warning: $text\n";
}
}
}
else {
print ("Warning: ".$rsp->{warning}."\n");
if ($rsp->{NoWarnPrefix}) {
print STDERR ($rsp->{warning}."\n");
} else {
print STDERR ("Warning: ".$rsp->{warning}."\n");
}
}
}
if ($rsp->{info}) {
+11 -13
View File
@@ -8,6 +8,7 @@ use File::stat;
use File::Copy;
use xCAT::Usage;
use Thread qw/yield/;
use Storable qw/store_fd fd_retrieve/;
BEGIN
{
@@ -29,19 +30,18 @@ sub forward_data {
my $rfh;
my $rc = @ready_fds;
foreach $rfh (@ready_fds) {
my $data;
if ($data = <$rfh>) {
while ($data !~ /ENDOFFREEZE6sK4ci/) {
$data .= <$rfh>;
}
my $responses;
eval {
$responses = fd_retrieve($rfh);
};
if ($@ and $@ =~ /^Magic number checking on storable file/) { #this most likely means we ran over the end of available input
$fds->remove($rfh);
close($rfh);
} else {
eval { print $rfh "ACK\n"; }; #Ignore ack loss due to child giving up and exiting, we don't actually explicitly care about the acks
my $responses=thaw($data);
foreach (@$responses) {
$callback->($_);
}
} else {
$fds->remove($rfh);
close($rfh);
}
}
yield(); #Try to avoid useless iterations as much as possible
@@ -62,8 +62,7 @@ sub send_data {
foreach(@_) {
my %output;
if (ref($_) eq HASH) {
print $out freeze([$_]);
print $out "\nENDOFFREEZE6sK4ci\n";
store_fd([$_],$out);
yield();
waitforack($out);
next;
@@ -97,8 +96,7 @@ sub send_data {
} else {
$output{node}->[0]->{data}->[0]->{contents}->[0]=$text;
}
print $out freeze([\%output]);
print $out "\nENDOFFREEZE6sK4ci\n";
store_fd([\%output],$out);
yield();
waitforack($out);
}
Regular → Executable
+238 -16
View File
@@ -16,6 +16,7 @@ require xCAT::Table;
require xCAT::Utils;
require xCAT::MsgUtils;
require xCAT::NetworkUtils;
require xCAT::ServiceNodeUtils;
use strict;
# IPv6 not yet implemented - need Socket6
@@ -56,7 +57,7 @@ sub getObjectsOfType
# The database may be changed between getObjectsOfType calls
# do not use cache %::saveObjList if --nocache is specified
if ($::saveObjList{$type} && !$::opt_c)
if ($::saveObjList{$type} && !$::opt_nc)
{
@objlist = @{$::saveObjList{$type}};
}
@@ -199,7 +200,8 @@ sub getobjattrs
# list of object names
foreach my $table (keys %tableattrs) {
# open the table
my $thistable = xCAT::Table->new($table, -create => 1, -autocommit => 0);
# with autocommit => 0, it does not work on Ubuntu running mysql
my $thistable = xCAT::Table->new($table, -create => 1, -autocommit => 1);
if (!$thistable) {
my $rsp;
$rsp->{data}->[0] = "Could not open the \'$table\' table.";
@@ -395,6 +397,44 @@ sub getobjdefs
xCAT::MsgUtils->message("E", $rsp, $::callback);
}
}
} elsif (($objtype eq 'auditlog') || ($objtype eq 'eventlog')) {
# Special case for auditlog/eventlog
# All the auditlog/eventlog attributes are in auditlog/eventlog table,
# Do not need to read the table multiple times for each attribute.
# The auditlog/eventlog is likely be very big over time,
# performance is a big concern with the general logic
my @TableRowArray = xCAT::DBobjUtils->getDBtable($objtype);
foreach my $objname (sort @{$type_obj{$objtype}}) {
if (@TableRowArray)
{
my $foundinfo = 0;
foreach my $entry (@TableRowArray)
{
if ($entry->{recid} eq $objname)
{
foreach my $k (keys %{$entry})
{
# recid is the object name, do not need to be in the attributes list
if ($k eq 'recid') { next; }
if (defined($entry->{$k}) ) {
$foundinfo++;
if ($verbose == 1) {
$objhash{$objname}{$k} = "$entry->{$k}\t(Table:$objtype - Key:$k)";
} else {
$objhash{$objname}{$k} = $entry->{$k};
}
}
}
if ($foundinfo)
{
$objhash{$objname}{'objtype'} = $objtype;
}
# There should not be multiple entries with the same recid
last;
} # end if($entry->
} # end foreach my $entry
} # end if(@TableTowArray
} # end foreach my $objname
} else {
# get the object type decription from Schema.pm
my $datatype = $xCAT::Schema::defspec{$objtype};
@@ -567,7 +607,7 @@ sub getDBtable
# save this table info - in case this subr gets called multiple times
# --nocache flag specifies not to use cahe
if (grep(/^$table$/, @::foundTableList) && !$::opt_c)
if (grep(/^$table$/, @::foundTableList) && !$::opt_nc)
{
# already have this
@@ -1123,7 +1163,7 @@ sub setobjdefs
xCAT::MsgUtils->message("W", $rsp, $::callback);
} else {
my $rsp;
$rsp->{data}->[0] = "$em is not in the atrribute of \'$attr_name\' for the \'$objname\' definition.";
$rsp->{data}->[0] = "$em is not in the attribute of \'$attr_name\' for the \'$objname\' definition.";
xCAT::MsgUtils->message("W", $rsp, $::callback);
}
}
@@ -1640,7 +1680,14 @@ sub readFileInput
$look_for_colon = 0; # ok - we have a colon
($objectname, $junk2) = split(/:/, $l);
# Remove any trailing whitespace
$l =~ s/\s*$//;
# IPv6 network names could be something like fd59::/64
# Use all the characters before the last ":" as the object name
# .* means greedy regular expression
$l =~ /^(.*):(.*?)$/;
($objectname, $junk2) = ($1, $2);
# if $junk2 is defined or there's an =
if ($junk2 || grep(/=/, $objectname))
@@ -1956,15 +2003,18 @@ sub getNetwkInfo
if (xCAT::Utils->isMN() && !$nethash{$node}{'gateway'})
{
# does not have ip address in this subnet,
# use the node attribute 'xcatmaster'
my $noderestab = xCAT::Table->new('noderes');
my $et = $noderestab->getNodeAttribs($node, ['xcatmaster']);
if ($et and defined($et->{'xcatmaster'}))
{
my $value = $et->{'xcatmaster'};
$nethash{$node}{'gateway'} = xCAT::NetworkUtils->getipaddr($value);
}
$noderestab->close();
# use the node attribute 'xcatmaster' or site.master
my @nodes = ("$node");
my $sn = xCAT::ServiceNodeUtils->get_ServiceNode(\@nodes,"xcat","Node");
my $snkey = (keys %{$sn})[0];
my $gw = xCAT::NetworkUtils->getipaddr($snkey);
# two possible cases when this code is run:
# 1. flat cluster: ip forwarding is not enabled on MN
# 2. hw ctrl in hierarchy cluster, in which HCP SN is not set
# in either case, MN itself should not be the gateway
if (xCAT::NetworkUtils->thishostisnot($gw)) {
$nethash{$node}{'gateway'} = $gw;
}
}
}
@@ -2115,7 +2165,7 @@ sub getchildren
$::RUNCMD_RC = 1;
return undef;
}
my @ps = $ppctab->getAllNodeAttribs(['node','parent','nodetype']);
my @ps = $ppctab->getAllNodeAttribs(['node','parent','nodetype','hcp']);
foreach my $entry ( @ps ) {
my $p = $entry->{parent};
my $c = $entry->{node};
@@ -2126,13 +2176,19 @@ sub getchildren
# build hash of ppc.parent -> ppc.node
push @{$PPCHASH{$p}}, $c;
}
elsif ($t eq 'blade') {
push @{$PPCHASH{$c}}, $entry->{hcp};
}
} else { # go look in the nodetype table to find nodetype
my $type = getnodetype($c);
my $type = getnodetype($c, "ppc");
if ( $type eq 'fsp' or $type eq 'bpa')
{
# build hash of ppc.parent -> ppc.node
push @{$PPCHASH{$p}}, $c;
}
elsif ($type eq "blade") {
push @{$PPCHASH{$c}}, $entry->{hcp};
}
}
} # not $p and $c
}
@@ -2557,4 +2613,170 @@ sub judge_node
return $flag;
}
#-------------------------------------------------------------------------------
=head3 expandnicsattr
Expand the nics related attributes into the readable format,
for example, the nicsips=eth0!1.1.1.1|2.1.1.1,eth1!3.1.1.1|4.1.1.1
expanded format:
nicsips.eth0=1.1.1.1|2.1.1.1
nicsips.eth1=3.1.1.1|4.1.1.1
Arguments:
nicsattr value, like niccsips=eth0!1.1.1.1|2.1.1.1,eth1!3.1.1.1|4.1.1.1
nicnames: only return the value for specific nics, like "eth0,eth1"
Returns:
expanded format, like:
nicsips.eth0=1.1.1.1|2.1.1.1
nicsips.eth1=3.1.1.1|4.1.1.1
Error:
none
Example:
my $nicsstr = xCAT::DBobjUtils->expandnicsattr($attrval);
Comments:
none
=cut
#-------------------------------------------------------------------------------
sub expandnicsattr()
{
my $nicstr = shift;
if (($nicstr) && ($nicstr =~ /xCAT::/))
{
$nicstr = shift;
}
my $nicnames = shift;
my $ret;
$nicstr =~ /^(.*?)=(.*?)$/;
#Attribute: nicips, nichostnamesuffix, etc.
my $nicattr = $1;
# Value: eth0!1.1.1.1|2.1.1.1,eth1!3.1.1.1|4.1.1.1
my $nicval=$2;
# $nicarr[0]: eth0!1.1.1.1|2.1.1.1
# $nicarr[1]: eth1!3.1.1.1|4.1.1.1
my @nicarr = split(/,/, $nicval);
foreach my $nicentry (@nicarr)
{
#nicentry: eth0!1.1.1.1|2.1.1.1
# $nicv[0]: eth0
# $nicv[1]: 1.1.1.1|2.1.1.1
my @nicv = split(/!/, $nicentry);
# only return nic* attr for these specific nics
if ($nicnames)
{
my @nics = split(/,/, $nicnames);
if ($nicv[0])
{
# Do not need to return the nic attr for this nic
if (!grep(/^$nicv[0]$/, @nics))
{
next;
}
}
}
# ignore the line that does not have nicname or value
if ($nicv[0] && $nicv[1])
{
$ret .= " $nicattr.$nicv[0]=$nicv[1]\n";
}
}
chomp($ret);
return $ret;
}
#-------------------------------------------------------------------------------
=head3 collapsenicsattr
Collapse the nics related attributes into the database format,
for example,
nicsips.eth0=1.1.1.1|2.1.1.1
nicsips.eth1=3.1.1.1|4.1.1.1
the collapsed format:
nicsips=eth0!1.1.1.1|2.1.1.1,eth1!3.1.1.1|4.1.1.1
The collapse will be done against the hash %::FILEATTRS or %::CLIATTRS,
remove the nicips.thx attributes from %::FILEATTRS or %::CLIATTRS,
add the collapsed info nicips into %::FILEATTRS or %::CLIATTRS.
Arguments:
$::FILEATTRS{$objname} or $::CLIATTRS{$objname}
$objname
Returns:
None, update %::FILEATTRS or %::CLIATTRS directly
Error:
none
Example:
xCAT::DBobjUtils->collapsenicsattr($nodeattrhash);
Comments:
none
=cut
#-------------------------------------------------------------------------------
sub collapsenicsattr()
{
my $nodeattrhash = shift;
if (($nodeattrhash) && ($nodeattrhash =~ /xCAT::/))
{
$nodeattrhash = shift;
}
my $objname = shift;
my %nicattrs = ();
foreach my $nodeattr (keys %{$nodeattrhash})
{
# e.g nicips.eth0
# do not need to handle nic attributes without the postfix .ethx,
# it will be overwritten by the attributes with the postfix .ethx,
if ($nodeattr =~ /^(nic\w+)\.(\w+)$/)
{
if ($1 && $2)
{
# chdef <noderange> nicips.eth2= to remove the definition for eth2
# in this case, the $nodeattrhash->{'nicips.eth0'} is blank
if ($nodeattrhash->{$nodeattr})
{
# $nicattrs{nicips}{eth0} = "1.1.1.1|1.2.1.1"
$nicattrs{$1}{$2} = $nodeattrhash->{$nodeattr};
}
# remove nicips.eth0 from the %::FILEATTRS
delete $nodeattrhash->{$nodeattr};
}
}
}
# $nicattrs{'nicips'}{'eth0'} = "1.1.1.1|1.2.1.1"
# $nicattrs{'nicips'}{'eth1'} = "2.1.1.1|2.2.1.1"
foreach my $nicattr (keys %nicattrs)
{
my @tmparray = ();
foreach my $nicname (keys %{$nicattrs{$nicattr}})
{
# eth0!1.1.1.1|1.2.1.1
push @tmparray, "$nicname!$nicattrs{$nicattr}{$nicname}";
}
# eth0!1.1.1.1|1.2.1.1,eth1!2.1.1.1|2.2.1.1
$nodeattrhash->{$nicattr} = join(',', @tmparray);
}
}
1;
+1526 -364
View File
File diff suppressed because it is too large Load Diff
+110 -53
View File
@@ -159,6 +159,100 @@ no strict;
use strict;
}
#---------------------------------------------------------------------------
=head3
fork_output_for_commands
Forks a process for the given command array and returns the process
ID for the forked process and references to all I/O pipes for STDOUT
and STDERR. In the child process, it will invoke the xCAT::DSHCore->fork_no_output()
for the first command which is a no-output command and waitpid(). And then execute
the left commands in the child process.
Arguments:
$fork_id - unique identifer to use for tracking the forked process
@command - command and parameter array to execute in the forkec process
Returns:
$pid - process identifer for the forked process
Globals:
None
Error:
None
Example:
$pid = xCAT::DSHCore->fork_output_for_commands('hostname1PID', @command_array);
Comments:
=cut
#---------------------------------------------------------------------------
sub fork_output_for_commands
{
my ($class, $fork_id, @commands) = @_;
no strict;
my $pid;
my %pipes = ();
my $rout_fh = "rout_$fork_id";
my $rerr_fh = "rerr_$fork_id";
my $wout_fh = "wout_$fork_id";
my $werr_fh = "werr_$fork_id";
(pipe($rout_fh, $wout_fh) == -1) && return (-1, undef);
(pipe($rerr_fh, $werr_fh) == -1) && return (-2, undef);
if ($pid = fork)
{
close($wout_fh);
close($werr_fh);
}
elsif (defined $pid)
{
close($rout_fh);
close($rerr_fh);
!(open(STDOUT, ">&$wout_fh")) && return (-5, undef);
!(open(STDERR, ">&$werr_fh")) && return (-6, undef);
select(STDOUT);
$| = 1;
select(STDERR);
$| = 1;
if ( @commands > 1 ) {
my $command0 = shift(@commands);
my @exe_command0_process = xCAT::DSHCore->fork_no_output($fork_id, @$command0);
waitpid($exe_command0_process[0], undef);
}
my $t_command = shift(@commands);
my @command = @$t_command;
if (!(exec {$command[0]} @command))
{
return (-4, undef);
}
}
else
{
return (-3, undef);
}
return ($pid, *$rout_fh, *$rerr_fh, *$wout_fh, *$werr_fh);
use strict;
}
#---------------------------------------------------------------------------
=head3
@@ -396,7 +490,7 @@ sub pipe_handler
|| print STDOUT
"dsh> Error_file_closed $$target_properties{hostname} $output_file\n";
my $rsp={};
$rsp->{data}->[0] =
$rsp->{error}->[0] =
"Error_file_closed $$target_properties{hostname $output_file}.\n";
xCAT::MsgUtils->message("E", $rsp, $::CALLBACK);
($output_file == $$target_properties{'output-fh'})
@@ -575,55 +669,6 @@ sub pipe_handler_buffer
return $eof_reached;
}
#---------------------------------------------------------------------------
=head3
fping_hostnames
Executes fping on a given list of hostnames and returns a list of those
hostnames that did not respond
Arguments:
@hostnames - list of hostnames to execute for fping
Returns:
@no_response - list of hostnames that did not respond
undef if fping is not installed
Globals:
None
Error:
None
Example:
@bad_hosts = xCAT::DSHCore->fping_hostnames(@host_list);
Comments:
=cut
#---------------------------------------------------------------------------
sub fping_hostnames
{
my ($class, @hostnames) = @_;
my $fping = (-x '/usr/sbin/fping') || undef;
!$fping && return undef;
my @output = `/usr/sbin/fping -B 1.0 -r 1 -t 50 -i 10 -p 50 @hostnames`;
my @no_response = ();
foreach my $line (@output)
{
my ($hostname, $token, $status) = split ' ', $line;
!(($token eq 'is') && ($status eq 'alive'))
&& (push @no_response, $hostname);
}
return @no_response;
}
#---------------------------------------------------------------------------
@@ -709,12 +754,24 @@ sub pping_hostnames
my ($class, @hostnames) = @_;
my $hostname_list = join ",", @hostnames;
# read site table, usefping attribute
# if set then run pping -f to use fping
# this fixes a broken nmap in Redhat 6.2 with ip alias (3512)
my $cmd="$::XCATROOT/bin/pping $hostname_list"; # default
my @usefping=xCAT::TableUtils->get_site_attribute("usefping");
if ((defined($usefping[0])) && ($usefping[0] eq "1")) {
$cmd = "$::XCATROOT/bin/pping -f $hostname_list";
}
#my $rsp={};
#$rsp->{data}->[0] = "running command $cmd";
#xCAT::MsgUtils->message("I", $rsp, $::CALLBACK);
my @output =
xCAT::Utils->runcmd("$::XCATROOT/bin/pping $hostname_list", -1);
xCAT::Utils->runcmd($cmd, -1);
if ($::RUNCMD_RC !=0) {
my $rsp={};
$rsp->{data}->[0] = "Error from pping";
xCAT::MsgUtils->message("I", $rsp, $::CALLBACK);
$rsp->{error}->[0] = "Error from pping";
xCAT::MsgUtils->message("E", $rsp, $::CALLBACK);
}
$::RUNCMD_RC =0; # reset
my @no_response = ();
+96
View File
@@ -0,0 +1,96 @@
#!/usr/bin/env perl
# IBM(c) 2013 EPL license http://www.eclipse.org/legal/epl-v10.html
package xCAT::DiscoveryUtils;
use strict;
use XML::Simple;
$XML::Simple::PREFERRED_PARSER='XML::Parser';
use xCAT::MsgUtils;
=head3 update_discovery_data
Update the discovery data from the xcat request to discoverydata table to indicate the discovery events
arg1 - the request
=cut
sub update_discovery_data {
my $class = shift;
my $request = shift;
my %disdata;
my %otherdata;
unless ($request->{'uuid'}->[0]) {
xCAT::MsgUtils->message("S", "Discovery Error: Found a node without uuid");
}
if ($request->{'discoverymethod'}->[0]) {
$disdata{'method'} = $request->{'discoverymethod'}->[0];
} else {
$disdata{'method'} = "undef";
}
#discoverytime
my ($sec, $min, $hour, $mday, $mon, $year, $wday, $yday, $isdst) = localtime(time);
my $currtime = sprintf("%02d-%02d-%04d %02d:%02d:%02d",
$mon + 1, $mday, $year + 1900, $hour, $min, $sec);
$disdata{'discoverytime'} = $currtime;
foreach my $attr (keys %$request) {
if ($attr =~ /^(command|discoverymethod|_xcat|cacheonly|noderange|environment|method|discoverytime|updateswitch)/) {
next;
} elsif ($attr =~ /^(node|uuid|arch|cpucount|cputype|memory|mtm|serial)$/) {
$disdata{$attr} = $request->{$attr}->[0];
} elsif ($attr eq 'nic') {
# Set the nics attributes
foreach my $nic (@{$request->{nic}}) {
my $nicname = $nic->{'devname'}->[0];
foreach my $nicattr (keys %$nic) {
my $tbattr;
if ($nicattr eq 'driver') {
$tbattr = "nicdriver";
} elsif ($nicattr eq 'ip4address') {
$tbattr = "nicipv4";
} elsif ($nicattr eq 'hwaddr') {
$tbattr = "nichwaddr";
} elsif ($nicattr eq 'pcidev') {
$tbattr = "nicpci";
} elsif ($nicattr eq 'location') {
$tbattr = "nicloc";
} elsif ($nicattr eq 'onboardeth') {
$tbattr = "niconboard";
} elsif ($nicattr eq 'firmdesc') {
$tbattr = "nicfirm";
} elsif ($nicattr =~ /^(switchname|switchaddr|switchdesc|switchport)$/) {
$tbattr = $nicattr;
}
if ($tbattr) {
if ($disdata{$tbattr}) {
$disdata{$tbattr} .= ','.$nicname.'!'.$nic->{$nicattr}->[0];
} else {
$disdata{$tbattr} = $nicname.'!'.$nic->{$nicattr}->[0];
}
}
}
}
} else {
# store to otherdata for the not parsed attributes
$otherdata{$attr} = $request->{$attr};
}
}
if (keys %otherdata) {
$disdata{'otherdata'} = XMLout(\%otherdata,RootName=>'discoveryotherdata' ,NoAttr=>1);
}
my $distab = xCAT::Table->new('discoverydata');
if ($distab) {
$distab->setAttribs({uuid=>$request->{'uuid'}->[0]},\%disdata);
$distab->close();
}
}
1;
+4 -4
View File
@@ -35,7 +35,7 @@ foreach (@extSchema) {
if ($@) {
$warning ="Warning: The user defined database table schema file $file cannot be located or has compiling errors.\n";
print $warning;
`logger -t xCAT $warning`;
`logger -p local4.warning -t xCAT $warning`;
next;
}
if (${"xCAT_schema::" . "$modname" . "::"}{tabspec}) {
@@ -44,7 +44,7 @@ foreach (@extSchema) {
if (exists($ext_tabspec{$tabname})) {
$warning = "Warning: File $file: the table name $tabname is used by other applications. Please rename the table.\n";
print $warning;
`logger -t xCAT $warning`;
`logger -p local4.warning -t xCAT $warning`;
} else {
$ext_tabspec{$tabname}=$tabspec{$tabname};
}
@@ -52,7 +52,7 @@ foreach (@extSchema) {
} else {
$warning ="\n Warning: Cannot find \%tabspec variable in the user defined database table schema file $file\n";
print $warning;
`logger -t xCAT $warning`;
`logger -p local4.warning -t xCAT $warning`;
}
#get the defspec from each file and merge them into %ext_defspec
@@ -74,7 +74,7 @@ foreach (@extSchema) {
if (exists($tmp_hash{$attrname})) {
$warning= " Warning: Conflict when adding user defined defspec from file $file. Attribute name $attrname is already defined in object $objname. \n";
print $warning;
`logger -t xCAT $warning`;
`logger -p local4.warning -t xCAT $warning`;
} else {
#print "\ngot here objname=$objname, attrname=" . $h->{attr_name} . "\n";
push(@{$ext_defspec{$objname}->{'attrs'}}, $h);
+29 -12
View File
@@ -10,10 +10,7 @@ BEGIN
# if AIX - make sure we include perl 5.8.2 in INC path.
# Needed to find perl dependencies shipped in deps tarball.
if ($^O =~ /^aix/i) {
use lib "/usr/opt/perl5/lib/5.8.2/aix-thread-multi";
use lib "/usr/opt/perl5/lib/5.8.2";
use lib "/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi";
use lib "/usr/opt/perl5/lib/site_perl/5.8.2";
unshift(@INC, qw(/usr/opt/perl5/lib/5.8.2/aix-thread-multi /usr/opt/perl5/lib/5.8.2 /usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi /usr/opt/perl5/lib/site_perl/5.8.2));
}
use lib "$::XCATROOT/lib/perl";
@@ -26,9 +23,10 @@ require xCAT::InstUtils;
require xCAT::NetworkUtils;
require xCAT::Schema;
require xCAT::Utils;
require xCAT::TableUtils;
#use Data::Dumper;
require xCAT::NodeRange;
use xCAT::MsgUtils qw(verbose_message);
#-------------------------------------------------------------------------------
@@ -69,7 +67,7 @@ sub getHcpAttribs
}
}
my @ps = $tabs->{ppc}->getAllNodeAttribs(['node','parent','nodetype']);
my @ps = $tabs->{ppc}->getAllNodeAttribs(['node','parent','nodetype','hcp']);
for my $entry ( @ps ) {
my $tmp_parent = $entry->{parent};
my $tmp_node = $entry->{node};
@@ -78,6 +76,9 @@ sub getHcpAttribs
push @{$ppchash{$tmp_parent}{children}}, $tmp_node;
#push @{$ppchash{$tmp_parent}}, $tmp_node;
}
if (defined($tmp_node) && defined($tmp_type) && ($tmp_type eq "blade") && defined($entry->{hcp})) {
push @{$ppchash{$tmp_node}{children}}, $entry->{hcp};
}
#if(exists($ppchash{$tmp_node})) {
# if( defined($tmp_type) ) {
@@ -133,7 +134,7 @@ sub getIPaddress
my $type = shift;
my $nodetocheck = shift;
my $port = shift;
if (xCAT::Utils::isIpaddr($nodetocheck)) {
if (xCAT::NetworkUtils::isIpaddr($nodetocheck)) {
return $nodetocheck;
}
my $side = "[A|B]";
@@ -175,6 +176,8 @@ sub getIPaddress
#the $nodetocheck is its' hcp. So set $nodetocheck to $parent variable.
#And then get the FSPs IPs for the CEC.
$parent = $nodetocheck;
} elsif ($type eq "blade") {
return $ppc->{$nodetocheck}->{children}->[0];
} else {
return undef;
}
@@ -191,7 +194,7 @@ sub getIPaddress
if ($tmp_s and $tmp_s =~ /^$side-$port$/i) {
$tmp_s =~ s/a/A/;
$tmp_s =~ s/b/B/;
if (xCAT::Utils::isIpaddr($tmp_n)) {
if (xCAT::NetworkUtils::isIpaddr($tmp_n)) {
$node_side_pairs{$tmp_s} = $tmp_n;
$children_num++;
} else {
@@ -285,6 +288,7 @@ sub fsp_api_action {
}
$id = $$attrs[0];
$fsp_name = $$attrs[3];
xCAT::MsgUtils->verbose_message($request, "fsp_api_action START node:$node_name,type:$$attrs[4].");
if($$attrs[4] =~ /^fsp$/ || $$attrs[4] =~ /^lpar$/ || $$attrs[4] =~ /^cec$/) {
$type = 0;
$fsp_bpa_type="fsp";
@@ -307,7 +311,7 @@ sub fsp_api_action {
} else {
$fsp_ip = getIPaddress($request, $$attrs[4], $fsp_name );
}
xCAT::MsgUtils->verbose_message($request, "fsp_api_action getIPaddress:$fsp_ip.");
if(!defined($fsp_ip)) {
$res = "Failed to get IP address for $fsp_name or the related FSPs/BPAs.";
return ([$node_name, $res, -1]);
@@ -348,7 +352,7 @@ sub fsp_api_action {
}
my $cmd;
my $install_dir = xCAT::Utils->getInstallDir();
my $install_dir = xCAT::TableUtils->getInstallDir();
if( $action =~ /^(code_update|get_compatible_version_from_rpm)$/) {
$cmd = "$fsp_api -a $action -T $tooltype -t $type:$fsp_ip:$id:$node_name:$parameter -d $install_dir/packages_fw/";
} elsif($action =~ /^code_updateD$/) {
@@ -364,14 +368,22 @@ sub fsp_api_action {
} elsif( $parameter !=0 && $action =~ /^(on|reset)$/ ) {
#powerinterval for lpars power on
$cmd = "$fsp_api -a $action -i $parameter -T $tooltype -t $type:$fsp_ip:$id:$node_name:";
} elsif ($action =~ /^part_set_lpar_def_state$/) {
$cmd = "$fsp_api -a $action -T $tooltype -s $parameter -t $type:$fsp_ip:$id:$node_name:";
} elsif (exists($request->{opt}->{vios})) {
$cmd = "$fsp_api -a $action -T $tooltype -s 1 -t $type:$fsp_ip:$id:$node_name:$parameter";
} else {
$cmd = "$fsp_api -a $action -T $tooltype -t $type:$fsp_ip:$id:$node_name:$parameter";
}
} else {
$cmd = "$fsp_api -a $action -T $tooltype -t $type:$fsp_ip:$id:$node_name:";
if (exists($request->{opt}->{vios})) {
$cmd = "$fsp_api -a $action -T $tooltype -s 1 -t $type:$fsp_ip:$id:$node_name:";
} else {
$cmd = "$fsp_api -a $action -T $tooltype -t $type:$fsp_ip:$id:$node_name:";
}
}
}
xCAT::MsgUtils->verbose_message($request, "fsp_api_action cmd:$cmd.");
#print "cmd: $cmd\n";
$SIG{CHLD} = 'DEFAULT';
# secure passwords in verbose mode
@@ -393,6 +405,7 @@ sub fsp_api_action {
if(defined($res)) {
$res =~ s/$node_name: //g;
}
xCAT::MsgUtils->verbose_message($request, "fsp_api_action return:$Rc.");
return( [$node_name,$res, $Rc] );
}
@@ -444,6 +457,7 @@ sub fsp_state_action {
$fsp_name = $node_name;
xCAT::MsgUtils->verbose_message($request, "fsp_state_action START node:$node_name,type:$$attrs[4].");
if( $$attrs[4] =~ /^(fsp|lpar|cec|blade)$/) {
$type = 0;
} else {
@@ -459,11 +473,13 @@ sub fsp_state_action {
return ([-1, $res[0]]);
}
xCAT::MsgUtils->verbose_message($request, "fsp_state_action getIPaddress:$fsp_ip.");
#print "fsp name: $fsp_name\n";
#print "fsp ip: $fsp_ip\n";
my $cmd;
#$cmd = "$fsp_api -a $action -u $user -p $password -T $tooltype -t $type:$fsp_ip:$id:$node_name:";
$cmd = "$fsp_api -a $action -T $tooltype -t $type:$fsp_ip:$id:$node_name:";
xCAT::MsgUtils->verbose_message($request, "fsp_state_action cmd:$cmd.");
#print "cmd: $cmd\n";
$SIG{CHLD} = 'DEFAULT';
@res = xCAT::Utils->runcmd($cmd, -1);
@@ -477,6 +493,7 @@ sub fsp_state_action {
if( @res ) {
$res[0] =~ s/$node_name: //g;
}
xCAT::MsgUtils->verbose_message($request, "fsp_state_action return:$Rc.");
return( [$Rc,@res] );
}
+8 -1
View File
@@ -215,7 +215,7 @@ sub rnetboot {
my $options = $request->{opt};
my $hwtype = @$exp[2];
my $result;
my $name;
my $name = $request->{node};
my $callback = $request->{callback};
#####################################
# Get node data
@@ -238,6 +238,13 @@ sub rnetboot {
C => $o->{client},
m => $o->{mac}
);
#####################################
# Parse node range
#####################################
if ($name =~ /ARRAY/) {
$name = join(',', @$name);
}
#####################################
# Strip colons from mac address
#####################################
+8 -2
View File
@@ -7,6 +7,7 @@ use Getopt::Long;
use xCAT::PPCcli qw(SUCCESS EXPECT_ERROR RC_ERROR NR_ERROR);
use xCAT::NetworkUtils;
use xCAT::FSPUtils;
use xCAT::MsgUtils qw(verbose_message);
#use Data::Dumper;
##########################################################################
@@ -46,7 +47,7 @@ sub parse_args {
$Getopt::Long::ignorecase = 0;
Getopt::Long::Configure( "bundling" );
if ( !GetOptions( \%opt,qw(h|help V|Verbose v|version ))) {
if ( !GetOptions( \%opt,qw(h|help V|verbose v|version ))) {
return( usage() );
}
####################################
@@ -135,12 +136,13 @@ sub rbootseq {
#print "d";
#print Dumper($d);
xCAT::MsgUtils->verbose_message($request, "rbootseq START for node:$node_name, type=$$d[4].");
if (!($$d[4] =~ /^(lpar|blade)$/)) {
push @output, [$node_name, "\'boot\' command not supported for CEC or BPA", -1 ];
return (\@output);
}
# add checking the power state of the cec
xCAT::MsgUtils->verbose_message($request, "rbootseq check machine state for node:$node_name.");
my $power_state = xCAT::FSPUtils::fsp_api_action ($request, $node_name, $d, "cec_state", $tooltype);
if ( @$power_state[2] != 0 ) {
push @output, [$node_name, @$power_state[1], -1 ];
@@ -205,14 +207,17 @@ sub rbootseq {
push @output, [$node_name, "The mac address in mac table could NOT be used for rbootseq with -net. HFI mac , or other wrong format?", -1 ];
return( \@output );
}
xCAT::MsgUtils->verbose_message($request, "rbootseq <$node_name> net=$parameter");
}
if( $opt->{hfi}) {
$parameter = "/hfi-iohub/hfi-ethernet:$o->{server},,$o->{client},$o->{gateway},$bootp_retries,$tftp_retries,$o->{netmask},$blksize";
xCAT::MsgUtils->verbose_message($request, "rbootseq <$node_name> hfi=$parameter");
}
xCAT::MsgUtils->verbose_message($request, "rbootseq set_lpar_bootstring for node:$node_name.");
my $res = xCAT::FSPUtils::fsp_api_action ($request, $node_name, $d, "set_lpar_bootstring", $tooltype, $parameter);
#print "In boot, state\n";
#print Dumper($res);
@@ -222,6 +227,7 @@ sub rbootseq {
##################################
# Output error
##################################
xCAT::MsgUtils->verbose_message($request, "rbootseq return:$Rc.");
if ( $Rc != SUCCESS ) {
push @output, [$node_name,$data,$Rc];
} else {
+15 -5
View File
@@ -6,10 +6,11 @@ use Getopt::Long;
use xCAT::Usage;
use xCAT::Utils;
use xCAT::FSPUtils;
use xCAT::TableUtils;
use xCAT::PPCcfg;
#use Data::Dumper;
#use xCAT::PPCcli;
use xCAT::MsgUtils qw(verbose_message);
##########################################
# Globals
@@ -173,7 +174,7 @@ sub parse_args {
Getopt::Long::Configure( "bundling" );
$request->{method} = undef;
if ( !GetOptions( \%opt, qw(V|Verbose resetnet))) {
if ( !GetOptions( \%opt, qw(V|verbose resetnet))) {
return( usage() );
}
####################################
@@ -224,7 +225,7 @@ sub parse_args {
my $ppc_cmds_string = &array_to_string(\@ppc_cmds);
return (usage("Invalid command array: $fsp_cmds_string can not execute with $ppc_cmds_string."));
} elsif(scalar(@ppc_cmds)) {
my @enableASMI = xCAT::Utils->get_site_attribute("enableASMI");
my @enableASMI = xCAT::TableUtils->get_site_attribute("enableASMI");
if (defined($enableASMI[0])) {
$enableASMI[0] =~ tr/a-z/A-Z/; # convert to upper
if (($enableASMI[0] eq "1") || ($enableASMI[0] eq "YES")) {
@@ -466,6 +467,7 @@ sub do_query {
while (my ($mtms, $h) = each(%$hash)) {
while (my($name, $d) = each(%$h)) {
my $action = $fspapi_action{$cmd}{query}{@$d[4]};
xCAT::MsgUtils->verbose_message($request, "rspconfig :$action for node:$name.");
my $values = xCAT::FSPUtils::fsp_api_action($request, $name, $d, $action);
&do_process_query_res($name, $cmd, \@result, $values);
#my $res = &do_process_query_res($name, $cmd, \@result, $values);
@@ -512,6 +514,7 @@ sub do_set {
while (my ($mtms, $h) = each(%$hash)) {
while (my($name, $d) = each(%$h)) {
my $action = $fspapi_action{$cmd}{set}{@$d[4]};
xCAT::MsgUtils->verbose_message($request, "rspconfig :$action for node:$name, param:$value.");
my $para = &do_set_get_para($name, $cmd, $value);
my $values = xCAT::FSPUtils::fsp_api_action($request, $name, $d, $action, 0, $para);
# print Dumper($values);
@@ -595,6 +598,7 @@ sub passwd {
while ( my ($node,$d) = each(%$h) ) {
my $type = @$d[4];
my $fsp_api = ($::XCATROOT) ? "$::XCATROOT/sbin/fsp-api" : "/opt/xcat/sbin/fsp-api";
xCAT::MsgUtils->verbose_message($request, "rspconfig :modify password of $usr for node:$node.");
my $cmd = xCAT::FSPcfg::fsp_api_passwd ($request, $node, $d, $usr, $passwd, $newpasswd);
my $Rc = @$cmd[2];
my $data = @$cmd[1];
@@ -607,6 +611,7 @@ sub passwd {
# Write the new password to table
##################################
if ( $Rc == 0 ) {
xCAT::MsgUtils->verbose_message($request, "rspconfig :update xCATdb for node:$node,ID:$usr.");
xCAT::PPCdb::update_credentials( $node, $type, $usr, $newpasswd );
}
}
@@ -677,6 +682,7 @@ sub frame {
# Get frame number
#################################
#$data = xCAT::PPCcli::lssyscfg( $exp, @$d[4], @$d[2], 'frame_num' );
xCAT::MsgUtils->verbose_message($request, "rspconfig :get_frame_number for node:$node.");
$data = xCAT::FSPUtils::fsp_api_action( $request, $node, $d, "get_frame_number");
$Rc = pop(@$data);
@@ -708,6 +714,7 @@ sub frame {
return( [[$node,"Cannot find frame num in database", -1]] );
}
#$data = xCAT::PPCcli::chsyscfg( $exp, "bpa", $d, "frame_num=".$ent->{id} );
xCAT::MsgUtils->verbose_message($request, "rspconfig :set_frame_number for node:$node,id:$ent->{id}.");
$data = xCAT::FSPUtils::fsp_api_action( $request, $node, $d, "set_frame_number", 0, $ent->{id});
$Rc = pop(@$data);
@@ -727,6 +734,7 @@ sub frame {
# Read the frame number from opt
#################################
#$data = xCAT::PPCcli::chsyscfg( $exp, "bpa", $d, "frame_num=$value" );
xCAT::MsgUtils->verbose_message($request, "rspconfig :set_frame_number for node:$node,id:$value.");
$data = xCAT::FSPUtils::fsp_api_action( $request, $node, $d, "set_frame_number", 0, $value);
$Rc = pop(@$data);
@@ -775,6 +783,7 @@ sub cec_off_policy {
#################################
# Get platform IPL parameters
#################################
xCAT::MsgUtils->verbose_message($request, "rspconfig :get_phyp_cfg_power_off_policy for node:$node.");
$data = xCAT::FSPUtils::fsp_api_action( $request, $node, $d, "get_phyp_cfg_power_off_policy");
$Rc = pop(@$data);
@@ -794,6 +803,7 @@ sub cec_off_policy {
#################################
# Set cec off policy
#################################
xCAT::MsgUtils->verbose_message($request, "rspconfig :set power_off_policy for node:$node,policy:$value.");
if( $value eq "poweroff") {
$value = "cec_off_policy_poweroff";
} else {
@@ -862,8 +872,8 @@ sub fsp_api_passwd {
############################
# Get IP address
############################
#$fsp_ip = xCAT::Utils::get_hdwr_ip($fsp_name);
#$fsp_ip = xCAT::Utils::getNodeIPaddress($fsp_name);
#$fsp_ip = xCAT::NetworkUtils::get_hdwr_ip($fsp_name);
#$fsp_ip = xCAT::NetworkUtils::getNodeIPaddress($fsp_name);
#$fsp_ip = xCAT::Utils::getIPaddress($fsp_name);
$fsp_ip = xCAT::FSPUtils::getIPaddress($request, $$attrs[4], $fsp_name );
if(!defined($fsp_ip) or ($fsp_ip == -3)) {
+4 -1
View File
@@ -8,6 +8,7 @@ use xCAT::Usage;
#use Data::Dumper;
use xCAT::FSPUtils;
use xCAT::PPCconn;
use xCAT::MsgUtils qw(verbose_message);
##############################################
# Globals
@@ -571,7 +572,7 @@ sub mkhwconn
my $Rc = undef;
my $tooltype= $opt->{T};
xCAT::MsgUtils->verbose_message($request, "mkhwconn START.");
for my $cec_bpa ( keys %$hash)
{
my $node_hash = $hash->{$cec_bpa};
@@ -596,6 +597,7 @@ sub mkhwconn
#}
xCAT::MsgUtils->verbose_message($request, "mkhwconn :add_connection for node:$node_name.");
my $res = xCAT::FSPUtils::fsp_api_action($request, $node_name, $d, "add_connection", $tooltype, $opt->{port} );
$Rc = @$res[2];
if( @$res[1] ne "") {
@@ -604,6 +606,7 @@ sub mkhwconn
}
}
xCAT::MsgUtils->verbose_message($request, "mkhwconn END.");
return \@value;
}
##########################################################################
+6 -6
View File
@@ -44,11 +44,11 @@ sub dpush {
# Parse the command line for options and operands
##########################################################################
sub parse_args {
my $req = shift;
$req->{mgt} = __PACKAGE__;
my $req = shift;
$req->{mgt} = __PACKAGE__;
my $opt = xCAT::PPCrflash::parse_args($req);
delete($req->{mgt});
return $opt;
delete($req->{mgt});
return $opt;
}
##########################################################################
@@ -340,8 +340,8 @@ sub rflash {
#if($activate =~ /^concurrent$/) {
my $res = "\'$activate\' option not supported in FSPflash. Please use disruptive or deferred mode";
push @value, [$name, $res, -1];
next;
}
next;
}
my $msg;
if(!defined($housekeeping)) {
+1 -1
View File
@@ -66,7 +66,7 @@ sub parse_args {
$Getopt::Long::ignorecase = 0;
Getopt::Long::Configure( "bundling" );
if ( !GetOptions( \%opt, qw(V|Verbose x) )) {
if ( !GetOptions( \%opt, qw(V|verbose x) )) {
return( usage() );
}
####################################
+5 -1
View File
@@ -6,7 +6,7 @@ use strict;
use Getopt::Long;
use xCAT::PPCmac;
use xCAT::PPCcli qw(SUCCESS EXPECT_ERROR RC_ERROR NR_ERROR);
use xCAT::MsgUtils qw(verbose_message);
use xCAT::LparNetbootExp;
##########################################################################
# Parse the command line for options and operands
@@ -184,6 +184,7 @@ sub do_getmacs {
# last;
# }
#}
xCAT::MsgUtils->verbose_message($request, "getmacs :lparnetbootexp for node:$node.");
my $Rc = xCAT::LparNetbootExp->lparnetbootexp(\%optarg, $request);
######################################
# Split results into array
@@ -442,6 +443,7 @@ sub getmacs {
#########################################
# Connect to fsp to achieve MAC address
#########################################
xCAT::MsgUtils->verbose_message($request, "getmacs START.");
my $d = $par;
#########################################
@@ -501,6 +503,7 @@ sub getmacs {
#########################################
# Manually collect MAC addresses.
#########################################
xCAT::MsgUtils->verbose_message($request, "getmacs :do_getmacs for node:$node.");
$result = do_getmacs( $request, $d, $exp, $name, $node );
#}
#$sitetab->close;
@@ -575,6 +578,7 @@ sub getmacs {
writemac( $node, $value );
}
#return( [[$node,$data,$Rc]] );
xCAT::MsgUtils->verbose_message($request, "getmacs END.");
return $res;
}
}
+1 -1
View File
@@ -236,7 +236,7 @@ sub powercmd {
if($action =~ /^lowpower$/) { $action = "cec_on_low_power"; }
#if($action =~ /^cycle$/) {$action = "cec_reboot";}
if($action =~ /^cycle$/) {$action = "reset";}
if($action !~ /^cec_on_autostart$/ && $action !~ /^cec_off$/ && $action !~ /^cec_on_low_power$/ && $action !~ /^onstandby$/ && $action !~ /^reboot_service_processor$/ && $action !~ /^reset$/) {
if($action !~ /^cec_on_autostart$/ && $action !~ /^cec_off$/ && $action !~ /^cec_on_low_power$/ && $action !~ /^onstandby$/ && $action !~ /^reboot_service_processor$/ && $action !~ /^reset$/ && $action !~ /^sms$/) {
push @output, [$node_name, "\'$action\' command not supported for $$d[4]", -1 ];
return (\@output);
}
+34 -5
View File
@@ -13,6 +13,7 @@ use xCAT::GlobalDef;
use xCAT::Usage;
use xCAT::NetworkUtils;
use xCAT::FSPUtils;
require xCAT::data::ibmhwtypes;
#use Data::Dumper;
##############################################
@@ -259,7 +260,8 @@ sub format_output {
# Strip errors for results
#######################################
my @val = grep( !/^#.*: ERROR /, @$values );
xCAT::PPCdb::add_ppc( $hwtype, \@val );
#xCAT::PPCdb::add_ppc( $hwtype, \@val );
$values = xCAT::PPCdb::update_lpar( $hwtype, \@val, "write");
}
###########################################
@@ -270,7 +272,8 @@ sub format_output {
# Strip errors for results
#######################################
my @val = grep( !/^#.*: ERROR /, @$values );
$values = xCAT::PPCdb::update_ppc( $hwtype, \@val );
#$values = xCAT::PPCdb::update_ppc( $hwtype, \@val );
$values = xCAT::PPCdb::update_lpar( $hwtype, \@val );
if ( exists( $opt->{x} ) or exists( $opt->{z} ))
{
unshift @$values, "hmc";
@@ -391,6 +394,7 @@ sub format_stanza {
#################################
# Add each attribute
#################################
my $mtm = undef;
foreach ( @attribs ) {
my $d = $data[$i++];
@@ -401,7 +405,8 @@ sub format_stanza {
} elsif ( /^hwtype$/ ) {
$d = $globalhwtype{$type};
} elsif ( /^groups$/ ) {
$d = "$type,all";
next;
#$d = "$type,all";
} elsif ( /^mgt$/ ) {
$d = $hwtype;
} elsif ( /^cons$/ ) {
@@ -414,7 +419,9 @@ sub format_stanza {
} elsif ( /^(mtm|serial)$/ ) {
if ( $type eq "lpar" ) {
$d = undef;
}
} elsif (/^mtm$/) {
$mtm = $d;
}
} elsif (/^side$/) {
unless ( $type =~ /^fsp|bpa$/ ) {
next;
@@ -422,6 +429,15 @@ sub format_stanza {
}
$result .= "\t$_=$d\n";
}
my $tmp_groups = "$type,all";
if (defined($mtm)) {
my $tmp_pre = xCAT::data::ibmhwtypes::parse_group($mtm);
if (defined($tmp_pre)) {
$tmp_groups .= ",$tmp_pre";
}
}
$result .= "\tgroups=$tmp_groups\n";
}
return( $result );
}
@@ -464,6 +480,7 @@ sub format_xml {
#################################
# Add each attribute
#################################
my $mtm = undef;
foreach ( @attribs ) {
my $d = $data[$i++];
@@ -472,7 +489,8 @@ sub format_xml {
} elsif ( /^hwtype$/ ) {
$d = $globalhwtype{$type};
} elsif ( /^groups$/ ) {
$d = "$type,all";
next;
#$d = "$type,all";
} elsif ( /^mgt$/ ) {
$d = $hwtype;
} elsif ( /^cons$/ ) {
@@ -484,6 +502,8 @@ sub format_xml {
} elsif ( /^(mtm|serial)$/ ) {
if ( $type eq "lpar" ) {
$d = undef;
} elsif (/^mtm$/) {
$mtm = $d;
}
} elsif (/^side$/) {
unless ( $type =~ /^fsp|bpa$/ ) {
@@ -492,6 +512,15 @@ sub format_xml {
}
$href->{Node}->{$_} = $d;
}
my $tmp_groups = "$type,all";
if (defined($mtm)) {
my $tmp_pre = xCAT::data::ibmhwtypes::parse_group($mtm);
if (defined($tmp_pre)) {
$tmp_groups .= ",$tmp_pre";
}
}
$href->{Node}->{groups}=$tmp_groups;
#print Dumper($href);
#################################
# XML encoding
+6 -1
View File
@@ -116,6 +116,9 @@ sub enumerate_lcds {
} else {
my @array = split(/\n/, $data);
foreach my $a (@array) {
if ($a !~ /:\s?[^\s]*\s?[0|1]/) {
next;
}
my @t = split(/:/, $a);
my $name = $t[0];
$data = $t[1];
@@ -429,8 +432,10 @@ sub lcds {
}
}
if( $type =~ /lpar/ ) {
if( $type eq "lpar" ) {
$action = "query_lcds";
} elsif ($type eq "blade") {
$action = "pblade_query_lcds";
} else {
$action = "cec_query_lcds";
}
+658 -55
View File
@@ -16,7 +16,7 @@ use xCAT::Usage;
use xCAT::NodeRange;
use xCAT::FSPUtils;
#use Data::Dumper;
use xCAT::MsgUtils qw(verbose_message);
##############################################
# Globals
##############################################
@@ -51,6 +51,8 @@ sub parse_args {
sub chvm_parse_extra_options {
my $args = shift;
my $opt = shift;
# Partition used attributes #
my @support_ops = qw(vmcpus vmmemory vmphyslots vmothersetting);
if (ref($args) ne 'ARRAY') {
return "$args";
}
@@ -71,7 +73,20 @@ sub chvm_parse_extra_options {
# if ($value !~ /^\d+\/\d+\/\d+$/) {
# return "'$value' invalid";
# }
} else {
} elsif (grep(/^$cmd$/, @support_ops)) {
if (exists($opt->{p775})) {
return "'$cmd' doesn't work for Power 775 machines.";
} elsif ($cmd eq "vmothersetting") {
if ($value =~ /hugepage:\s*(\d+)/i) {
$opt->{huge_page} = $1;
}
if ($value =~ /bsr:\s*(\d+)/i) {
$opt->{bsr} = $1;
}
next;
}
} else {
return "'$cmd' not support";
}
$opt->{$cmd} = $value;
@@ -109,7 +124,7 @@ sub chvm_parse_args {
$Getopt::Long::ignorecase = 0;
Getopt::Long::Configure( "bundling" );
if ( !GetOptions( \%opt, qw(V|verbose p=s i=s m=s r=s ) )) {
if ( !GetOptions( \%opt, qw(V|verbose p=s i=s m=s r=s p775) )) {
return( usage() );
}
####################################
@@ -126,8 +141,11 @@ sub chvm_parse_args {
# return(usage( "Configuration file or attributes not specified" ));
# }
#}
if (exists($opt{p775})) {
my @cfgdata ;
if ((exists ($opt{p}) || defined($request->{stdin})) && !exists($opt{p775}) ) {
return(usage("Profile just work for Power 775"));
}
if ( exists( $opt{p})) {
if ( exists( $opt{i} ) || exists( $opt{r}) || exists( $opt{m} ) ) {
@@ -302,6 +320,7 @@ sub chvm_parse_args {
$request->{node} = [$other_p];
$request->{noderange} = $other_p;
}
}
####################################
# Check for an extra argument
####################################
@@ -347,21 +366,23 @@ sub mkvm_parse_args {
#############################################
# Process command-line arguments
#############################################
if ( !defined( $args )) {
return(usage( "No command specified" ));
}
#if ( !defined( $args )) {
# return(usage( "No command specified" ));
#}
#############################################
# Checks case in GetOptions, allows opts
# to be grouped (e.g. -vx), and terminates
# at the first unrecognized option.
#############################################
@ARGV = @$args;
if (defined($args)) {
@ARGV = @$args;
}
$Getopt::Long::ignorecase = 0;
Getopt::Long::Configure( "bundling" );
# if ( !GetOptions( \%opt, qw(V|verbose ibautocfg ibacap=s i=s l=s c=s p=s full) )) {
# if ( !GetOptions( \%opt, qw(V|verbose ibautocfg ibacap=s i=s l=s c=s p=s m=s r=s full) )) {
# return( usage() );
# }
if ( !GetOptions( \%opt, qw(V|verbose i=s m=s r=s ) )) {
if ( !GetOptions( \%opt, qw(V|verbose full vios) )) {
return( usage() );
}
####################################
@@ -370,7 +391,37 @@ sub mkvm_parse_args {
if ( grep(/^-$/, @ARGV )) {
return(usage( "Missing option: -" ));
}
if (!exists($opt{p775})) {
my @unsupport_ops = ();
foreach my $tmpop (keys %opt) {
if ($tmpop !~ /full|vios|V/) {
push @unsupport_ops, $tmpop;
}
}
my @support_ops = qw(vmcpus vmmemory vmphyslots vmothersetting);
if (defined(@ARGV[0]) and defined($opt{full})) {
return(usage("Option 'full' shall be used alone."));
} elsif (defined(@ARGV[0])) {
foreach my $arg (@ARGV) {
my ($cmd,$val) = split (/=/,$arg);
if (!grep(/^$cmd$/, @support_ops)) {
push @unsupport_ops, $cmd;
} elsif (!defined($val)) {
return(usage("The option $cmd need specific parameters."));
} else {
$opt{$cmd} = $val;
}
}
}
if (@unsupport_ops) {
my $tmpops = join(",",@unsupport_ops);
return(usage( "The options $tmpops can only work(s) with Power 775 machines."));
}
} else {
if (exists($opt{full}) or exists($opt{vios})) {
return(usage( "Option 'p775' only works for Power 775 machines."));
}
####################################
# Check for non-zero integer
####################################
@@ -408,13 +459,14 @@ sub mkvm_parse_args {
} else {
return(usage( "Invalid entry: $opt{m}.\n For Power 775, the pending memory interleaving mode only could be interleaved(or 1), or non-interleaved(or 2)." ));
}
} else {
} elsif (exists($opt{p775})){
$opt{m} = 2 ;# non-interleaved, which is the default
}
my @ratio = (1, 2, 3, 4, 5);
my %octant_cfg = ();
if ( exists( $opt{r} ) ) {
my @ratio = (1, 2, 3, 4, 5);
my %octant_cfg = ();
my @elems = split(/\,/,$opt{r});
my $range="";
while (my $elem = shift @elems) {
@@ -461,15 +513,15 @@ sub mkvm_parse_args {
}
} # end of "if .. else.."
} # end of while
$opt{octant_cfg}{octant_cfg_value} = (\%octant_cfg);
$opt{octant_cfg}{memory_interleave} = $opt{m};
} #end of if
$opt{octant_cfg}{octant_cfg_value} = (\%octant_cfg);
$opt{octant_cfg}{memory_interleave} = $opt{m};
if ( !exists( $opt{i} ) || !exists( $opt{r} ) ) {
if ( (!exists( $opt{i} ) || !exists( $opt{r} )) ) {
return(usage());
}
}
$opt{target} = \@{$request->{node}};
my $ppctab = xCAT::Table->new( 'ppc');
unless($ppctab) {
@@ -483,6 +535,10 @@ sub mkvm_parse_args {
if ( !$p) {
return(usage("Not found the parent of $node"));
}
if (exists($opt{full}) and defined($other_p) and $other_p eq $p){
return(usage("Only one full partition can be created in one CEC"));
}
if(! defined( $other_p)) {
$other_p = $p;
}
@@ -490,9 +546,10 @@ sub mkvm_parse_args {
return(usage("For Power 775, please make sure the noderange are in one CEC "));
}
}
$request->{node} = [$other_p];
$request->{noderange} = $other_p;
if (exists($opt{p775})) {
$request->{node} = [$other_p];
$request->{noderange} = $other_p;
}
####################################
# No operands - add command name
####################################
@@ -535,10 +592,14 @@ sub rmvm_parse_args {
$Getopt::Long::ignorecase = 0;
Getopt::Long::Configure( "bundling" );
if ( !GetOptions( \%opt, qw(V|verbose service r) )) {
if ( !GetOptions( \%opt, qw(V|verbose service r p775) )) {
return( usage() );
}
return(usage( "rmvm doesn't support for Power 775." ));
if (exists($opt{p775})) {
return(usage( "rmvm doesn't support for Power 775." ));
}
####################################
# Check for "-" with no option
####################################
@@ -592,9 +653,12 @@ sub lsvm_parse_args {
$Getopt::Long::ignorecase = 0;
Getopt::Long::Configure( "bundling" );
if ( !GetOptions( \%opt, qw(V|verbose l|long) )) {
if ( !GetOptions( \%opt, qw(V|verbose l|long p775) )) {
return( usage() );
}
if (exists($opt{l}) && !exists($opt{p775})) {
return(usage( "option 'l' only works for Power 775"));
}
####################################
# Check for "-" with no option
####################################
@@ -622,8 +686,9 @@ sub modify {
my $request = shift;
my $hash = shift;
my $usage_string = xCAT::Usage->getUsage($request->{command});
return modify_by_prof( $request, $hash) if ( $request->{opt}->{p} || $request->{stdin});
return create( $request, $hash) if ( $request->{opt}->{i});
return modify_by_prof( $request, $hash) if ( exists($request->{opt}->{p775}) and ($request->{opt}->{p} || $request->{stdin}));
return create( $request, $hash) if ( exists($request->{opt}->{p775}) and $request->{opt}->{i});
return op_extra_cmds ($request, $hash) if (!exists($request->{opt}->{p775}));
return op_extra_cmds ($request, $hash) if ($request->{opt}->{lparname} || $request->{opt}->{huge_page});
return ([["Error", "Miss argument\n".$usage_string, 1]]);
}
@@ -631,25 +696,72 @@ sub do_op_extra_cmds {
my $request = shift;
my $hash = shift;
my @values = ();
my $action;
my $param;
if (exists($request->{opt}->{lparname})) {
$action = "set_lpar_name";
$param = $request->{opt}->{lparname};
} elsif (exists($request->{opt}->{huge_page})) {
$action = "set_huge_page";
$param = $request->{opt}->{huge_page};
}
my $lparname_para = $request->{opt}->{lparname};
while (my ($mtms, $h) = each(%$hash)) {
my $memhash;
while (my($name, $d) = each(%$h)) {
my $tmp_value = ($param eq '*') ? $name : $param;
my $value = xCAT::FSPUtils::fsp_api_action($request, $name, $d, $action, 0, $tmp_value);
if (@$value[1] && ((@$value[1] =~ /Error/i) && (@$value[2] ne '0'))) {
return ([[$name, @$value[1], '1']]) ;
} else {
push @values, [$name, "Success", '0'];
}
foreach my $op (keys %{$request->{opt}}) {
my $action;
my $param = $request->{opt}->{$op};
if ($op eq "lparname") {
$action = "set_lpar_name";
} elsif ($op eq "huge_page") {
$action = "set_huge_page";
} elsif ($op eq "vmcpus") {
$action = "part_set_lpar_pending_proc";
} elsif ($op eq "vmphyslots") {
$action = "set_io_slot_owner_uber";
} elsif ($op eq "vmmemory") {
my @td = @$d;
@td[0] = 0;
$memhash = &query_cec_info_actions($request, $name, \@td, 1, ["part_get_hyp_process_and_mem"]);
if (!exists($memhash->{run})) {
if ($param =~ /(\d+)([G|M]?)\/(\d+)([G|M]?)\/(\d+)([G|M]?)/i) {
my $memsize = $memhash->{mem_region_size};
my $min = $1;
if ($2 == "G" or $2 == '') {
$min = $min * 1024;
}
$min = $min/$memsize;
my $cur = $3;
if ($4 == "G" or $4 == '') {
$cur = $cur * 1024;
}
$cur = $cur/$memsize;
my $max = $5;
if ($6 == "G" or $6 == '') {
$max = $max * 1024;
}
$max = $max/$memsize;
$request->{opt}->{$op} ="$min/$cur/$max";
$param = $request->{opt}->{$op};
} else {
return([[$name, "The format of param:$param is incorrect.", 1]]);
}
$memhash->{run} = 1;
}
$memhash->{memory} = $param;
$memhash->{lpar_used_regions} = 0;
my $ret = &deal_with_avail_mem($request, $name, $d, $memhash);
if (ref($ret) eq "ARRAY") {
return ([[@$ret]]);
}
$param = $memhash->{memory};
$action = "part_set_lpar_pending_mem";
} elsif ($op eq "bsr") {
$action = "set_lpar_bsr";
} else {
last;
}
my $tmp_value = ($param eq '*') ? $name : $param;
xCAT::MsgUtils->verbose_message($request, "$request->{command} $action for node:$name, parm:$tmp_value.");
my $value = xCAT::FSPUtils::fsp_api_action($request, $name, $d, $action, 0, $tmp_value);
if (@$value[1] && ((@$value[1] =~ /Error/i) && (@$value[2] ne '0'))) {
return ([[$name, @$value[1], '1']]) ;
} else {
push @values, [$name, "Success", '0'];
}
}
}
}
return \@values;
@@ -698,7 +810,7 @@ sub modify_by_prof {
my %io = ();
my %lpar_state = ();
my @result;
xCAT::MsgUtils->verbose_message($request, "$request->{command} START.");
if (defined( $request->{stdin} )) {
my $p = $request->{stdin};
my @io = split(/\n/, $p) ;
@@ -721,6 +833,7 @@ sub modify_by_prof {
}
$td->[4] = "cec";
#get the current I/O slot information
xCAT::MsgUtils->verbose_message($request, "$request->{command} :get_io_slot_info for node:$cec_name.");
my $action = "get_io_slot_info";
my $values = xCAT::FSPUtils::fsp_api_action ($request, $cec_name, $td, $action);
my $Rc = $$values[2];
@@ -737,6 +850,7 @@ sub modify_by_prof {
}
#get all the nodes state in the same cec
xCAT::MsgUtils->verbose_message($request, "$request->{command} :get all the nodes state for CEC:$cec_name.");
$action = "all_lpars_state";
undef($values);
my $values = xCAT::FSPUtils::fsp_state_action ($request, $cec_name, $td, $action);
@@ -771,6 +885,7 @@ sub modify_by_prof {
return ( \@result );
}
xCAT::MsgUtils->verbose_message($request, "$request->{command} :set_io_slot_owner io_slot_info:$f,owner:$lpar.");
my $values = xCAT::FSPUtils::fsp_api_action ($request, $lpar, $d, $action, $tooltype, $drc_index);
#my $Rc = shift(@$values);
my $Rc = pop(@$values);
@@ -782,6 +897,7 @@ sub modify_by_prof {
}
}
xCAT::MsgUtils->verbose_message($request, "$request->{command} END.");
return( \@result );
}
@@ -796,6 +912,7 @@ sub enumerate {
my $type;
my @td;
xCAT::MsgUtils->verbose_message($request, "lsvm :enumerate START for mtms:$mtms.");
while (my ($name,$d) = each(%$h) ) {
$cec = @$d[3];
$type = @$d[4];
@@ -803,6 +920,7 @@ sub enumerate {
}
$td[4]="cec";
xCAT::MsgUtils->verbose_message($request, "lsvm :enumerate get_io_slot_info for node:$cec.");
my $action = "get_io_slot_info";
my $values = xCAT::FSPUtils::fsp_api_action ($request, $cec, \@td, $action);
#my $Rc = shift(@$values);
@@ -819,6 +937,7 @@ sub enumerate {
#}
if( $type =~ /^(fsp|cec)$/ ) {
xCAT::MsgUtils->verbose_message($request, "lsvm :enumerate query_octant_cfg for node:$cec.");
$action = "query_octant_cfg";
my $values = xCAT::FSPUtils::fsp_api_action ($request, $cec, \@td, $action);
my $Rc = pop(@$values);
@@ -839,6 +958,7 @@ sub enumerate {
$outhash{ $cec } = $res;
}
xCAT::MsgUtils->verbose_message($request, "lsvm :enumerate END for mtms:$mtms.");
return( [0,\%outhash] );
}
@@ -987,6 +1107,7 @@ sub list {
my %lpar_huges = ();
my $l_string = "\n";
#print Dumper($hash);
xCAT::MsgUtils->verbose_message($request, "lsvm START");
while (my ($mtms,$h) = each(%$hash) ) {
my $info = enumerate($request, $h, $mtms );
my $Rc = shift(@$info);
@@ -1009,7 +1130,7 @@ sub list {
# push @result, [$node_name, "Node not found",1];
# next;
# }
xCAT::MsgUtils->verbose_message($request, "lsvm :parse io info for node:$node_name.");
if( defined($msg)) {
push @result,[$node_name, $msg, 0];
} else {
@@ -1084,6 +1205,7 @@ sub list {
# get the octant configuration value
if ($type=~/^(fsp|cec)$/) {
xCAT::MsgUtils->verbose_message($request, "lsvm :parse octant info for $type:$node_name.");
my $value = $data->{$cec};
if ($request->{opt}->{l}) {
my $cec_bsr = get_cec_cec_bsr($node_name, $bsr_infos);
@@ -1101,6 +1223,7 @@ sub list {
$l_string = "\n";
} # end of while
}# end of while
xCAT::MsgUtils->verbose_message($request, "lsvm END.");
return( \@result );
}
@@ -1194,6 +1317,7 @@ sub create {
my %node_id = ();
my @nodes = @{$opt->{target}};
xCAT::MsgUtils->verbose_message($request, "$request->{command} START.");
#print Dumper($request);
#####################################
# Get source node information
@@ -1213,6 +1337,7 @@ sub create {
}
}
xCAT::MsgUtils->verbose_message($request, "$request->{command} :query_octant_cfg for CEC:$cec_name.");
my $values = xCAT::FSPUtils::fsp_api_action ($request, $cec_name, $d, "query_octant_cfg");
my $Rc = shift(@$values);
if ( $Rc != 0 ) {
@@ -1289,6 +1414,7 @@ sub create {
xCAT::MsgUtils->verbose_message($request, "$request->{command} :set_octant_cfg for CEC:$cec_name,param:$parameters.");
#$values = xCAT::FSPUtils::fsp_api_create_parttion( $starting_lpar_id, $octant_cfg, $node_number, $d, "set_octant_cfg");
$values = xCAT::FSPUtils::fsp_api_action ($request,$cec_name, $d, "set_octant_cfg", 0, $parameters);
my $Rc = $$values[2];
@@ -1306,6 +1432,7 @@ sub create {
}
xCAT::MsgUtils->verbose_message($request, "$request->{command} END.");
return( \@result );
}
@@ -1407,7 +1534,468 @@ sub xCATdB {
}
return undef;
}
########################
#***** partition related
########################
#my @partition_query_actions = qw(part_get_partition_cap part_get_num_of_lpar_slots part_get_hyp_config_process_and_mem part_get_hyp_avail_process_and_mem part_get_service_authority_lpar_id part_get_shared_processing_resource part_get_all_vio_info lpar_lhea_mac part_get_all_io_bus_info part_get_lpar_processing part_get_lpar_memory get_huge_page get_cec_bsr);
my @partition_query_actions = qw(part_get_partition_cap part_get_hyp_process_and_mem part_get_all_io_bus_info get_huge_page get_cec_bsr);
sub parse_part_get_info {
my $hash = shift;
my $data = shift;
my @array = split /\n/, $data;
foreach my $line (@array) {
chomp($line);
if ($line =~ /Num of lpar slots: (\d+)/i) {
$hash->{num_of_lpars} = $1;
} elsif ($line =~ /HYP Configurable Memory[^\(]*\((\d+)\s*regions\)/i) {
$hash->{hyp_config_mem} = $1;
} elsif ($line =~ /HYP Available Memory[^\(]*\((\d+)\s*regions\)/i) {
$hash->{hyp_avail_mem} = $1;
} elsif ($line =~ /HYP Memory Region Size[^\(]*\((\d+)\s*MB\)/i) {
$hash->{mem_region_size} = $1;
} elsif ($line =~ /HYP Configurable Processors: (\d+),\s*Avail Processors: (\d+)/i) {
$hash->{process_units_config} = $1;
$hash->{process_units_avail} = $2;
} elsif ($line =~ /Authority Lpar id:(\w+)/i) {
$hash->{service_lparid} = $1;
} elsif ($line =~ /(\d+),(\d+),[^,]*,(\w+),\w*\(([\w| |-|_]*)\)/) {
$hash->{bus}->{$3}->{cur_lparid} = $1;
$hash->{bus}->{$3}->{bus_slot} = $2;
$hash->{bus}->{$3}->{des} = $4;
} elsif ($line =~ /Phy drc_index:(\w+), Port group: (\w+), Phy port id: (\w+)/) {
$hash->{phy_drc_group_port}->{$1}->{$2}->{$3} = '1';
} elsif ($line =~ /adapter_id=(\w+),lpar_id=([\d|-]+).*port_group=(\d+),phys_port_id=(\d+).*drc_index=(\w+),.*/) {
if (($2 == -1) && ($4 == 255)) {
$hash->{logic_drc_phydrc}->{$3}->{$5} = $1;
#$hash->{logic_drc_phydrc}->{$5}->{$1} = [$2,$3,$4];
}
#} elsif ($line =~ /lpar 0:: Curr Memory::min: 1,cur: (\d+),max:/i) {
} elsif ($line =~ /HYP Reserved Memory Regions:([-]?)(\d+), Min Required Regions:(\d+)/i) {
if ($1 eq '-') {
$hash->{lpar0_used_dec} = 1;
}
$hash->{lpar0_used_mem} = $2;
$hash->{phy_min_mem_req} = $3;
#print "===>lpar0_used_mem:$hash->{lpar0_used_mem}.\n";
} elsif ($line =~ /Curr Memory Req:[^\(]*\((\d+)\s*regions\)/) {
$hash->{lpar_used_regions} = $1;
} elsif ($line =~ /Available huge page memory\(in pages\):\s*(\d+)/) {
$hash->{huge_page_avail} = $1;
} elsif ($line =~ /Available BSR array:\s*(\d+)/) {
$hash->{cec_bsr_avail} = $1;
}
}
}
sub query_cec_info_actions {
my $request = shift;
my $name = shift;
my $td = shift;
my $usage = shift;
my $action_array = shift;
my $lparid = @$td[0];
my $data;
my @array = ();
my %hash = ();
if (!defined($action_array) or ref($action_array) ne "ARRAY") {
$action_array = \@partition_query_actions;
}
foreach my $action (@$action_array) {
#$data .= "======> ret info for $action:\n";
my $values = xCAT::FSPUtils::fsp_api_action($request, $name, $td, $action);
chomp(@$values[1]);
#if ($action eq "part_get_partition_cap" and (@$values[1] =~ /Error:/i or @$values[2] ne 0)) {
if (@$values[1] =~ /Error:/i or @$values[2] ne 0) {
return ([[@$values]]);
}
if (@$values[1] =~ /^$/) {
next;
}
if ($usage eq 0) {
if ($lparid) {
if ($action eq "lpar_lhea_mac") {
my @output = split /\n/,@$values[1];
foreach my $line (@output) {
if ($line =~ /adapter_id=\w+,lpar_id=$lparid,type=hea/) {
#$data .= "$line\n";
push @array, [$name, $line, 0];
}
}
#$data .= "\n";
next;
}
if ($action eq "part_get_all_io_bus_info") {
my @output = split /\n/, @$values[1];
foreach my $line (@output) {
if ($line =~ /^$lparid,/) {
#$data .= "$line\n";
push @array, [$name, $line, 0];
}
}
#$data .= "\n";
next;
}
}
#$data .= "@$values[1]\n\n";
push @array, [$name, @$values[1], @$values[2]];
} else {
&parse_part_get_info(\%hash, @$values[1]);
}
}
if ($usage eq 0) {
#return $data;
return \@array;
} else {
return \%hash;
}
}
#my @partition_query_actions = qw(part_get_partition_cap part_get_num_of_lpar_slots part_get_hyp_config_process_and_mem part_get_hyp_avail_process_and_mem part_get_service_authority_lpar_id part_get_shared_processing_resource part_get_all_vio_info lpar_lhea_mac part_get_all_io_bus_info part_get_lpar_processing part_get_lpar_memory get_huge_page get_cec_bsr);
sub query_cec_info {
my $request = shift;
my $hash = shift;
my $args = $request->{opt};
my @td = ();
my @result = ();
while (my ($mtms,$h) = each(%$hash) ) {
while (my ($name, $d) = each (%$h)) {
@td = @$d;
if (@$d[0] == 0 && @$d[4] ne "lpar") {
last;
}
#my $rethash = query_cec_info_actions($request, $name, $d, 0, ["part_get_lpar_processing","part_get_lpar_memory","part_get_all_vio_info","lpar_lhea_mac","part_get_all_io_bus_info","get_huge_page","get_cec_bsr"]);
my $rethash = query_cec_info_actions($request, $name, $d, 0, ["part_get_lpar_processing","part_get_lpar_memory","part_get_all_io_bus_info","get_huge_page","get_cec_bsr"]);
#push @result, [$name, $rethash, 0];
push @result, @$rethash;
}
if (@td[0] == 0) {
my $rethash = query_cec_info_actions($request, @td[3],\@td, 0);
#push @result, [@td[3], $rethash, 0];
push @result, @$rethash;
}
}
return \@result;
}
########################
#***** partition related
########################
my @partition_config_actions = qw/part_set_lpar_def_state part_set_lpar_pending_proc part_set_lpar_pending_mem part_set_pending_max_vslots part_set_lpar_shared_pool_util_auth part_set_lpar_group_id part_set_lpar_avail_priority part_set_partition_placement part_set_lhea_assign_info part_set_phea_port_info part_set_lhea_port_info part_set_veth_slot_config part_set_vscsi_slot_config part_set_vfchan_slot_config part_clear_vslot_config set_huge_page set_lpar_name/;
sub set_lpar_undefined {
my $request = shift;
my $name = shift;
my $attr = shift;
my $values = xCAT::FSPUtils::fsp_api_action($request, $name, $attr, "part_set_lpar_def_state", 0, 0x0);
if (!@$values[2]) {
return ([$name,"Done",0]);
}
return $values;
}
sub clear_service_authority_lpar {
my $request = shift;
my $name = shift;
my $attr = shift;
my $values = xCAT::FSPUtils::fsp_api_action($request, $name, $attr, "part_get_service_authority_lpar_id");
my @array = split /\n/, @$values[1];
my $service_lparid = undef;
foreach my $line (@array) {
if ($line =~ /Authority Lpar id:([-|\d]+)./i) {
$service_lparid = $1;
}
}
if (defined($service_lparid) and $service_lparid == @$attr[0]) {
xCAT::FSPUtils::fsp_api_action($request, $name, $attr, "part_set_service_authority_lpar_id");
}
}
sub remove {
my $request = shift;
my $hash = shift;
my @result = ();
while (my ($mtms, $h) = each (%$hash)) {
while (my ($name, $d) = each (%$h)) {
if (@$d[4] ne "lpar") {
push @result, [$name, "Node must be LPAR", 1];
last;
}
&clear_service_authority_lpar($request, $name, $d);
my $values = &set_lpar_undefined($request, $name, $d);
push @result, $values;
}
}
return \@result;
}
sub deal_with_avail_mem {
my $request = shift;
my $name = shift;
my $d = shift;
my $lparhash = shift;
my $max_required_regions;
if ($lparhash->{memory} =~ /(\d+)\/(\d+)\/(\d+)/) {
my ($min,$cur,$max);
my $used_regions = 0;
my $cur_avail = 0;
$min = $1;
$cur = $2;
$max = $3;
my %tmphash;
my $values;
if (exists($lparhash->{lpar_used_regions})) {
$values = xCAT::FSPUtils::fsp_api_action($request, $name, $d, "part_get_lpar_memory");
&parse_part_get_info(\%tmphash, @$values[1]);
if (exists($tmphash{lpar_used_regions})) {
$used_regions = $tmphash{lpar_used_regions};
}
}
$values = xCAT::FSPUtils::fsp_api_action($request, $name, $d, "part_get_hyp_res_mem_regions", 0, $3);
&parse_part_get_info(\%tmphash, @$values[1]);
if (exists($tmphash{lpar0_used_mem}) && exists($tmphash{phy_min_mem_req})) {
if ($min < $tmphash{phy_min_mem_req}) {
$min = $tmphash{phy_min_mem_req};
}
if (exists($lparhash->{lpar0_used_dec})) {
$cur_avail = $lparhash->{hyp_avail_mem} + $used_regions + $tmphash{lpar0_used_mem};
} else {
$cur_avail = $lparhash->{hyp_avail_mem} + $used_regions - $tmphash{lpar0_used_mem};
}
xCAT::MsgUtils->verbose_message($request, "====****====used:$used_regions,avail:$cur_avail,($min:$cur:$max).");
if ($cur_avail < $min) {
return([$name, "Parse reserverd regions failed, no enough memory, available:$lparhash->{hyp_avail_mem}.", 1]);
}
if ($cur > $cur_avail) {
my $new_cur = $cur_avail;
$lparhash->{memory} = "$min/$new_cur/$max";
}
} else {
return ([$name, "Failed to get hypervisor reserved memory regions.", 1]);
}
}
return 0;
}
sub create_lpar {
my $request = shift;
my $name = shift;
my $d = shift;
my $lparhash = shift;
my $values;
if (exists($request->{opt}->{vios})) {
$values = xCAT::FSPUtils::fsp_api_action($request, $name, $d, "part_set_lpar_def_state", 0, 0x03);
} else {
$values = xCAT::FSPUtils::fsp_api_action($request, $name, $d, "part_set_lpar_def_state", 0, 0x01);
}
if (@$values[2] ne 0) {
return ([[$name, @$values[1], @$values[0]]]);
}
$values = xCAT::FSPUtils::fsp_api_action($request, $name, $d, "set_lpar_name", 0, $name);
if (@$values[2] ne 0) {
&set_lpar_undefined($request, $name, $d);
return ([$name, @$values[1], @$values[0]]);
}
xCAT::FSPUtils::fsp_api_action($request, $name, $d, "part_set_lpar_shared_pool_util_auth");
xCAT::FSPUtils::fsp_api_action($request, $name, $d, "part_set_lpar_group_id");
xCAT::FSPUtils::fsp_api_action($request, $name, $d, "part_set_lpar_avail_priority");
#print "======>physlots:$lparhash->{physlots}.\n";
$values = xCAT::FSPUtils::fsp_api_action($request, $name, $d, "set_io_slot_owner_uber", 0, $lparhash->{physlots});
#$values = xCAT::FSPUtils::fsp_api_action($request, $name, $d, "set_io_slot_owner", 0, join(",",@phy_io_array));
if (@$values[2] ne 0) {
&set_lpar_undefined($request, $name, $d);
return ([$name, @$values[1], @$values[2]]);
}
if (exists($lparhash->{phy_hea})) {
my $phy_hash = $lparhash->{phy_hea};
foreach my $phy_drc (keys %$phy_hash) {
#print "======> set_lhea_assign_info: drc_index:$phy_drc.\n";
xCAT::FSPUtils::fsp_api_action($request, $name, $d, "part_set_lhea_assign_info", 0, $phy_drc);
my $group_hash = $phy_hash->{$phy_drc};
foreach my $group_id (keys %$group_hash) {
my @lhea_drc = (keys %{$lparhash->{logic_drc_phydrc}->{$group_id}});
foreach my $phy_port_id (keys %{$group_hash->{$group_id}}) {
my $tmp_param = "$phy_drc,$group_id,$phy_port_id";
#print "======> set_phea_port_info: $tmp_param.\n";
xCAT::FSPUtils::fsp_api_action($request, $name, $d, "part_set_phea_port_info", 0, $tmp_param);
my $tmp_lhea_param = $lhea_drc[$phy_port_id].",$phy_port_id";
#print "======> set_lhea_port_info: $tmp_lhea_param.\n";
xCAT::FSPUtils::fsp_api_action($request, $name, $d, "part_set_lhea_port_info", 0, $tmp_lhea_param);
}
delete ($lparhash->{logic_drc_phydrc}->{$group_id}->{$lhea_drc[0]});
delete ($lparhash->{logic_drc_phydrc}->{$group_id}->{$lhea_drc[1]});
}
}
}
#print "======>cpus:$lparhash->{cpus}.\n";
$values = xCAT::FSPUtils::fsp_api_action($request, $name, $d, "part_set_lpar_pending_proc", 0, $lparhash->{cpus});
if (@$values[2] ne 0) {
&set_lpar_undefined($request, $name, $d);
return ([$name, @$values[1], @$values[2]]);
}
$values = &deal_with_avail_mem($request, $name, $d,$lparhash);
if (ref($values) eq "ARRAY") {
&set_lpar_undefined($request, $name, $d);
return ([@$values]);
}
#print "======>memory:$lparhash->{memory}.\n";
$values = xCAT::FSPUtils::fsp_api_action($request, $name, $d, "part_set_lpar_pending_mem", 0, $lparhash->{memory});
if (@$values[2] ne 0) {
&set_lpar_undefined($request, $name, $d);
return ([$name, @$values[1], @$values[2]]);
}
xCAT::FSPUtils::fsp_api_action($request, $name, $d, "part_set_lpar_comp_modes");
#print "======>memory:$lparhash->{huge_page}.\n";
xCAT::FSPUtils::fsp_api_action($request, $name, $d, "set_huge_page", 0, $lparhash->{huge_page});
#print "======>bsr:$lparhash->{bsr_num}.\n";
xCAT::FSPUtils::fsp_api_action($request, $name, $d, "set_lpar_bsr", 0, $lparhash->{bsr_num});
xCAT::FSPUtils::fsp_api_action($request, $name, $d, "part_set_partition_placement");
if (exists($request->{opt}->{vios})) {
$values = xCAT::FSPUtils::fsp_api_action($request, $name, $d, "part_set_lpar_def_state", 0, 0x04);
} else {
$values = xCAT::FSPUtils::fsp_api_action($request, $name, $d, "part_set_lpar_def_state", 0, 0x02);
}
if (@$values[2] ne 0) {
return ([$name, @$values[1], @$values[2]]);
}
return ([$name, "Done", 0]);
}
sub mkspeclpar {
my $request = shift;
my $hash = shift;
my $opt = $request->{opt};
my $values;
my @result = ();
my $vmtab = xCAT::Table->new( 'vm');
unless($vmtab) {
return([["Error","Cannot open vm table", 1]]);
}
while (my ($mtms, $h) = each (%$hash)) {
my $memhash;
my @nodes = keys(%$h);
my $ent = $vmtab->getNodesAttribs(\@nodes, ['cpus', 'memory','physlots', 'othersettings']);
while (my ($name, $d) = each (%$h)) {
if (@$d[4] ne 'lpar') {
push @result, [$name, "Node must be LPAR", 1];
last;
}
if (!exists($memhash->{run})) {
my @td = @$d;
@td[0] = 0;
$memhash = &query_cec_info_actions($request, $name, \@td, 1, ["part_get_hyp_process_and_mem","lpar_lhea_mac"]);
$memhash->{run} = 1;
}
my $tmp_ent = $ent->{$name}->[0];
if (exists($opt->{vmcpus})) {
$tmp_ent->{cpus} = $opt->{vmcpus};
}
if (exists($opt->{vmmemory})) {
$tmp_ent->{memory} = $opt->{vmmemory};
}
if (exists($opt->{vmphyslots})) {
$tmp_ent->{physlots} = $opt->{vmphyslots};
}
if (exists($opt->{vmothersetting})) {
$tmp_ent->{othersettings} = $opt->{vmothersetting};
}
if (!defined($tmp_ent) ) {
return ([[$name, "Not find params", 1]]);
} elsif (!exists($tmp_ent->{cpus}) || !exists($tmp_ent->{memory}) || !exists($tmp_ent->{physlots})) {
return ([[$name, "The attribute 'vmcpus', 'vmmemory' and 'vmphyslots' are all needed to be specified.", 1]]);
}
if ($tmp_ent->{memory} =~ /(\d+)([G|M]?)\/(\d+)([G|M]?)\/(\d+)([G|M]?)/i) {
my $memsize = $memhash->{mem_region_size};
my $min = $1;
if ($2 == "G" or $2 == '') {
$min = $min * 1024;
}
$min = $min/$memsize;
my $cur = $3;
if ($4 == "G" or $4 == '') {
$cur = $cur * 1024;
}
$cur = $cur/$memsize;
my $max = $5;
if ($6 == "G" or $6 == '') {
$max = $max * 1024;
}
$max = $max/$memsize;
$tmp_ent->{memory} = "$min/$cur/$max";
}
$tmp_ent->{hyp_config_mem} = $memhash->{hyp_config_mem};
$tmp_ent->{hyp_avail_mem} = $memhash->{hyp_avail_mem};
$tmp_ent->{huge_page} = "0/0/0";
$tmp_ent->{bsr_num} = "0";
if (exists($tmp_ent->{othersettings})) {
my $setting = $tmp_ent->{othersettings};
if ($setting =~ /hugepage:(\d+)/) {
my $tmp = $1;
$tmp_ent->{huge_page} = "1/".$tmp."/".$tmp;
}
if ($setting =~ /bsr:(\d+)/) {
$tmp_ent->{bsr_num} = $1;
}
}
$tmp_ent->{phy_hea} = $memhash->{phy_drc_group_port};
$tmp_ent->{logic_drc_phydrc} = $memhash->{logic_drc_phydrc};
$values = &create_lpar($request, $name, $d, $tmp_ent);
push @result, $values;
$name = undef;
$d = undef;
}
}
return \@result;
}
sub mkfulllpar {
my $request = shift;
my $hash = shift;
my $values;
my @result = ();
while (my ($mtms, $h) = each (%$hash)) {
my $rethash;
while (my ($name, $d) = each (%$h)) {
if (@$d[4] ne 'lpar') {
push @result, [$name, "Node must be LPAR", 1];
last;
}
if (!exists($rethash->{run})) {
my @td = @$d;
@td[0] = 0;
$rethash = query_cec_info_actions($request, $name, \@td, 1);
if (ref($rethash) ne 'HASH') {
return ([[$mtms, "Cann't get hypervisor info hash", 1]]);
}
$rethash->{run} = 1;
#print Dumper($rethash);
}
my %lpar_param = ();
$lpar_param{cpus} = "1/".$rethash->{process_units_avail}."/".$rethash->{process_units_config};
$lpar_param{memory} = "1/".$rethash->{hyp_avail_mem}."/".$rethash->{hyp_config_mem};
$lpar_param{hyp_config_mem} = $rethash->{hyp_config_mem};
$lpar_param{hyp_avail_mem} = $rethash->{hyp_avail_mem};
my @phy_io_array = keys(%{$rethash->{bus}});
$lpar_param{physlots} = join(",", @phy_io_array);
$lpar_param{huge_page} = "1/".$rethash->{huge_page_avail}."/".$rethash->{huge_page_avail};
$lpar_param{bsr_num} = $rethash->{cec_bsr_avail};
$lpar_param{phy_hea} = $rethash->{phy_drc_group_port};
$lpar_param{logic_drc_phydrc} = $rethash->{logic_drc_phydrc};
$values = &create_lpar($request, $name, $d, \%lpar_param);
$rethash->{logic_drc_phydrc} = $lpar_param{logic_drc_phydrc};
push @result, $values;
$name = undef;
$d = undef;
}
}
return \@result;
}
##########################################################################
# Creates logical partitions
@@ -1419,13 +2007,14 @@ sub mkvm {
# decide if issuing mkvm with the option '-f'.
# if yes, mklpar will be invoked to
# create a full system partition for each CECs managed by the HMC.
if ( exists($opt->{full})) {
return( mkfulllpar(@_) );
}
else {
# if no, it will execute the original function.
return( create(@_) );
}
if (exists($opt->{p775})) {
return (create(@_));
}
if (exists($opt->{full})) {
return (mkfulllpar(@_));
} else {
return (mkspeclpar(@_));
}
}
##########################################################################
@@ -1439,15 +2028,29 @@ sub chvm {
##########################################################################
# No rmvm for Power 775
##########################################################################
#sub rmvm {
sub rmvm {
my $request = $_[0];
my $opt = $request->{opt};
if (exists($opt->{p775})) {
return ([["lpar","rmvm only support Power Partitioning.", 1]]);
} else {
return( remove(@_) );
}
# return( remove(@_) );
#}
}
##########################################################################
# Lists logical partition profile
##########################################################################
sub lsvm {
return( list(@_) );
my $request = shift;
my $hash = shift;
my $args = $request->{opt};
if (exists($args->{p775})) {
return( list($request, $hash) );
} else {
return (query_cec_info($request, $hash));
}
}
1;
+29
View File
@@ -33,6 +33,13 @@ $::NODETYPE_PPC="ppc";
$::NODETYPE_ZVM="zvm";
$::NODETYPE_MP="mp";
#valid values for nodelist.updatestatus
$::STATUS_SYNCING="syncing";
$::STATUS_OUT_OF_SYNC="out-of-sync";
$::STATUS_SYNCED="synced";
$::STATUS_FAILED="failed";
# valid values for nodelist.status columns or other status
$::STATUS_ACTIVE="alive";
$::STATUS_INACTIVE="unreachable";
@@ -48,6 +55,28 @@ $::STATUS_STANDING_BY="standingby";
$::STATUS_SHELL="shell";
$::STATUS_DEFINED="defined";
$::STATUS_UNKNOWN="unknown";
$::STATUS_FAILED="failed";
%::VALID_STATUS_VALUES = (
$::STATUS_ACTIVE=>1,
$::STATUS_INACTIVE=>1,
$::STATUS_INSTALLING=>1,
$::STATUS_INSTALLED=>1,
$::STATUS_BOOTING=>1,
$::STATUS_NETBOOTING=>1,
$::STATUS_BOOTED=>1,
$::STATUS_POWERING_OFF=>1,
$::STATUS_DISCOVERING=>1,
$::STATUS_CONFIGURING=>1,
$::STATUS_STANDING_BY=>1,
$::STATUS_SHELL=>1,
$::STATUS_DEFINED=>1,
$::STATUS_UNKNOWN=>1,
$::STATUS_FAILED=>1,
$::STATUS_SYNCING=>1,
$::STATUS_OUT_OF_SYNC=>1,
$::STATUS_SYNCED=>1,
);
#defined->[discovering]->[configuring]->[standingby]->installing->[installed]->booting->alive, defined->[discovering]->[configuring]-[standingby]->netbooting->booted->alive, alive/unreachable->booting->alive, powering-off->unreachable, alive->unreachable
%::NEXT_NODESTAT_VAL=(
+22 -20
View File
@@ -9,12 +9,8 @@ BEGIN
# if AIX - make sure we include perl 5.8.2 in INC path.
# Needed to find perl dependencies shipped in deps tarball.
if ($^O =~ /^aix/i)
{
use lib "/usr/opt/perl5/lib/5.8.2/aix-thread-multi";
use lib "/usr/opt/perl5/lib/5.8.2";
use lib "/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi";
use lib "/usr/opt/perl5/lib/site_perl/5.8.2";
if ($^O =~ /^aix/i) {
unshift(@INC, qw(/usr/opt/perl5/lib/5.8.2/aix-thread-multi /usr/opt/perl5/lib/5.8.2 /usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi /usr/opt/perl5/lib/site_perl/5.8.2));
}
use lib "$::XCATROOT/lib/perl";
@@ -27,7 +23,7 @@ use File::Path;
use strict;
require xCAT::Schema;
use xCAT::NetworkUtils;
use xCAT::TableUtils;
#require Data::Dumper;
#use Data::Dumper;
require xCAT::NodeRange;
@@ -71,12 +67,14 @@ sub getnimprime
# the primary NIM master is either specified in the site table
# or it is the xCAT management node.
my $nimprime = xCAT::Utils->get_site_Master();
my $sitetab = xCAT::Table->new('site');
(my $et) = $sitetab->getAttribs({key => "nimprime"}, 'value');
if ($et and $et->{value})
my $nimprime = xCAT::TableUtils->get_site_Master();
#my $sitetab = xCAT::Table->new('site');
#(my $et) = $sitetab->getAttribs({key => "nimprime"}, 'value');
my @nimprimes = xCAT::TableUtils->get_site_attribute("nimprime");
my $tmp = $nimprimes[0];
if (defined($tmp))
{
$nimprime = $et->{value};
$nimprime = $tmp;
}
my $hostname;
@@ -128,7 +126,7 @@ sub myxCATname
if (xCAT::Utils->isMN())
{
# read the site table, master attrib
my $hostname = xCAT::Utils->get_site_Master();
my $hostname = xCAT::TableUtils->get_site_Master();
if (($hostname =~ /\d+\.\d+\.\d+\.\d+/) || ($hostname =~ /:/))
{
$name = xCAT::NetworkUtils->gethostname($hostname);
@@ -752,11 +750,11 @@ sub get_server_nodes
else
{
# get ip facing node
$serv = xCAT::Utils->my_ip_facing($node);
$serv = xCAT::NetworkUtils->my_ip_facing($node);
}
chomp $serv;
if (xCAT::Utils->validate_ip($serv)) {
if (xCAT::NetworkUtils->validate_ip($serv)) {
push (@{$servernodes{$serv}}, $node);
}
}
@@ -895,12 +893,12 @@ sub dolitesetup
}
}
if (-e $litetreetab) {
my $rc = xCAT::Utils->runcmd("rm $litetreetab", -1);
if (-e $litetreetable) {
my $rc = xCAT::Utils->runcmd("rm $litetreetable", -1);
if ($::RUNCMD_RC != 0)
{
my $rsp;
push @{$rsp->{data}}, "Could not remove existing $litetreetab file.";
push @{$rsp->{data}}, "Could not remove existing $litetreetable file.";
xCAT::MsgUtils->message("E", $rsp, $callback);
return 1;
}
@@ -1134,7 +1132,11 @@ sub dolitesetup
# $file could be full path file name or dir name
# ex. /foo/bar/ or /etc/lppcfg
my ($node, $option, $file) = split (/\|/, $line);
if (!$file) {
next;
}
# ex. .../inst_root/foo/bar/ or .../inst_root/etc/lppcfg
my $instrootfile = $instrootloc . $file;
@@ -1284,7 +1286,7 @@ sub dolitesetup
# add aixlitesetup to ..inst_root/aixlitesetup
# this will wind up in the root dir on the node ("/")
my $install_dir = xCAT::Utils->getInstallDir();
my $install_dir = xCAT::TableUtils->getInstallDir();
my $cpcmd = "/bin/cp $install_dir/postscripts/aixlitesetup $instrootloc/aixlitesetup; chmod +x $instrootloc/aixlitesetup";
my $out = xCAT::Utils->runcmd("$cpcmd", -1);
+199
View File
@@ -0,0 +1,199 @@
#!/usr/bin/env perl
## IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
package xCAT::KitPluginUtils;
BEGIN
{
$::XCATROOT = $ENV{'XCATROOT'} ? $ENV{'XCATROOT'} : '/opt/xcat';
}
use lib "$::XCATROOT/lib/perl";
use strict;
use warnings;
require xCAT::Table;
#-------------------------------------------------------
=head3 get_kits_used_by_nodes
Get the kits used by a list of nodes. A node uses a kit
if one or more of the kit's components are installed
on the node.
Arguments: list of node names (ref)
Returns: Return hash table which indexes the node names
by kitname (ref)
e.g.,
{ "kitname1" => ["node11","node12",...],
"kitname2" => ["node21","node22",...]
...
}
Examples:
my @nodes = ("node11", "node12",...);
my $result = xCAT::KitPluginUtils->get_kits_used_by_nodes(\@nodes);
=cut
#-------------------------------------------------------
sub get_kits_used_by_nodes {
my $class = shift;
my $nodes = shift;
# Group the nodes by what osimage they use
my $tablename = "nodetype";
my $table = xCAT::Table->new($tablename);
my $ent = $table->getNodesAttribs($nodes, ["provmethod"]);
my $osimage_to_nodes = {};
foreach my $node (keys(%$ent)) {
my $provmethod = $ent->{$node}->[0]->{"provmethod"};
if (defined($provmethod)) {
push(@{ $osimage_to_nodes->{$provmethod} }, $node);
}
}
# Group the osimages by what kits they use
my @osimages = keys(%$osimage_to_nodes);
my $kits_to_osimages = xCAT::KitPluginUtils->get_kits_used_by_osimages(\@osimages);
# Group nodes by kit
my $kits_to_nodes = {};
foreach my $kit (keys(%$kits_to_osimages)) {
my $tmphash = {};
my $osimages = $kits_to_osimages->{$kit};
foreach my $osimage (@$osimages) {
# Store nodes as hash keys to eliminate duplicates
my @nodes = @{ $osimage_to_nodes->{$osimage} };
@$tmphash{@nodes} = ();
}
my @nodes = keys(%$tmphash);
$kits_to_nodes->{$kit} = \@nodes;
}
return $kits_to_nodes;
}
#-------------------------------------------------------
=head3 get_kits_used_by_osimages
Get the kits used by a list of osimages. An osimage
uses a kit if one or more of the kit's components
are associated with the osimage.
Arguments: list of osimage names (ref)
Returns: Return hash table which indexes the osimage
names by kitname (ref)
e.g.,
{ "kitname1" => ["osimage11","osimage12",...],
"kitname2" => ["osimage21","osimage22",...]
...
}
Examples:
my @osimages = ("osimage11","osimage12", ...);
my $result = xCAT::KitPluginUtils->get_kits_used_by_osimages(\@osimages);
=cut
#-------------------------------------------------------
sub get_kits_used_by_osimages {
my $class = shift;
my $osimages = shift;
# Get the kit components used by each osimage
my $tablename = "osimage";
my $table = xCAT::Table->new($tablename);
my $osimages_str = join ",", map {'\''.$_.'\''} @$osimages;
my $filter_stmt = sprintf("imagename in (%s)", $osimages_str);
my @table_rows = $table->getAllAttribsWhere($filter_stmt, ("imagename", "kitcomponents"));
my $kitcomps_to_osimages = {};
foreach my $row (@table_rows) {
if (defined($row->{kitcomponents})) {
my @kitcomps = split(/,/, $row->{kitcomponents});
foreach my $kitcomp (@kitcomps) {
push(@{ $kitcomps_to_osimages->{$kitcomp} }, $row->{imagename});
}
}
}
# Get the kit for each kit component
$tablename = "kitcomponent";
$table = xCAT::Table->new($tablename);
my $kitcomps_str = join ",", map {'\''.$_.'\''} keys(%$kitcomps_to_osimages);
$filter_stmt = sprintf("kitcompname in (%s)", $kitcomps_str);
@table_rows = $table->getAllAttribsWhere($filter_stmt, ("kitcompname", "kitname"));
my $kits_to_kitcomps = {};
foreach my $row (@table_rows) {
my $kitname = $row->{kitname};
my $kitcompname = $row->{kitcompname};
push(@{ $kits_to_kitcomps->{$kitname} }, $kitcompname);
}
# Match up kits to osimages
my $kits_to_osimages = {};
foreach my $kit (keys(%$kits_to_kitcomps)) {
my $tmphash = {};
my $kitcomps = $kits_to_kitcomps->{$kit};
foreach my $kitcomp (@$kitcomps) {
# Store osimages as hash keys to eliminate duplicates
my @osimages = @{ $kitcomps_to_osimages->{$kitcomp} };
@$tmphash{@osimages} = ();
}
my @osimages = keys(%$tmphash);
$kits_to_osimages->{$kit} = \@osimages;
}
return $kits_to_osimages;
}
#-------------------------------------------------------
=head3 get_kits_used_by_image_profiles
Get the kits used by a list of image profiles.
Arguments: list of image profile names (ref)
Returns: Return hash table which indexes the image
profile names by kitname (ref)
e.g.,
{ "kitname1" => ["imgprofile11","imgprofile12",...],
"kitname2" => ["imgprofile21","imgprofile22",...]
...
}
Examples:
my @imgprofiles = ("imgprofile11","imgprofile12",...);
my $result = xCAT::KitPluginUtils->get_kits_used_by_image_profiles(\@imgprofiles);
=cut
#-------------------------------------------------------
sub get_kits_used_by_image_profiles {
my $class = shift;
return xCAT::KitPluginUtils->get_kits_used_by_osimages(@_);
}
+36 -7
View File
@@ -1849,6 +1849,14 @@ sub boot_network {
$state = $newstate[$state];
}
],
# For some old firmware, does not output "----"
[qr/BOOTP/=>
sub {
nc_msg ($verbose, $msg[$state]);
$rconsole->clear_accum();
$state = $newstate[$state];
}
],
[qr/]/=>
sub {
nc_msg($verbose, "Unexpected prompt\n");
@@ -1917,7 +1925,28 @@ sub Boot {
#],
[qr/BOOTP/=> #-ex
sub {
nc_msg($verbose, "# Network boot proceeding, exiting.\n");
nc_msg($verbose, "# Network boot proceeding - matched BOOTP, exiting.\n");
$rconsole->clear_accum();
}
],
# Welcome to AIX - some old firmware does not output BOOTP or ----
[qr/Welcome/=> #-ex
sub {
nc_msg($verbose, "# Network boot proceeding - matched Welcome, exiting.\n");
$rconsole->clear_accum();
}
],
# tftp file download - some old firmware does not output BOOTP or ----
[qr/FILE/=> #-ex
sub {
nc_msg($verbose, "# Network boot proceeding - matched FILE.\n");
$rconsole->clear_accum();
}
],
# some old firmware does not output BOOTP or ----
[qr/Elapsed/=> #-ex
sub {
nc_msg($verbose, "# Network boot proceeding - matched Elapsed, exiting.\n");
$rconsole->clear_accum();
}
],
@@ -3148,12 +3177,12 @@ sub lparnetbootexp
}
],
);
return [1] if ($rc eq 1);
}
nc_msg($verbose, "# bootp sent over network.\n");
$rc = Boot($rconsole, $node, $verbose);#, @expect_out);
unless ($rc eq 0) {
nc_msg($verbose, "Can't boot here. \n");
return [1] if ($rc eq 1);
nc_msg($verbose, "# bootp sent over network.\n");
$rc = Boot($rconsole, $node, $verbose);#, @expect_out);
unless ($rc eq 0) {
nc_msg($verbose, "Can't boot here. \n");
}
}
}
+12 -6
View File
@@ -15,6 +15,7 @@ use strict;
use xCAT::Table;
use xCAT::Utils;
use xCAT::MsgUtils;
use xCAT::TableUtils;
use IO::Select;
use IO::Handle;
use Sys::Syslog;
@@ -172,9 +173,11 @@ sub rvlan {
# operation => "pvid=<vid> or vlan=<vid>" for now, addvlan= and delvlan= for tagged vlans, 'pvid', vlan, or stat without = checks current value
my $self=shift;
my $community = "public";
$self->{sitetab} = xCAT::Table->new('site');
my $tmp = $self->{sitetab}->getAttribs({key=>'snmpc'},'value');
if ($tmp and $tmp->{value}) { $community = $tmp->{value} }
#$self->{sitetab} = xCAT::Table->new('site');
#my $tmp = $self->{sitetab}->getAttribs({key=>'snmpc'},'value');
my @snmpcs = xCAT::TableUtils->get_site_attribute("snmpc");
my $tmp = $snmpcs[0];
if ( defined($tmp) ) { $community = $tmp }
my %args = @_;
my $op=$args{operation};
my $nodes=$args{nodes};
@@ -302,9 +305,12 @@ sub refresh_table {
$self->{switchestab} = xCAT::Table->new('switches', -create => 1);
my @switchentries=$self->{switchestab}->getAllNodeAttribs([qw(switch snmpversion username password privacy auth)]);
my $community = "public";
$self->{sitetab} = xCAT::Table->new('site');
my $tmp = $self->{sitetab}->getAttribs({key=>'snmpc'},'value');
if ($tmp and $tmp->{value}) { $community = $tmp->{value} }
#$self->{sitetab} = xCAT::Table->new('site');
#my $tmp = $self->{sitetab}->getAttribs({key=>'snmpc'},'value');
#if ($tmp and $tmp->{value}) { $community = $tmp->{value} }
my @snmpcs = xCAT::TableUtils->get_site_attribute("snmpc");
my $tmp = $snmpcs[0];
if ( defined($tmp) ) { $community = $tmp }
else { #Would warn here..
}
$self->{switchparmhash}={};
+16 -19
View File
@@ -5,16 +5,12 @@ package xCAT::MsgUtils;
# if AIX - make sure we include perl 5.8.2 in INC path.
# Needed to find perl dependencies shipped in deps tarball.
if ($^O =~ /^aix/i)
{
use lib "/usr/opt/perl5/lib/5.8.2/aix-thread-multi";
use lib "/usr/opt/perl5/lib/5.8.2";
use lib "/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi";
use lib "/usr/opt/perl5/lib/site_perl/5.8.2";
if ($^O =~ /^aix/i) {
unshift(@INC, qw(/usr/opt/perl5/lib/5.8.2/aix-thread-multi /usr/opt/perl5/lib/5.8.2 /usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi /usr/opt/perl5/lib/site_perl/5.8.2));
}
use strict;
use Sys::Syslog qw (:DEFAULT setlogsock);
use Sys::Syslog;
use xCAT::Utils;
#use locale;
use Socket;
@@ -137,7 +133,8 @@ This program module file, supports the xcat messaging and logging
D - DATA goes to STDOUT
E - error. This type of message will be sent to STDERR.
I - informational goes to STDOUT
si - informational status info (sinfo)
I - informational goes to STDOUT
N - Node informational goes to STDOUT
S - Message will be logged to syslog ( severe error)
Note S can be combined with other flags for example
@@ -213,12 +210,14 @@ This program module file, supports the xcat messaging and logging
$rsp->{node}->[0]->{data}->[0] ="mydata";
xCAT::MsgUtils->message("N", $rsp, $callback);
my $rsp = {};
$rsp->{info}->[0] = "No hosts in node list\n";
xCAT::MsgUtils->message("I", $rsp, $::CALLBACK);
my $rsp = {};
$rsp->{sinfo}->[0] = "No hosts in node list\n";
xCAT::MsgUtils->message("IS", $rsp, $::CALLBACK);
my $rsp = {};
$rsp->{warning}->[0] = "No hosts in node list\n";
@@ -275,7 +274,7 @@ sub message
my $call_back = shift; # optional
my $exitcode = shift; # optional
# should be I, D, E, S, SA ,LS, W , L,N
# should be I,IS, D, E, S, SA ,LS, W , L,N
# or S(I, D, E, S, W, L,N)
#
# if new SA option need to split syslog messages from auditlog entry
@@ -357,6 +356,7 @@ sub message
my $sevkey;
if ($sev =~ /D/) { $sevkey = 'data'; }
elsif ($sev =~ /N/) { $sevkey = 'node'; }
elsif ($sev =~ /IS/) { $sevkey = 'sinfo'; }
elsif ($sev =~ /I/) { $sevkey = 'info'; }
elsif ($sev =~ /W/) { $sevkey = 'warning'; }
elsif ($sev =~ /E/)
@@ -408,7 +408,7 @@ sub message
return;
}
if ($exitcode)
if (defined($exitcode))
{
push @{$rsp->{errorcode}}, $exitcode;
}
@@ -456,8 +456,7 @@ sub message
# If they want this msg to also go to syslog, do that now
eval {
openlog("xCAT", '', 'local4');
setlogsock(["tcp", "unix", "stream"]);
openlog("xCAT", "nofatal,pid", "local4");
if ($sev eq 'SE') {
syslog("err", $rsp);
} else {
@@ -503,8 +502,7 @@ sub message
{
print $stdouterrf "Unable to open auditlog\n";
eval {
openlog("xCAT", '', 'local4');
setlogsock(["tcp", "unix", "stream"]);
openlog("xCAT", "nofatal,pid", "local4");
syslog("err", "Unable to write to auditlog");
closelog();
};
@@ -521,8 +519,7 @@ sub message
{ # error
print $stdouterrf "Unable to open auditlog\n";
eval {
openlog("xCAT", '', 'local4');
setlogsock(["tcp", "unix", "stream"]);
openlog("xCAT", "nofatal,pid", "local4");
syslog("err", "Unable to open auditlog");
closelog();
};
@@ -720,7 +717,7 @@ sub verbose_message
}
my ($sec,$min,$hour,$mday,$mon,$yr,$wday,$yday,$dst) = localtime(time);
my $time = sprintf "%04d%02d%02d.%02d:%02d:%02d", $yr+1900,$mon+1,$mday,$hour,$min,$sec;
$data = "$time ($$) ".$data;
$data = "$time ($$) ".$data;
if (defined($req->{callback})) {
my %rsp;
$rsp{data} = [$data];
-271
View File
@@ -1,271 +0,0 @@
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
package xCAT::NameRange;
require xCAT::Table;
require Exporter;
use strict;
#Perl implementation of namerange
# NOTE: This is identical to xCAT::NodeRange except that no
# database access occurs, no nodes are verified, and
# no nodegroups are expanded.
# Made a new utility since NodeRange is used EVERYWHERE in
# xCAT code and did not want to risk de-stabilizing existing code.
our @ISA = qw(Exporter);
our @EXPORT = qw(namerange);
my $recurselevel=0;
sub subnodes (\@@) {
#Subtract set of nodes from the first list
my $nodes = shift;
my $node;
foreach $node (@_) {
@$nodes = (grep(!/^$node$/,@$nodes));
}
}
sub expandatom {
my $atom = shift;
my @nodes= ();
if ($atom =~ /^\(.*\)$/) { # handle parentheses by recursively calling namerange()
$atom =~ s/^\((.*)\)$/$1/;
$recurselevel++;
return namerange($atom);
}
if ($atom =~ /@/) {
$recurselevel++;
return namerange($atom);
}
if ($atom =~ m/^\//) { # A regular expression - not supported in namerange
return ($atom);
}
if ($atom =~ m/(.*)\[(.*)\](.*)/) { # square bracket range
#for the time being, we are only going to consider one [] per atom
#xcat 1.2 does no better
my @subelems = split(/([\,\-\:])/,$2);
my $subrange="";
while (my $subelem = shift @subelems) {
my $subop=shift @subelems;
$subrange=$subrange."$1$subelem$3$subop";
}
foreach (split /,/,$subrange) {
my @newnodes=expandatom($_);
@nodes=(@nodes,@newnodes);
}
return @nodes;
}
if ($atom =~ m/\+/) { # process the + operator
$atom =~ m/^([^0-9]*)([0-9]+)([^\+]*)\+([0-9]+)/;
my $pref=$1;
my $startnum=$2;
my $suf=$3;
my $end=$4+$startnum;
my $endnum = sprintf("%d",$end);
if (length ($startnum) > length ($endnum)) {
$endnum = sprintf("%0".length($startnum)."d",$end);
}
foreach ("$startnum".."$endnum") {
my @addnodes=expandatom($pref.$_.$suf);
@nodes=(@nodes,@addnodes);
}
return (@nodes);
}
if ($atom =~ m/[-:]/) { # process the minus range operator
my $left;
my $right;
if ($atom =~ m/:/) {
($left,$right)=split /:/,$atom;
} else {
my $count= ($atom =~ tr/-//);
if (($count % 2)==0) { #can't understand even numbers of - in range context
# we might not really be in range context
return ($atom);
}
my $expr="([^-]+?".("-[^-]*"x($count/2)).")-(.*)";
$atom =~ m/$expr/;
$left=$1;
$right=$2;
}
if ($left eq $right) { #if they said node1-node1 for some strange reason
return expandatom($left);
}
my @leftarr=split(/(\d+)/,$left);
my @rightarr=split(/(\d+)/,$right);
if (scalar(@leftarr) != scalar(@rightarr)) { #Mismatch formatting..
# guess it's meant to be a nodename
return ($atom);
}
my $prefix = "";
my $suffix = "";
foreach (0..$#leftarr) {
my $idx = $_;
if ($leftarr[$idx] =~ /^\d+$/ and $rightarr[$idx] =~ /^\d+$/) { #pure numeric component
if ($leftarr[$idx] ne $rightarr[$idx]) { #We have found the iterator (only supporting one for now)
my $prefix = join('',@leftarr[0..($idx-1)]); #Make a prefix of the pre-validated parts
my $luffix; #However, the remainder must still be validated to be the same
my $ruffix;
if ($idx eq $#leftarr) {
$luffix="";
$ruffix="";
} else {
$ruffix = join('',@rightarr[($idx+1)..$#rightarr]);
$luffix = join('',@leftarr[($idx+1)..$#leftarr]);
}
if ($luffix ne $ruffix) { #the suffixes mismatched..
return ($atom);
}
foreach ($leftarr[$idx]..$rightarr[$idx]) {
my @addnodes=expandatom($prefix.$_.$luffix);
@nodes=(@nodes,@addnodes);
}
return (@nodes); #the return has been built, return, exiting loop and all
}
} elsif ($leftarr[$idx] ne $rightarr[$idx]) {
return ($atom);
}
$prefix .= $leftarr[$idx]; #If here, it means that the pieces were the same, but more to come
}
#I cannot conceive how the code could possibly be here, but whatever it is, it must be questionable
return ($atom);
}
return ($atom);
}
sub namerange {
#We for now just do left to right operations
my $range=shift;
my %nodes = ();
my %delnodes = ();
my $op = ",";
my @elems = split(/(,(?![^[]*?])(?![^\(]*?\)))/,$range); # commas outside of [] or ()
if (scalar(@elems)==1) {
@elems = split(/(@(?![^\(]*?\)))/,$range); # only split on @ when no , are present (inner recursion)
}
while (my $atom = shift @elems) {
if ($atom =~ /^-/) { # if this is an exclusion, strip off the minus, but remember it
$atom = substr($atom,1);
$op = $op."-";
}
if ($atom =~ /^\^(.*)$/) { # get a list of nodes from a file
open(NRF,$1);
while (<NRF>) {
my $line=$_;
unless ($line =~ m/^[\^#]/) {
$line =~ m/^([^: ]*)/;
my $newrange = $1;
chomp($newrange);
$recurselevel++;
my @filenodes = namerange($newrange);
foreach (@filenodes) {
$nodes{$_}=1;
}
}
}
close(NRF);
next;
}
my %newset = map { $_ =>1 } expandatom($atom); # expand the atom and make each entry in the resulting array a key in newset
if ($op =~ /@/) { # compute the intersection of the current atom and the node list we have received before this
foreach (keys %nodes) {
unless ($newset{$_}) {
delete $nodes{$_};
}
}
} elsif ($op =~ /,-/) { # add the nodes from this atom to the exclude list
foreach (keys %newset) {
$delnodes{$_}=1; #delay removal to end
}
} else { # add the nodes from this atom to the total node list
foreach (keys %newset) {
$nodes{$_}=1;
}
}
$op = shift @elems;
} # end of main while loop
# Now remove all the exclusion nodes
foreach (keys %nodes) {
if ($delnodes{$_}) {
delete $nodes{$_};
}
}
if ($recurselevel) {
$recurselevel--;
}
return sort (keys %nodes);
}
1;
=head1 NAME
xCAT::NameRange - Perl module for xCAT namerange expansion
=head1 SYNOPSIS
use xCAT::NameRange;
my @nodes=namerange("storage@rack1,node[1-200],^/tmp/nodelist,node300-node400,node401+10,500-550");
=head1 DESCRIPTION
namerange interprets xCAT noderange formatted strings and returns a list of
names. The following two operations are supported on elements, and interpreted
left to right:
, union next element with everything to the left.
@ take intersection of element to the right with everything on the left
(i.e. mask out anything to the left not belonging to what is described to
the right)
Each element can be a number of things:
A node name, i.e.:
=item * node1
A hyphenated node range (only one group of numbers may differ between the left and right hand side, and those numbers will increment in a base 10 fashion):
node1-node200 node1-compute-node200-compute
node1:node200 node1-compute:node200-compute
A namerange denoted by brackets:
node[1-200] node[001-200]
A regular expression describing the namerange:
/d(1.?.?|200)
A node plus offset (this increments the first number found in nodename):
node1+199
And most of the above substituting groupnames.
3C
3C
NameRange tries to be intelligent about detecting padding, so you can:
node001-node200
And it will increment according to the pattern.
=head1 COPYRIGHT
Copyright 2007 IBM Corp. All rights reserved.
=cut
File diff suppressed because it is too large Load Diff
+98 -32
View File
@@ -1,5 +1,6 @@
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
package xCAT::NodeRange;
use Text::Balanced qw/extract_bracketed/;
require xCAT::Table;
require Exporter;
use strict;
@@ -180,7 +181,14 @@ sub nodesbycriteria {
return \%critnodes;
}
sub expandatom { #TODO: implement table selection as an atom (nodetype.os==rhels5.3)
# Expand one part of the noderange from the noderange() function. Initially, one part means the
# substring between commas in the noderange. But expandatom also calls itself recursively to
# further expand some parts.
# Input args:
# - atom to expand
# - verify: whether or not to require that the resulting nodenames exist in the nodelist table
# - options: genericrange - a purely syntactical expansion of the range, not using the db at all, e.g not expanding group names
sub expandatom {
my $atom = shift;
if ($recurselevel > 4096) { die "NodeRange seems to be hung on evaluating $atom, recursion limit hit"; }
unless (scalar(@allnodeset) and (($allnodesetstamp+5) > time())) { #Build a cache of all nodes, some corner cases will perform worse, but by and large it will do better. We could do tests to see where the breaking points are, and predict how many atoms we have to evaluate to mitigate, for now, implement the strategy that keeps performance from going completely off the rails
@@ -189,25 +197,28 @@ sub expandatom { #TODO: implement table selection as an atom (nodetype.os==rhels
@allnodeset = $nodelist->getAllAttribs('node','groups');
%allnodehash = map { $_->{node} => 1 } @allnodeset;
}
my $verify = (scalar(@_) == 1 ? shift : 1);
my $verify = (scalar(@_) >= 1 ? shift : 1);
my %options = @_; # additional options
my @nodes= ();
#TODO: these env vars need to get passed by the client to xcatd
my $nprefix=(defined ($ENV{'XCAT_NODE_PREFIX'}) ? $ENV{'XCAT_NODE_PREFIX'} : 'node');
my $nsuffix=(defined ($ENV{'XCAT_NODE_SUFFIX'}) ? $ENV{'XCAT_NODE_SUFFIX'} : '');
if ($allnodehash{$atom}) { #The atom is a plain old nodename
if (not $options{genericrange} and $allnodehash{$atom}) { #The atom is a plain old nodename
return ($atom);
}
if ($atom =~ /^\(.*\)$/) { # handle parentheses by recursively calling noderange()
$atom =~ s/^\((.*)\)$/$1/;
$recurselevel++;
return noderange($atom);
return noderange($atom,$verify,1,%options);
}
if ($atom =~ /@/) {
$recurselevel++;
return noderange($atom);
return noderange($atom,$verify,1,%options);
}
# Try to match groups?
unless ($options{genericrange}) {
unless ($grptab) {
$grptab = xCAT::Table->new('nodegroup');
}
@@ -269,7 +280,9 @@ sub expandatom { #TODO: implement table selection as an atom (nodetype.os==rhels
}
}
}
}
# node selection based on db attribute values (nodetype.os==rhels5.3)
if ($atom =~ m/[=~]/) { #TODO: this is the clunky, slow code path to acheive the goal. It also is the easiest to write, strange coincidence. Aggregating multiples would be nice
my @nodes;
foreach (@allnodeset) {
@@ -287,7 +300,7 @@ sub expandatom { #TODO: implement table selection as an atom (nodetype.os==rhels
}
if ($atom =~ m/^[0-9]+\z/) { # if only numbers, then add the prefix
my $nodename=$nprefix.$atom.$nsuffix;
return expandatom($nodename,$verify);
return expandatom($nodename,$verify,%options);
}
my $nodelen=@nodes;
if ($nodelen > 0) {
@@ -295,7 +308,7 @@ sub expandatom { #TODO: implement table selection as an atom (nodetype.os==rhels
}
if ($atom =~ m/^\//) { # A regular expression
unless ($verify) { # If not in verify mode, regex makes zero possible sense
if ($verify==0 or $options{genericrange}) { # If not in verify mode, regex makes zero possible sense
return ($atom);
}
#TODO: check against all groups
@@ -309,25 +322,29 @@ sub expandatom { #TODO: implement table selection as an atom (nodetype.os==rhels
}
if ($atom =~ m/(.+?)\[(.+?)\](.*)/) { # square bracket range
# if there are more than 1 [], we picked off just the 1st. if there is another, we will process it later
my @subelems = split(/([\,\-\:])/,$2);
# if there is more than 1 set of [], we picked off just the 1st. If there more sets of [], we will expand
# the 1st set and create a new set of atom by concatenating each result in the 1st expandsion with the rest
# of the brackets. Then call expandatom() recursively on each new atom.
my @subelems = split(/([\,\-\:])/,$2); # $2 is the range inside the 1st set of brackets
my $subrange="";
my $subelem;
my $start = $1;
my $ending = $3;
my $morebrackets = $ending =~ /\[.+?\]/; # if there are more brackets, we have to expand just the 1st part, then add the 2nd part later
while (scalar @subelems) {
my $subelem = shift @subelems;
my $subelem;
my $start = $1; # the text before the 1st set of brackets
my $ending = $3; # the text after the 1st set of brackets (could contain more brackets)
my $morebrackets = $ending =~ /\[.+?\]/; # if there are more brackets, we have to expand just the 1st part, then add the 2nd part later
while (scalar @subelems) { # this while loop turns something like a[1-3] into a1-a3 because another section of expand atom knows how to expand that
my $subelem = shift @subelems;
my $subop=shift @subelems;
$subrange=$subrange."$start$subelem" . ($morebrackets?'':$ending) . "$subop";
}
foreach (split /,/,$subrange) {
my @newnodes=expandatom($_, ($morebrackets?0:$verify));
foreach (split /,/,$subrange) { # this foreach is in case there were commas inside the brackets originally, e.g.: a[1,3,5]b[1-2]
# this expandatom just expands the part of the noderange that contains the 1st set of brackets
# e.g. if noderange is a[1-2]b[1-2] it will create newnodes of a1 and a2
my @newnodes=expandatom($_, ($morebrackets?0:$verify), genericrange=>($morebrackets||$options{genericrange}));
if (!$morebrackets) { push @nodes,@newnodes; }
else {
# for each of the new nodes, add the 2nd brackets and then expand
# for each of the new nodes (prefixes), add the rest of the brackets and then expand recursively
foreach my $n (@newnodes) {
push @nodes, expandatom("$n$ending", $verify);
push @nodes, expandatom("$n$ending", $verify, %options);
}
}
}
@@ -349,7 +366,7 @@ sub expandatom { #TODO: implement table selection as an atom (nodetype.os==rhels
$suf=$nsuffix;
}
foreach ("$startnum".."$endnum") {
my @addnodes=expandatom($pref.$_.$suf,$verify);
my @addnodes=expandatom($pref.$_.$suf,$verify,%options);
@nodes=(@nodes,@addnodes);
}
return (@nodes);
@@ -376,7 +393,7 @@ sub expandatom { #TODO: implement table selection as an atom (nodetype.os==rhels
$right=$2;
}
if ($left eq $right) { #if they said node1-node1 for some strange reason
return expandatom($left,$verify);
return expandatom($left,$verify,%options);
}
my @leftarr=split(/(\d+)/,$left);
my @rightarr=split(/(\d+)/,$right);
@@ -413,7 +430,7 @@ sub expandatom { #TODO: implement table selection as an atom (nodetype.os==rhels
}
}
foreach ($leftarr[$idx]..$rightarr[$idx]) {
my @addnodes=expandatom($prefix.$_.$luffix,$verify);
my @addnodes=expandatom($prefix.$_.$luffix,$verify,%options);
push @nodes,@addnodes;
}
return (@nodes); #the return has been built, return, exiting loop and all
@@ -461,7 +478,7 @@ sub retain_cache { #A semi private operation to be used *ONLY* in the interestin
%allgrphash=();
}
}
sub extnoderange { #An extended noderange function. Needed as the more straightforward function return format too simple for this.
sub extnoderange { #An extended noderange function. Needed by the GUI as the more straightforward function return format too simple for this.
my $range = shift;
my $namedopts = shift;
my $verify=1;
@@ -487,7 +504,7 @@ sub extnoderange { #An extended noderange function. Needed as the more straight
return $return;
}
sub abbreviate_noderange {
#takes a list of nodes or a string and abbreviates
#takes a list of nodes or a string and reduces it by replacing a list of nodes that make up a group with the group name itself
my $nodes=shift;
my %grouphash;
my %sizedgroups;
@@ -533,16 +550,40 @@ sub abbreviate_noderange {
return (join ',',keys %targetelems,keys %nodesleft);
}
sub set_arith {
my $operand = shift;
my $op = shift;
my $newset = shift;
if ($op =~ /@/) { # compute the intersection of the current atom and the node list we have received before this
foreach (keys %$operand) {
unless ($newset->{$_}) {
delete $operand->{$_};
}
}
} elsif ($op =~ /,-/) { # add the nodes from this atom to the exclude list
foreach (keys %$newset) {
delete $operand->{$_}
}
} else { # add the nodes from this atom to the total node list
foreach (keys %$newset) {
$operand->{$_}=1;
}
}
}
# Expand the given noderange
# Input args:
# - noderange to expand
# - verify: whether or not to require that the resulting nodenames exist in the nodelist table
# - exsitenode: whether or not to honor site.excludenodes to automatically exclude those nodes from all noderanges
# - options: genericrange - a purely syntactical expansion of the range, not using the db at all, e.g not expanding group names
sub noderange {
$missingnodes=[];
#We for now just do left to right operations
my $range=shift;
$range =~ s/['"]//g;
my $verify = (scalar(@_) >= 1 ? shift : 1);
#excludenodes attribute in site table,
#these nodes should be excluded for any xCAT commands
my $exsitenode = (scalar(@_) >= 1 ? shift : 1);
my $exsitenode = (scalar(@_) >= 1 ? shift : 1); # if 1, honor site.excludenodes
my %options = @_; # additional options
unless ($nodelist) {
$nodelist =xCAT::Table->new('nodelist',-create =>1);
@@ -553,20 +594,45 @@ sub noderange {
}
my %nodes = ();
my %delnodes = ();
if ($range =~ /\(/) {
my ($middle, $end, $start) =
extract_bracketed($range, '()', qr/[^()]*/);
unless ($middle) { die "Unbalanced parentheses in noderange" }
$middle = substr($middle,1,-1);
my $op = ",";
if ($start =~ m/-$/) { #subtract the parenthetical
$op .= "-"
} elsif ($start =~ m/\@$/) {
$op = "@"
}
$start =~ s/,-$//;
$start =~ s/,$//;
$start =~ s/\@$//;
%nodes = map { $_ => 1 } noderange($start,$verify,$exsitenode,%options);
my %innernodes = map { $_ => 1 } noderange($middle,$verify,$exsitenode,%options);
set_arith(\%nodes,$op,\%innernodes);
$range = $end;
}
my $op = ",";
my @elems = split(/(,(?![^[]*?])(?![^\(]*?\)))/,$range); # commas outside of [] or ()
if (scalar(@elems)==1) {
@elems = split(/(@(?![^\(]*?\)))/,$range); # only split on @ when no , are present (inner recursion)
}
while (my $atom = shift @elems) {
while (defined(my $atom = shift @elems)) {
if ($atom eq '') { next; }
if ($atom eq ',') {
next;
}
if ($atom =~ /^-/) { # if this is an exclusion, strip off the minus, but remember it
$atom = substr($atom,1);
$op = $op."-";
} elsif ($atom =~ /^\@/) { # if this is an exclusion, strip off the minus, but remember it
$atom = substr($atom,1);
$op = "@";
}
if ($atom eq '') { next; }
if ($atom =~ /^\^(.*)$/) { # get a list of nodes from a file
open(NRF,$1);
@@ -577,7 +643,7 @@ sub noderange {
my $newrange = $1;
chomp($newrange);
$recurselevel++;
my @filenodes = noderange($newrange);
my @filenodes = noderange($newrange,$verify,$exsitenode,%options);
foreach (@filenodes) {
$nodes{$_}=1;
}
@@ -587,7 +653,7 @@ sub noderange {
next;
}
my %newset = map { $_ =>1 } expandatom($atom,$verify); # expand the atom and make each entry in the resulting array a key in newset
my %newset = map { $_ =>1 } expandatom($atom,$verify,%options); # expand the atom and make each entry in the resulting array a key in newset
if ($op =~ /@/) { # compute the intersection of the current atom and the node list we have received before this
foreach (keys %nodes) {
@@ -614,7 +680,7 @@ sub noderange {
my $badnoderange = 0;
my @badnodes = ();
if ($::XCATSITEVALS{excludenodes}) {
@badnodes = noderange($::XCATSITEVALS{excludenodes}, 1, 0);
@badnodes = noderange($::XCATSITEVALS{excludenodes}, 1, 0, %options);
foreach my $bnode (@badnodes) {
if (!$delnodes{$bnode}) {
$delnodes{$bnode} = 1;
+8 -4
View File
@@ -8,6 +8,7 @@ use Getopt::Long;
use xCAT::PPCcli qw(SUCCESS EXPECT_ERROR RC_ERROR NR_ERROR);
use xCAT::Usage;
use xCAT::Utils;
use xCAT::TableUtils;
use xCAT::MsgUtils;
use xCAT::LparNetbootExp;
@@ -467,9 +468,12 @@ sub rnetboot {
}
}
my $sitetab = xCAT::Table->new('site');
my $vcon = $sitetab->getAttribs({key => "conserverondemand"}, 'value');
if ($vcon and $vcon->{"value"} and $vcon->{"value"} eq "yes" ) {
#my $sitetab = xCAT::Table->new('site');
#my $vcon = $sitetab->getAttribs({key => "conserverondemand"}, 'value');
my @vcons = xCAT::TableUtils->get_site_attribute("conserverondemand");
my $vcon = $vcons[0];
#if ($vcon and $vcon->{"value"} and $vcon->{"value"} eq "yes" ) {
if ( defined($vcon) and $vcon eq "yes" ) {
$result = xCAT::PPCcli::lpar_netboot(
$exp,
$request->{verbose},
@@ -482,7 +486,7 @@ sub rnetboot {
#########################################
$result = do_rnetboot( $request, $d, $exp, $name, $node, \%opt );
}
$sitetab->close;
#$sitetab->close;
if (defined($request->{opt}->{m})) {
+4 -3
View File
@@ -8,6 +8,7 @@ use xCAT::PPCfsp;
use xCAT::Usage;
use Storable qw(freeze thaw);
use POSIX "WNOHANG";
use xCAT::NetworkUtils;
use xCAT::MsgUtils qw(verbose_message);
use LWP;
@@ -737,7 +738,7 @@ sub doresetnet {
$nodetype = ( $nodetype =~ /^frame$/i ) ? "bpa" : "fsp";
if ($cnodep) {
foreach my $cnode (@$cnodep) {
my $ip = xCAT::Utils::getNodeIPaddress( $cnode );
my $ip = xCAT::NetworkUtils::getNodeIPaddress( $cnode );
my $oi = $oihash{$cnode};
if(!defined $ip) {
send_msg($req, "doresetnet: can't get $cnode ip");
@@ -786,7 +787,7 @@ sub doresetnet {
# this brunch is just for the xcat 2.5(or 2.5-) databse
} elsif ( $nodetype =~ /^(fsp|bpa)$/ ) {
foreach my $nn ( @{ $req->{node}} ) {
my $ip = xCAT::Utils::getNodeIPaddress( $nn );
my $ip = xCAT::NetworkUtils::getNodeIPaddress( $nn );
if(!defined $ip) {
send_msg($req, "doresetnet: can't get $nn ip");
next;
@@ -1047,6 +1048,7 @@ sub child_process {
}
my $msg = "login result is :".join(',', @exp);
xCAT::MsgUtils->verbose_message( $req, $msg);
####################################
# do resetnet
####################################
@@ -1430,4 +1432,3 @@ sub connect {
1;
+5 -5
View File
@@ -6,7 +6,7 @@ require Exporter;
our @ISA = qw(Exporter);
our @EXPORT_OK = qw(SUCCESS RC_ERROR EXPECT_ERROR NR_ERROR);
use Expect;
use xCAT::NetworkUtils;
#############################################
# Removes Ctrl characters from term output
@@ -139,7 +139,7 @@ sub connect {
my $timeout = $req->{ppctimeout};
my $verbose = $req->{verbose};
my $ssh;
my $expect_log;
my $expect_log = "/dev/null";
my $errmsg;
if ($req->{command} eq 'rflash') {
@@ -170,7 +170,7 @@ sub connect {
##################################################
if ( $verbose ) {
close STDERR;
if ( !open( STDERR, '>', \$expect_log )) {
if ( !open( STDERR, '>', $expect_log )) {
return( "Unable to redirect STDERR: $!" );
}
}
@@ -179,7 +179,7 @@ sub connect {
##################################################
if ( $verbose ) {
close STDOUT;
if ( !open( STDOUT, '>', \$expect_log )) {
if ( !open( STDOUT, '>', $expect_log )) {
return( "Unable to redirect STDOUT: $!" );
}
}
@@ -1335,7 +1335,7 @@ sub getHMCcontrolIP
#my @newnodes = split(/,/, $nodes_found->[0]);
#$Rc = shift(@newnodes);
#for my $entry (@newnodes) {
# if(xCAT::Utils->isIpaddr($entry)) {
# if(xCAT::NetworkUtils->isIpaddr($entry)) {
# push @ips,$entry;
# }
# $ip_result = join( ",", @ips );
+35 -13
View File
@@ -5,9 +5,10 @@ use strict;
use Getopt::Long;
use xCAT::PPCcli qw(SUCCESS EXPECT_ERROR RC_ERROR NR_ERROR);
use xCAT::Usage;
use xCAT::NetworkUtils;
use xCAT::DBobjUtils;
use xCAT::FSPUtils;
use xCAT::MsgUtils qw(verbose_message);
##############################################
# Globals
##############################################
@@ -98,7 +99,7 @@ sub mkhwconn_parse_args
#my $nodetype_hash = $nodetypetab->getNodeAttribs( $node,[qw(nodetype)]);
my $node_parent_hash = $ppctab->getNodeAttribs( $node,[qw(parent)]);
#$nodetype = $nodetype_hash->{nodetype};
$nodetype = xCAT::DBobjUtils->getnodetype($node);
$nodetype = xCAT::DBobjUtils->getnodetype($node,"ppc");
$node_parent = $node_parent_hash->{parent};
if ( !$nodetype )
{
@@ -106,7 +107,7 @@ sub mkhwconn_parse_args
next;
} else
{
unless ( $nodetype =~ /^(fsp|bpa|frame|cec|hmc)$/)
unless ( $nodetype =~ /^(blade|fsp|bpa|frame|cec|hmc)$/)
{
return ( usage("Node type is incorrect. \n"));
}
@@ -473,6 +474,7 @@ sub mkhwconn
my @value = ();
my $Rc = undef;
xCAT::MsgUtils->verbose_message($request, "mkhwconn START.");
for my $cec_bpa ( keys %$hash)
{
my $node_hash = $hash->{$cec_bpa};
@@ -484,9 +486,13 @@ sub mkhwconn
# Get IP address
############################
my $cnode;
my $ntype = xCAT::DBobjUtils::getnodetype($node_name);
if ($ntype =~ /^(cec|frame)$/)
#my $ntype = xCAT::DBobjUtils::getnodetype($node_name);
my $ntype = $$d[4];
if ($ntype =~ /^(cec|frame|blade)$/)
{
if ($ntype eq "blade") {
delete $opt->{port};
}
$cnode = xCAT::DBobjUtils::getchildren($node_name, $opt->{port});
} else {
$cnode = $node_name;
@@ -501,11 +507,12 @@ sub mkhwconn
} else {
push @newnodes,$cnode;
}
xCAT::MsgUtils->verbose_message($request, "mkhwconn :mksysconn for node:$node_name.");
for my $nn ( @newnodes )
{
my $node_ip;
unless ( xCAT::Utils->isIpaddr($nn) ) {
$node_ip = xCAT::Utils::getNodeIPaddress( $nn );
unless ( xCAT::NetworkUtils->isIpaddr($nn) ) {
$node_ip = xCAT::NetworkUtils::getNodeIPaddress( $nn );
} else {
$node_ip = $nn;
}
@@ -515,12 +522,17 @@ sub mkhwconn
next;
}
my ( undef,undef,$mtms,undef,$type) = @$d;
my ( undef,undef,$mtms,undef,$type,$bpa) = @$d;
my ($user, $passwd);
if ( exists $opt->{P})
{
($user, $passwd) = ('HMC', $opt->{P});
}
elsif ($type eq "blade") {
$user = "USERID";
($user, $passwd) = xCAT::PPCdb::credentials( $bpa, $type, $user);
$type = "cec";
}
else
{
($user, $passwd) = xCAT::PPCdb::credentials( $node_name, $type,'HMC');
@@ -549,6 +561,7 @@ sub mkhwconn
# }
}
}
xCAT::MsgUtils->verbose_message($request, "mkhwconn END.");
return \@value;
}
##########################################################################
@@ -639,7 +652,7 @@ sub lshwconn
{
#my $node_ip_hash = $hosttab->getNodeAttribs( $node_name,[qw(ip)]);
#$node_ip = $node_ip_hash->{ip};
#$node_ip = xCAT::Utils::getNodeIPaddress( $node_name );
#$node_ip = xCAT::NetworkUtils::getNodeIPaddress( $node_name );
my $d = $node_hash->{$node_name};
$node_ip = xCAT::FSPUtils::getIPaddress($request, $$d[4], $node_name );
}
@@ -703,7 +716,7 @@ sub rmhwconn
my $d = $node_hash->{$node_name};
my ( undef,undef,undef,undef,$type) = @$d;
if ($type eq "blade") {$type = "cec";}
############################
# Get IP address
############################
@@ -720,10 +733,19 @@ sub rmhwconn
my @ips;
foreach my $entry ( @$nodes_found ) {
if ( $entry =~ /$mtm\*$serial/) {
$entry =~ /ipaddr=(\d+\.\d+\.\d+\.\d+),/;
push @ips, $1;
if ($entry =~ /type_model_serial_num=([^,]*),/) {
my $match_mtm1 = $1;
my $match_mtm2 = $match_mtm1;
$match_mtm2 =~ s/\-//;
if ($match_mtm1 =~ /$mtm\*$serial/ || $match_mtm2 =~ /$mtm\*$serial/) {
$entry =~ /ipaddr=(\d+\.\d+\.\d+\.\d+),/;
push @ips, $1;
}
}
#if ( $entry =~ /$mtm\*$serial/) {
# $entry =~ /ipaddr=(\d+\.\d+\.\d+\.\d+),/;
# push @ips, $1;
#}
}
if (!@ips)
{
+122 -13
View File
@@ -4,7 +4,10 @@ package xCAT::PPCdb;
use strict;
use xCAT::Table;
use xCAT::GlobalDef;
use xCAT::Utils;
use xCAT::TableUtils;
use xCAT::NetworkUtils;
require xCAT::data::ibmhwtypes;
###########################################
# Factory defaults
@@ -98,7 +101,6 @@ sub add_ppc {
$parent,
$ips,
$mac ) = split /,/;
###############################
# Update nodetype table
###############################
@@ -166,6 +168,10 @@ sub add_ppc {
# Update nodelist table
###########################
updategroups( $name, $db{nodelist}, $type );
my $tmp_group = xCAT::data::ibmhwtypes::parse_group($model);
if (defined($tmp_group)) {
updategroups($name, $db{nodelist}, $tmp_group);
}
if ( $type =~ /^(fsp|bpa)$/ ) {
$db{nodelist}->setNodeAttribs( $name, {hidden => '1'});
} else {
@@ -234,6 +240,97 @@ sub add_ppc {
}
return undef;
}
##########################################################################
# Update lpar information in the xCAT databases
##########################################################################
sub update_lpar {
my $hwtype = shift;
my $values = shift;
my $write = shift;
my @tabs = qw(ppc vpd nodehm nodelist nodetype ppcdirect hosts mac);
my %db = ();
my @update_list = ();
my @write_list = ();
###################################
# Open database needed
###################################
foreach ( @tabs ) {
$db{$_} = xCAT::Table->new( $_, -create=>1, -autocommit=>0 );
if ( !$db{$_} ) {
return( "Error opening '$_'" );
}
}
my @vpdlist = $db{vpd}->getAllNodeAttribs(['node','serial','mtm','side']);
my @ppclist = $db{ppc}->getAllNodeAttribs(['node','hcp','id',
'pprofile','parent','nodetype',
'comments', 'disable']);
# 'cec,cec1,,8246-L1D,100A9DA,,cec1,,cec1',
# 'lpar,10-0A9DA,1,8246-L1D,100A9DA,,cec1,,cec1'
my %ppchash = ();
my %vpdhash = ();
foreach my $ppcent (@ppclist) {
if ($ppcent->{id} and $ppcent->{nodetype} and $ppcent->{nodetype} eq "lpar") {
my $key = $ppcent->{node};
$ppchash{$key}{id} = $ppcent->{id};
$ppchash{$key}{parent} = $ppcent->{parent};
}
}
foreach my $vpdent (@vpdlist)
{
my $key = $vpdent->{node};
$vpdhash{$key}{mtm} = $vpdent->{mtm};
$vpdhash{$key}{serial} = $vpdent->{serial};
}
my @ppc_lpars = keys %ppchash;
foreach my $value ( @$values ) {
my ($ttype,
$tname,
$tid,
$tmtm,
$tsn,
$tside,
$server,
$pprofile,
$parent) = split /,/, $value;
if ($ttype ne "lpar") {
push @update_list, $value;
next;
}
my $find_node = undef;
foreach my $tmp_node (@ppc_lpars) {
if ($ppchash{$tmp_node}{id} eq $tid) {
if (exists($ppchash{$tmp_node}{parent}) and $ppchash{$tmp_node}{parent} eq $parent) {
$find_node = $tmp_node;
last;
} elsif ($vpdhash{$tmp_node}{mtm} eq $tmtm and $vpdhash{$tmp_node}{serial} eq $tsn) {
$find_node = $tmp_node;
last;
}
}
}
if (defined($find_node)) {
if ( update_node_attribs($hwtype, $ttype, $find_node, $tid, $tmtm, $tsn, $tside,
$server, $pprofile, $parent, "", \%db, $tname, \@ppclist))
{
$value =~ s/^$ttype,$tname,/$ttype,$find_node,/;
push @update_list, $value;
}
} elsif (defined($write)) {
push @write_list, $value;
}
}
if (defined($write)) {
&add_ppc($hwtype, \@write_list);
return ([@update_list,@write_list]);
} else {
foreach ( @tabs ) {
if ( exists( $db{$_}{commit} )) {
$db{$_}->commit;
}
}
return \@update_list;
}
}
##########################################################################
# Update nodes in the xCAT databases
@@ -276,7 +373,6 @@ sub update_ppc {
$pprofile,
$parent,
$ips ) = split /,/, $value;
if ( $ttype eq 'cec' )
{
my $hostname = get_host($tname, "FSP", $tmtm, $tsn, "", "", $tid, "","");
@@ -327,9 +423,7 @@ sub update_ppc {
$pprofile,
$parent,
$ips ) = split /,/, $value;
next if ( $type ne 'cec' );
my $predefined_node = undef;
foreach my $vpdent (@vpdlist)
{
@@ -523,6 +617,10 @@ sub update_node_attribs
if ( $namediff)
{
updategroups( $name, $db->{nodelist}, $type );
my $tmp_group = xCAT::data::ibmhwtypes::parse_group($model);
if (defined($tmp_group)) {
updategroups($name, $db->{nodelist}, $tmp_group);
}
$db->{nodelist}->setNodeAttribs( $name, {status=>$nodelisthash->{status},
appstatus=>$nodelisthash->{appstatus},
primarysn=>$nodelisthash->{primarysn},
@@ -886,6 +984,18 @@ sub get_usr_passwd {
} else {
($ent) = $passwdtab->getNodeAttribs($key, qw(username password));
}
if (!$ent) {
if ($key eq "cec") {
$key = "fsp";
} elsif ($key eq "frame") {
$key = "bpa";
}
if ($user) {
($ent) = $passwdtab->getAttribs({key => $key, username => $user}, qw(password cryptmethod));
} else {
($ent) = $passwdtab->getNodeAttribs($key, qw(username password));
}
}
if (!$ent or !$ent->{password}) {
my $hash = $default_passwd_accounts{$key};
if (!$hash or ($user and !defined($hash->{$user}))) {
@@ -947,7 +1057,7 @@ sub get_host {
#######################################
if ($ip)
{
my $nets = xCAT::Utils::my_nets();
my $nets = xCAT::NetworkUtils::my_nets();
my $avip = getip_from_iplist( $ip, $nets);
#if ( !defined( $ip )) {
# return undef;
@@ -956,7 +1066,6 @@ sub get_host {
# get the information of existed nodes to do the migration
read_from_table() unless (%::OLD_DATA_CACHE);
foreach my $oldnode ( keys %::OLD_DATA_CACHE )
{
my $tmpmtm = @{$::OLD_DATA_CACHE{$oldnode}}[0];
@@ -984,7 +1093,7 @@ sub get_host {
}
if ( $tmpmtm eq $mtm and $tmpsn eq $sn) {
my $ifip = xCAT::Utils->isIpaddr($oldnode);
my $ifip = xCAT::NetworkUtils->isIpaddr($oldnode);
if ( $ifip ) {# which means that the node is defined by the new lsslp
if ( $tmpside eq $side ) {# match! which means that node is the same as the new one
if ( $ip eq $tmpip ) { #which means that the ip is not changed
@@ -1104,7 +1213,7 @@ sub get_host {
}
# not matched, use the new name
my $ifip = xCAT::Utils->isIpaddr($nodename);
my $ifip = xCAT::NetworkUtils->isIpaddr($nodename);
unless ($ifip) {
return $nodename;
}else {
@@ -1150,8 +1259,8 @@ sub getip_from_iplist
for my $net ( keys %$nets)
{
my ($n,$m) = split /\//,$net;
if ( xCAT::Utils::isInSameSubnet( $n, $ip, $m, 1) and
xCAT::Utils::isPingable( $ip))
if ( xCAT::NetworkUtils::isInSameSubnet( $n, $ip, $m, 1) and
xCAT::NetworkUtils::isPingable( $ip))
{
return $ip;
}
@@ -1165,7 +1274,7 @@ sub read_from_table {
my %typehash;
my %iphash;
my %vpdhash;
if ( !defined(%::OLD_DATA_CACHE))
if ( !(%::OLD_DATA_CACHE))
{
# find out all the existed nodes' ipaddresses
my $hoststab = xCAT::Table->new('hosts');
@@ -1211,7 +1320,7 @@ sub read_from_table {
@{$::OLD_DATA_CACHE{$entry->{node}}}[1] = @{$vpdhash{$entry->{node}}}[1];#sn
@{$::OLD_DATA_CACHE{$entry->{node}}}[2] = @{$vpdhash{$entry->{node}}}[2];#side
# find node ip address, check node name first, then check hosts table
my $ifip = xCAT::Utils->isIpaddr($entry->{node});
my $ifip = xCAT::NetworkUtils->isIpaddr($entry->{node});
if ( $ifip )
{
@{$::OLD_DATA_CACHE{$entry->{node}}}[3] = $entry->{node};#ip
+89 -25
View File
@@ -2,13 +2,19 @@
package xCAT::PPCenergy;
BEGIN
{
$::XCATROOT = $ENV{'XCATROOT'} ? $ENV{'XCATROOT'} : '/opt/xcat';
}
use lib "$::XCATROOT/lib/perl";
use strict;
use Getopt::Long;
use xCAT::Usage;
use xCAT::NodeRange;
use xCAT::DBobjUtils;
use xCAT::FSPUtils;
use xCAT::TableUtils qw(get_site_Master);
%::QUERY_ATTRS = (
'savingstatus' => 1,
'dsavingstatus' => 1,
@@ -251,7 +257,7 @@ sub renergy {
if( !defined($fsps) ) {
return ([[$node, "Failed to get the FSPs for the cec $hcphost.", -1]]);
}
#my $hcp_ip = xCAT::Utils::getNodeIPaddress($hcphost);
#my $hcp_ip = xCAT::NetworkUtils::getNodeIPaddress($hcphost);
my $hcp_ip = xCAT::FSPUtils::getIPaddress($request, $hw_type, $hcphost);
if (!defined($hcp_ip) or ($hcp_ip == -3)) {
return ([[$node, "Failed to get IP address for $hcphost.", -1]]);
@@ -264,7 +270,7 @@ sub renergy {
}
} else {
# for the case that hcp is hmc or fsp
push @hcps_ip, xCAT::Utils::getNodeIPaddress($hcphost);
push @hcps_ip, xCAT::NetworkUtils::getNodeIPaddress($hcphost);
}
if (!$user || !$password) {
@@ -279,28 +285,80 @@ sub renergy {
}
$verbose = $tmpv;
my $master = xCAT::Utils->get_site_Master();
my $masterip = xCAT::NetworkUtils->getipaddr($master);
if ($masterip =~ /:/) { #IPv6, needs fping6 support
if (!-x '/usr/bin/fping6')
{
push @return_msg, [$node, "fping6 is not availabe for IPv6 ping.", -1];
return \@return_msg;
}
open (FPING, "fping6 ".join(' ',@hcps_ip). " 2>&1 |") or die("Cannot open fping pipe: $!");
} else {
open (FPING, "fping ".join(' ',@hcps_ip). " 2>&1 |") or die("Cannot open fping pipe: $!");
}
my @pingable_hcp;
while (<FPING>) {
if ($verbose) {
push @return_msg, [$node, $_, 0];
}
if ($_ =~ /is alive/) {
s/ is alive//;
push @pingable_hcp, $_;
}
if (-x '/usr/bin/nmap' or -x '/usr/local/bin/nmap') { #use nmap
#print "use nmap\n";
if ($verbose) {
push @return_msg, [$node, "Checking ping status using nmap for @hcps_ip", 0];
}
my %deadnodes;
foreach (@hcps_ip) {
$deadnodes{$_}=1;
}
open (NMAP, "nmap -PE --system-dns --send-ip -sP ". join(' ',@hcps_ip) . " 2> /dev/null|") or die("Cannot open nmap pipe: $!");
my $node1;
my $msg1;
while (<NMAP>) {
#print "$_\n";
if (/Host (.*) \((.*)\) appears to be up/) {
$node1=$2;
unless ($deadnodes{$node1}) {
foreach (keys %deadnodes) {
if ($node1 =~ /^$_\./) {
$node1 = $_;
last;
}
}
}
delete $deadnodes{$node1};
if ($verbose) {
push @return_msg, [$node, $_, 0];
}
push(@pingable_hcp, $node1);
} elsif (/Nmap scan report for ([^ ]*) \((.*)\)/) {
$node1=$2;
$msg1=$_;
} elsif (/Host is up./) {
unless ($deadnodes{$node1}) {
foreach (keys %deadnodes) {
if ($node1 =~ /^$_\./) {
$node1 = $_;
last;
}
}
}
delete $deadnodes{$node1};
if ($verbose) {
push @return_msg, [$node, "$msg1$_", 0];
}
push(@pingable_hcp, $node1);
}
}
} else {
#use fping
#print "use fping\n";
my $master = xCAT::TableUtils->get_site_Master();
my $masterip = xCAT::NetworkUtils->getipaddr($master);
if ($masterip =~ /:/) { #IPv6, needs fping6 support
if (!-x '/usr/bin/fping6')
{
push @return_msg, [$node, "fping6 is not availabe for IPv6 ping.", -1];
return \@return_msg;
}
open (FPING, "fping6 ".join(' ',@hcps_ip). " 2>&1 |") or die("Cannot open fping pipe: $!");
} else {
open (FPING, "fping ".join(' ',@hcps_ip). " 2>&1 |") or die("Cannot open fping pipe: $!");
}
while (<FPING>) {
if ($verbose) {
push @return_msg, [$node, $_, 0];
}
if ($_ =~ /is alive/) {
s/ is alive//;
push @pingable_hcp, $_;
}
}
}
if (!@pingable_hcp) {
@@ -319,17 +377,23 @@ sub renergy {
# Generate the url path for CIM communication
chomp($hcp);
my $url_path = "https://"."$user".":"."$password"."\@"."$hcp".":5989";
# Not display password in command outupt.
my $display_url_path = "https://"."$user".":"."xxxxxx"."\@"."$hcp".":5989";
# Execute the request
my $cmd = "";
my $display_cmd = "";
if ($opt->{'set'}) {
$cmd = "$::CIM_CLIENT_PATH $verb_arg -u $url_path -n $cec_name -o $opt->{'set'}";
$display_cmd = "$::CIM_CLIENT_PATH $verb_arg -u $display_url_path -n $cec_name -o $opt->{'set'}";
} elsif ($opt->{'query'}) {
$cmd = "$::CIM_CLIENT_PATH $verb_arg -u $url_path -n $cec_name -o $opt->{'query'}";
$display_cmd = "$::CIM_CLIENT_PATH $verb_arg -u $display_url_path -n $cec_name -o $opt->{'query'}";
}
if ($verbose) {
push @noerr_msg, [$node, "Run following command: $cmd", 0];
push @noerr_msg, [$node, "Run following command: $display_cmd", 0];
}
# Disable the CHID signal before run the command. Otherwise the
+3 -2
View File
@@ -12,6 +12,7 @@ use Socket;
use xCAT::PPCdb;
use xCAT::MsgUtils qw(verbose_message);
use xCAT::Utils;
use xCAT::TableUtils;
use xCAT::NetworkUtils;
##########################################
# Globals
@@ -77,7 +78,7 @@ sub handler {
# Disconnect from FSP
#####################################
unless ($flag) {
xCAT::PPCfsp::disconnect( $exp );
xCAT::PPCfsp::disconnect( $exp );
}
return( \@outhash );
@@ -1913,7 +1914,7 @@ sub set_netcfg
elsif ( $inc_ip eq '*')
{
$inc_type = 'Static';
($inc_ip, $inc_host, $inc_gateway, $inc_netmask) = xCAT::Utils::getNodeNetworkCfg(@$exp[1]);
($inc_ip, $inc_host, $inc_gateway, $inc_netmask) = xCAT::NetworkUtils::getNodeNetworkCfg(@$exp[1]);
}
else
{
+12 -1
View File
@@ -5,6 +5,8 @@ use strict;
use Getopt::Long;
use xCAT::PPCcli qw(SUCCESS EXPECT_ERROR RC_ERROR NR_ERROR);
use xCAT::Usage;
use xCAT::TableUtils;
require xCAT::data::ibmhwtypes;
##########################################
@@ -59,7 +61,7 @@ sub parse_args {
$Getopt::Long::ignorecase = 0;
Getopt::Long::Configure( "bundling" );
if ( !GetOptions( \%opt, qw(V|Verbose) )) {
if ( !GetOptions( \%opt, qw(V|verbose t) )) {
return( usage() );
}
####################################
@@ -75,6 +77,9 @@ sub parse_args {
if ( !defined( $cmd )) {
return(usage( "Invalid command: $ARGV[0]" ));
}
if (exists($opt{t}) and $cmd ne "model") {
return(["Option 't' can only work with 'model'."]);
}
####################################
# Check for an extra argument
####################################
@@ -411,6 +416,12 @@ sub vpd {
#############################
# Output value
#############################
if ($_ eq 'model' and exists($request->{opt}->{t})) {
my $tmp_pre = xCAT::data::ibmhwtypes::parse_args($data->{$_});
if (defined($tmp_pre)) {
xCAT::TableUtils->updatenodegroups($name, $tmp_pre);
}
}
my $value = "@{$prefix{$_}}[0]: $data->{$_}";
push @result, [$name,$value,$Rc];
}
+31 -9
View File
@@ -6,8 +6,11 @@ use strict;
use Getopt::Long;
use Data::Dumper;
use xCAT::PPCcli qw(SUCCESS EXPECT_ERROR RC_ERROR NR_ERROR);
use xCAT::Utils;
use xCAT::TableUtils;
use xCAT::ServiceNodeUtils;
use xCAT::NetworkUtils;
use xCAT::MsgUtils qw(verbose_message);
use xCAT::LparNetbootExp;
##########################################################################
@@ -46,7 +49,7 @@ sub parse_args {
$Getopt::Long::ignorecase = 0;
Getopt::Long::Configure( "bundling" );
if ( !GetOptions( \%opt,qw(h|help V|Verbose v|version C=s G=s S=s D d f M o F=s arp))) {
if ( !GetOptions( \%opt,qw(h|help V|verbose v|version C=s G=s S=s D d f M o F=s arp))) {
return( usage() );
}
####################################
@@ -74,6 +77,15 @@ sub parse_args {
return(usage( "Invalid Argument: $ARGV[0]" ));
}
####################################
# Check -o argument
####################################
if ( exists($opt{o}) ) {
unless (exists($opt{D})){
return(usage( "The -o flag must be used with -D flag" ));
}
}
####################################
# Check argument for ping test
####################################
if ( exists($opt{D}) ) {
@@ -90,9 +102,9 @@ sub parse_args {
if ( exists($opt{S}) ) {
push @network, $_;
} else {
$server = xCAT::Utils->getSNformattedhash( $node, "xcat", "node", "primary" );
$server = xCAT::ServiceNodeUtils->getSNformattedhash( $node, "xcat", "node", "primary" );
foreach my $key ( keys %$server ) {
my $valid_ip = xCAT::Utils->validate_ip( $key );
my $valid_ip = xCAT::NetworkUtils->validate_ip( $key );
if ( $valid_ip ) {
###################################################
# Service node is returned as hostname, Convert
@@ -197,7 +209,7 @@ sub parse_args {
if ( scalar(@network) != 3 ) {
return( usage() );
}
my $result = xCAT::Utils->validate_ip( $opt{C}, $opt{G}, $opt{S} );
my $result = xCAT::NetworkUtils->validate_ip( $opt{C}, $opt{G}, $opt{S} );
if ( @$result[0] ) {
return(usage( @$result[1] ));
}
@@ -394,6 +406,7 @@ sub do_getmacs {
# last;
# }
#}
xCAT::MsgUtils->verbose_message($request, "getmacs :lparnetbootexp for node:$node.");
my $Rc = xCAT::LparNetbootExp->lparnetbootexp(\%optarg, $request);
######################################
# Split results into array
@@ -631,6 +644,7 @@ sub getmacs {
#########################################
# Connect to fsp to achieve MAC address
#########################################
xCAT::MsgUtils->verbose_message($request, "getmacs START.");
my $d = $par;
#########################################
@@ -651,6 +665,7 @@ sub getmacs {
# Get name known by HCP
#########################################
my $filter = "name,lpar_id";
xCAT::MsgUtils->verbose_message($request, "getmacs :lssyscfg filter '$filter'.");
my $values = xCAT::PPCcli::lssyscfg( $exp, $type, $mtms, $filter );
my $Rc = shift(@$values);
@@ -676,9 +691,14 @@ sub getmacs {
return( [[$node,"Node not found, lparid=$lparid",RC_ERROR]] );
}
my $sitetab = xCAT::Table->new('site');
my $vcon = $sitetab->getAttribs({key => "conserverondemand"}, 'value');
if ($vcon and $vcon->{"value"} and $vcon->{"value"} eq "yes" ) {
#my $sitetab = xCAT::Table->new('site');
#my $vcon = $sitetab->getAttribs({key => "conserverondemand"}, 'value');
#there may be something wrong with the conserverondemand attribute.
# Currently, the code is not used. So not fix this time. Just keep it here.
my @vcons = xCAT::TableUtils->get_site_attribute("conserverondemand");
my $vcon = $vcons[0];
#if ($vcon and $vcon->{"value"} and $vcon->{"value"} eq "yes" ) {
if ( defined($vcon) and $vcon eq "yes" ) {
$result = xCAT::PPCcli::lpar_netboot(
$exp,
$request->{verbose},
@@ -689,10 +709,11 @@ sub getmacs {
#########################################
# Manually collect MAC addresses.
#########################################
xCAT::MsgUtils->verbose_message($request, "getmacs :do_getmacs for node:$node.");
$result = do_getmacs( $request, $d, $exp, $name, $node );
$Rc = shift(@$result);
}
$sitetab->close;
#$sitetab->close;
##################################
@@ -744,6 +765,7 @@ sub getmacs {
if ( !exists( $opt->{d} )) {
writemac( $node, $result );
}
xCAT::MsgUtils->verbose_message($request, "getmacs END.");
return( [[$node,$data,$Rc]] );
}
}
+1 -1
View File
@@ -40,7 +40,7 @@ sub parse_args {
$Getopt::Long::ignorecase = 0;
Getopt::Long::Configure( "bundling" );
if ( !GetOptions( \%opt, qw(V|Verbose m:s@ t=s T=s r=s nodeps) )) {
if ( !GetOptions( \%opt, qw(V|verbose m:s@ t=s T=s r=s nodeps) )) {
return( usage() );
}
####################################
+22 -17
View File
@@ -8,6 +8,8 @@ use xCAT::Usage;
use xCAT::PPCinv;
use xCAT::DSHCLI;
use xCAT::Table;
use xCAT::Utils;
use xCAT::TableUtils;
use Getopt::Long;
use File::Spec;
use POSIX qw(tmpnam);
@@ -49,7 +51,6 @@ sub parse_args {
my %opt = ();
my $cmd = $request->{command};
my $args = $request->{arg};
#############################################
# Change CEC/Frame node into FSPs/BPAs
#############################################
@@ -157,15 +158,15 @@ sub parse_args {
#--activate's value only can be concurrent and disruptive
################################
if(exists($opt{activate})) {
if (defined($request->{mgt}) && ($request->{mgt} =~ /xCAT::FSP/i)) {
if (($opt{activate} ne "deferred") && ($opt{activate} ne "disruptive")) {
return (usage("--activate's value can only be deferred or disruptive"));
if (defined($request->{mgt}) && $request->{mgt} =~ /xCAT::FSP/i) {
if ($opt{activate} !~ /deferred|disruptive/) {
return (usage("--activate's value can only be deferred or disruptive."));
}
} else {
if( ($opt{activate} ne "concurrent") && ($opt{activate} ne "disruptive")) {
return (usage("--activate's value can only be disruptive or concurrent"));
if(($opt{activate} ne "disruptive") && ($opt{activate} ne "concurrent")) {
return (usage("--activate's value can only be disruptive or concurrent."));
}
}
}
if(!exists( $opt{d} )) {
$opt{d} = "/tmp";
}
@@ -325,7 +326,7 @@ sub preprocess_for_rflash {
my $request = shift;
my $opt = shift;
my $callback = $request->{callback};
my $install_dir = xCAT::Utils->getInstallDir();
my $install_dir = xCAT::TableUtils->getInstallDir();
my $packages_fw = "$install_dir/packages_fw";
my $c = 0;
my $packages_d;
@@ -533,18 +534,22 @@ sub get_lic_filenames {
#############
if($fff ne $2) {
$upgrade_required = 1;
if($activate ne "disruptive") {
$msg = "Option --activate's value should be disruptive";
return ("", "","", $msg, -1);
}
} else {
if(($pns eq $1) && ($4 <= $active_level)) {
$msg = $msg. "Upgrade $mtms $activate!";
# if($activate ne "concurrent") {
# $msg = "Option --actviate's value should be disruptive";
# return ("", "","", $msg, -1);
# }
if(($pns eq $1) && ($3 > $active_level) &&($4 <= $active_level)) {
$msg = $msg. "Upgrade $mtms $activate!";
if($activate ne "concurrent") {
$msg = "Option --actviate's value should be concurrent";
return ("", "","", $msg, -1);
}
} else {
$msg = $msg . "Upgrade $mtms!";
if($activate !~ /^(disruptive|concurrent)$/) {
$msg = "Option --activate's value shouldn't be $activate, and it must be disruptive or concurrent";
$msg = $msg . "Upgrade $mtms!";
if($activate ne "disruptive") {
$msg = "Option --activate's value should be disruptive";
return ("", "","", $msg, -1);
}
}
+29 -5
View File
@@ -11,7 +11,7 @@ use xCAT::PPCdb;
use xCAT::GlobalDef;
use xCAT::Usage;
use xCAT::NetworkUtils;
require xCAT::data::ibmhwtypes;
##############################################
# Globals
@@ -74,7 +74,7 @@ sub parse_args {
$Getopt::Long::ignorecase = 0;
Getopt::Long::Configure( "bundling" );
if ( !GetOptions( \%opt, qw(V|Verbose u w x z) )){
if ( !GetOptions( \%opt, qw(V|verbose u w x z) )){
return( usage() );
}
####################################
@@ -545,6 +545,7 @@ sub format_stanza {
#################################
# Add each attribute
#################################
my $mtm = undef;
foreach ( @attribs ) {
my $d = $data[$i++];
@@ -555,7 +556,8 @@ sub format_stanza {
} elsif ( /^hwtype$/ ) {
$d = $globalhwtype{$type};
} elsif ( /^groups$/ ) {
$d = "$type,all";
next;
#$d = "$type,all";
} elsif ( /^mgt$/ ) {
$d = $hwtype;
} elsif ( /^cons$/ ) {
@@ -568,7 +570,9 @@ sub format_stanza {
} elsif ( /^(mtm|serial)$/ ) {
if ( $type eq "lpar" ) {
$d = undef;
}
} elsif (/^mtm$/) {
$mtm = $d;
}
} elsif (/^side$/) {
unless ( $type =~ /^fsp|bpa$/ ) {
next;
@@ -576,6 +580,14 @@ sub format_stanza {
}
$result .= "\t$_=$d\n";
}
my $tmp_groups = "$type,all";
if (defined($mtm)) {
my $tmp_pre = xCAT::data::ibmhwtypes::parse_group($mtm);
if (defined($tmp_pre)) {
$tmp_groups .= ",$tmp_pre";
}
}
$result .= "\tgroups=$tmp_groups\n";
}
return( $result );
}
@@ -623,6 +635,7 @@ sub format_xml {
#################################
# Add each attribute
#################################
my $mtm = undef;
foreach ( @attribs ) {
my $d = $data[$i++];
@@ -631,7 +644,8 @@ sub format_xml {
} elsif ( /^hwtype$/ ) {
$d = $globalhwtype{$type};
} elsif ( /^groups$/ ) {
$d = "$type,all";
next;
#$d = "$type,all";
} elsif ( /^mgt$/ ) {
$d = $hwtype;
} elsif ( /^cons$/ ) {
@@ -643,6 +657,8 @@ sub format_xml {
} elsif ( /^(mtm|serial)$/ ) {
if ( $type eq "lpar" ) {
$d = undef;
} elsif (/^mtm$/){
$mtm = $d;
}
} elsif (/^side$/) {
unless ( $type =~ /^fsp|bpa$/ ) {
@@ -651,6 +667,14 @@ sub format_xml {
}
$href->{Node}->{$_} = $d;
}
my $tmp_groups = "$type,all";
if (defined($mtm)) {
my $tmp_pre = xCAT::data::ibmhwtypes::parse_group($mtm);
if (defined($tmp_pre)) {
$tmp_groups .= ",$tmp_pre";
}
}
$href->{Node}->{groups}=$tmp_groups;
#################################
# XML encoding
#################################
+1 -1
View File
@@ -40,7 +40,7 @@ sub parse_args {
$Getopt::Long::ignorecase = 0;
Getopt::Long::Configure( "bundling" );
if ( !GetOptions( \%opt, qw(V|Verbose) )) {
if ( !GetOptions( \%opt, qw(V|verbose) )) {
return( usage() );
}
####################################
+29 -3
View File
@@ -8,7 +8,7 @@ use xCAT::PPCdb;
use xCAT::Usage;
use xCAT::NodeRange;
use Data::Dumper;
use xCAT::MsgUtils qw(verbose_message);
##############################################
# Globals
@@ -504,6 +504,7 @@ sub clone {
# Enumerate CECs
#####################################
my $filter = "type_model,serial_num";
xCAT::MsgUtils->verbose_message($request, "$request->{command} :lssyscfg fsps.filter:'$filter'.");
my $cecs = xCAT::PPCcli::lssyscfg( $exp, "fsps", $filter );
my $Rc = shift(@$cecs);
@@ -579,6 +580,7 @@ sub clone {
$temp[2] = $destcec;
$temp[4] = 'lpar';
xCAT::MsgUtils->verbose_message($request, "$request->{command} :mksyscfg lpar.cfg:'$cfg'.");
my $result = xCAT::PPCcli::mksyscfg( $exp, "lpar", \@temp, $cfg );
$Rc = shift(@$result);
@@ -618,6 +620,7 @@ sub remove {
my @lpars = ();
my @values = ();
xCAT::MsgUtils->verbose_message($request, "$request->{command} START.");
while (my ($mtms,$h) = each(%$hash) ) {
while (my ($lpar,$d) = each(%$h) ) {
my $lparid = @$d[0];
@@ -641,6 +644,7 @@ sub remove {
####################################
else {
my $filter = "name,lpar_id";
xCAT::MsgUtils->verbose_message($request, "$request->{command} :lssyscfg lpar.filter:'$filter'.");
my $result = xCAT::PPCcli::lssyscfg(
$exp,
"lpar",
@@ -673,6 +677,7 @@ sub remove {
###############################################
# begin to retrieve the CEC's service lpar id
###############################################
xCAT::MsgUtils->verbose_message($request, "$request->{command} :lssyscfg fsp.filter:'service_lpar_id'.");
my $service_lparid = xCAT::PPCcli::lssyscfg(
$exp,
"fsp",
@@ -687,6 +692,7 @@ sub remove {
my $cfgdata = @$service_lparid[0];
if ( ($id == $cfgdata) && ($cfgdata !~ /none/) ) {
$cfgdata = "service_lpar_id=none";
xCAT::MsgUtils->verbose_message($request, "$request->{command} :lssyscfg fsp.filter:'$cfgdata'.");
my $result = xCAT::PPCcli::chsyscfg( $exp, "fsp", $d, $cfgdata );
$Rc = shift(@$result);
if ( $Rc != SUCCESS ) {
@@ -703,6 +709,7 @@ sub remove {
################################
# Send remove command
################################
xCAT::MsgUtils->verbose_message($request, "$request->{command} :rmsyscfg lpar.id:$id.");
my $result = xCAT::PPCcli::rmsyscfg( $exp, \@d );
my $Rc = shift(@$result);
@@ -710,6 +717,7 @@ sub remove {
# Remove LPAR from database
################################
if ( $Rc == SUCCESS and !exists( $opt->{r} ) ) {
xCAT::MsgUtils->verbose_message($request, "$request->{command} :remove lpar:$name from xCATdb.");
my $err = xCATdB( "rmvm", $name,"", $id,"", $type,"" , $lpar );
if ( defined( $err )) {
push @values, [$lpar,$err,RC_ERROR];
@@ -720,6 +728,7 @@ sub remove {
}
}
}
xCAT::MsgUtils->verbose_message($request, "$request->{command} END.");
return( \@values );
}
@@ -791,6 +800,7 @@ sub modify_by_attr {
my $attrstr= $opt->{a};
my @values;
xCAT::MsgUtils->verbose_message($request, "$request->{command} START.");
# attrstr will be in stdin for "cat vmdef | chvm nodename"
if (!defined($attrstr) && defined($request->{stdin})) {
my $tempattr = $request->{stdin};
@@ -836,6 +846,7 @@ sub modify_by_attr {
###########################
# Get current profile
###########################
xCAT::MsgUtils->verbose_message($request, "$request->{command} :lssyscfg node.id:'@$d[0]'.");
my $cfg_res = xCAT::PPCcli::lssyscfg(
$exp,
"node",
@@ -868,6 +879,7 @@ sub modify_by_attr {
}
xCAT::MsgUtils->verbose_message($request, "$request->{command} :lssyscfg prof.filter:'lpar_ids=@$d[0],profile_names=@$cfg_res[0]'.");
my $prof = xCAT::PPCcli::lssyscfg(
$exp,
"prof",
@@ -893,12 +905,14 @@ sub modify_by_attr {
push @values, [$lpar, $err_msg, $Rc];
next;
}
xCAT::MsgUtils->verbose_message($request, "$request->{command} :chsyscfg prof.cfg:'$cfgdata'.");
my $result = xCAT::PPCcli::chsyscfg( $exp, "prof", $d, $cfgdata );
$Rc = shift(@$result);
push @values, [$lpar,@$result[0],$Rc];
}
}
}
xCAT::MsgUtils->verbose_message($request, "$request->{command} END.");
return (\@values);
}
@@ -1004,6 +1018,7 @@ sub modify_by_prof {
my $profile = $opt->{p};
my @values;
xCAT::MsgUtils->verbose_message($request, "$request->{command} START.");
#######################################
# -p flag, find profile specified
#######################################
@@ -1029,6 +1044,7 @@ sub modify_by_prof {
###########################
# Get LPAR profiles
###########################
xCAT::MsgUtils->verbose_message($request, "$request->{command} :lssyscfg prof.filter:'lpar_ids=@$d[0],profile_names=$profile'.");
my $prof = xCAT::PPCcli::lssyscfg(
$exp,
"prof",
@@ -1100,6 +1116,7 @@ sub modify_by_prof {
# Send command
###############################
if ( defined( $profile )) {
xCAT::MsgUtils->verbose_message($request, "$request->{command} :mksyscfg prof.cfg:'$cfg'.");
my $result = xCAT::PPCcli::mksyscfg( $exp, "prof", $d, $cfg );
my $Rc = shift(@$result);
@@ -1112,12 +1129,14 @@ sub modify_by_prof {
push @values, [$lpar,@$result[0],$Rc];
}
else {
xCAT::MsgUtils->verbose_message($request, "$request->{command} :chsyscfg prof.cfg:'$cfg'.");
my $result = xCAT::PPCcli::chsyscfg( $exp, "prof", $d, $cfg );
my $Rc = shift(@$result);
push @values, [$lpar,@$result[0],$Rc];
}
}
}
xCAT::MsgUtils->verbose_message($request, "$request->{command} END.");
return( \@values );
}
@@ -1136,6 +1155,7 @@ sub list {
my @lpars = ();
my $result;
xCAT::MsgUtils->verbose_message($request, "$request->{command} START.");
while (my ($mtms,$h) = each(%$hash) ) {
while (my ($lpar,$d) = each(%$h) ) {
my $lparid = @$d[0];
@@ -1161,6 +1181,7 @@ sub list {
####################################
else {
my $filter = "name,lpar_id";
xCAT::MsgUtils->verbose_message($request, "$request->{command} :lssyscfg lpar.filter:'$filter'.");
my $result = xCAT::PPCcli::lssyscfg(
$exp,
"lpar",
@@ -1191,6 +1212,7 @@ sub list {
#################################
# Get source LPAR profile
#################################
xCAT::MsgUtils->verbose_message($request, "$request->{command} :lssyscfg prof.filter:'lpar_ids=$id'.");
my $prof = xCAT::PPCcli::lssyscfg(
$exp,
"prof",
@@ -1244,7 +1266,7 @@ sub list {
foreach ( sort keys %$values ) {
push @value,$values->{$_};
}
xCAT::MsgUtils->verbose_message($request, "$request->{command} END.");
return( \@value );
}
##########################################################################
@@ -1604,7 +1626,7 @@ sub create {
my $mtms;
my $type;
my $profile;
xCAT::MsgUtils->verbose_message($request, "$request->{command} START.");
#####################################
# Get source node information
#####################################
@@ -1643,6 +1665,7 @@ sub create {
#####################################
# Get source LPAR profile
#####################################
xCAT::MsgUtils->verbose_message($request, "$request->{command} :lssyscfg prof.filter:'lpar_ids=$lparid'.");
my $prof = xCAT::PPCcli::lssyscfg(
$exp,
"prof",
@@ -1721,6 +1744,7 @@ sub create {
#################################
# Create new LPAR
#################################
xCAT::MsgUtils->verbose_message($request, "$request->{command} :mksyscfg lpar.cfg:'$cfgdata'.");
$result = xCAT::PPCcli::mksyscfg( $exp, "lpar", $d, $cfgdata );
$Rc = shift(@$result);
@@ -1728,6 +1752,7 @@ sub create {
# Add new LPAR to database
#################################
if ( $Rc == SUCCESS ) {
xCAT::MsgUtils->verbose_message($request, "$request->{command} :add lpar:$name from xCATdb.");
my $err = xCATdB( "mkvm", $name, $profile, $id, $d, $hwtype, $lpar);
if ( defined( $err )) {
push @values, [$name,$err,RC_ERROR];
@@ -1738,6 +1763,7 @@ sub create {
push @values, [$name,@$result[0],$Rc];
$id++;
}
xCAT::MsgUtils->verbose_message($request, "$request->{command} END.");
return( \@values );
}
File diff suppressed because it is too large Load Diff
+47 -16
View File
@@ -5,7 +5,7 @@ package xCAT::RSYNC;
# cannot use strict
use base xCAT::DSHRemoteShell;
use xCAT::TableUtils qw(get_site_attribute);
# Determine if OS is AIX or Linux
# Configure standard locations of commands based on OS
@@ -35,6 +35,7 @@ if ($^O eq 'linux')
$class - Calling module name (discarded)
$config - Reference to copy command configuration hash table
$exec_path - Path to rsync executable
$localhost - 1 indicates we are running on the Management Node
Returns:
A command array for the rsync command with the appropriate
@@ -68,7 +69,7 @@ if ($^O eq 'linux')
sub remote_copy_command
{
my ($class, $config, $exec_path) = @_;
my ($class, $config, $exec_path,$localhost) = @_;
$exec_path || ($exec_path = $RSYNC_CMD);
@@ -76,7 +77,7 @@ sub remote_copy_command
my $usersh=0;
if ($^O eq 'aix')
{
my @useSSH = xCAT::Utils->get_site_attribute("useSSHonAIX");
my @useSSH = xCAT::TableUtils->get_site_attribute("useSSHonAIX");
if (defined($useSSH[0])) {
$useSSH[0] =~ tr/a-z/A-Z/; # convert to upper
if (($useSSH[0] eq "0") || ($useSSH[0] eq "NO"))
@@ -96,14 +97,22 @@ sub remote_copy_command
if ($^O eq 'aix')
{
if (-e ("/usr/bin/rsync")) {
if ($usersh == 0) { # using ssh
if (($usersh == 0) || ($localhost == 1)) { # using ssh, or local
if ($$config{'sudo'}){
$sync_opt = '--rsync-path=sudo /usr/bin/rsync ';
} else {
$sync_opt = '--rsync-path /usr/bin/rsync ';
}
} else {
$sync_opt = '--rsh /bin/rsh --rsync-path /usr/bin/rsync ';
}
} else {
if ($usersh == 0) { # using ssh
$sync_opt = '--rsync-path /usr/local/bin/rsync ';
if (($usersh == 0) || ($localhost == 1)) { # using ssh, or local
if ($$config{'sudo'}){
$sync_opt = '--rsync-path=sudo /usr/local/bin/rsync ';
} else {
$sync_opt = '--rsync-path=/usr/local/bin/rsync ';
}
} else {
$sync_opt = '--rsh /bin/rsh --rsync-path /usr/local/bin/rsync ';
}
@@ -111,11 +120,16 @@ sub remote_copy_command
}
else #linux
{
if ($$config{'sudo'}) {
$sync_opt = '--rsync-path=\'sudo /usr/bin/rsync\' ';
} else {
$sync_opt = '--rsync-path /usr/bin/rsync ';
}
}
# if only syncing the service node or no postscripts then do not
# if only syncing the service node or
# (no postscripts and no append lines) then do not
# get update file notification
if (($::SYNCSN == 1) || (!(defined @::postscripts))) {
if (($::SYNCSN == 1) || ((!(defined @::postscripts)) && (!(defined @::appendlines)) && (!(defined @::mergelines)))) {
$sync_opt .= '-Lprogtz ';
} else {
$sync_opt .= '-Liprogtz --out-format=%f%L '; # add notify of update
@@ -140,12 +154,17 @@ sub remote_copy_command
"$$config{'dest-user'}@" . "$$config{'dest-host'}";
}
print RSCYCCMDFILE "#!/bin/sh\n";
if ($usersh == 0) { # using ssh
print RSCYCCMDFILE
"/usr/bin/ssh $dest_user_host '/bin/mkdir -p $dest_dir_list'\n";
} else {
print RSCYCCMDFILE
"/usr/bin/rsh $dest_user_host '/bin/mkdir -p $dest_dir_list'\n";
if ($localhost == 1) { # running to the MN from the MN
print RSCYCCMDFILE
"/bin/mkdir -p $dest_dir_list\n";
} else { # running to another node
if ($usersh == 0) { # using ssh
print RSCYCCMDFILE
"/usr/bin/ssh $dest_user_host '/bin/mkdir -p $dest_dir_list'\n";
} else {
print RSCYCCMDFILE
"/usr/bin/rsh $dest_user_host '/bin/mkdir -p $dest_dir_list'\n";
}
}
foreach my $dest_dir (keys %{$$config{'destDir_srcFile'}})
{
@@ -155,16 +174,28 @@ sub remote_copy_command
my $src_file_list = join ' ', @src_file;
if ($src_file_list)
{
if ($localhost == 1) { # running local ( on MN)
print RSCYCCMDFILE
"$exec_path $sync_opt $src_file_list $dest_user_host:$dest_dir\n";
"$exec_path $sync_opt $src_file_list $dest_dir\n";
} else { # running to another node
print RSCYCCMDFILE
"$exec_path $sync_opt $src_file_list $dest_user_host:$dest_dir\n";
}
}
my %diff_dest_hash =
%{$$config{'destDir_srcFile'}{$dest_dir}{'diff_dest_name'}};
foreach my $src_file_diff_dest (keys %diff_dest_hash)
{
my $diff_basename = $diff_dest_hash{$src_file_diff_dest};
print RSCYCCMDFILE
# if localhost do not put in hostname:
if ($localhost == 1) { # running to the MN from the MN (local)
print RSCYCCMDFILE
"$exec_path $sync_opt $src_file_diff_dest $dest_dir/$diff_basename\n";
} else { # running remote
print RSCYCCMDFILE
"$exec_path $sync_opt $src_file_diff_dest $dest_user_host:$dest_dir/$diff_basename\n";
}
}
}
+48 -43
View File
@@ -41,15 +41,16 @@ package xCAT::RemoteShellExp;
[-t node list] test ssh connection to the node
[-k] Generates the ssh keys needed , for the user on the MN.
[-s node list] copies the ssh keys to the nodes
optional $timeout = timeout value for the expect. Usually from the xdsh -t flag
default timeout is 10 seconds
exit 0 - good
exit 1 - abort
exit 2 - usage error
Examples:
$rc=xCAT::RemoteShellExp->remoteshellexp("k",$callback,$remoteshellcmd);
$rc=xCAT::RemoteShellExp->remoteshellexp("s",$callback,$remoteshellcmd,$nodes);
$rc=xCAT::RemoteShellExp->remoteshellexp("t",$callback,$remoteshellcmd,$nodes);
$rc=xCAT::RemoteShellExp->remoteshellexp("k",$callback,$remoteshellcmd,$nodes,$timeout);
$rc=xCAT::RemoteShellExp->remoteshellexp("s",$callback,$remoteshellcmd,$nodes,$timeout);
$rc=xCAT::RemoteShellExp->remoteshellexp("t",$callback,$remoteshellcmd,$nodes,$timeout);
=cut
@@ -70,13 +71,13 @@ use strict;
#-----------------------------------------------------------------------------
sub remoteshellexp
{
my ($class, $flag, $callback, $remoteshell, $nodes) = @_;
my ($class, $flag, $callback, $remoteshell, $nodes, $timeout) = @_;
my $rc=0;
$::CALLBACK = $callback;
if (!($flag))
{
my $rsp = {};
$rsp->{data}->[0] =
$rsp->{error}->[0] =
"No flag provide to remoteshellexp.";
xCAT::MsgUtils->message("E", $rsp, $::CALLBACK, 2);
return 2;
@@ -84,12 +85,16 @@ sub remoteshellexp
if (($flag ne "k") && ($flag ne "t") && ($flag ne "s")) {
my $rsp = {};
$rsp->{data}->[0] =
$rsp->{error}->[0] =
"Invalid flag $flag provided.";
xCAT::MsgUtils->message("E", $rsp, $::CALLBACK, 1);
return 2;
}
my $expecttimeout=10; # default
if (defined($timeout)) { # value supplied
$expecttimeout=$timeout;
}
# for -s flag must have nodes and a $to_userid password
my $to_user_password;
@@ -99,14 +104,14 @@ sub remoteshellexp
if ($flag eq "s"){
if (!$to_user_password) {
my $rsp = {};
$rsp->{data}->[0] =
$rsp->{error}->[0] =
"The DSH_REMOTE_PASSWORD environment variable has not been set to the user id password on the node which will have their ssh keys updated (ususally root).";
xCAT::MsgUtils->message("E", $rsp, $::CALLBACK, 1);
return 2;
}
if (!$nodes) {
my $rsp = {};
$rsp->{data}->[0] =
$rsp->{error}->[0] =
"No nodes were input to update the user's ssh keys.";
xCAT::MsgUtils->message("E", $rsp, $::CALLBACK, 1);
return 2;
@@ -162,7 +167,7 @@ sub remoteshellexp
# Check to see if empty
if (-z $key) {
my $rsp = {};
$rsp->{data}->[0] =
$rsp->{error}->[0] =
"The $key file is empty. Remove it and rerun the command.";
xCAT::MsgUtils->message("E", $rsp, $::CALLBACK, 1);
return 1;
@@ -170,7 +175,7 @@ sub remoteshellexp
}
if (-z $key2) {
my $rsp = {};
$rsp->{data}->[0] =
$rsp->{error}->[0] =
"The $key2 file is empty. Remove it and rerun the command.";
xCAT::MsgUtils->message("E", $rsp, $::CALLBACK, 1);
return 1;
@@ -180,28 +185,28 @@ sub remoteshellexp
{
# if the file size of the id_rsa key is 0, tell them to remove it
# and run the command again
$rc=xCAT::RemoteShellExp->gensshkeys;
$rc=xCAT::RemoteShellExp->gensshkeys($expecttimeout);
}
# send ssh keys to the nodes/devices, to setup passwordless ssh
if ($flag eq "s")
{
if (!($nodes)) {
my $rsp = {};
$rsp->{data}->[0] =
$rsp->{error}->[0] =
"There are no nodes defined to update the ssh keys.";
xCAT::MsgUtils->message("E", $rsp, $::CALLBACK, 1);
return 1;
}
if ($ssh_setup_cmd) { # setup ssh on devices
$rc=xCAT::RemoteShellExp->senddeviceskeys($remoteshell,$remotecopy,$to_userid,$to_user_password,$home,$ssh_setup_cmd,$nodes);
$rc=xCAT::RemoteShellExp->senddeviceskeys($remoteshell,$remotecopy,$to_userid,$to_user_password,$home,$ssh_setup_cmd,$nodes, $expecttimeout);
} else { #setup ssh on nodes
$rc=xCAT::RemoteShellExp->sendnodeskeys($remoteshell,$remotecopy,$to_userid,$to_user_password,$home,$nodes);
$rc=xCAT::RemoteShellExp->sendnodeskeys($remoteshell,$remotecopy,$to_userid,$to_user_password,$home,$nodes, $expecttimeout);
}
}
# test ssh setup on the node
if ($flag eq "t")
{
$rc=xCAT::RemoteShellExp->testkeys($remoteshell,$to_userid,$nodes);
$rc=xCAT::RemoteShellExp->testkeys($remoteshell,$to_userid,$nodes,$expecttimeout);
}
return $rc;
}
@@ -220,9 +225,9 @@ sub remoteshellexp
sub gensshkeys
{
my ($class) = @_;
my ($class, $expecttimeout) = @_;
my $keygen;
my $timeout = 10; # sets Expect default timeout, 0 accepts immediately
my $timeout = $expecttimeout; # sets Expect default timeout, 0 accepts immediately
my $keygen_sent = 0;
my $prompt1 = 'Generating public/private rsa';
my $prompt2 = 'Enter file.*:';
@@ -267,7 +272,7 @@ sub gensshkeys
unless ($keygen->spawn($spawncmd))
{
my $rsp = {};
$rsp->{data}->[0] =
$rsp->{error}->[0] =
"Unable to run $spawncmd.";
xCAT::MsgUtils->message("E", $rsp, $::CALLBACK, 1);
return 1;
@@ -324,8 +329,8 @@ sub gensshkeys
return 0;
} else {
my $rsp = {};
$rsp->{data}->[0] = $msg;
xCAT::MsgUtils->message("I", $rsp, $::CALLBACK);
$rsp->{error}->[0] = $msg;
xCAT::MsgUtils->message("E", $rsp, $::CALLBACK);
return 1;
}
@@ -347,9 +352,9 @@ sub gensshkeys
sub testkeys
{
my ($class,$remoteshell,$to_userid,$nodes) = @_;
my ($class,$remoteshell,$to_userid,$nodes, $expecttimeout) = @_;
my $testkeys;
my $timeout = 10; # sets Expect default timeout, 0 accepts immediately
my $timeout = $expecttimeout; # sets Expect default timeout
my $testkeys_sent = 0;
my $prompt1 = 'Are you sure you want to continue connecting (yes/no)?';
my $prompt2 = 'ssword:';
@@ -394,7 +399,7 @@ sub testkeys
unless ($testkeys->spawn($spawncmd))
{
my $rsp = {};
$rsp->{data}->[0] =
$rsp->{error}->[0] =
"Unable to run $spawncmd.";
xCAT::MsgUtils->message("E", $rsp, $::CALLBACK, 1);
return 1;
@@ -446,8 +451,8 @@ sub testkeys
return 0;
} else {
my $rsp = {};
$rsp->{data}->[0] = $msg;
xCAT::MsgUtils->message("I", $rsp, $::CALLBACK);
$rsp->{error}->[0] = $msg;
xCAT::MsgUtils->message("E", $rsp, $::CALLBACK);
return 1;
}
@@ -469,9 +474,9 @@ sub testkeys
sub sendnodeskeys
{
my ($class,$remoteshell,$remotecopy,$to_userid,$to_userpassword,$home,$nodes) = @_;
my ($class,$remoteshell,$remotecopy,$to_userid,$to_userpassword,$home,$nodes, $expecttimeout) = @_;
my $sendkeys;
my $timeout = 10; # sets Expect default timeout, 0 accepts immediately
my $timeout = $expecttimeout; # sets Expect default timeout, 0 accepts immediately
my $sendkeys_sent = 0;
my $prompt1 = 'Are you sure you want to continue connecting (yes/no)?';
my $prompt2 = 'ssword:';
@@ -522,7 +527,7 @@ sub sendnodeskeys
unless ($sendkeys->spawn($spawnmkdir))
{
my $rsp = {};
$rsp->{data}->[0] =
$rsp->{error}->[0] =
"Unable to run $spawnmkdir on $node";
xCAT::MsgUtils->message("E", $rsp, $::CALLBACK, 1);
next;
@@ -571,8 +576,8 @@ sub sendnodeskeys
$rc=0;
} else {
my $rsp = {};
$rsp->{data}->[0] = "mkdir:$node has error,$msg";
xCAT::MsgUtils->message("I", $rsp, $::CALLBACK);
$rsp->{error}->[0] = "mkdir:$node has error,$msg";
xCAT::MsgUtils->message("E", $rsp, $::CALLBACK);
$rc=1;
}
}
@@ -612,7 +617,7 @@ sub sendnodeskeys
unless ($sendkeys->spawn($spawncopyfiles))
{
my $rsp = {};
$rsp->{data}->[0] =
$rsp->{error}->[0] =
"Unable to run $spawncopyfiles on $node.";
xCAT::MsgUtils->message("E", $rsp, $::CALLBACK, 1);
next;
@@ -658,8 +663,8 @@ sub sendnodeskeys
$rc=0;
} else {
my $rsp = {};
$rsp->{data}->[0] = "copykeys:$node has error,$msg";
xCAT::MsgUtils->message("I", $rsp, $::CALLBACK);
$rsp->{error}->[0] = "copykeys:$node has error,$msg";
xCAT::MsgUtils->message("E", $rsp, $::CALLBACK);
$rc=1;
}
}
@@ -693,7 +698,7 @@ sub sendnodeskeys
unless ($sendkeys->spawn($spawnruncopy))
{
my $rsp = {};
$rsp->{data}->[0] =
$rsp->{error}->[0] =
"Unable to run $spawnruncopy.";
xCAT::MsgUtils->message("E", $rsp, $::CALLBACK, 1);
next; # go to next node
@@ -743,8 +748,8 @@ sub sendnodeskeys
$rc=0;
} else {
my $rsp = {};
$rsp->{data}->[0] = "copy.sh:$node has error,$msg";
xCAT::MsgUtils->message("I", $rsp, $::CALLBACK);
$rsp->{error}->[0] = "copy.sh:$node has error,$msg";
xCAT::MsgUtils->message("E", $rsp, $::CALLBACK);
$rc=1;
}
}
@@ -759,7 +764,7 @@ sub sendnodeskeys
=head3 senddeviceskeys
Setup the ssh keys on the nodes
Setup the ssh keys on the switches
=cut
@@ -768,9 +773,9 @@ sub sendnodeskeys
sub senddeviceskeys
{
my ($class,$remoteshell,$remotecopy,$to_userid,$to_userpassword,$home,$ssh_setup_cmd,$nodes) = @_;
my ($class,$remoteshell,$remotecopy,$to_userid,$to_userpassword,$home,$ssh_setup_cmd,$nodes, $expecttimeout) = @_;
my $sendkeys;
my $timeout = 10; # sets Expect default timeout, 0 accepts immediately
my $timeout = $expecttimeout; # sets Expect default timeout, 0 accepts immediately
my $sendkeys_sent = 0;
my $prompt1 = 'Are you sure you want to continue connecting (yes/no)?';
my $prompt2 = 'ssword:';
@@ -829,7 +834,7 @@ sub senddeviceskeys
unless ($sendkeys->spawn($spawnaddkey))
{
my $rsp = {};
$rsp->{data}->[0] =
$rsp->{error}->[0] =
"Unable to run $spawnaddkey.";
xCAT::MsgUtils->message("E", $rsp, $::CALLBACK, 1);
next; # go to next node
@@ -877,8 +882,8 @@ sub senddeviceskeys
$rc=0;
} else {
my $rsp = {};
$rsp->{data}->[0] = "$node has error,$msg";
xCAT::MsgUtils->message("I", $rsp, $::CALLBACK);
$rsp->{error}->[0] = "$node has error,$msg";
xCAT::MsgUtils->message("E", $rsp, $::CALLBACK);
$rc=1;
next; # go to next node
}
+62 -17
View File
@@ -60,9 +60,10 @@ sub usage
" -p <template path> [-o output file ] [-t <template count>]\n";
my $usagemsg4 = " [-r remove templates] [-s <seednode>]\n";
my $usagemsg5 = " [-e exactmatch] [-i ignore] [-V verbose]\n";
my $usagemsg5A = " [-l userid] [--devicetype type_of_device]\n";
my $usagemsg6 = " {-c <command> | -f <command file>}";
my $usagemsg .= $usagemsg1 .= $usagemsg1a .= $usagemsg3 .= $usagemsg4 .=
$usagemsg5 .= $usagemsg6;
$usagemsg5 .= $usagemsg5A .= $usagemsg6;
### end usage mesage
my $rsp = {};
@@ -110,6 +111,8 @@ sub parse_and_run_sinv
's|seed=s' => \$options{'seed_node'},
'e|exactmatch' => \$options{'exactmatch'},
'i|ignorefirst' => \$options{'ignorefirst'},
'l|user=s' => \$options{'user'},
'devicetype|devicetype=s' => \$options{'devicetype'},
'c|cmd=s' => \$options{'sinv_cmd'},
'f|file=s' => \$options{'sinv_cmd_file'},
'v|version' => \$options{'version'},
@@ -198,14 +201,38 @@ sub parse_and_run_sinv
# strip off the program and the noderange
#
my @nodelist = ();
my @cmdparts = split(' ', $cmd);
my @cmdparts = ();
my $devicecommand =0;
if ($options{'devicetype'}) {
# must split different because devices have commands with spaces
@cmdparts = split(' ', $cmd,3);
$devicecommand =1;
} else {
@cmdparts = split(' ', $cmd);
}
my $cmdtype = shift @cmdparts;
my $noderange = shift @cmdparts;
my @cmd = ();
if ($noderange =~ /^-/)
if ($noderange =~ /^-/) # if imageupdate not node
{ # no noderange
push @cmd, $noderange; # put flag back on command
}
# root is sending the command
my @envs;
# if -l user id supplied
if ($options{'user'}) {
push @cmd,"-l";
push @cmd,$options{'user'};
push @envs,"DSH_TO_USERID=$options{'user'}";
}
# if device type supplied
if ($options{'devicetype'}) {
push @cmd,"--devicetype";
my $switchtype = $options{'devicetype'};
$switchtype =~ s/::/\//g;
push @cmd,$switchtype;
}
foreach my $part (@cmdparts)
{
@@ -471,13 +498,14 @@ sub parse_and_run_sinv
{
command => [$cmdtype],
node => \@seed,
env => [@envs],
arg => [@cmd]
},
\&$cmdoutput
);
# write the results to the tempfile after running through xdshcoll
$rc = &storeresults($callback);
$rc = &storeresults($callback,$devicecommand);
}
$processflg = "node";
@@ -500,6 +528,7 @@ sub parse_and_run_sinv
{
command => [$cmdtype],
node => \@nodelist,
env => [@envs],
arg => [@cmd]
},
\&$cmdoutput
@@ -507,7 +536,7 @@ sub parse_and_run_sinv
# write the results to the tempfile after running through xdshcoll
$rc = &storeresults($callback);
$rc = &storeresults($callback,$devicecommand);
# Build report and write to output file
# if file exist and has something in it
@@ -1424,12 +1453,11 @@ sub rinvoutput
sub storeresults
{
my $callback = shift;
my $devicecommand= shift;
# open file to write results of xdsh or rinv command
my $newtempfile = $tempfile;
$newtempfile .= "temp";
open(FILE, ">$newtempfile");
if ($? > 0)
unless (open(NEWTMPFILE, ">$newtempfile"))
{
my $rsp = {};
$rsp->{data}->[0] = "Could not open $newtempfile\n";
@@ -1438,9 +1466,9 @@ sub storeresults
}
foreach my $line (@cmdresult)
{
print FILE $line;
print NEWTMPFILE $line;
}
close FILE;
close NEWTMPFILE;
my $outputfile;
if ($processflg eq "seednode")
{ # cmd to seednode
@@ -1452,8 +1480,7 @@ sub storeresults
}
# open file to put results of xdshcoll
open(FILE, ">$outputfile");
if ($? > 0)
unless (open(NEWOUTFILE, ">$outputfile"))
{
my $rsp = {};
$rsp->{data}->[0] = "Could not open $outputfile\n";
@@ -1462,8 +1489,7 @@ sub storeresults
}
my $cmd = " $::XCATROOT/sbin/xdshcoll <$newtempfile |";
open(XCOLL, "$cmd");
if ($? > 0)
unless (open(XCOLL, "$cmd"))
{
my $rsp = {};
$rsp->{data}->[0] = "Could not call xdshcoll \n";
@@ -1476,18 +1502,37 @@ sub storeresults
while (<XCOLL>)
{
$line = $_;
print FILE $line
print NEWOUTFILE $line
}
close(XCOLL);
close FILE;
close NEWOUTFILE;
system("/bin/rm $newtempfile");
# is device command, we get false errors from the Switch, check for
# blank error output lines and remove them. If there is nothing left
# then there really were no errors
my @newerrresult=();
my $processerrors =1;
if ($devicecommand==1) {
foreach my $line (@errresult)
{
my @newline = (split(/:/, $line));
if ($newline[1] !~ /^\s*$/) { # Not blank, then save it
push @newerrresult,$line;
}
}
my $arraysize=@newerrresult;
if ($arraysize < 1) {
$processerrors =0;
}
}
# capture errors
#
if (@errresult)
if ((@errresult) && ($processerrors ==1))
{ # if errors
my $rsp = {};
my $i = 0;
+64 -70
View File
@@ -81,7 +81,6 @@ sub dodiscover {
}
}
}
# for print information
my @printip;
foreach my $iface (keys %{$interfaces}) {
foreach my $sip (@{$interfaces->{$iface}->{ipv4addrs}}) {
@@ -91,7 +90,7 @@ sub dodiscover {
}
}
my $printinfo = join(",", @printip);
send_message($args{reqcallback}, 0, "Sending SLP request on interfaces: $printinfo ...") if ($args{reqcallback});
send_message($args{reqcallback}, 0, "Sending SLP request on interfaces: $printinfo ...") if ($args{reqcallback} and !$args{nomsg} );
foreach my $srvtype (@srvtypes) {
send_service_request_single(%args,ifacemap=>$interfaces,SrvType=>$srvtype);
}
@@ -99,12 +98,12 @@ sub dodiscover {
unless ($args{NoWait}) { #in nowait, caller owns the responsibility..
#by default, report all respondants within 3 seconds:
my $waitforsocket = IO::Select->new();
$waitforsocket->add($args{'socket'});
$waitforsocket->add($args{'socket'});
my $retrytime = ($args{Retry}>0)?$args{Retry}+1:3;
my $retryinterval = ($args{Retry}>0)?$args{Retry}:REQ_INTERVAL;
my $waittime = ($args{Time}>0)?$args{Time}:20;
my @peerarray;
my @pkgarray;
my @pkgarray;
my $startinterval = time();
my $interval;
@@ -117,87 +116,87 @@ sub dodiscover {
# receive untill there is none
########################################
while ($waitforsocket->can_read(0)) {
my $peer = $args{'socket'}->recv($slppacket,1400,0);
my $peer = $args{'socket'}->recv($slppacket,3000,0);
push @peerarray, $peer;
push @pkgarray, $slppacket;
}
#######################################
# process the packets
#######################################
for(my $j = 0; $j< scalar(@peerarray); $j++) {
my $pkg = $peerarray[$j];
my $slpkg = $pkgarray[$j];
if ($ip6support) {
( $port,$flow,$ip6n,$scope) = Socket6::unpack_sockaddr_in6_all($pkg);
$peername = Socket6::inet_ntop(Socket6::AF_INET6(),$ip6n);
} else {
($port,$ip4n) = sockaddr_in($pkg);
$peername = inet_ntoa($ip4n);
}
if ($rethash{$peername}) {
next; #got a dupe, discard
}
my $result = process_slp_packet(packet=>$slpkg,sockaddr=>$pkg,'socket'=>$args{'socket'});
if ($result) {
if ($peername =~ /\./) { #ipv4
$peername =~ s/::ffff://;
}
$result->{peername} = $peername;
if ($gprlist) {
$gprlist .= ','.$peername if(length($gprlist) < 1250);
} else {
$gprlist = $peername;
}
$result->{scopeid} = $scope;
$result->{sockaddr} = $pkg;
my $hashkey;
if ($peername =~ /fe80/) {
$peername .= '%'.$scope;
}
$rspcount++;
$rspcount1++;
$rethash{$peername} = $result;
if ($args{Callback}) {
$args{Callback}->($result);
}
}
}
for(my $j = 0; $j< scalar(@peerarray); $j++) {
my $pkg = $peerarray[$j];
my $slpkg = $pkgarray[$j];
if ($ip6support) {
( $port,$flow,$ip6n,$scope) = Socket6::unpack_sockaddr_in6_all($pkg);
$peername = Socket6::inet_ntop(Socket6::AF_INET6(),$ip6n);
} else {
($port,$ip4n) = sockaddr_in($pkg);
$peername = inet_ntoa($ip4n);
}
if ($rethash{$peername}) {
next; #got a dupe, discard
}
my $result = process_slp_packet(packet=>$slpkg,sockaddr=>$pkg,'socket'=>$args{'socket'});
if ($result) {
if ($peername =~ /\./) { #ipv4
$peername =~ s/::ffff://;
}
$result->{peername} = $peername;
if ($gprlist) {
$gprlist .= ','.$peername if(length($gprlist) < 1250);
} else {
$gprlist = $peername;
}
$result->{scopeid} = $scope;
$result->{sockaddr} = $pkg;
my $hashkey;
if ($peername =~ /fe80/) {
$peername .= '%'.$scope;
}
$rspcount++;
$rspcount1++;
$rethash{$peername} = $result;
if ($args{Callback}) {
$args{Callback}->($result);
}
}
}
#############################
# check if need to return
#############################
@peerarray = ();
@pkgarray = ();
$interval = time() - $startinterval;
if ($args{Time} and $args{Count}) {
if ($rspcount >= $args{Count} or $interval >= $args{Time}) {
send_message($args{reqcallback}, 0, "Received $rspcount1 responses.") if ($args{reqcallback});
last;
}
@peerarray = ();
@pkgarray = ();
$interval = time() - $startinterval;
if ($args{Time} and $args{Count}) {
if ($rspcount >= $args{Count} or $interval >= $args{Time}) {
send_message($args{reqcallback}, 0, "Received $rspcount1 responses.") if ($args{reqcallback} and !$args{nomsg});
last;
}
}
if ($sendcount > $retrytime and $rspcount1 == 0) {
send_message($args{reqcallback}, 0, "Received $rspcount1 responses.") if ($args{reqcallback});
send_message($args{reqcallback}, 0, "Received $rspcount1 responses.") if ($args{reqcallback} and !$args{nomsg});
last;
}
#########################
# send request again
#########################
if ( $interval > $retryinterval){#* (2**$sendcount))) { #double time
$sendcount++;
$startinterval = time();
send_message($args{reqcallback}, 0, "Received $rspcount1 responses.") if ($args{reqcallback});
send_message($args{reqcallback}, 0, "Sending SLP request on interfaces: $printinfo ...") if ($args{reqcallback});
foreach my $srvtype (@srvtypes) {
send_service_request_single(%args,ifacemap=>$interfaces,SrvType=>$srvtype);
}
if ( $interval > $retryinterval){#* (2**$sendcount))) { #double time
$sendcount++;
$startinterval = time();
send_message($args{reqcallback}, 0, "Received $rspcount1 responses.") if ($args{reqcallback} and !$args{nomsg});
send_message($args{reqcallback}, 0, "Sending SLP request on interfaces: $printinfo ...") if ($args{reqcallback} and !$args{nomsg});
foreach my $srvtype (@srvtypes) {
send_service_request_single(%args,ifacemap=>$interfaces,SrvType=>$srvtype);
}
$rspcount1 = 0;
}
}
}
}
} #end nowait
} #end nowait
foreach my $entry (keys %rethash) {
handle_new_slp_entity($rethash{$entry})
}
}
if (xCAT::Utils->isAIX()) {
foreach my $iface (keys %{$interfaces}) {
foreach my $sip (@{$interfaces->{$iface}->{ipv4addrs}}) {
@@ -646,16 +645,11 @@ sub get_ipv6_neighbors {
}
}
##########################################################################
# Invokes the callback with the specified message
##########################################################################
sub send_message {
my $callback = shift;
my $ecode = shift;
my $msg = shift;
my %output;
$output{errorcode} = $ecode;
$output{data} = $msg;
$callback->( \%output );
Regular → Executable
+16 -2
View File
@@ -667,6 +667,9 @@ sub decode_spd {
1066 => 8500,
1333 => 10600,
1600 => 12800,
1867 => 14900,
2133 => 17000,
2134 => 17000,
);
my %ddr3modcap = (
@@ -707,9 +710,20 @@ sub decode_spd {
}
$rethash->{product}->{name}=$memtypes{$spd[2]};
if ($spd[2] == 11) { #DDR3 spec applies
my $ftbdividend = $spd[9] >> 4;
my $ftbdivisor = $spd[9] & 0xf;
my $ftb = $ftbdividend/$ftbdivisor;
my $fineoffset = $spd[34];
if ($fineoffset & 0b10000000) {
#negative value, twos complement
$fineoffset = 0-(($fineoffset ^ 0xff) + 1);
}
$fineoffset = ($ftb * $fineoffset) * 10**-3;
my $mtb = $spd[10]/$spd[11];
my $speed = $speedfromclock{int(2/($mtb*$spd[12]*10**-3))};
$rethash->{product}->{name}="PC3-".$speed;
my $clock = int(2/(($mtb*$spd[12]+$fineoffset)*10**-3));
my $speed = $speedfromclock{$clock};
unless ($speed) { $speed = "UNKNOWN"; }
$rethash->{product}->{name}="PC3-".$speed." ($clock MT/s)";
if ($spd[8]&0b11000) {
$rethash->{product}->{name} .= " ECC";
}
+909 -96
View File
File diff suppressed because it is too large Load Diff
+4 -3
View File
@@ -1,6 +1,7 @@
package xCAT::Scope;
use xCAT::Utils;
use xCAT::Table;
use xCAT::ServiceNodeUtils qw(getSNList);
sub get_broadcast_scope {
my $req = shift;
if ($req =~ /xCAT::Scope/) {
@@ -10,8 +11,8 @@ sub get_broadcast_scope {
if ($req->{_xcatpreprocessed}->[0] == 1) { return [$req]; }
#Exit if the packet has been preprocessed in its history
my @requests = ({%$req}); #Start with a straight copy to reflect local instance
foreach (xCAT::Utils->getSNList()) {
if (xCAT::Utils->thishostisnot($_)) {
foreach (xCAT::ServiceNodeUtils->getSNList()) {
if (xCAT::NetworkUtils->thishostisnot($_)) {
my $reqcopy = {%$req};
$reqcopy->{'_xcatdest'} = $_;
$reqcopy->{_xcatpreprocessed}->[0] = 1;
@@ -24,7 +25,7 @@ sub get_broadcast_scope {
#$sitetab->close;
#if ($ent and $ent->{value}) {
# foreach (split /,/,$ent->{value}) {
# if (xCAT::Utils->thishostisnot($_)) {
# if (xCAT::NetworkUtils->thishostisnot($_)) {
# my $reqcopy = {%$req};
# $reqcopy->{'_xcatdest'} = $_;
# push @requests,$reqcopy;
+854
View File
@@ -0,0 +1,854 @@
#!/usr/bin/env perl
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
package xCAT::ServiceNodeUtils;
BEGIN
{
$::XCATROOT = $ENV{'XCATROOT'} ? $ENV{'XCATROOT'} : '/opt/xcat';
}
# if AIX - make sure we include perl 5.8.2 in INC path.
# Needed to find perl dependencies shipped in deps tarball.
if ($^O =~ /^aix/i) {
use lib "/usr/opt/perl5/lib/5.8.2/aix-thread-multi";
use lib "/usr/opt/perl5/lib/5.8.2";
use lib "/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi";
use lib "/usr/opt/perl5/lib/site_perl/5.8.2";
}
use lib "$::XCATROOT/lib/perl";
use strict;
#-----------------------------------------------------------------------------
=head3 readSNInfo
Read resource, NFS server, Master node, OS an ARCH from the database
for the service node
Input: service nodename
Output: Masternode, OS and ARCH
Example:
my $retdata = xCAT::ServiceNodeUtils->readSNInfo;
=cut
#-----------------------------------------------------------------------------
sub readSNInfo
{
my ($class, $nodename) = @_;
my $rc = 0;
my $et;
my $masternode;
my $os;
my $arch;
$rc = xCAT::Utils->exportDBConfig();
if ($rc == 0)
{
if ($nodename)
{
$masternode = xCAT::TableUtils->GetMasterNodeName($nodename);
if (!($masternode))
{
xCAT::MsgUtils->message('S',
"Could not get Master for node $nodename\n");
return 1;
}
$et = xCAT::TableUtils->GetNodeOSARCH($nodename);
if ($et == 1)
{
xCAT::MsgUtils->message('S',
"Could not get OS/ARCH for node $nodename\n");
return 1;
}
if (!($et->{'os'} || $et->{'arch'}))
{
xCAT::MsgUtils->message('S',
"Could not get OS/ARCH for node $nodename\n");
return 1;
}
}
$et->{'master'} = $masternode;
return $et;
}
return $rc;
}
#-----------------------------------------------------------------------------
=head3 isServiceReq
Checks the service node table in the database to see
if input Service should be setup on the
input service node or Management Node (used by AAsn.pm)
Input:servicenodename,ipaddres(s) and hostnames of service node
Output:
hash of services to setup for this service node
Globals:
$::RUNCMD_RC = 0; good
$::RUNCMD_RC = 1; error
Error:
none
Example:
$servicestosetup=xCAT::ServiceNodeUtils->isServiceReq($servicenodename, @serviceip) { blah; }
=cut
#-----------------------------------------------------------------------------
sub isServiceReq
{
require xCAT::Table;
my ($class, $servicenodename, $serviceip) = @_;
# get list of all services from service node table ( actually all defined attributes)
# read the schema
my $schema = xCAT::Table->getTableSchema("servicenode");
my @services; # list of only the actual service attributes from the servicenode table
my @servicesattrs; # building second copy for call to getAllNodeAttribs, which modifies the array
foreach my $c (@{$schema->{cols}}) {
if (($c ne "node") && ($c ne "comments") && ($c ne "disable")) {
push @servicesattrs,$c;
push @services,$c;
}
}
my @ips = @$serviceip; # list of service node ip addresses and names
my $rc = 0;
$rc = xCAT::Utils->exportDBConfig(); # export DB env
if ($rc != 0)
{
xCAT::MsgUtils->message('S', "Unable export DB environment.\n");
$::RUNCMD_RC = 1;
return;
}
# get handle to servicenode table
my $servicenodetab = xCAT::Table->new('servicenode');
unless ($servicenodetab)
{
xCAT::MsgUtils->message('S', "Unable to open servicenode table.\n");
$::RUNCMD_RC = 1;
return; # do not setup anything
}
# Are we on the MN
my $mname;
if (xCAT::Utils->isMN()) {
my @nodeinfo = xCAT::NetworkUtils->determinehostname;
$mname = pop @nodeinfo; # get hostname
}
my $servicehash;
# read all the nodes from the table, all the service attributes
my @snodelist= $servicenodetab->getAllNodeAttribs(\@servicesattrs);
foreach my $service (@services) # check list of services
{
foreach $serviceip (@ips) # check the table for this servicenode
{
foreach my $node (@snodelist)
{
if ($serviceip eq $node->{'node'})
{ # match table entry
if ($node->{$service})
{ # returns service, only if set
my $value = $node->{$service};
$value =~ tr/a-z/A-Z/; # convert to upper
# value 1 or yes then we setup the service
if (($value eq "1") || ($value eq "YES"))
{
$servicehash->{$service} = "1";
} else {
$servicehash->{$service} = "0";
}
}
last;
}
}
}
}
# if the ftpserver attribute is not defined in the service node table
# and we are on
# the Linux management node, we need to look at site.vsftp
# if the tftpserver attribute is not defined, then we default it 1
if (($mname) && (xCAT::Utils->isLinux())) {
if (!exists($servicehash->{'ftpserver'})) {
my @tmp = xCAT::TableUtils->get_site_attribute("vsftp");
if ($tmp[0] && ($tmp[0] !~ /0|NO|No|no|N|n/ )) {
$servicehash->{'ftpserver'} = 1;
}
}
if (!exists($servicehash->{'tftpserver'})) {
$servicehash->{'tftpserver'} = 1;
}
}
$servicenodetab->close;
$::RUNCMD_RC = 0;
return $servicehash;
}
#-----------------------------------------------------------------------------
=head3 getAllSN
Returns an array of all service nodes from service node table
Arguments:
ALL" - will also return the management node in the array, if
if has been defined in the servicenode table
Returns:
array of Service Nodes or empty array, if none
Globals:
none
Error:
1 - error
Example:
@SN=xCAT::ServiceNodeUtils->getAllSN
@allSN=xCAT::ServiceNodeUtils->getAllSN("ALL")
Comments:
none
=cut
#-----------------------------------------------------------------------------
sub getAllSN
{
my ($class, $options) = @_;
require xCAT::Table;
# reads all nodes from the service node table
my @servicenodes;
my $servicenodetab = xCAT::Table->new('servicenode');
unless ($servicenodetab) # no servicenode table
{
xCAT::MsgUtils->message('I', "Unable to open servicenode table.\n");
$servicenodetab->close;
return @servicenodes;
}
my @nodes = $servicenodetab->getAllNodeAttribs(['tftpserver']);
foreach my $nodes (@nodes)
{
push @servicenodes, $nodes->{node};
}
# if did not input "ALL" and there is a MN, remove it
my @newservicenodes;
if ((!defined($options)) || ($options ne "ALL")) {
my @mname = xCAT::Utils->noderangecontainsMn(@servicenodes);
if (@mname) { # if there is a MN
foreach my $node (@servicenodes) {
# check to see if node in MN list
if (!(grep(/^$node$/, @mname))) { # if node not in the MN array
push @newservicenodes, $node;
}
}
$servicenodetab->close;
return @newservicenodes; # return without the MN in the array
}
}
$servicenodetab->close;
return @servicenodes;
}
#-----------------------------------------------------------------------------
=head3 getSNandNodes
Returns an hash-array of all service nodes and the nodes they service
Arguments:
none
#-----------------------------------------------------------------------------
=head3 getSNandNodes
Returns an hash-array of all service nodes and the nodes they service
Arguments:
none
Returns:
Service Nodes and the nodes they service or empty , if none
Globals:
none
Error:
1 - error
Example:
$sn=xCAT::ServiceNodeUtils->getSNandNodes()
Comments:
none
=cut
#-----------------------------------------------------------------------------
sub getSNandNodes
{
require xCAT::Table;
# read all the nodes from the nodelist table
# call get_ServiceNode to find which Service Node
# the node belongs to.
my %sn;
my @nodes;
my $nodelisttab = xCAT::Table->new('nodelist');
my $recs = $nodelisttab->getAllEntries();
foreach (@$recs)
{
push @nodes, $_->{node};
}
$nodelisttab->close;
my $sn = xCAT::ServiceNodeUtils->get_ServiceNode(\@nodes, "xcat", "MN");
return $sn;
}
#-----------------------------------------------------------------------------
=head3 getSNList
Reads the servicenode table. Will return all the enabled Service Nodes
that will setup the input Service ( e.g tftpserver,nameserver,etc)
If service is blank, then will return the list of all enabled Service
Nodes.
Arguments:
Servicename ( xcat,tftpserver,dhcpserver,conserver,etc)
If no servicename, returns all Servicenodes
"ALL" argument means you also want the MN returned. It can be in the
servicenode list. If no "ALL", take out the MN if it is there.
Returns:
Array of service node names
Globals:
none
Error:
1 - error
Example:
$sn= xCAT::ServiceNodeUtils->getSNList($servicename) { blah; }
$sn= xCAT::ServiceNodeUtils->getSNList($servicename,"ALL") { blah; }
$sn= xCAT::ServiceNodeUtils->getSNList() { blah; }
$sn= xCAT::ServiceNodeUtils->getSNList("","ALL") { blah; }
Comments:
none
=cut
#-----------------------------------------------------------------------------
sub getSNList
{
require xCAT::Table;
my ($class, $service,$options) = @_;
# reads all nodes from the service node table
my @servicenodes;
my $servicenodetab = xCAT::Table->new('servicenode', -create => 1);
unless ($servicenodetab) # no servicenode table
{
xCAT::MsgUtils->message('I', "Unable to open servicenode table.\n");
return ();
}
my @nodes = $servicenodetab->getAllNodeAttribs([$service]);
$servicenodetab->close;
foreach my $node (@nodes)
{
if (! defined ($service) || ($service eq "")) # want all the service nodes
{
push @servicenodes, $node->{node};
}
else
{ # looking for a particular service
if ($node->{$service})
{ # if null then do not add node
my $value = $node->{$service};
$value =~ tr/a-z/A-Z/; # convert to upper
# value 1 or yes or blank then we setup the service
if (($value == 1) || ($value eq "YES"))
{
push @servicenodes, $node->{node};
}
}
}
}
# if did not input "ALL" and there is a MN, remove it
my @newservicenodes;
if ((!defined($options)) || ($options ne "ALL")) {
my $mname = xCAT::Utils->noderangecontainsMn(@servicenodes);
if ($mname) { # if there is a MN
foreach my $nodes (@servicenodes) {
if ($mname ne ($nodes)){
push @newservicenodes, $nodes;
}
}
return @newservicenodes; # return without the MN in the array
}
}
return @servicenodes;
}
#-----------------------------------------------------------------------------
=head3 get_ServiceNode
Will get the Service node ( name or ipaddress) as known by the Management
Node or Node for the input nodename or ipadress of the node
which can be a Service Node.
If the input node is a Service Node then it's Service node
is always the Management Node.
input: list of nodenames and/or node ipaddresses (array ref)
service name
"MN" or "Node" determines if you want the Service node as known
by the Management Node or by the node.
recognized service names: xcat,tftpserver,
nfsserver,conserver,monserver
service "xcat" is used by command like xdsh that need to know the
service node that will process the command but are not tied to a
specific service like tftp
Todo: Handle dhcpserver and nameserver from the networks table
output: A hash ref of arrays, the key is the service node pointing to
an array of nodes that are serviced by that service node
Globals:
$::ERROR_RC
Error:
$::ERROR_RC=0 no error $::ERROR_RC=1 error
example: $sn =xCAT::ServiceNodeUtils->get_ServiceNode(\@nodes,$service,"MN");
$sn =xCAT::ServiceNodeUtils->get_ServiceNode(\@nodes,$service,"Node");
Note: this rountine is important to hierarchical support in xCAT
and used in many places. Any changes to the logic should be
reviewed by xCAT architecture
=cut
#-----------------------------------------------------------------------------
sub get_ServiceNode
{
require xCAT::Table;
my ($class, $node, $service, $request) = @_;
my @node_list = @$node;
my $cmd;
my %snhash;
my $nodehash;
my $sn;
my $nodehmtab;
my $noderestab;
my $snattribute;
my $oshash;
my $nodetab;
$::ERROR_RC = 0;
# determine if the request is for the service node as known by the MN
# or the node
if ($request eq "MN")
{
$snattribute = "servicenode";
}
else # Node
{
$snattribute = "xcatmaster";
}
# get site.master this will be the default
my $master = xCAT::TableUtils->get_site_Master();
$noderestab = xCAT::Table->new('noderes');
unless ($noderestab) # no noderes table, use default site.master
{
xCAT::MsgUtils->message('I',
"Unable to open noderes table. Using site->Master.\n");
if ($master) # use site Master value
{
foreach my $node (@node_list)
{
push @{$snhash{$master}}, $node;
}
}
else
{
xCAT::MsgUtils->message('E', "Unable to read site Master value.\n");
$::ERROR_RC = 1;
}
return \%snhash;
}
if ($service eq "xcat")
{ # find all service nodes for the nodes in the list
$nodehash = $noderestab->getNodesAttribs(\@node_list, [$snattribute]);
foreach my $node (@node_list)
{
foreach my $rec (@{$nodehash->{$node}})
{
if ($rec and $rec->{$snattribute}) # use noderes.servicenode
{
my $key = $rec->{$snattribute};
push @{$snhash{$key}}, $node;
}
else # use site.master
{
push @{$snhash{$master}}, $node;
}
}
}
$noderestab->close;
return \%snhash;
}
else
{
if (
($service eq "tftpserver") # all from noderes table
|| ($service eq "nfsserver") || ($service eq "monserver")
)
{
$nodehash =
$noderestab->getNodesAttribs(\@node_list,
[$service, $snattribute]);
foreach my $node (@node_list)
{
foreach my $rec (@{$nodehash->{$node}})
{
if ($rec and $rec->{$service})
{
# see if both MN and Node address in attribute
my ($msattr, $nodeattr) = split ':', $rec->{$service};
my $key = $msattr;
if ($request eq "Node")
{
if ($nodeattr) # override with Node, if it exists
{
$key = $nodeattr;
}
}
push @{$snhash{$key}}, $node;
}
else
{
if ($rec and $rec->{$snattribute}) # if it exists
{
my $key = $rec->{$snattribute};
push @{$snhash{$key}}, $node;
}
else
{ # use site.master
push @{$snhash{$master}}, $node;
}
}
}
}
$noderestab->close;
return \%snhash;
}
else
{
if ($service eq "conserver")
{
# read the nodehm table
$nodehmtab = xCAT::Table->new('nodehm');
unless ($nodehmtab) # no nodehm table
{
xCAT::MsgUtils->message('I',
"Unable to open nodehm table.\n");
# use servicenode
$nodehash =
$noderestab->getNodesAttribs(\@node_list, [$snattribute]);
foreach my $node (@node_list)
{
foreach my $rec (@{$nodehash->{$node}})
{
if ($rec and $rec->{$snattribute})
{
my $key = $rec->{$snattribute};
push @{$snhash{$key}}, $node;
}
else
{ # use site.master
push @{$snhash{$master}}, $node;
}
}
}
$noderestab->close;
return \%snhash;
}
# can read the nodehm table
$nodehash =
$nodehmtab->getNodesAttribs(\@node_list, ['conserver']);
foreach my $node (@node_list)
{
foreach my $rec (@{$nodehash->{$node}})
{
if ($rec and $rec->{'conserver'})
{
# see if both MN and Node address in attribute
my ($msattr, $nodeattr) = split ':',
$rec->{'conserver'};
my $key = $msattr;
if ($request eq "Node")
{
if ($nodeattr
) # override with Node, if it exists
{
$key = $nodeattr;
}
}
push @{$snhash{$key}}, $node;
}
else
{ # use service node for this node
$sn =
$noderestab->getNodeAttribs($node,
[$snattribute]);
if ($sn and $sn->{$snattribute})
{
my $key = $sn->{$snattribute};
push @{$snhash{$key}}, $node;
}
else
{ # no service node use master
push @{$snhash{$master}}, $node;
}
}
}
}
$noderestab->close;
$nodehmtab->close;
return \%snhash;
}
else
{
xCAT::MsgUtils->message('E',
"Invalid service=$service input.\n");
$::ERROR_RC = 1;
}
}
}
return \%snhash;
}
#-----------------------------------------------------------------------------
=head3 getSNformattedhash
Will call get_ServiceNode to get the Service node ( name or ipaddress)
as known by the Management
Server or Node for the input nodename or ipadress of the node
It will then format the output into a single servicenode key with values
the list of nodes service by that service node. This routine will
break up pools of service nodes into individual node in the hash unlike
get_ServiceNode which leaves the pool as the key.
input: Same as get_ServiceNode to call get_ServiceNode
list of nodenames and/or node ipaddresses (array ref)
service name
"MN" or "Node" determines if you want the Service node as known
by the Management Node or by the node.
recognized service names: xcat,tftpserver,
nfsserver,conserver,monserver
service "xcat" is used by command like xdsh that need to know the
service node that will process the command but are not tied to a
specific service like tftp
output: A hash ref of arrays, the key is a single service node
pointing to
a list of nodes that are serviced by that service node
'rra000-m'=>['blade01', 'testnode']
'sn1'=>['blade01', 'testnode']
'sn2'=>['blade01']
'sn3'=>['testnode']
Globals:
$::ERROR_RC
Error:
$::ERROR_RC=0 no error $::ERROR_RC=1 error
example: $sn =xCAT::ServiceNodeUtils->getSNformattedhash(\@nodes,$service,"MN", $type);
$sn =xCAT::ServiceNodeUtils->getSNformattedhash(\@nodes,$service,"Node", "primary");
=cut
#-----------------------------------------------------------------------------
sub getSNformattedhash
{
my ($class, $node, $service, $request, $btype) = @_;
my @node_list = @$node;
my $cmd;
my %newsnhash;
my $type="";
if ($btype) {
$type=$btype;
}
# get the values of either the servicenode or xcatmaster attributes
my $sn = xCAT::ServiceNodeUtils->get_ServiceNode(\@node_list, $service, $request);
# get the keys which are the service nodes and break apart any pool lists
# format into individual service node keys pointing to node lists
if ($sn)
{
foreach my $snkey (keys %$sn)
{
# split the key if pool of service nodes
push my @tmpnodes, $sn->{$snkey};
my @nodes;
for my $i (0 .. $#tmpnodes) {
for my $j ( 0 .. $#{$tmpnodes[$i]}) {
my $check=$tmpnodes[$i][$j];
push @nodes,$check;
}
}
# for SN backup we might only want the primary or backup
my @servicenodes;
my ($primary, $backup) = split /,/, $snkey;
if (($primary) && ($type eq "primary")) {
push @servicenodes, $primary;
} elsif (($backup) && ($type eq "backup")) {
push @servicenodes, $backup;
} else {
@servicenodes = split /,/, $snkey;
}
# now build new hash of individual service nodes
foreach my $newsnkey (@servicenodes) {
push @{$newsnhash{$newsnkey}}, @nodes;
}
}
}
return \%newsnhash;
}
#----------------------------------------------------------------------------
=head3 getAIXSNinterfaces
Get a list of ip addresses for each service node in a list
Arguments:
list of service nodes
Returns:
hash of ips for each service node
Globals:
none
Error:
none
Example:
my $sni = xCAT::ServiceNodeUtils->getAIXSNinterfaces(\@servlist, $callback, $subreq);
Comments:
=cut
#-----------------------------------------------------------------------------
sub getAIXSNinterfaces
{
my ($class, $list, $callback, $sub_req) = @_;
my @snlist = @$list;
my %SNinterfaces;
# get all the possible IPs for the node I'm running on
my $ifcmd = "/usr/sbin/ifconfig -a | grep 'inet ' ";
foreach my $sn (@snlist)
{
my $SNIP;
my $out = xCAT::InstUtils->xcmd($callback, $sub_req, "xdsh", $sn, $ifcmd, 0);
if ($::RUNCMD_RC != 0)
{
my $rsp;
push @{$rsp->{data}}, "Could not get IP addresses from service node $sn.\n";
xCAT::MsgUtils->message("E", $rsp, $callback);
next;
}
my @result;
foreach my $line ( split(/\n/, $out)) {
$line =~ s/$sn:\s+//;
push(@result, $line);
}
foreach my $int (@result) {
my ($inet, $SNIP, $str) = split(" ", $int);
chomp $SNIP;
$SNIP =~ s/\/.*//; # ipv6 address 4000::99/64
$SNIP =~ s/\%.*//; # ipv6 address ::1%1/128
push(@{$SNinterfaces{$sn}}, $SNIP);
}
} # end foreach SN
return \%SNinterfaces;
}
#-----------------------------------------------------------------------------
=head3
getSNandCPnodes - Take an array of nodes and returns
an array of the service
nodes and an array of the computenode .
Arguments:
none
Returns:
array of Service Nodes and/or array of compute nodesarray of compute nodes empty array, if none
Globals:
none
Error:
1 - error
Example:
xCAT::ServiceNodeUtils->getSNandCPnodes(\@nodes,\@SN,\@CN);
Comments:
none
=cut
#-----------------------------------------------------------------------------
sub getSNandCPnodes
{
my ($class, $nodes,$sn,$cn) = @_;
my @nodelist = @$nodes;
# get the list of all Service nodes
my @allSN=xCAT::ServiceNodeUtils->getAllSN;
foreach my $node (@nodelist) {
if (grep(/^$node$/, @allSN)) { # it is a SN
push (@$sn,$node);
} else { # a CN
push (@$cn,$node);
}
}
return ;
}
1;
+162 -153
View File
@@ -12,7 +12,9 @@
# -cache to persist so long as '_build_cache' calls concurrently stack (for NodeRange interpretation mainly) (done)
# -Allow plugins to define a staleness threshold for getNodesAttribs freshness (complicated enough to postpone...)
# so that actions requested by disparate managed nodes may aggregate in SQL calls
# reference count managed cache lifetime, if clear_cache is called, and build_chache has been called twice, decrement the counter
# cache lifetime is no longer determined strictly by function duration
# now it can live up to 5 seconds. However, most calls will ignore the cache unless using a special option.
# Hmm, potential issue, getNodesAttribs might return up to 5 second old data even if caller expects brand new data
# if called again, decrement again and clear cache
# for getNodesAttribs, we can put a parameter to request allowable staleneess
# if the cachestamp is too old, build_cache is called
@@ -34,7 +36,7 @@
package xCAT::Table;
use xCAT::MsgUtils;
use Sys::Syslog;
use Storable qw/freeze thaw/;
use Storable qw/freeze thaw store_fd fd_retrieve/;
use IO::Socket;
#use Data::Dumper;
use POSIX qw/WNOHANG/;
@@ -49,10 +51,7 @@ BEGIN
# if AIX - make sure we include perl 5.8.2 in INC path.
# Needed to find perl dependencies shipped in deps tarball.
if ($^O =~ /^aix/i) {
use lib "/usr/opt/perl5/lib/5.8.2/aix-thread-multi";
use lib "/usr/opt/perl5/lib/5.8.2";
use lib "/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi";
use lib "/usr/opt/perl5/lib/site_perl/5.8.2";
unshift(@INC, qw(/usr/opt/perl5/lib/5.8.2/aix-thread-multi /usr/opt/perl5/lib/5.8.2 /usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi /usr/opt/perl5/lib/site_perl/5.8.2));
}
use lib "$::XCATROOT/lib/perl";
@@ -71,7 +70,7 @@ require xCAT::NotifHandler;
my $dbworkerpid; #The process id of the database worker
my $dbworkersocket;
my $dbsockpath = "/tmp/xcat/dbworker.sock.".$$;
my $dbsockpath = "/var/run/xcat/dbworker.sock.".$$;
my $exitdbthread;
my $dbobjsforhandle;
my $intendedpid;
@@ -93,8 +92,6 @@ sub dbc_call {
sub dbc_submit {
my $request = shift;
$request->{'wantarray'} = wantarray();
my $data = freeze($request);
$data.= "\nENDOFFREEZEQFVyo4Cj6Q0v\n";
my $clisock;
my $tries=300;
while($tries and !($clisock = IO::Socket::UNIX->new(Peer => $dbsockpath, Type => SOCK_STREAM, Timeout => 120) ) ) {
@@ -106,22 +103,20 @@ sub dbc_submit {
use Carp qw/cluck/;
cluck();
}
print $clisock $data;
$data="";
store_fd($request,$clisock);
#print $clisock $data;
my $data="";
my $lastline="";
while (read($clisock,$lastline,32768)) { #$lastline ne "ENDOFFREEZEQFVyo4Cj6Q0j\n" and $lastline ne "*XCATBUGDETECTED*76e9b54341\n") { #index($lastline,"ENDOFFREEZEQFVyo4Cj6Q0j") < 0) {
# $lastline = <$clisock>;
$data .= $lastline;
}
my $retdata = fd_retrieve($clisock);
close($clisock);
if ($lastline =~ m/\*XCATBUGDETECTED\*76e9b54341\n\z/) { #if it was an error
if (ref $retdata eq "SCALAR") { #bug detected
#in the midst of the operation, die like it used to die
my $err;
$data =~ /\*XCATBUGDETECTED\*:(.*):\*XCATBUGDETECTED\*/s;
$$retdata =~ /\*XCATBUGDETECTED\*:(.*):\*XCATBUGDETECTED\*/s;
$err = $1;
die $err;
}
my @returndata = @{thaw($data)};
my @returndata = @{$retdata};
if (wantarray) {
return @returndata;
} else {
@@ -164,7 +159,7 @@ sub init_dbworker {
#This process is the database worker, it's job is to manage database queries to reduce required handles and to permit cross-process caching
$0 = "xcatd: DB Access";
use File::Path;
mkpath('/tmp/xcat/');
mkpath('/var/run/xcat/');
use IO::Socket;
$SIG{TERM} = $SIG{INT} = sub {
$exitdbthread=1;
@@ -202,8 +197,7 @@ sub init_dbworker {
xCAT::MsgUtils->message("S","xcatd: possible BUG encountered by xCAT DB worker ".$err);
if ($currcon) {
eval { #avoid hang by allowin client to die too
print $currcon "*XCATBUGDETECTED*:$err:*XCATBUGDETECTED*\n";
print $currcon "*XCATBUGDETECTED*76e9b54341\n";
store_fd("*XCATBUGDETECTED*:$err:*XCATBUGDETECTED*\n",$currcon);
$clientset->remove($currcon);
close($currcon);
};
@@ -214,9 +208,10 @@ sub init_dbworker {
};
if ($@) { #this should never be reached, but leave it intact just in case
my $err=$@;
xCAT::MsgUtils->message("S","xcatd: possible BUG encountered by xCAT DB worker ".$err);
eval { xCAT::MsgUtils->message("S","xcatd: possible BUG encountered by xCAT DB worker ".$err); };
}
if ($intendedpid != $$) { #avoid redundant fork
eval { xCAT::MsgUtils->message("S","Pid $$ shutting itself down because only pid $intendedpid is permitted to be in this area"); };
exit(0);
}
}
@@ -230,13 +225,14 @@ sub handle_dbc_conn {
my $client = shift;
my $clientset = shift;
my $data;
if ($data = <$client>) {
my $lastline;
while ($lastline ne "ENDOFFREEZEQFVyo4Cj6Q0v\n") { #$data !~ /ENDOFFREEZEQFVyo4Cj6Q0v/) {
$lastline = <$client>;
$data .= $lastline;
}
my $request = thaw($data);
my $request;
eval {
$request = fd_retrieve($client);
};
if ($@ and $@ =~ /^Magic number checking on storable file/) { #this most likely means we ran over the end of available input
$clientset->remove($client);
close($client);
} elsif ($request) {
my $response;
my @returndata;
if ($request->{'wantarray'}) {
@@ -244,12 +240,7 @@ sub handle_dbc_conn {
} else {
@returndata = (scalar(handle_dbc_request($request)));
}
$response = freeze(\@returndata);
# $response .= "\nENDOFFREEZEQFVyo4Cj6Q0j\n";
print $client $response;
$clientset->remove($client);
close($client);
} else { #Connection terminated, clean up
store_fd(\@returndata,$client);
$clientset->remove($client);
close($client);
}
@@ -332,6 +323,8 @@ sub handle_dbc_request {
return $opentables{$tablename}->{$autocommit}->getAllNodeAttribs(@args);
} elsif ($functionname eq 'getAllEntries') {
return $opentables{$tablename}->{$autocommit}->getAllEntries(@args);
} elsif ($functionname eq 'getMAXMINEntries') {
return $opentables{$tablename}->{$autocommit}->getMAXMINEntries(@args);
} elsif ($functionname eq 'writeAllEntries') {
return $opentables{$tablename}->{$autocommit}->writeAllEntries(@args);
} elsif ($functionname eq 'getAllAttribsWhere') {
@@ -360,8 +353,6 @@ sub handle_dbc_request {
return $opentables{$tablename}->{$autocommit}->_set_use_cache(@args);
} elsif ($functionname eq '_build_cache') {
return $opentables{$tablename}->{$autocommit}->_build_cache(@args);
} elsif ($functionname eq '_clear_cache') {
return $opentables{$tablename}->{$autocommit}->_clear_cache(@args);
} else {
die "undefined function $functionname";
}
@@ -1614,7 +1605,7 @@ sub setAttribs
# delimit the columns of the table
my $delimitedcol = &delimitcol($col);
$cols = $cols . $delimitedcol . " = ?,";
push @bind, (($$elems{$col} =~ /NULL/) ? undef: $$elems{$col});
push @bind, (($$elems{$col} eq "NULL") ? undef: $$elems{$col});
}
chop($cols);
my $cmd ;
@@ -1797,7 +1788,7 @@ sub setAttribsWhere
# delimit the columns of the table
my $delimitedcol = &delimitcol($col);
$cols = $cols . $delimitedcol . " = ?,";
push @bind, (($$elems{$col} =~ /NULL/) ? undef: $$elems{$col});
push @bind, (($$elems{$col} eq "NULL") ? undef: $$elems{$col});
}
chop($cols);
my $cmd = "UPDATE " . $self->{tabname} . " set $cols where " . $where_clause;
@@ -2093,10 +2084,8 @@ sub getNodesAttribs {
my @nodeentries=$self->getNodeAttribs($_,\@realattribs,%options);
$rethash->{$_} = \@nodeentries; #$self->getNodeAttribs($_,\@attribs);
}
$self->_clear_cache;
$self->{_use_cache} = 0;
if ($self->{tabname} ne 'nodelist') { #avoid calling clear_cache on nodelist twice
$self->{nodelist}->_clear_cache;
if ($self->{tabname} ne 'nodelist') {
$self->{nodelist}->{_use_cache} = 0;
}
return $rethash;
@@ -2123,27 +2112,6 @@ sub _refresh_cache { #if cache exists, force a rebuild, leaving reference counts
return;
}
sub _clear_cache { #PRIVATE FUNCTION TO EXPIRE CACHED DATA EXPLICITLY
#This is no longer sufficient to do at destructor time, as Table objects actually live an indeterminite amount of time now
#TODO: only clear cache if ref count mentioned in build_cache is 1, otherwise decrement ref count
my $self = shift;
if ($dbworkerpid) {
return dbc_call($self,'_clear_cache',@_);
}
if ($self->{_cache_ref} > 1) { #don't clear the cache if there are still live references
$self->{_cache_ref} -= 1;
return;
} elsif ($self->{_cache_ref} == 1) { #If it is 1, decrement to zero and carry on
return;
#$self->{_cache_ref} = 0;
}
#it shouldn't have been zero, but whether it was 0 or 1, ensure that the cache is gone
$self->{_use_cache}=0; # Signal slow operation to any in-flight operations that may fail with empty cache
$self->{_cached_attriblist} = undef;
undef $self->{_tablecache};
undef $self->{_nodecache};
}
sub _build_cache { #PRIVATE FUNCTION, PLEASE DON'T CALL DIRECTLY
#TODO: increment a reference counter type thing to preserve current cache
#Also, if ref count is 1 or greater, and the current cache is less than 3 seconds old, reuse the cache?
@@ -2159,10 +2127,6 @@ sub _build_cache { #PRIVATE FUNCTION, PLEASE DON'T CALL DIRECTLY
}
if (not $refresh and $self->{_cache_ref}) { #we have active cache reference, increment counter and return
#TODO: ensure that the cache isn't somehow still ludirously old
unless ($copts{noincrementref}) {
$self->{_cache_ref} += 1;
}
my $currattr;
my $cachesufficient=1;
foreach $currattr (@$attriblist) { #if any of the requested attributes are not cached, we must rebuild
@@ -2174,6 +2138,7 @@ sub _build_cache { #PRIVATE FUNCTION, PLEASE DON'T CALL DIRECTLY
if ($self->{_cachestamp} < (time()-5)) { #NEVER use a cache older than 5 seconds
$cachesufficient=0;
}
if ($cachesufficient) { return; }
#cache is insufficient, now we must do the converse of above
#must add any currently cached columns to new list if not requested
@@ -2308,16 +2273,16 @@ sub getNodeAttribs
#skip undefined values, save time
next;
}
if ($datum->{$attrib} =~ /^\/[^\/]*\/[^\/]*\/$/)
{
my $exp = substr($datum->{$attrib}, 1);
chop $exp;
my @parts = split('/', $exp, 2);
$node =~ s/$parts[0]/$parts[1]/;
$datum->{$attrib} = $node;
my $retval = $node;
$retval =~ s/$parts[0]/$parts[1]/;
$datum->{$attrib} = $retval;
}
elsif ($datum->{$attrib} =~ /^\|.*\|.*\|$/)
elsif ($datum->{$attrib} =~ /^\|.*\|$/)
{
#Perform arithmetic and only arithmetic operations in bracketed issues on the right.
@@ -2327,6 +2292,14 @@ sub getNodeAttribs
my $exp = substr($datum->{$attrib}, 1);
chop $exp;
my @parts = split('\|', $exp, 2);
my $arraySize = @parts;
if ($arraySize < 2) { # easy regx, generate lhs from node
my $lhs;
my @numbers = $node =~ m/[\D0]*(\d+)/g;
$lhs = '[\D0]*(\d+)' x scalar(@numbers);
$lhs .= '.*$';
unshift(@parts,$lhs);
}
my $curr;
my $next;
my $prev;
@@ -2378,71 +2351,6 @@ sub getNodeAttribs
#--------------------------------------------------------------------------
=head3 getNodeSpecAttribs
Description: Retrieves the requested attributes which matching the specified options for a node
Arguments:
Noderange
The specified options
List of attributes
Return:
Attribute hash
Example:
my $tab = xCAT::Table->new('ppcdirect');
my $ent = $tab->getNodeSpecAttribs($node, {username=>'HMC'}, qw/password/);
Comments:
The keys of the specified options can be given in the list of attributes or not,
this routine will deal with them.
=cut
#--------------------------------------------------------------------------
#sub getNodeSpecAttribs {
# my $self = shift;
# my $node = shift;
# my %options = ();
# my @attribs = ();
# my @keys = ();
# if (ref $_[0] eq 'HASH') {
# %options = %{shift()};
# @attribs = @_;
# foreach my $key (keys %options) {
# if (!grep(/^$key$/, @attribs)) {
# push @attribs, $key;
# }
# }
# } else {
# @attribs = @_;
# }
# if ((keys (%options)) == 0) {
# my $ent = $self->getNodeAttribs($node, \@attribs);
# return $ent;
# } else {
# my $nodekey = "node";
# if (defined $xCAT::Schema::tabspec{$self->{tabname}}->{nodecol}) {
# $nodekey = $xCAT::Schema::tabspec{$self->{tabname}}->{nodecol};
# }
# $options{$nodekey} = $node;
# my $ent = $self->getAttribs(\%options, \@attribs);
# if ($ent) {
# return $ent;
# }
# my ($nodeghash) = $self->{nodelist}->getAttribs({node=>$node}, "groups");
# unless(defined($nodeghash) && defined($nodeghash->{groups})) {
# return undef;
# }
# my @nodegroups = split(/,/, $nodeghash->{groups});
# foreach my $group (@nodegroups) {
# $options{$nodekey} = $group;
# my $g_ret = $self->getAttribs(\%options, \@attribs);
# if ($g_ret) {
# return $g_ret;
# }
# }
# }
# return undef;
#}
#--------------------------------------------------------------------------
=head3 getNodeAttribs_nosub
Description:
@@ -2928,7 +2836,9 @@ sub getAllAttribsWhere
Arguments:
Table handle
Attribute list
Attribute list
optional hash return style
( changes the return hash structure format)
Returns:
Array of attribute values
Globals:
@@ -2936,7 +2846,8 @@ sub getAllAttribsWhere
Error:
Example:
my @entries = $self->{switchtab}->getAllNodeAttribs(['port','switch']);
my @entries = $self->{switchtab}->getAllNodeAttribs(['port','switch']);
my @entries = $self->{switchtab}->getAllNodeAttribs(['port','switch'],1);
Comments:
none
@@ -2975,8 +2886,6 @@ sub getAllNodeAttribs
unless ($options{prefetchcache}) {
$self->{_use_cache} = 0;
$self->{nodelist}->{_use_cache}=0;
$self->_clear_cache();
$self->{nodelist}->_clear_cache();
}
$self->_build_cache($attribq);
$self->{nodelist}->_build_cache(['node','groups']);
@@ -2995,10 +2904,14 @@ sub getAllNodeAttribs
$self->{nrcache}->{$data->{$nodekey}}->{tstamp} = time();
}
@nodes = @{$self->{nrcache}->{$data->{$nodekey}}->{value}}; #expand node entry, to make groups expand
unless (@nodes) { #in the event of an entry not in nodelist, use entry value verbatim
@nodes = ($data->{$nodekey});
}
#If node not in nodelist do not add to the hash (SF 3580)
#unless (@nodes) { #in the event of an entry not in nodelist, use entry value verbatim
# @nodes = ($data->{$nodekey});
#} end SF 3580
#my $localhash = $self->getNodesAttribs(\@nodes,$attribq); #NOTE: This is stupid, rebuilds the cache for every entry, FIXME
foreach (@nodes)
{
if ($donenodes{$_}) { next; }
@@ -3030,11 +2943,8 @@ sub getAllNodeAttribs
}
}
}
$self->_clear_cache();
$self->{nodelist}->_clear_cache();
$self->{_use_cache} = 0;
$self->{nodelist}->{_use_cache} = 0;
xCAT::NodeRange::retain_cache(0);
$query->finish();
if ($hashretstyle) {
return $rethash;
@@ -3150,11 +3060,18 @@ sub getAllAttribs
Error:
Example:
my $table=xCAT::Table->new("notification", -create => 1,-autocommit => 0);
my %key_col = (filename=>$fname);
$table->delEntries(\%key_col);
$table->commit;
my $table=xCAT::Table->new("nodelist");
my %keyhash;
$keyhash{node} = "node1";
$keyhash{groups} = "compute1";
$table->delEntries(\%keyhash);
$table->commit;
Build delete statement and'ing the elements of the hash
DELETE FROM nodelist WHERE ("groups" = "compute1" AND "node" = "node1")
If called with no attributes, it will delete all entries in the table.
$table->delEntries();
$table->commit;
Comments:
none
@@ -3291,7 +3208,7 @@ sub getAttribs
{
#Takes two arguments:
#-Node name (will be compared against the 'Node' column)
#-Key(s) name (will be compared against the table key(s) value)
#-List reference of attributes for which calling code wants at least one of defined
# (recurse argument intended only for internal use.)
# Returns a hash reference with requested attributes defined.
@@ -3921,7 +3838,7 @@ sub writeAllEntries
# open the file for write
unless (open($fh," > $filename")) {
my $msg="Unable to open $filename for write \n.";
`logger -t xcat $msg`;
`logger -p local4.err -t xcat $msg`;
return 1;
}
my $query;
@@ -4006,7 +3923,7 @@ sub writeAllAttribsWhere
# open the file for write
unless (open($fh," > $filename")) {
my $msg="Unable to open $filename for write \n.";
`logger -t xcat $msg`;
`logger -p local4.err -t xcat $msg`;
return 1;
}
my $header;
@@ -4073,5 +3990,97 @@ sub output_table {
print $fh "\n";
return 0;
}
#--------------------------------------------------------------------------
=head3 getMAXMINEntries
Description: Select the rows in the Table which has the MAX and the row with the
Min value for the input attribute.
Currently only the auditlog and evenlog are setup to have such an attribute (recid).
Arguments:
Table handle
attribute name ( e.g. recid)
Returns:
HASH
max=> max value
min=> min value
Globals:
Error:
Example:
my $tabh = xCAT::Table->new($table);
my $recs=$tabh->getMAXMINEntries("recid");
Comments:
none
=cut
#--------------------------------------------------------------------------------
sub getMAXMINEntries
{
my $self = shift;
if ($dbworkerpid) {
return dbc_call($self,'getMAXMINEntries',@_);
}
my $attr = shift;
my $rets;
my $query;
my $xcatcfg=get_xcatcfg();
# delimit the disable column based on the DB
my $disable= &delimitcol("disable");
my $qstring;
if ($xcatcfg =~ /^DB2:/) { # for DB2
$qstring = "SELECT MAX (\"$attr\") FROM " . $self->{tabname} . " WHERE " . $disable . " is NULL or " . $disable . " in ('0','no','NO','No','nO')";
} else {
$qstring = "SELECT MAX($attr) FROM " . $self->{tabname} . " WHERE " . $disable . " is NULL or " . $disable . " in ('0','no','NO','No','nO')";
}
$query = $self->{dbh}->prepare($qstring);
$query->execute();
while (my $data = $query->fetchrow_hashref())
{
foreach (keys %$data)
{
if ($data->{$_} =~ /^$/)
{
$rets->{"max"} = undef;
} else {
$rets->{"max"} = $data->{$_};
}
last; # better only be one value for max
}
}
$query->finish();
if ($xcatcfg =~ /^DB2:/) { # for DB2
$qstring = "SELECT MIN (\"$attr\") FROM " . $self->{tabname} . " WHERE " . $disable . " is NULL or " . $disable . " in ('0','no','NO','No','nO')";
} else {
$qstring = "SELECT MIN($attr) FROM " . $self->{tabname} . " WHERE " . $disable . " is NULL or " . $disable . " in ('0','no','NO','No','nO')";
}
$query = $self->{dbh}->prepare($qstring);
$query->execute();
while (my $data = $query->fetchrow_hashref())
{
foreach (keys %$data)
{
if ($data->{$_} =~ /^$/)
{
$rets->{"min"} = undef;
} else {
$rets->{"min"} = $data->{$_};
}
last; # better be only one value for min
}
}
return $rets;
}
1;
File diff suppressed because it is too large Load Diff
+68 -33
View File
@@ -36,11 +36,13 @@ my %usage = (
LPAR(using Direct FSP Management) specific:
rpower <noderange> [on|off|reset|stat|state|boot|of|sms]
Blade(using Direct FSP Management) specific:
rpower <noderange> [on|off|cycle|state]
rpower <noderange> [on|onstandby|off|cycle|state|sms]
Blade(using AMM) specific:
rpower <noderange> [cycle|softoff] [-V|--verbose]
zVM specific:
rpower noderange [on|off|reset|stat|softoff]
MIC specific:
rpower noderange [stat|state|on|off|reset|boot]
",
"rbeacon" =>
"Usage: rbeacon <noderange> [on|off|stat] [-V|--verbose]
@@ -58,9 +60,11 @@ my %usage = (
Blade specific:
rvitals noderange {temp|wattage|fanspeed|leds|summary|all}
BMC specific:
rvitals noderange {temp|voltage|wattage|fanspeed|power|leds|lcds|summary|all}",
rvitals noderange {temp|voltage|wattage|fanspeed|power|leds|lcds|summary|all}
MIC specific:
rvitals noderange {thermal|all}",
"reventlog" =>
"Usage: reventlog <noderange> [all|clear|<number of entries to retrieve>] [-V|--verbose]
"Usage: reventlog <noderange> [all [-s]|clear|<number of entries to retrieve> [-s]] [-V|--verbose]
reventlog [-h|--help|-v|--version]",
"rinv" =>
"Usage:
@@ -68,29 +72,31 @@ my %usage = (
rinv <noderange> [all|model|serial] [-V|--verbose]
rinv [-h|--help|-v|--version]
BMC specific:
rinv <noderange> [vpd|mprom|deviceid|uuid|guid]
rinv <noderange> [mprom|deviceid|uuid|guid|vpd [-t]|all [-t]]
MPA specific:
rinv <noderange> [firm|bios|diag|mprom|sprom|mparom|mac|mtm]
rinv <noderange> [firm|bios|diag|mprom|sprom|mparom|mac|mtm [-t]]
PPC specific(with HMC):
rinv <noderange> [bus|config|serial|model|firm|all]
rinv <noderange> [all|bus|config|serial|model|firm [-t]]
PPC specific(using Direct FSP Management):
rinv <noderange> [firm]
rinv <noderange> [deconfig [-x]]
Blade specific:
rinv <noderange> [mtm|serial|mac|bios|diag|mprom|mparom|firm|all]
rinv <noderange> [all|serial|mac|bios|diag|mprom|mparom|firm|mtm [-t]]
IBM Flex System Compute Node specific:
rinv <noderange> [firm]
VMware specific:
rinv <noderange>
zVM specific:
rinv noderange [all|config]",
rinv noderange [all|config]
MIC specific:
rinv noderange [system|ver|board|core|gddr|all]",
"rsetboot" =>
"Usage: rsetboot <noderange> [net|hd|cd|floppy|def|stat] [-V|--verbose]
rsetboot [-h|--help|-v|--version]",
"rbootseq" =>
"Usage:
Common:
rbootseq [-h|--help|-v|--version]
rbootseq [-h|--help|-v|--version|-V|--verbose]
Blade specific:
rbootseq <noderange> [hd0|hd1|hd2|hd3|net|iscsi|usbflash|floppy|none],...
PPC (using Direct FSP Management) specific:
@@ -101,7 +107,7 @@ my %usage = (
"rspconfig" =>
"Usage:
Common:
rspconfig [-h|--help|-v|--version]
rspconfig [-h|--help|-v|--version|-V|--verbose]
BMC/MPA Common:
rspconfig <noderange> [snmpdest|alert|community] [-V|--verbose]
rspconfig <noderange> [snmpdest=<dest ip address>|alert=<on|off|en|dis|enable|disable>|community=<string>]
@@ -115,7 +121,7 @@ my %usage = (
rspconfig <noderange> [sshcfg|snmpcfg|pd1|pd2|network|swnet|ntp|textid|frame]
rspconfig <singlenode> [textid=name]
rspconfig <singlenode> [frame=number]
rspconfig <singlenode> [USERID=passwd]
rspconfig <singlenode> [USERID=passwd] [updateBMC=<y|n>]
rspconfig <noderange> [sshcfg=<enable|disable>|
snmpcfg=<enable|disable>|
pd1=<nonred|redwoperf|redwperf>|
@@ -185,7 +191,7 @@ my %usage = (
PPC specific:
getmacs <noderange> [-F filter]
getmacs <noderange> [-M]
getmacs <noderange> [-V| --verbose] [-f] [-d] [--arp] | [-D [-S server] [-G gateway] [-C client]]
getmacs <noderange> [-V| --verbose] [-f] [-d] [--arp] | [-D [-o] [-S server] [-G gateway] [-C client]]
blade specific:
getmacs <noderange> [-V| --verbose] [-d] [--arp] [-i ethN|enN]
",
@@ -193,10 +199,14 @@ my %usage = (
"Usage:
Common:
mkvm [-h|--help|-v|--version]
For PPC(with HMC):
For PPC(with HMC) specific:
mkvm noderange -i id -l singlenode [-V|--verbose]
mkvm noderange -c destcec -p profile [-V|--verbose]
mkvm noderange --full [-V|--verbose]
PPC (using Direct FSP Management) specific:
mkvm noderange [--full]
mkvm noderange [vmcpus=min/req/max] [vmmemory=min/req/max]
[vmphyslots=drc_index1,drc_index2...] [vmothersetting=hugepage:N,bsr:N]
For KVM
mkvm noderange -m|--master mastername -s|--size disksize -f|--force
For zVM
@@ -210,7 +220,8 @@ my %usage = (
PPC (with HMC) specific:
lsvm <noderange> [-a|--all]
PPC (using Direct FSP Management) specific:
lsvm <noderange> [-l|--long]
lsvm <noderange> [-l|--long] --p775
lsvm <noderange>
zVM specific:
lsvm noderange
lsvm noderange --getnetworknames
@@ -225,9 +236,11 @@ my %usage = (
chvm <noderange> [-p profile][-V|--verbose]
chvm <noderange> <attr>=<val> [<attr>=<val>...]
PPC (using Direct FSP Management) specific:
chvm <noderange> [-p <profile>]
chvm <noderange> --p775 [-p <profile>]
chvm <noderange> --p775 -i <id> [-m <memory_interleaving>] -r <partition_rule>
chvm <noderange> [lparname=<*|name>]
chvm <noderange> -i <id> [-m <memory_interleaving>] -r <partition_rule>
chvm <noderange> [vmcpus=min/req/max] [vmmemory=min/req/max]
[vmphyslots=drc_index1,drc_index2...] [vmothersetting=hugepage:N,bsr:N]
VMware specific:
chvm <noderange> [-a size][-d disk][-p disk][--resize disk=size][--cpus count][--mem memory]
zVM specific:
@@ -258,10 +271,12 @@ my %usage = (
"rmvm" =>
"Usage: rmvm <noderange> [--service][-V|--verbose]
rmvm [-h|--help|-v|--version],
rmvm [-p] [-f]",
rmvm [-p] [-f]
PPC (using Direct FSP Management) specific:
rmvm <noderange>",
"lsslp" =>
"Usage: lsslp [-h|--help|-v|--version]
lsslp [<noderange>][-V|--verbose][-i ip[,ip..]][-w][-r|-x|-z][-n][-I][-s FRAME|CEC|MM|IVM|RSA|HMC|CMM]
lsslp [<noderange>][-V|--verbose][-i ip[,ip..]][-w][-r|-x|-z][-n][-I][-s FRAME|CEC|MM|IVM|RSA|HMC|CMM|IMM2|FSP]
[-t tries][--vpdtable][-C counts][-T timeout]",
"rflash" =>
"Usage:
@@ -272,7 +287,7 @@ my %usage = (
PPC (using Direct FSP Management) specific:
rflash <noderange> -p <rpm_directory> --activate <disruptive|deferred> [-d <data_directory>]
rflash <noderange> [--commit | --recover] [-V|--verbose]
rflash <noderange> [--bpa_acdl]",
rflash <noderange> [--bpa_acdl]",
"mkhwconn" =>
"Usage:
mkhwconn [-h|--help]
@@ -317,20 +332,31 @@ my %usage = (
renergy noderange [-V] { all | { [savingstatus] [dsavingstatus] [cappingstatus] [cappingmaxmin] [cappingvalue] [cappingsoftmin] [averageAC] [averageDC] [ambienttemp] [exhausttemp] [CPUspeed] [syssbpower] [sysIPLtime] [fsavingstatus] [ffoMin] [ffoVmin] [ffoTurbo] [ffoNorm] [ffovalue] } }
renergy noderange [-V] { {savingstatus}={on | off} | {dsavingstatus}={on-norm | on-maxp | off} | {fsavingstatus}={on | off} | {ffovalue}=MHZ | {cappingstatus}={on | off} | {cappingwatt}=watt | {cappingperc}=percentage }
Blade specific :
renergy noderange [-V] { all | pd1all | pd2all | { [pd1status] [pd2status] [pd1policy] [pd2policy] [pd1powermodule1] [pd1powermodule2] [pd2powermodule1] [pd2powermodule2] [pd1avaiablepower] [pd2avaiablepower] [pd1reservedpower] [pd2reservedpower] [pd1remainpower] [pd2remainpower] [pd1inusedpower] [pd2inusedpower] [availableDC] [averageAC] [thermaloutput] [ambienttemp] [mmtemp] } }
renergy noderange [-V] { all | { [averageDC] [capability] [cappingvalue] [CPUspeed] [maxCPUspeed] [savingstatus] [dsavingstatus] } }
renergy noderange [-V] { {savingstatus}={on | off} | {dsavingstatus}={on-norm | on-maxp | off} }",
BladeCenter specific :
For Management Modules:
renergy noderange [-V] { all | pd1all | pd2all | [pd1status] [pd2status] [pd1policy] [pd2policy] [pd1powermodule1] [pd1powermodule2] [pd2powermodule1] [pd2powermodule2] [pd1avaiablepower] [pd2avaiablepower] [pd1reservedpower] [pd2reservedpower] [pd1remainpower] [pd2remainpower] [pd1inusedpower] [pd2inusedpower] [availableDC] [averageAC] [thermaloutput] [ambienttemp] [mmtemp] }
For a blade server nodes:
renergy noderange [-V] { all | [averageDC] [capability] [cappingvalue] [CPUspeed] [maxCPUspeed] [savingstatus] [dsavingstatus] }
renergy noderange [-V] { savingstatus={on | off} | dsavingstatus={on-norm | on-maxp | off} }
Flex specific :
For Flex Management Modules:
renergy noderange [-V] { all | [powerstatus] [powerpolicy] [powermodule] [avaiablepower] [reservedpower] [remainpower] [inusedpower] [availableDC] [averageAC] [thermaloutput] [ambienttemp] [mmtemp] }
For Flex node (power and x86):
renergy noderange [-V] { all | [averageDC] [capability] [cappingvalue] [cappingmaxmin] [cappingmax] [cappingmin] [cappingGmin] [CPUspeed] [maxCPUspeed] [savingstatus] [dsavingstatus] }
renergy noderange [-V] { cappingstatus={on | off} | cappingwatt=watt | cappingperc=percentage | savingstatus={on | off} | dsavingstatus={on-norm | on-maxp | off} }
iDataPlex specific :
renergy noderange [-V] [ { cappingmaxmin | cappingmax | cappingmin } ] [cappingstatus] [cappingvalue] [relhistogram]
renergy noderange [-V] { cappingstatus={on | enable | off | disable} | {cappingwatt|cappingvalue}=watt }",
"updatenode" =>
"Usage:
updatenode [-h|--help|-v|--version]
updatenode [-h|--help|-v|--version | -g|--genmypost]
or
updatenode <noderange> [-V|--verbose] [-k|--security] [-s|--sn]
updatenode <noderange> [-V|--verbose] [-k|--security] [-s|--sn] [-t <timeout>]
or
updatenode <noderange> [-V|--verbose] [-k|--security] [--user]
[--devicetype]
or
updatenode <noderange> [-V|--verbose] [-F|--sync | -f|--snsync] [-S|--sw]
updatenode <noderange> [-V|--verbose] [-F|--sync | -f|--snsync] [-l|--user[username]] [--fanout=[fanout value]] [-S|--sw] [-t <timeout>]
[-P|--scripts [script1,script2,...]] [-s|--sn]
[-A|--updateallsw] [-c|--cmdlineonly] [-d alt_source_dir]
[attr=val [attr=val...]]
@@ -343,14 +369,20 @@ Options:
[-k|--security] Update the security keys and certificates for the
target nodes.
[-k|--security] [--user] [--devicetype] Update the ssh keys for
specific device.
[-F|--sync] Perform File Syncing.
[--fanout] Allows you to assign the fanout value for the command.
See xdsh/xdcp fanout parameter in the man page.
[-f|--snsync] Performs File Syncing to the service nodes that service
the nodes in the noderange.
[-g|--genmypost] Will generate a new mypostscript file for the
the nodes in the noderange, if site precreatemypostscripts is 1 or YES.
[-l|--user] User name to run the updatenode command. It overrides the
current user which is the default.
[-S|--sw] Perform Software Maintenance.
[-P|--scripts] Execute postscripts listed in the postscripts table or
@@ -361,6 +393,9 @@ Options:
[-s|--sn] Set the server information stored on the nodes.
[-t|--timeout] Time out in seconds to allow the command to run. Default is no timeout,
except for updatenode -k which has a 10 second default timeout.
[-A|--updateallsw] Install or update all software contained in the source
directory. (AIX only)
@@ -385,7 +420,7 @@ Options:
"Usage:
Common:
nodeset [-h|--help|-v|--version]
nodeset <noderange> [install|shell|boot|runcmd=bmcsetup|netboot|iscsiboot|osimage=<imagename>|statelite|offline]",
nodeset <noderange> [install|shell|boot|runcmd=bmcsetup|netboot|iscsiboot|osimage[=<imagename>]|statelite|offline]",
"rmflexnode" =>
"Usage:
rmflexnode [-h|--help|-v|--version]
+534 -3600
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -26,7 +26,7 @@ sub grab_table_data{ #grab table data relevent to VM guest nodes
if ($vpdtab) {
$cfghash->{vpd} = $vpdtab->getNodesAttribs($noderange,['uuid']);
}
$cfghash->{vm} = $vmtab->getNodesAttribs($noderange,['node','host','migrationdest','cfgstore','storage','vidmodel','vidproto','vidpassword','storagemodel','memory','cpus','nics','nicmodel','bootorder','virtflags','datacenter','guestostype','othersettings','master']);
$cfghash->{vm} = $vmtab->getNodesAttribs($noderange,['node','host','migrationdest','cfgstore','storage','storagecache','storageformat','vidmodel','vidproto','vidpassword','storagemodel','memory','cpus','nics','nicmodel','bootorder','virtflags','datacenter','guestostype','othersettings','master']);
my $mactab = xCAT::Table->new("mac",-create=>1);
my $nrtab= xCAT::Table->new("noderes",-create=>1);
$cfghash->{mac} = $mactab->getAllNodeAttribs(['mac'],1);
+2 -5
View File
@@ -10,10 +10,7 @@ BEGIN
# if AIX - make sure we include perl 5.8.2 in INC path.
# Needed to find perl dependencies shipped in deps tarball.
if ($^O =~ /^aix/i) {
use lib "/usr/opt/perl5/lib/5.8.2/aix-thread-multi";
use lib "/usr/opt/perl5/lib/5.8.2";
use lib "/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi";
use lib "/usr/opt/perl5/lib/site_perl/5.8.2";
unshift(@INC, qw(/usr/opt/perl5/lib/5.8.2/aix-thread-multi /usr/opt/perl5/lib/5.8.2 /usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi /usr/opt/perl5/lib/site_perl/5.8.2));
}
use lib "$::XCATROOT/lib/perl";
@@ -41,7 +38,7 @@ use strict;
sub Version
{
#The following tag tells the build script where to append build info
#The following tags tells the build script where to append build info
my $version = shift;
if ($version eq 'short')
{
+22 -2
View File
@@ -18,9 +18,24 @@ sub localize_yumrepo {
$installpfx = "$installroot/$distname/$arch";
mkpath("$installroot/postscripts/repos/$distname/$arch/");
open($yumrepofile,">","$installroot/postscripts/repos/$distname/$arch/local-repository.tmpl");
find(\&check_tofix,$installpfx);
close($yumrepofile);
my %options=(
wanted => \&check_tofix,
follow_fast => 1
);
find(\%options,$installpfx);
close($yumrepofile);
}
sub remove_yumrepo {
my $self = shift;
my $installroot = shift;
$distname = shift;
$arch = shift;
rmtree("$installroot/postscripts/repos/$distname/$arch/");
}
sub check_tofix {
if (-d $File::Find::name and $File::Find::name =~ /\/repodata$/) {
if($distname =~ /rhels5/)
@@ -29,7 +44,12 @@ sub check_tofix {
}
generate_repo($File::Find::name);
}
elsif($File::Find::name =~ /\/RPM-GPG-KEY/){
qx(rpm --import $File::Find::name);
}
}
sub generate_repo
{
#write local-repository.tmpl
Regular → Executable
+23 -14
View File
@@ -1,9 +1,10 @@
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
# You can get copycds to recognize new distro DVDs/ISOs (so that you do not have to specify -n and -a)
# by adding the disc ids to the %distnames hash below. Follow the syntax carefully.
# Reload xcatd to have it take affect (service xcatd reload).
package xCAT::data::discinfo;
#BEGIN
#{
# $::XCATROOT = $ENV{'XCATROOT'} ? $ENV{'XCATROOT'} : '/opt/xcat';
#}
require Exporter;
@ISA=qw(Exporter);
@@ -11,11 +12,11 @@ require Exporter;
@EXPORT_OK=qw(distnames numdiscs);
%distnames = (
"1310229985.226287" => "centos6",
"1323560292.885204" => "centos6.2",
"1341569670.539525" => "centos6.3",#x86
"1362445555.957609" => "centos6.4",#x86_64
"1176234647.982657" => "centos5",
"1156364963.862322" => "centos4.4",
"1178480581.024704" => "centos4.5",
@@ -25,6 +26,8 @@ require Exporter;
"1214240246.285059" => "centos5.2",
"1237641529.260981" => "centos5.3",
"1272326751.405938" => "centos5.5",
"1330913492.861127" => "centos5.8",#x86_64
"1357930415.252042" => "centos5.9",#x86_64
"1195488871.805863" => "centos4.6",
"1195487524.127458" => "centos4.6",
"1301444731.448392" => "centos5.6",
@@ -43,6 +46,9 @@ require Exporter;
"1269262918.904535" => "rhels5.5", #ppc
"1269260915.992102" => "rhels5.5", #i386
"1269263646.691048" => "rhels5.5", #x86_64
"1328205744.315196" => "rhels5.8", #x86_64
"1354216429.587870" => "rhels5.9", #x86_64
"1354214009.518521" => "rhels5.9", #ppc64
"1285193176.460470" => "rhels6", #x86_64
"1285192093.430930" => "rhels6", #ppc64
"1305068199.328169" => "rhels6.1", #x86_64
@@ -50,9 +56,15 @@ require Exporter;
"1321546114.510099" => "rhels6.2", #x86_64
"1321546739.676170" => "rhels6.2", #ppc64
"1339641244.734735" => "rhels6.3", #ppc64
"1339640147.274118" => "rhels6.3", #x86_64
"1339638991.532890" => "rhels6.3", #i386
"1285193176.593806" => "rhelhpc6",
"1339640147.274118" => "rhels6.3", #x86_64
"1339638991.532890" => "rhels6.3", #i386
"1359576752.435900" => "rhels6.4", #x86_64
"1359576196.686790" => "rhels6.4", #ppc64
"1285193176.593806" => "rhelhpc6", #x86_64
"1305067719.718814" => "rhelhpc6.1",#x86_64
"1321545261.599847" => "rhelhpc6.2",#x86_64
"1339640148.070971" => "rhelhpc6.3",#x86_64
"1359576195.413831" => "rhelhpc6.4",#x86_64, RHEL ComputeNode
"1194015916.783841" => "fedora8",
"1194015385.299901" => "fedora8",
"1210112435.291709" => "fedora9",
@@ -64,6 +76,8 @@ require Exporter;
"1273712675.937554" => "fedora13", #x86_64 DVD ISO
"1287685820.403779" => "fedora14", #x86_64 DVD ISO
"1305315870.828212" => "fedora15", #x86_64 DVD ISO
"1372355769.065812" => "fedora19", #x86_64 DVD ISO
"1372402928.663653" => "fedora19", #ppc64 DVD ISO
"1194512200.047708" => "rhas4.6",
"1194512327.501046" => "rhas4.6",
@@ -78,9 +92,4 @@ my %numdiscs = (
);
#sub handled_commands
#{
# return;
#};
1;
+43
View File
@@ -0,0 +1,43 @@
#!/usr/bin/env perl
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
package xCAT::data::ibmhwtypes;
require Exporter;
@EXPORT_OK=qw(parse_group mt2group);
use Data::Dumper;
my %groups2mtm = (
"x3250" => ["2583","4251","4252"],
"x3550" => ["7914","7944","7946"],
"x3650" => ["7915","7945"],
"dx360" => [],
"x220" => ["7906"],
"x240" => ["8737","7863"],
"x440" => ["7917"],
"p260" => ["7895"], #789522X, 789523X
"p460" => [], #789542X
"p470" => ["7954"],
);
%mt2group = ();
foreach my $group (keys %groups2mtm) {
foreach my $mtm (@{$groups2mtm{$group}}) {
$mt2group{$mtm} = $group;
}
}
sub parse_group {
my $mtm = shift;
if ($mtm =~ /xCAT::data/) {
$mtm = shift;
}
if ($mtm =~ /^(\w{4})/) {
$mt = $1;
if ($mt eq "7895" and $mtm =~ /789542X/i) {
return "p460";
}
return $mt2group{$mt};
}
return undef;
}
1;
+1 -1
View File
@@ -14,7 +14,7 @@ package xCAT::hpoa;
use strict;
use SOAP::Lite;
#use SOAP::Lite; # hpblade.pm requires SOAP::Lite before requiring hpoa.pm, so we can check for SOAP::Lite dynamically
use vars qw(@ISA);
@ISA = qw(SOAP::Lite);
+330 -90
View File
@@ -1,4 +1,4 @@
# IBM(c) 2012 EPL license http://www.eclipse.org/legal/epl-v10.html
# IBM(c) 2013 EPL license http://www.eclipse.org/legal/epl-v10.html
#-------------------------------------------------------
=head1
@@ -19,7 +19,8 @@ use warnings;
=head3 getUserId
Description : Get the user ID of a given node
Arguments : Node
Arguments : User (root or non-root)
Node
Returns : UserID
Example : my $userID = xCAT::zvmCPUtils->getUserId($node);
@@ -29,10 +30,15 @@ use warnings;
sub getUserId {
# Get inputs
my ( $class, $node ) = @_;
my ( $class, $user, $node ) = @_;
my $sudo = "sudo";
if ($user eq "root") {
$sudo = "";
}
# Get user ID using VMCP
my $out = `ssh -o ConnectTimeout=5 $node "vmcp q userid"`;
my $out = `ssh -o ConnectTimeout=5 $user\@$node "$sudo /sbin/vmcp q userid"`;
my @results = split( ' ', $out );
return ( $results[0] );
@@ -43,7 +49,8 @@ sub getUserId {
=head3 getHost
Description : Get the z/VM host of a given node
Arguments : Node
Arguments : User (root or non-root)
Node
Returns : z/VM host
Example : my $host = xCAT::zvmCPUtils->getHost($node);
@@ -53,10 +60,15 @@ sub getUserId {
sub getHost {
# Get inputs
my ( $class, $node ) = @_;
my ( $class, $user, $node ) = @_;
my $sudo = "sudo";
if ($user eq "root") {
$sudo = "";
}
# Get host using VMCP
my $out = `ssh -o ConnectTimeout=5 $node "vmcp q userid"`;
my $out = `ssh -o ConnectTimeout=5 $user\@$node "$sudo /sbin/vmcp q userid"`;
my @results = split( ' ', $out );
my $host = $results[2];
@@ -68,7 +80,8 @@ sub getHost {
=head3 getPrivileges
Description : Get the privilege class of a given node
Arguments : Node
Arguments : User (root or non-root)
Node
Returns : Privilege class
Example : my $class = xCAT::zvmCPUtils->getPrivileges($node);
@@ -78,10 +91,15 @@ sub getHost {
sub getPrivileges {
# Get inputs
my ( $class, $node ) = @_;
my ( $class, $user, $node ) = @_;
my $sudo = "sudo";
if ($user eq "root") {
$sudo = "";
}
# Get privilege class
my $out = `ssh -o ConnectTimeout=5 $node "vmcp q priv"`;
my $out = `ssh -o ConnectTimeout=5 $user\@$node "$sudo /sbin/vmcp q priv"`;
my @out = split( '\n', $out );
$out[1] = xCAT::zvmUtils->trimStr( $out[1] );
$out[2] = xCAT::zvmUtils->trimStr( $out[2] );
@@ -95,7 +113,8 @@ sub getPrivileges {
=head3 getMemory
Description : Get the memory of a given node
Arguments : Node
Arguments : User (root or non-root)
Node
Returns : Memory
Example : my $memory = xCAT::zvmCPUtils->getMemory($node);
@@ -105,21 +124,29 @@ sub getPrivileges {
sub getMemory {
# Get inputs
my ( $class, $node ) = @_;
my ( $class, $user, $node ) = @_;
my $sudo = "sudo";
if ($user eq "root") {
$sudo = "";
}
# Get memory
my $out = `ssh -o ConnectTimeout=5 $node "vmcp q virtual storage"`;
my @out = split( '=', $out );
my $out = `ssh -o ConnectTimeout=5 $user\@$node "$sudo /sbin/vmcp q virtual storage"`;
my @out = split( ' ', $out );
return ( xCAT::zvmUtils->trimStr( $out[1] ) );
return ( xCAT::zvmUtils->trimStr( $out[2] ) );
}
#-------------------------------------------------------
=head3 getCpu
Description : Get the processor(s) of a given node
Arguments : Node
Arguments : User (root or non-root)
Node
Returns : Processor(s)
Example : my $proc = xCAT::zvmCPUtils->getCpu($node);
@@ -129,10 +156,15 @@ sub getMemory {
sub getCpu {
# Get inputs
my ( $class, $node ) = @_;
my ( $class, $user, $node ) = @_;
my $sudo = "sudo";
if ($user eq "root") {
$sudo = "";
}
# Get processors
my $out = `ssh -o ConnectTimeout=5 $node "vmcp q virtual cpus"`;
my $out = `ssh -o ConnectTimeout=5 $user\@$node "$sudo /sbin/vmcp q virtual cpus"`;
my $str = xCAT::zvmUtils->tabStr($out);
return ($str);
@@ -143,7 +175,8 @@ sub getCpu {
=head3 getNic
Description : Get the network interface card (NIC) of a given node
Arguments : Node
Arguments : User (root or non-root)
Node
Returns : NIC(s)
Example : my $nic = xCAT::zvmCPUtils->getNic($node);
@@ -153,10 +186,15 @@ sub getCpu {
sub getNic {
# Get inputs
my ( $class, $node ) = @_;
my ( $class, $user, $node ) = @_;
my $sudo = "sudo";
if ($user eq "root") {
$sudo = "";
}
# Get NIC
my $out = `ssh -o ConnectTimeout=5 $node "vmcp q virtual nic"`;
my $out = `ssh -o ConnectTimeout=5 $user\@$node "$sudo /sbin/vmcp q virtual nic"`;
my $str = xCAT::zvmUtils->tabStr($out);
return ($str);
@@ -167,9 +205,10 @@ sub getNic {
=head3 getNetworkNames
Description : Get a list of network names available to a given node
Arguments : Node
Arguments : User (root or non-root)
Node
Returns : Network names
Example : my $lans = xCAT::zvmCPUtils->getNetworkNames($node);
Example : my $lans = xCAT::zvmCPUtils->getNetworkNames($user, $node);
=cut
@@ -177,10 +216,15 @@ sub getNic {
sub getNetworkNames {
# Get inputs
my ( $class, $node ) = @_;
my ( $class, $user, $node ) = @_;
my $sudo = "sudo";
if ($user eq "root") {
$sudo = "";
}
# Get network names
my $out = `ssh -o ConnectTimeout=5 $node "vmcp q lan | egrep 'LAN|VSWITCH'"`;
my $out = `ssh -o ConnectTimeout=5 $user\@$node "$sudo /sbin/vmcp q lan | egrep 'LAN|VSWITCH'"`;
my @lines = split( '\n', $out );
my @parms;
my $names;
@@ -213,9 +257,10 @@ sub getNetworkNames {
=head3 getNetworkNamesArray
Description : Get an array of network names available to a given node
Arguments : Node
Arguments : User (root or non-root)
Node
Returns : Array of networks names
Example : my @networks = xCAT::zvmCPUtils->getNetworkNamesArray($node);
Example : my @networks = xCAT::zvmCPUtils->getNetworkNamesArray($user, $node);
=cut
@@ -223,12 +268,17 @@ sub getNetworkNames {
sub getNetworkNamesArray {
# Get inputs
my ( $class, $node ) = @_;
my ( $class, $user, $node ) = @_;
my @networks;
my %netHash;
my $sudo = "sudo";
if ($user eq "root") {
$sudo = "";
}
# Get the networks used by the node
my $out = `ssh $node "vmcp q v nic" | egrep -i "VSWITCH|LAN"`;
my $out = `ssh $user\@$node "$sudo /sbin/vmcp q v nic" | egrep -i "VSWITCH|LAN"`;
my @lines = split( '\n', $out );
# Loop through each line
@@ -264,7 +314,8 @@ sub getNetworkNamesArray {
=head3 getNetwork
Description : Get the network info for a given node
Arguments : Node
Arguments : User (root or non-root)
Node
Network name
Returns : Network configuration
Example : my $config = xCAT::zvmCPUtils->getNetwork($node, $netName);
@@ -275,14 +326,19 @@ sub getNetworkNamesArray {
sub getNetwork {
# Get inputs
my ( $class, $node, $netName ) = @_;
my ( $class, $user, $node, $netName ) = @_;
my $sudo = "sudo";
if ($user eq "root") {
$sudo = "";
}
# Get network info
my $out;
if ( $netName eq "all" ) {
$out = `ssh -o ConnectTimeout=5 $node "vmcp q lan"`;
$out = `ssh -o ConnectTimeout=5 $user\@$node "$sudo /sbin/vmcp q lan"`;
} else {
$out = `ssh -o ConnectTimeout=5 $node "vmcp q lan $netName"`;
$out = `ssh -o ConnectTimeout=5 $user\@$node "$sudo /sbin/vmcp q lan $netName"`;
}
return ($out);
@@ -293,7 +349,8 @@ sub getNetwork {
=head3 getDisks
Description : Get the disk(s) of given node
Arguments : Node
Arguments : User (root or non-root)
Node
Returns : Disk(s)
Example : my $storage = xCAT::zvmCPUtils->getDisks($node);
@@ -303,10 +360,15 @@ sub getNetwork {
sub getDisks {
# Get inputs
my ( $class, $node ) = @_;
my ( $class, $user, $node ) = @_;
my $sudo = "sudo";
if ($user eq "root") {
$sudo = "";
}
# Get disks
my $out = `ssh -o ConnectTimeout=5 $node "vmcp q virtual dasd"`;
my $out = `ssh -o ConnectTimeout=5 $user\@$node "$sudo /sbin/vmcp q virtual dasd"`;
my $str = xCAT::zvmUtils->tabStr($out);
return ($str);
@@ -317,7 +379,8 @@ sub getDisks {
=head3 loadVmcp
Description : Load Linux VMCP module on a given node
Arguments : Node
Arguments : User (root or non-root)
Node
Returns : Nothing
Example : xCAT::zvmCPUtils->loadVmcp($node);
@@ -327,10 +390,15 @@ sub getDisks {
sub loadVmcp {
# Get inputs
my ( $class, $node ) = @_;
my ( $class, $user, $node ) = @_;
my $sudo = "sudo";
if ($user eq "root") {
$sudo = "";
}
# Load Linux VMCP module
my $out = `ssh -o ConnectTimeout=5 $node "modprobe vmcp"`;
my $out = `ssh -o ConnectTimeout=5 $user\@$node "$sudo /sbin/modprobe vmcp"`;
return;
}
@@ -339,7 +407,8 @@ sub loadVmcp {
=head3 getVswitchId
Description : Get the VSwitch ID(s) of given node
Arguments : Node
Arguments : User (root or non-root)
Node
Returns : VSwitch ID(s)
Example : my @vswitch = xCAT::zvmCPUtils->getVswitchId($node);
@@ -349,10 +418,15 @@ sub loadVmcp {
sub getVswitchId {
# Get inputs
my ( $class, $node ) = @_;
my ( $class, $user, $node ) = @_;
my $sudo = "sudo";
if ($user eq "root") {
$sudo = "";
}
# Get VSwitch
my $out = `ssh -o ConnectTimeout=5 $node "vmcp q v nic" | grep "VSWITCH"`;
my $out = `ssh -o ConnectTimeout=5 $user\@$node "$sudo /sbin/vmcp q v nic" | grep "VSWITCH"`;
my @lines = split( '\n', $out );
my @parms;
my @vswitch;
@@ -369,7 +443,8 @@ sub getVswitchId {
=head3 grantVSwitch
Description : Grant VSwitch access for a given userID
Arguments : HCP node
Arguments : User (root or non-root)
zHCP
User ID
VSWITCH ID
Returns : Operation results (Done/Failed)
@@ -381,15 +456,24 @@ sub getVswitchId {
sub grantVSwitch {
# Get inputs
my ( $class, $callback, $hcp, $userId, $vswitchId ) = @_;
my ( $class, $callback, $user, $hcp, $userId, $vswitchId ) = @_;
# Directory where executables are
my $dir = '/opt/zhcp/bin';
my $sudo = "sudo";
if ($user eq "root") {
$sudo = "";
}
# Grant VSwitch for specified userID
my $out = `ssh $hcp "vmcp set vswitch $vswitchId grant $userId"`;
# Use SMAPI EXEC
my $out = `ssh $user\@$hcp "$sudo $dir/smcli Virtual_Network_Vswitch_Set -T SYSTEM -n $vswitchId -I $userId"`;
xCAT::zvmUtils->printSyslog("grantVSwitch- ssh $user\@$hcp $sudo $dir/smcli Virtual_Network_Vswitch_Set -T SYSTEM -n $vswitchId -I $userId");
$out = xCAT::zvmUtils->trimStr($out);
# If return string contains 'Command complete' - Operation was successful
# If return string contains 'Done' - Operation was successful
my $retStr;
if ( $out =~ m/Command complete/i ) {
if ( $out =~ m/Done/i ) {
$retStr = "Done\n";
} else {
$retStr = "Failed\n";
@@ -403,12 +487,15 @@ sub grantVSwitch {
=head3 flashCopy
Description : Flash copy (Class B users only)
Arguments : Node
Description : Flash copy
Arguments : User (root or non-root)
zHCP
Source userId
Source address
Target userId
Target address
Returns : Operation results (Done/Failed)
Example : my $results = xCAT::zvmCPUtils->flashCopy($node, $srcAddr, $targetAddr);
Example : my $results = xCAT::zvmCPUtils->flashCopy($user, $hcp, $srcAddr, $targetAddr);
=cut
@@ -416,19 +503,79 @@ sub grantVSwitch {
sub flashCopy {
# Get inputs
my ( $class, $node, $srcAddr, $tgtAddr ) = @_;
my ( $class, $user, $hcp, $srcAddr, $tgtAddr ) = @_;
# Directory where executables are
my $dir = '/opt/zhcp/bin';
my $sudo = "sudo";
if ($user eq "root") {
$sudo = "";
}
# Flash copy
my $out = `ssh $node "vmcp flashcopy $srcAddr 0 end to $tgtAddr 0 end synchronous"`;
# Flash copy using CP
my $out = `ssh $user\@$hcp "$sudo /sbin/vmcp flashcopy $srcAddr 0 end to $tgtAddr 0 end synchronous"`;
$out = xCAT::zvmUtils->trimStr($out);
# If return string contains 'Command complete' - Operation was successful
my $retStr = "";
if ( $out =~ m/Command complete/i ) {
$retStr = "Done\n";
$retStr = "Copying data via CP FLASHCOPY... Done\n";
} else {
$out = xCAT::zvmUtils->tabStr($out);
$retStr = "Failed\n$out";
$retStr = "Copying data via CP FLASHCOPY... Failed\n$out";
}
return $retStr;
}
#-------------------------------------------------------
=head3 smapiFlashCopy
Description : Flash copy using SMAPI
Arguments : User (root or non-root)
zHCP
Source userId
Source address
Target userId
Target address
Returns : Operation results (Done/Failed)
Example : my $results = xCAT::zvmCPUtils->smapiFlashCopy($user, $node, $srcId, $srcAddr, $tgtId, $targetAddr);
=cut
#-------------------------------------------------------
sub smapiFlashCopy {
# Get inputs
my ( $class, $user, $hcp, $srcId, $srcAddr, $tgtId, $tgtAddr ) = @_;
# Directory where executables are
my $dir = '/opt/zhcp/bin';
my $sudo = "sudo";
if ($user eq "root") {
$sudo = "";
}
my $hcpUserId = xCAT::zvmCPUtils->getUserId($user, $hcp);
# Use SMAPI EXEC to flash copy
my $cmd = '\"' . "CMD=FLASHCOPY $srcId $srcAddr 0 END $tgtId $tgtAddr 0 END" . '\"';
my $out = `ssh $user\@$hcp "$sudo $dir/smcli xCAT_Commands_IUO -T $hcpUserId -c $cmd"`;
xCAT::zvmUtils->printSyslog("smapiFlashCopy- ssh $user\@$hcp $sudo $dir/smcli xCAT_Commands_IUO -T $hcpUserId -c $cmd");
$out = xCAT::zvmUtils->trimStr($out);
# If return string contains 'Done' - Operation was successful
my $retStr = "";
if ( $out =~ m/Done/i ) {
$retStr = "Copying data via SMAPI FLASHCOPY... Done\n";
} else {
$out = xCAT::zvmUtils->tabStr($out);
$retStr = "Copying data via SMAPI FLASHCOPY... $out";
}
return $retStr;
@@ -439,7 +586,8 @@ sub flashCopy {
=head3 punch2Reader
Description : Write file to z/VM punch and transfer it to reader
Arguments : HCP node
Arguments : User (root or non-root)
zHCP
UserID to receive file
Source file
Target file to be created by punch (e.g. sles.parm)
@@ -451,19 +599,51 @@ sub flashCopy {
#-------------------------------------------------------
sub punch2Reader {
my ( $class, $hcp, $userId, $srcFile, $tgtFile, $options ) = @_;
# Punch to reader
my $out = `ssh -o ConnectTimeout=5 $hcp "vmur punch $options -u $userId -r $srcFile -N $tgtFile"`;
# If punch is successful -- Look for this string
my $searchStr = "created and transferred";
if ( !( $out =~ m/$searchStr/i ) ) {
$out = "Failed\n";
} else {
$out = "Done\n";
my ( $class, $user, $hcp, $userId, $srcFile, $tgtFile, $options ) = @_;
my $sudo = "sudo";
if ($user eq "root") {
$sudo = "";
}
# Get source node OS
my $os = xCAT::zvmUtils->getOsVersion($user, $hcp);
# Punch to reader
# VMUR located in different directories on RHEL and SLES
my $vmur;
if ( $os =~ m/sles10/i ) {
$vmur = "/sbin/vmur";
} else {
$vmur = "/usr/sbin/vmur";
}
my $out;
my $done = 0;
until ( $done ) {
$out = `ssh -o ConnectTimeout=5 $user\@$hcp "$sudo $vmur punch $options -u $userId -r $srcFile -N $tgtFile" 2>&1`;
my $rc = $? >> 8;
if ( $rc == 255 ) {
$out = "(Error) Unable to communicate with the zHCP system: $hcp";
$done = 1;
} elsif ( $out =~ m/A concurrent instance of vmur is already active/i ) {
# Recoverable error: retry the command after a delay
xCAT::zvmUtils->printSyslog( "punch2Reader() Punch in use on $hcp, retrying in 15 seconds" );
sleep( 15 );
} else {
# Punch appears successful -- Look for the completion string
my $searchStr = "created and transferred";
if ( !( $out =~ m/$searchStr/i ) ) {
chomp( $out );
$out = "Failed, punch info: '$out'\n";
xCAT::zvmUtils->printSyslog( "punch2Reader() Failed punching $srcFile to $userId from $hcp, info: '$out'" );
} else {
$out = "Done\n";
}
$done = 1;
}
}
return $out;
}
@@ -471,8 +651,9 @@ sub punch2Reader {
=head3 purgeReader
Description : Purge reader (Class D users only)
Arguments : HCP node
Description : Purge reader
Arguments : User (root or non-root)
zHCP
UserID to purge reader
Returns : Nothing
Example : my $rc = xCAT::zvmCPUtils->purgeReader($hcp, $userId);
@@ -481,12 +662,32 @@ sub punch2Reader {
#-------------------------------------------------------
sub purgeReader {
my ( $class, $hcp, $userId ) = @_;
my ( $class, $user, $hcp, $userId ) = @_;
# Directory where executables are
my $dir = '/opt/zhcp/bin';
my $sudo = "sudo";
if ($user eq "root") {
$sudo = "";
}
xCAT::zvmUtils->printSyslog("sudoer:$user zHCP:$hcp sudo:$sudo");
my $out;
if (xCAT::zvmUtils->smapi4xcat($user, $hcp)) {
# Use SMAPI EXEC to purge reader
my $cmd = '\"' . "CMD=PURGE $userId RDR ALL" . '\"';
$out = `ssh $user\@$hcp "$sudo $dir/smcli xCAT_Commands_IUO -T $userId -c $cmd"`;
xCAT::zvmUtils->printSyslog("smcli xCAT_Commands_IUO -T $userId -c $cmd");
} else {
# Purge reader using CP
$out = `ssh -o ConnectTimeout=5 $user\@$hcp "$sudo /sbin/vmcp purge $userId rdr all"`;
xCAT::zvmUtils->printSyslog("/sbin/vmcp purge $userId rdr all");
}
# Purge reader
my $out = `ssh -o ConnectTimeout=5 $hcp "vmcp purge $userId rdr all"`;
return;
$out = xCAT::zvmUtils->trimStr($out);
return $out;
}
#-------------------------------------------------------
@@ -494,7 +695,8 @@ sub purgeReader {
=head3 sendCPCmd
Description : Send CP command to a given userID (Class C users only)
Arguments : HCP node
Arguments : User (root or non-root)
zHCP
UserID to send CP command
Returns : Nothing
Example : xCAT::zvmCPUtils->sendCPCmd($hcp, $userId, $cmd);
@@ -503,11 +705,31 @@ sub purgeReader {
#-------------------------------------------------------
sub sendCPCmd {
my ( $class, $hcp, $userId, $cmd ) = @_;
my ( $class, $user, $hcp, $userId, $cmd ) = @_;
# Send CP command to given userID
my $out = `ssh $hcp "vmcp send cp $userId $cmd"`;
# Directory where executables are
my $dir = '/opt/zhcp/bin';
my $sudo = "sudo";
if ($user eq "root") {
$sudo = "";
}
xCAT::zvmUtils->printSyslog("sudoer:$user zHCP:$hcp sudo:$sudo");
my $out;
if (xCAT::zvmUtils->smapi4xcat($user, $hcp)) {
# Use SMAPI EXEC to send command
$cmd = '\"' . "CMD=SEND CP $userId " . uc($cmd) . '\"';
$out = `ssh $user\@$hcp "$sudo $dir/smcli xCAT_Commands_IUO -T $userId -c $cmd"`;
xCAT::zvmUtils->printSyslog("smcli xCAT_Commands_IUO -T $userId -c $cmd");
} else {
# Send CP command to given user
$out = `ssh $user\@$hcp "$sudo /sbin/vmcp send cp $userId $cmd"`;
xCAT::zvmUtils->printSyslog("/sbin/vmcp send cp $userId $cmd");
}
$out = xCAT::zvmUtils->trimStr($out);
return;
}
@@ -516,7 +738,8 @@ sub sendCPCmd {
=head3 getNetworkLayer
Description : Get the network layer for a given node
Arguments : Node
Arguments : User (root or non-root)
Node
Network name
Returns : 2 - Layer 2
3 - Layer 3
@@ -527,15 +750,20 @@ sub sendCPCmd {
#-------------------------------------------------------
sub getNetworkLayer {
my ( $class, $node, $netName ) = @_;
my ( $class, $user, $node, $netName ) = @_;
my $sudo = "sudo";
if ($user eq "root") {
$sudo = "";
}
# Exit if the network name is not given
if ( !$netName ) {
return -1;
}
# Get network type (Layer 2 or 3)
my $out = `ssh -o ConnectTimeout=5 $node "vmcp q lan $netName"`;
my $out = `ssh -o ConnectTimeout=5 $user\@$node "$sudo /sbin/vmcp q lan $netName"`;
if ( !$out ) {
return -1;
}
@@ -559,7 +787,8 @@ sub getNetworkLayer {
=head3 getNetworkType
Description : Get the network type of a given network
Arguments : HCP node
Arguments : User (root or non-root)
zHCP
Name of network
Returns : Network type (VSWITCH/HIPERS/QDIO)
Example : my $netType = xCAT::zvmCPUtils->getNetworkType($hcp, $netName);
@@ -568,10 +797,15 @@ sub getNetworkLayer {
#-------------------------------------------------------
sub getNetworkType {
my ( $class, $hcp, $netName ) = @_;
my ( $class, $user, $hcp, $netName ) = @_;
my $sudo = "sudo";
if ($user eq "root") {
$sudo = "";
}
# Get network details
my $out = `ssh -o ConnectTimeout=5 $hcp "vmcp q lan $netName" | grep "Type"`;
my $out = `ssh -o ConnectTimeout=5 $user\@$hcp "$sudo /sbin/vmcp q lan $netName" | grep "Type"`;
# Go through each line and determine network type
my @lines = split( '\n', $out );
@@ -602,7 +836,8 @@ sub getNetworkType {
=head3 defineCpu
Description : Add processor(s) to given node
Arguments : Node
Arguments : User (root or non-root)
Node
Returns : Nothing
Example : my $out = xCAT::zvmCPUtils->defineCpu($node, $addr, $type);
@@ -612,10 +847,15 @@ sub getNetworkType {
sub defineCpu {
# Get inputs
my ( $class, $node, $addr, $type ) = @_;
my ( $class, $user, $node, $addr, $type ) = @_;
my $sudo = "sudo";
if ($user eq "root") {
$sudo = "";
}
# Define processor(s)
my $out = `ssh -o ConnectTimeout=5 $node "vmcp define cpu $addr type $type"`;
my $out = `ssh -o ConnectTimeout=5 $user\@$node "$sudo /sbin/vmcp define cpu $addr type $type"`;
return ($out);
}
+1912 -134
View File
File diff suppressed because it is too large Load Diff
+5
View File
@@ -0,0 +1,5 @@
xcat-ibmhpc (2.8.0-1) stable; urgency=low
* Initial Release
-- OCF xCAT <xcat@ocf.co.uk> Tue, 03 Apr 2012 09:00:00 -0000
+1
View File
@@ -0,0 +1 @@
5
+15
View File
@@ -0,0 +1,15 @@
Source: xcat-ibmhpc
Section: admin
Priority: extra
Maintainer: Arif Ali <aali@ocf.co.uk>
Build-Depends: debhelper (>= 5)
Standards-Version: 3.7.2
Package: xcat-ibmhpc
Architecture: all
Depends: ${perl:Depends}, perl-xcat (>= 2.8.0), xcat-client (>= 2.8.0)
Description: Install and configuration utilities for IBM HPC products in an xCAT cluster
xCAT-IBMhpc provides sample installation and configuration scripts for running
the IBM HPC software stack in an xCAT cluser. Support for the following IBM
products is provided: GPFS, LoadLeveler, Parallel Environment, ESSL and Parallel
ESSL libraries, some compilers (vac, xlC, xlf).
+88
View File
@@ -0,0 +1,88 @@
Eclipse Public License - v 1.0
THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
1. DEFINITIONS
"Contribution" means:
a) in the case of the initial Contributor, the initial code and documentation distributed under this Agreement, and
b) in the case of each subsequent Contributor:
i) changes to the Program, and
ii) additions to the Program;
where such changes and/or additions to the Program originate from and are distributed by that particular Contributor. A Contribution 'originates' from a Contributor if it was added to the Program by such Contributor itself or anyone acting on such Contributor's behalf. Contributions do not include additions to the Program which: (i) are separate modules of software distributed in conjunction with the Program under their own license agreement, and (ii) are not derivative works of the Program.
"Contributor" means any person or entity that distributes the Program.
"Licensed Patents " mean patent claims licensable by a Contributor which are necessarily infringed by the use or sale of its Contribution alone or when combined with the Program.
"Program" means the Contributions distributed in accordance with this Agreement.
"Recipient" means anyone who receives the Program under this Agreement, including all Contributors.
2. GRANT OF RIGHTS
a) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, distribute and sublicense the Contribution of such Contributor, if any, and such derivative works, in source code and object code form.
b) Subject to the terms of this Agreement, each Contributor hereby grants Recipient a non-exclusive, worldwide, royalty-free patent license under Licensed Patents to make, use, sell, offer to sell, import and otherwise transfer the Contribution of such Contributor, if any, in source code and object code form. This patent license shall apply to the combination of the Contribution and the Program if, at the time the Contribution is added by the Contributor, such addition of the Contribution causes such combination to be covered by the Licensed Patents. The patent license shall not apply to any other combinations which include the Contribution. No hardware per se is licensed hereunder.
c) Recipient understands that although each Contributor grants the licenses to its Contributions set forth herein, no assurances are provided by any Contributor that the Program does not infringe the patent or other intellectual property rights of any other entity. Each Contributor disclaims any liability to Recipient for claims brought by any other entity based on infringement of intellectual property rights or otherwise. As a condition to exercising the rights and licenses granted hereunder, each Recipient hereby assumes sole responsibility to secure any other intellectual property rights needed, if any. For example, if a third party patent license is required to allow Recipient to distribute the Program, it is Recipient's responsibility to acquire that license before distributing the Program.
d) Each Contributor represents that to its knowledge it has sufficient copyright rights in its Contribution, if any, to grant the copyright license set forth in this Agreement.
3. REQUIREMENTS
A Contributor may choose to distribute the Program in object code form under its own license agreement, provided that:
a) it complies with the terms and conditions of this Agreement; and
b) its license agreement:
i) effectively disclaims on behalf of all Contributors all warranties and conditions, express and implied, including warranties or conditions of title and non-infringement, and implied warranties or conditions of merchantability and fitness for a particular purpose;
ii) effectively excludes on behalf of all Contributors all liability for damages, including direct, indirect, special, incidental and consequential damages, such as lost profits;
iii) states that any provisions which differ from this Agreement are offered by that Contributor alone and not by any other party; and
iv) states that source code for the Program is available from such Contributor, and informs licensees how to obtain it in a reasonable manner on or through a medium customarily used for software exchange.
When the Program is made available in source code form:
a) it must be made available under this Agreement; and
b) a copy of this Agreement must be included with each copy of the Program.
Contributors may not remove or alter any copyright notices contained within the Program.
Each Contributor must identify itself as the originator of its Contribution, if any, in a manner that reasonably allows subsequent Recipients to identify the originator of the Contribution.
4. COMMERCIAL DISTRIBUTION
Commercial distributors of software may accept certain responsibilities with respect to end users, business partners and the like. While this license is intended to facilitate the commercial use of the Program, the Contributor who includes the Program in a commercial product offering should do so in a manner which does not create potential liability for other Contributors. Therefore, if a Contributor includes the Program in a commercial product offering, such Contributor ("Commercial Contributor") hereby agrees to defend and indemnify every other Contributor ("Indemnified Contributor") against any losses, damages and costs (collectively "Losses") arising from claims, lawsuits and other legal actions brought by a third party against the Indemnified Contributor to the extent caused by the acts or omissions of such Commercial Contributor in connection with its distribution of the Program in a commercial product offering. The obligations in this section do not apply to any claims or Losses relating to any actual or alleged intellectual property infringement. In order to qualify, an Indemnified Contributor must: a) promptly notify the Commercial Contributor in writing of such claim, and b) allow the Commercial Contributor to control, and cooperate with the Commercial Contributor in, the defense and any related settlement negotiations. The Indemnified Contributor may participate in any such claim at its own expense.
For example, a Contributor might include the Program in a commercial product offering, Product X. That Contributor is then a Commercial Contributor. If that Commercial Contributor then makes performance claims, or offers warranties related to Product X, those performance claims and warranties are such Commercial Contributor's responsibility alone. Under this section, the Commercial Contributor would have to defend claims against the other Contributors related to those performance claims and warranties, and if a court requires any other Contributor to pay any damages as a result, the Commercial Contributor must pay those damages.
5. NO WARRANTY
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely responsible for determining the appropriateness of using and distributing the Program and assumes all risks associated with its exercise of rights under this Agreement , including but not limited to the risks and costs of program errors, compliance with applicable laws, damage to or loss of data, programs or equipment, and unavailability or interruption of operations.
6. DISCLAIMER OF LIABILITY
EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
7. GENERAL
If any provision of this Agreement is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this Agreement, and without further action by the parties hereto, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable.
If Recipient institutes patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Program itself (excluding combinations of the Program with other software or hardware) infringes such Recipient's patent(s), then such Recipient's rights granted under Section 2(b) shall terminate as of the date such litigation is filed.
All Recipient's rights under this Agreement shall terminate if it fails to comply with any of the material terms or conditions of this Agreement and does not cure such failure in a reasonable period of time after becoming aware of such noncompliance. If all Recipient's rights under this Agreement terminate, Recipient agrees to cease use and distribution of the Program as soon as reasonably practicable. However, Recipient's obligations under this Agreement and any licenses granted by Recipient relating to the Program shall continue and survive.
Everyone is permitted to copy and distribute copies of this Agreement, but in order to avoid inconsistency the Agreement is copyrighted and may only be modified in the following manner. The Agreement Steward reserves the right to publish new versions (including revisions) of this Agreement from time to time. No one other than the Agreement Steward has the right to modify this Agreement. The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation may assign the responsibility to serve as the Agreement Steward to a suitable separate entity. Each new version of the Agreement will be given a distinguishing version number. The Program (including Contributions) may always be distributed subject to the version of the Agreement under which it was received. In addition, after a new version of the Agreement is published, Contributor may elect to distribute the Program (including its Contributions) under the new version. Except as expressly stated in Sections 2(a) and 2(b) above, Recipient receives no rights or licenses to the intellectual property of any Contributor under this Agreement, whether expressly, by implication, estoppel or otherwise. All rights in the Program not expressly granted under this Agreement are reserved.
This Agreement is governed by the laws of the State of New York and the intellectual property laws of the United States of America. No party to this Agreement will bring a legal action under this Agreement more than one year after the cause of action arose. Each party waives its rights to a jury trial in any resulting litigation.
+8
View File
@@ -0,0 +1,8 @@
opt/xcat/share/xcat/IBMhpc/compilers
opt/xcat/share/xcat/IBMhpc/essl
opt/xcat/share/xcat/IBMhpc/gpfs
opt/xcat/share/xcat/IBMhpc/loadl
opt/xcat/share/xcat/IBMhpc/pe
opt/xcat/share/xcat/IBMhpc/rsct
opt/xcat/share/xcat/IBMhpc/compilers
opt/xcat/share/doc/packages/xCAT-IBMhpc
+1
View File
@@ -0,0 +1 @@
LICENSE.html
+2
View File
@@ -0,0 +1,2 @@
share/xcat/IBMhpc/* opt/xcat/share/xcat/IBMhpc/
LICENSE.html share/doc/packages/xCAT-IBMhpc/
+70
View File
@@ -0,0 +1,70 @@
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export DH_COMPAT=5
build:
pwd
dh_quilt_patch
clean:
dh_testdir
dh_testroot
dh_clean -d
install:
pwd
dh_testdir
dh_testroot
dh_installdirs
dh_install -X".svn"
dh_link
# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch:
pwd
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs
# dh_installexamples
dh_install -X".svn"
# dh_installmenu
# dh_installdebconf
# dh_installlogrotate
# dh_installemacsen
# dh_installpam
# dh_installmime
# dh_python
# dh_installinit
# dh_installcron
# dh_installinfo
dh_installman
# dh_link
# dh_strip
dh_compress
# dh_fixperms
dh_perl
dh_makeshlibs
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure
+1
View File
@@ -0,0 +1 @@
1.0
@@ -0,0 +1,7 @@
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/IBMhpc.rhels6.ppc64.exlist#
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/gpfs/gpfs.exlist#
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/compilers/compilers.exlist#
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/pe/pe.exlist#
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/essl/essl.exlist#
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/rsct/rsct.exlist#
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/loadl/loadl.exlist#
@@ -0,0 +1,5 @@
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/gpfs/gpfs.otherpkgs.pkglist#
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/compilers/compilers.otherpkgs.pkglist#
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/pe/pe-1200.rhels6.ppc64.otherpkgs.pkglist#
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/essl/essl.otherpkgs.pkglist#
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/loadl/loadl-5103.otherpkgs.pkglist#
@@ -0,0 +1,4 @@
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/IBMhpc.rhels6.ppc64.pkglist#
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/pe/pe-1200.rhels6.ppc64.pkglist#
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/compilers/compilers.rhels6.pkglist#
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/essl/essl.pkglist#
@@ -0,0 +1,62 @@
#!/bin/sh
# Sample postinstall script for building a diskless SLES11 PPC64 image
# with all IBM HPC products
#
#-- this script is run after all packages from $profile.pkglist are installed
#--
#-- it gets these arguments:
#--
#-- $1 = install root (chroot directory for profile)
#-- $2 = OS version
#-- $3 = architecture
#-- $4 = profile name
#-- $5 = work dir (where genimage is located)
#--
#--
installroot=$1
osver=$2
arch=$3
profile=$4
workdir=$5
otherpkgs=/install/post/otherpkgs/$osver/$arch
################
# This script runs other postinstall scripts from the $hpc directory
# If you have created a custom copy of ANY of these scripts,
# make sure to change the execution path from $hpc/<product> to the location
# you have placed your script in
###############
hpc=/opt/xcat/share/xcat/IBMhpc
custom=/install/custom/netboot/rh
installps=/install/postscripts
# Run default postinstall shipped with xcat
/opt/xcat/share/xcat/netboot/rh/compute.rhels6.ppc64.postinstall $1 $2 $3 $4 $5
# Run general IBMhpc postinstall script
$hpc/IBMhpc.rhel.postinstall $1 $2 $3 $4 $5
# Run script to install gpfs updates
installroot=$installroot NODESETSTATE=genimage $hpc/gpfs/gpfs_updates
# Run script to update GPFS mmsdrfs file in the image
installroot=$installroot $hpc/gpfs/gpfs_mmsdrfs
# Run script to accept compiler license
installroot=$installroot NODESETSTATE=genimage $hpc/compilers/compilers_license
# Run script to install PE and accept license
installroot=$installroot pedir=$otherpkgs/pe NODESETSTATE=genimage $hpc/pe/pe_install-1200
# Run script to accept LoadLeveler license, install product rpms,
# and do some config
installroot=$installroot loadldir=$otherpkgs/loadl NODESETSTATE=genimage $hpc/loadl/loadl_install-5103
# Run script to install RSCT rpms
installroot=$installroot rsctdir=$otherpkgs/rsct NODESETSTATE=genimage $hpc/rsct/rsct_install
@@ -0,0 +1,7 @@
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/IBMhpc.rhels6.x86_64.exlist#
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/gpfs/gpfs.exlist#
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/pe/pe.exlist#
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/compilers/compilers.exlist#
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/essl/essl.exlist#
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/rsct/rsct.exlist#
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/loadl/loadl.exlist#
@@ -0,0 +1,3 @@
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/gpfs/gpfs.x86_64.otherpkgs.pkglist#
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/pe/pe-1200.rhels6.x86_64.otherpkgs.pkglist#
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/loadl/loadl-5103.otherpkgs.pkglist#
@@ -0,0 +1,4 @@
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/IBMhpc.rhels6.x86_64.pkglist#
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/pe/pe-1200.rhels6.x86_64.pkglist#
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/compilers/compilers.rhels6.pkglist#
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/essl/essl.pkglist#
@@ -0,0 +1,60 @@
#!/bin/sh
# Sample postinstall script for building a diskless SLES11 PPC64 image
# with all IBM HPC products
#
#-- this script is run after all packages from $profile.pkglist are installed
#--
#-- it gets these arguments:
#--
#-- $1 = install root (chroot directory for profile)
#-- $2 = OS version
#-- $3 = architecture
#-- $4 = profile name
#-- $5 = work dir (where genimage is located)
#--
#--
installroot=$1
osver=$2
arch=$3
profile=$4
workdir=$5
otherpkgs=/install/post/otherpkgs/$osver/$arch
################
# This script runs other postinstall scripts from the $hpc directory
# If you have created a custom copy of ANY of these scripts,
# make sure to change the execution path from $hpc/<product> to the location
# you have placed your script in
###############
hpc=/opt/xcat/share/xcat/IBMhpc
custom=/install/custom/netboot/rh
installps=/install/postscripts
# Run default postinstall shipped with xcat
/opt/xcat/share/xcat/netboot/rh/compute.rhels6.x86_64.postinstall $1 $2 $3 $4 $5
# Run general IBMhpc postinstall script
$hpc/IBMhpc.rhel.postinstall $1 $2 $3 $4 $5
# Run script to install gpfs updates
installroot=$installroot NODESETSTATE=genimage $hpc/gpfs/gpfs_updates
# Run script to update GPFS mmsdrfs file in the image
installroot=$installroot $hpc/gpfs/gpfs_mmsdrfs
# Run script to accept compiler license. x86_64 is using gcc, comment this line.
#installroot=$installroot NODESETSTATE=genimage $hpc/compilers/compilers_license
# Run script to install PE and accept license
installroot=$installroot pedir=$otherpkgs/pe NODESETSTATE=genimage $hpc/pe/pe_install-1200
# Run script to accept LoadLeveler license, install product rpms,
# and do some config
installroot=$installroot loadldir=$otherpkgs/loadl NODESETSTATE=genimage $hpc/loadl/loadl_install-5103
# Run script to install RSCT rpms. Not available on x86_64
#installroot=$installroot rsctdir=$otherpkgs/rsct NODESETSTATE=genimage $hpc/rsct/rsct_install
@@ -0,0 +1,10 @@
# Sample exlude list for building a diskless SLES 11 PPC64 image
#INCLUDE:/opt/xcat/share/xcat/netboot/sles/compute.exlist#
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/IBMhpc.sles11.ppc64.exlist#
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/compilers/compilers.exlist#
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/essl/essl.exlist#
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/gpfs/gpfs.exlist#
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/loadl/loadl.exlist#
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/pe/pe.exlist#
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/rsct/rsct.exlist#
@@ -0,0 +1,13 @@
# Sample otherpkgs pkglist for installing all IBM HPC products in a
# SLES11 PPC64 diskless image
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/compilers/compilers.otherpkgs.pkglist#
#NEW_INSTALL_LIST#
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/gpfs/gpfs.otherpkgs.pkglist#
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/pe/pe.otherpkgs.pkglist#
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/essl/essl.otherpkgs.pkglist#
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/loadl/loadl-5103.otherpkgs.pkglist#
# For full-disk (stateful) images, EDIT below to use rsct.otherpkgs
# For diskless, rpms are installed with postinstall script
#do not INCLUDE:/opt/xcat/share/xcat/IBMhpc/rsct/rsct.otherpkgs.pkglist#
@@ -0,0 +1,10 @@
# Sample package list for installing all IBM HPC products in a
# SLES11 ppc64 diskless image
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/IBMhpc.sles11.ppc64.pkglist#
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/compilers/compilers.pkglist#
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/essl/essl.pkglist#
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/pe/pe-1200.sles11.ppc64.pkglist#
#INCLUDE:/opt/xcat/share/xcat/IBMhpc/rsct/rsct.pkglist#
@@ -0,0 +1,68 @@
#!/bin/sh
# Sample postinstall script for building a diskless SLES11 PPC64 image
# with all IBM HPC products
#
#-- this script is run after all packages from $profile.pkglist are installed
#--
#-- it gets these arguments:
#--
#-- $1 = install root (chroot directory for profile)
#-- $2 = OS version
#-- $3 = architecture
#-- $4 = profile name
#-- $5 = work dir (where genimage is located)
#--
#--
installroot=$1
osver=$2
arch=$3
profile=$4
workdir=$5
otherpkgs=/install/post/otherpkgs/$osver/$arch
################
# This script runs other postinstall scripts from the $hpc directory
# If you have created a custom copy of ANY of these scripts,
# make sure to change the execution path from $hpc/<product> to the location
# you have placed your script in
###############
hpc=/opt/xcat/share/xcat/IBMhpc
custom=/install/custom/netboot/sles
installps=/install/postscripts
# Run default postinstall shipped with xcat
/opt/xcat/share/xcat/netboot/sles/compute.sles11.postinstall $1 $2 $3 $4 $5
# Run general IBMhpc postinstall script
$hpc/IBMhpc.sles.postinstall $1 $2 $3 $4 $5
# Run script to install gpfs updates
installroot=$installroot NODESETSTATE=genimage $hpc/gpfs/gpfs_updates
# Run script to update GPFS mmsdrfs file in the image
installroot=$installroot $hpc/gpfs/gpfs_mmsdrfs
# Run script to accept compiler license
installroot=$installroot NODESETSTATE=genimage $hpc/compilers/compilers_license
# Run script to install PE and accept license
installroot=$installroot pedir=$otherpkgs/pe NODESETSTATE=genimage $hpc/pe/pe_install
# Run script to install ESSL and PESSL rpms
#installroot=$installroot essldir=$otherpkgs/essl NODESETSTATE=genimage $hpc/essl/essl_install
# Run script to accept LoadLeveler license, install product rpms,
# and do some config
installroot=$installroot loadldir=$otherpkgs/loadl NODESETSTATE=genimage $hpc/loadl/loadl_install-5103
# Run script to install RSCT rpms
installroot=$installroot rsctdir=$otherpkgs/rsct NODESETSTATE=genimage $hpc/rsct/rsct_install

Some files were not shown because too many files have changed in this diff Show More