Mark Gurevich
f4eafb35c9
Use correct non-root user for REST API nodeshell method
2022-01-05 11:24:26 -05:00
GONG Jie
12404f81fd
Remove trailing spaces in file xCAT-server/lib/xcat/plugins/xdsh.pm
2017-12-31 23:59:59 +00:00
Gᴏɴɢ Jie
738e5c8814
Use File::Temp::tmpnam() instead of POSIX::tmpnam() ( #5443 )
2018-07-27 17:40:33 +08:00
yangsong
7c85b0998d
add support for syncfiles with scp ( #5123 )
...
* add support for syncfiles with scp
* refine logic of EXECTUTE support message non rsync filesync
* refine syncfiles
* add startsyncfile script for cumulus
* refine format, fix updatenode without options causes command to crash #5142
2018-04-27 11:28:08 +08:00
Bin Xu
4b1709e59d
When xdcp files to CN and CN is controlled by a SN, xcat will push ( #5102 )
...
files to SN first (site.SNsyncfiledir). This should be run as admin
for normal user as they cannot touch that directory.
2018-04-13 16:58:42 +08:00
Jarrod Johnson
2c9bdf8480
Properly fix updatenode syncfiles ( #5013 )
...
* Fix xdcp username on updatenode -F
xdcp was not using the username and trusted facility, fix
updatenode usage.
* Remove security risk of forceroot
Any user can specificy 'forceroot'. Remove this and rely
upon the other method to properly use the 'trusted' role.
2018-04-13 11:15:26 +08:00
Bin Xu
eb4fa5fc7a
updatenode -F not work in hierachy env as the user name is FQDN of MN ( #4484 )
...
* updatenode -F not work in hierachy env (#4455 )
- add trace when -V is enabled
- get the DSH_FROM_USERID from updatenode client
* - when 'updatenode -F' need to push SN first, using root as non-root does not have permission write to 'SNsyncfiledir'
- move the set DSH_FROM_USERID code out of the loop, and also cover remote client case.
2017-12-13 02:52:15 -06:00
Chuck Brazie
139dae3e92
Create xdsh.pm
...
Fixed indent. Odd thing is it looked OK on my local computer copy, but not here in GitHub repository...
2017-06-15 09:15:51 -04:00
Chuck Brazie
5a83bf5e63
Merge our code with global xCAT team except for xcatws.cgi
...
Change-Id: I945c430685fa2febd914be09f6a6f976783abeec
2017-02-02 14:31:27 -05:00
Mark Gurevich
0a3fbd8d51
perltidy all perl files
2016-07-20 11:40:27 -04:00
lissav
25e02c8b73
change sync of keys so they are cleaned up when zones are removed
2014-03-13 09:50:10 -04:00
lissav
555810f7ed
better hierarchical processing for zones
2014-03-04 10:22:55 -05:00
lissav
ec5de72ee4
zone hierarchical support for xdsh -K
2014-02-25 10:00:43 -05:00
lissav
a2d494c501
defect 3916
2013-12-18 09:14:50 -05:00
lissav
91347e0a9b
defect 3916
2013-12-17 13:22:27 -05:00
lissav
ba1cadb6e9
add sudo xdcp
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15226 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-20 15:39:57 +00:00
lissav
4a241ef34e
add -E hierarchy and --fanout support
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15094 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2013-02-07 12:44:15 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
lissav
21b94925c9
Add check in preprocessing if running on the service node do not do hierarchical processing defect 3386101
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@10235 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-08-05 11:34:53 +00:00
lissav
189263f327
add support for postscripts execute after rsync update
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8697 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-01-18 15:39:55 +00:00
lissav
cc501a1284
fix preprocessing when there are multiple service nodes assigned to the node, defect 3138584
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8550 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2011-01-05 15:29:59 +00:00
lissav
4c7043be4c
fix error message
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6413 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-06-09 18:15:16 +00:00
lissav
40c1bc3795
handles arguments on xdsh -e in hierarchy
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6123 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-05-14 17:18:42 +00:00
lissav
5805a0425b
add xdsh -e hierarchical support
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6121 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-05-14 16:23:19 +00:00
lissav
5b53b638f3
override DSH_FROM_USERID with autheticated id in request->{username}, if it exists
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5475 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2010-03-15 15:50:16 +00:00
lissav
a8a0ad5468
new hierarchical support for xdsh/xdcp, with error processing and -c flag
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4727 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-12-04 14:48:50 +00:00
lissav
46f262270f
return error returns even though no messages
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4539 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-11-10 15:57:05 +00:00
lissav
66a4ef81e6
fix for 2874219, handling large amounts of data in non-streaming mode
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4439 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-10-22 13:53:49 +00:00
lissav
a79986139e
fix -P option, i broke with addition of xdcp hierarchy support
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4208 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-09-23 11:44:08 +00:00
lissav
002b0d5075
add hierarchical support to xdcp
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4179 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-09-21 13:09:26 +00:00
lissav
1e9bd8b240
fix call to MsgUtils for dataout from xdcp and xdsh to be D flag not the I flag
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4146 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-09-16 14:55:13 +00:00
lissav
37a85ff51e
put xdcp -s back in
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3856 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-07-22 13:36:13 +00:00
lissav
8fb91c4ba8
fix from mixing compute and service nodes on rsync , thanks to Storable qw(dclone)
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3715 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-07-07 11:38:53 +00:00
lissav
9bff78a0b7
fix hierarchical xdsh broke with fix for combination of nodes and servicenodes on xdcp -F call
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3709 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-07-06 18:58:47 +00:00
lissav
4b6d9ebcff
remove -s flag and add processing to update the compute node without having to update the servicenode in a separate command
...
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3642 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
2009-06-25 18:17:53 +00:00