2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-22 03:32:04 +00:00

101 Commits

Author SHA1 Message Date
Markus Hilger
2643c1edd6 Remove useless executable bit 2024-05-07 16:19:25 +02:00
Mark Gurevich
cbb39ea328 Fix Perl error in AAsn.pm 2022-10-04 15:32:07 -04:00
Gᴏɴɢ Jie
4e210e8f37 Remove xinetd related code to make tftp service work on RHEL 8. (#5937)
* No xinetd service any more. Remove xinetd related code to make tftp service work on RHEL 8.

* Remove /etc/xinetd.d/tftp related code in stop_TFTP()
2019-01-28 16:11:16 +08:00
Bin Xu
863c36c83f
Make disjoint mode working when service node up (inittime=1) (#5553)
* Make disjoint mode working when service node up (inittime=1), and in the time not run in parallel to avoid access DB too much

* For shared tftp, nothing need to be done in AAsn
2018-09-11 09:22:08 +08:00
GONG Jie
b2f815d509 Remove trailing spaces in file xCAT-server/lib/xcat/plugins/AAsn.pm 2017-12-31 23:59:59 +00:00
chenglch
dd7e1d51df Add consoleenabled column to help store the console status
On diskless SN, the nodes file of goconserver is missing when
reinstalling. This patch add a column in nodehm table to help
recover the console information on service node.

```
[root@c910f03c09k04 ~]# makegocons -q

NODE                             SERVER                           STATE
c910f03c09k05                    c910f03c09k04.pok.stglabs.ibm.com error
node-7912ac1-06vag36             c910f03c09k04.pok.stglabs.ibm.com error

NODE                             SERVER                           STATE
c910f03c09k04                    c910f03c09k03.pok.stglabs.ibm.com connected
[root@c910f03c09k04 ~]# rm /var/lib/goconserver/*
rm: remove regular file ‘/var/lib/goconserver/nodes.json’? y
rm: remove regular file ‘/var/lib/goconserver/nodes.json.bak’? y
[root@c910f03c09k04 ~]# service xcatd restart
Restarting xcatd (via systemctl):                          [  OK  ]
[root@c910f03c09k04 ~]# makegocons -q

NODE                             SERVER                           STATE
c910f03c09k05                    c910f03c09k04.pok.stglabs.ibm.com error
node-7912ac1-06vag36             c910f03c09k04.pok.stglabs.ibm.com error

NODE                             SERVER                           STATE
c910f03c09k04                    c910f03c09k03.pok.stglabs.ibm.com connected
```
2018-02-09 10:34:20 +08:00
chenglch
f09939a15a Add xcat marker in gocnoserver configuration file
Previously, it is impossible to know if the goconerver is started
by xcat. This patch add a marker in /etc/goconserver/server.conf
to help check the status. In addition, use server-cred.pem instead
of server-key.pem as it is not exist on SN.

This patch also control the service status of goconserver and conserver
when restarting the xcatd service on service node.

```
[root@sn02 ~]# chdef sn02 setupconserver=1
1 object definitions have been created or modified.
[root@sn02 ~]# service xcatd restart
Restarting xcatd (via systemctl):                          [  OK  ]
[root@sn02 ~]# ps -ef | grep conserver
root      27679      1  0 02:26 ?        00:00:00 /usr/sbin/conserver -o -O1 -d
root      27680  27679  0 02:26 ?        00:00:00 /usr/sbin/conserver -o -O1 -d
root      27756  26188  0 02:26 pts/1    00:00:00 grep --color=auto conserver
[root@sn02 ~]# chdef sn02 setupconserver=2
1 object definitions have been created or modified.
[root@sn02 ~]# service xcatd restart
Restarting xcatd (via systemctl):                          [  OK  ]
[root@sn02 ~]#
[root@sn02 ~]#
[root@sn02 ~]#
[root@sn02 ~]# ps -ef | grep conserver
root      27885      1  0 02:26 ?        00:00:00 /usr/bin/goconserver
root      27986  26188  0 02:33 pts/1    00:00:00 grep --color=auto conserver
```
2017-12-28 16:46:47 +08:00
chenglch
1e92257e0a Do not restart conserver if goconserver was started
If goconserver was enabled, do not start conserver when restart
xcatd on service node.
2017-12-14 13:29:04 +08:00
immarvin
23d3a046cc fix issue [DEV] Install xcat on ubuntu14.4.4+ppc64le by go-xcat show "Restarting xcatd ERROR:". That is why Diskless_installation_flat_p8_le always fail and stay on powering_on`` 2017-03-20 13:32:30 +08:00
chenglch
c14a617afc Do not show the error output when running killall command
close-issue: #2466
2017-02-08 16:14:56 +08:00
chenglch
04decbb47e Stop tftp service when xcatd shutdown completes
close-issue: #2436
2017-02-06 10:44:53 +08:00
Mark Gurevich
0a3fbd8d51 perltidy all perl files 2016-07-20 11:40:27 -04:00
chenglch
eeff6a4cd1 Fix syntax error when checking the existence of tftp process 2016-06-05 23:05:24 -04:00
wangxiaopeng
6b96496d1b issue 1233: try to rekill tftp and add more debug info when failed to kill tftpd 2016-06-03 04:17:18 -04:00
chenglch
ba68ad1948 Change sleep time from 0.1 to 1 as float value is not support by default 2016-06-01 01:46:03 -04:00
chenglch
01d7371506 Fix error when stopping tftp process in AAsn.pm
The check logic that wait for the tftp process can not be
finished due to the empty loop. This patch aims to check
the status of process group in the loop.

close-issue: #1219
2016-05-27 03:54:26 -04:00
linggao
0ea24f1db9 added new command makentp to setup ntp servers on mn and sn. 2015-06-11 12:17:01 -04:00
ligc
93e00147f8 fix for bug 4515: start isc-dhcp-server when starting xcatd on Ubuntu MN 2015-01-20 14:19:08 +08:00
immarvin
7705db6a4f fix defect #4519 [DEV]too much duplicate /etc/fstab entries on service node 2015-01-13 02:56:33 -08:00
immarvin
5fe158f353 replace service stuff with newly added subrotines in xCAT::Utils 2014-06-10 06:11:07 -07:00
lissav
12f1819180 fix defect 3981 2014-03-20 14:22:47 -04:00
daniceexi
abea7eceee Rewirte the proxydhcp.c with proxydhcp-xcat in perl; Added site.installnic to control the nics setting for windows; Added servicenode.proxydhcp and noderes.proxydhcp to control the starting of proxydhcp-xcat daemon and makedhcp againsts node for windows deployment 2013-12-19 04:55:27 -05:00
sjing
f7812a2517 Support dns master/slave configuration 2013-12-18 01:25:16 -05:00
wanghuaz
957403a1d2 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:26:52 +08:00
jbjohnso
571487bf46 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/trunk@15838 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-04-05 20:51:12 +00:00
lissav
200373f48d ON the MN only start dhcpd if not running if servicenode.dhcpserver set
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15228 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-20 18:57:33 +00:00
lissav
413f6c0010 more cleanup
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15224 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-20 14:05:40 +00:00
lissav
a3caf9e5aa Remove useless code in setup_CONS so it will work on the Management NOde
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15223 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-20 12:16:32 +00:00
lissav
1c1e78bf89 AAsn.pm will not setup MN from the servicenode table
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15221 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-20 11:56:23 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
sjing
99092c60c3 start named on boot.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11646 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-02-21 02:04:35 +00:00
bp-sawyers
90261ffcca Update Schema.pm for site attrs for ipmi scaling
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11644 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-02-20 21:52:34 +00:00
ligc
c1073c7699 if site.vsftp is not set, default to no
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11561 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2012-02-13 02:20:25 +00:00
daniceexi
fb510583ea defect 3467275: try to kill atftpd first before configuring the xinetd for tftp
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11317 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-12-30 07:36:58 +00:00
daniceexi
c647909000 add more comments and handle the return code of enable_TFTPhpa
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11094 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-12-01 01:08:03 +00:00