/[scire]/branches
Gentoo

Log of /branches

View Directory Listing Directory Listing



Revision 360 - Directory Listing
Modified Sun Feb 17 19:52:00 2008 UTC (6 years, 10 months ago) by codeman
adding in the new perl client/server into trunk.


Revision 359 - Directory Listing
Modified Sun Feb 17 19:42:31 2008 UTC (6 years, 10 months ago) by codeman
moving the old python scire server/client into a branch and out of trunk.


Revision 358 - Directory Listing
Modified Sun Feb 17 19:41:55 2008 UTC (6 years, 10 months ago) by codeman
trying to get this a bit more workable.


Revision 357 - Directory Listing
Modified Sun Feb 17 19:40:38 2008 UTC (6 years, 10 months ago) by codeman
removing some comments.  small other touchups.


Revision 350 - Directory Listing
Modified Sat Jan 12 03:58:23 2008 UTC (6 years, 11 months ago) by agaffney
let's actually run the jobs we get...untested

Revision 349 - Directory Listing
Modified Sat Jan 12 03:39:59 2008 UTC (6 years, 11 months ago) by agaffney
use proper form for send_command()

Revision 345 - Directory Listing
Modified Tue Jan 8 02:23:26 2008 UTC (6 years, 11 months ago) by agaffney
test script for Scire::Job

Revision 344 - Directory Listing
Modified Mon Jan 7 03:59:27 2008 UTC (6 years, 11 months ago) by agaffney
basic support for sending both stdout and stderr

Revision 343 - Directory Listing
Modified Mon Jan 7 03:38:31 2008 UTC (6 years, 11 months ago) by codeman
attempt to add the recurring job rescheduling into the server.
not tested.


Revision 342 - Directory Listing
Modified Mon Jan 7 01:23:06 2008 UTC (6 years, 11 months ago) by agaffney
handle a non-zero exitcode from the communicator

Revision 341 - Directory Listing
Modified Mon Jan 7 01:09:58 2008 UTC (6 years, 11 months ago) by agaffney
write out script_data to file
determine UID/GID of run_as user beforehand so we can change the owner of the script we just wrote
exec the script we wrote out instead of dummy commands
add set_script_file() function

Revision 340 - Directory Listing
Modified Sun Jan 6 22:10:00 2008 UTC (6 years, 11 months ago) by agaffney
exit with -2 if run_as user can't be found
always try to get exitstatus

Revision 339 - Directory Listing
Modified Sun Jan 6 22:01:27 2008 UTC (6 years, 11 months ago) by agaffney
check proper variable after forking
add code to setuid() before job execution

Revision 337 - Directory Listing
Modified Sun Jan 6 20:02:24 2008 UTC (6 years, 11 months ago) by agaffney
add in exec() call

Revision 336 - Directory Listing
Modified Sun Jan 6 17:32:33 2008 UTC (6 years, 11 months ago) by agaffney
remove unneeded module

Revision 335 - Directory Listing
Modified Sun Jan 6 17:31:40 2008 UTC (6 years, 11 months ago) by agaffney
move Scire.pm to Scire/Job.pm and fix scireclient.pm to use the new paths

Revision 334 - Directory Listing
Modified Sun Jan 6 16:27:36 2008 UTC (6 years, 11 months ago) by codeman
break out the Communicator code.


Revision 333 - Directory Listing
Modified Sun Jan 6 08:09:17 2008 UTC (6 years, 11 months ago) by agaffney
fill out run() a bit more

Revision 332 - Directory Listing
Modified Sun Jan 6 07:35:46 2008 UTC (6 years, 11 months ago) by agaffney
add stub for run()

Revision 331 - Directory Listing
Modified Sun Jan 6 07:05:55 2008 UTC (6 years, 11 months ago) by agaffney
condense check_job_dir() with a loop

Revision 330 - Directory Listing
Modified Sat Jan 5 06:26:21 2008 UTC (6 years, 11 months ago) by agaffney
move code that talks to server into talk_to_server(), which forks before doing its thing in order to drop privileges

Revision 329 - Directory Listing
Modified Sat Jan 5 05:28:11 2008 UTC (6 years, 11 months ago) by agaffney
change set_filename() to load_jobfile()

Revision 328 - Directory Listing
Modified Sat Jan 5 05:24:56 2008 UTC (6 years, 11 months ago) by agaffney
only import open2 from IPC::Open2

Revision 327 - Directory Listing
Modified Sat Jan 5 05:15:51 2008 UTC (6 years, 11 months ago) by codeman
whole bunch of updates here.
first, created run_query and put the process of debug/prepare/execute into it.  
much simpler and cleaner!
added RETURN_JOBFILE cmd and stub for JOBFILE_SENT.

add a check to set_job_status to see if we're marking a job as finished.
if so, it needs to do some more work.  that part isn't coded yet.


Revision 326 - Directory Listing
Modified Sat Jan 5 05:15:06 2008 UTC (6 years, 11 months ago) by agaffney
move SERVER_STDIN and SERVER_STDOUT inside the class hash

Revision 325 - Directory Listing
Modified Sat Jan 5 05:05:20 2008 UTC (6 years, 11 months ago) by agaffney
don't need SERVER_STDIN and SERVER_STDOUT here

Revision 324 - Directory Listing
Modified Sat Jan 5 04:31:34 2008 UTC (6 years, 11 months ago) by agaffney
move bits of the server communication into Scire.pm

Revision 323 - Directory Listing
Modified Sat Jan 5 04:23:42 2008 UTC (6 years, 11 months ago) by agaffney
set Data::Dumper::Purity to 1 for nested data

Revision 322 - Directory Listing
Modified Sat Jan 5 04:19:08 2008 UTC (6 years, 11 months ago) by agaffney
switch back to Data::Dumper for job output

Revision 321 - Directory Listing
Modified Sat Jan 5 03:40:52 2008 UTC (6 years, 11 months ago) by agaffney
don't stick 'script' in the hash

Revision 320 - Directory Listing
Modified Sat Jan 5 03:34:14 2008 UTC (6 years, 11 months ago) by agaffney
initial commit of Scire.pm

Revision 318 - Directory Listing
Modified Sat Jan 5 03:02:34 2008 UTC (6 years, 11 months ago) by codeman
fixed up the expansion w/ one last query.


Revision 317 - Directory Listing
Modified Thu Jan 3 03:55:50 2008 UTC (6 years, 11 months ago) by codeman
adding job expansion code.


Revision 316 - Directory Listing
Modified Wed Jan 2 04:36:58 2008 UTC (6 years, 11 months ago) by codeman
remove the jobfile once it's been successfully sent to the client.


Revision 315 - Directory Listing
Modified Wed Jan 2 04:24:40 2008 UTC (6 years, 11 months ago) by agaffney
fix parse_response() regex to ignore trailing whitespace

Revision 314 - Directory Listing
Modified Wed Jan 2 04:18:50 2008 UTC (6 years, 11 months ago) by codeman
updating this.  minor fixes.
adding job_fetched code.


Revision 313 - Directory Listing
Modified Wed Jan 2 04:16:33 2008 UTC (6 years, 11 months ago) by codeman
fixin up get_jobs a bit.


Revision 312 - Directory Listing
Modified Wed Jan 2 02:12:24 2008 UTC (6 years, 11 months ago) by agaffney
return job filename and print it

Revision 311 - Directory Listing
Modified Wed Jan 2 02:03:43 2008 UTC (6 years, 11 months ago) by codeman
fixed get_jobs.
coded get_job. but there seems to be a problem with it.
commented out most of it for now, still doesn't work.


Revision 310 - Directory Listing
Modified Wed Jan 2 02:01:51 2008 UTC (6 years, 11 months ago) by codeman
add debug to response line
added other paths to check_job_dir
fixed up get_job a bit.


Revision 306 - Directory Listing
Modified Tue Jan 1 03:14:28 2008 UTC (6 years, 11 months ago) by agaffney
add status_id param to get_jobs()

Revision 305 - Directory Listing
Modified Tue Jan 1 03:08:59 2008 UTC (6 years, 11 months ago) by agaffney
fully implement get_jobs

Revision 304 - Directory Listing
Modified Tue Jan 1 02:37:08 2008 UTC (6 years, 11 months ago) by agaffney
modify get_jobs query to make sure to get the latest job_history entry for the job

Revision 303 - Directory Listing
Modified Tue Jan 1 01:20:06 2008 UTC (6 years, 11 months ago) by agaffney
chomp the line read from client_key

Revision 301 - Directory Listing
Modified Mon Dec 31 23:57:35 2007 UTC (6 years, 11 months ago) by agaffney
switch config location to /etc/scire/
add config defaults to scireclient

Revision 300 - Directory Listing
Modified Mon Dec 31 23:31:39 2007 UTC (6 years, 11 months ago) by codeman
switching on the database lines.
major fixes to register and identify code.
uses a md5sum of the time+mac+ip+hostname



Revision 299 - Directory Listing
Modified Mon Dec 31 23:27:40 2007 UTC (6 years, 11 months ago) by codeman
fixing up registering and identifying code.


Revision 298 - Directory Listing
Modified Mon Dec 31 22:37:16 2007 UTC (6 years, 11 months ago) by agaffney
remove dead code
add a few extra options to the ssh invocation

Revision 295 - Directory Listing
Modified Mon Dec 31 21:38:53 2007 UTC (6 years, 11 months ago) by agaffney
add Id tag properly

Revision 294 - Directory Listing
Modified Mon Dec 31 21:38:25 2007 UTC (6 years, 11 months ago) by agaffney
add Id tag

Revision 293 - Directory Listing
Modified Mon Dec 31 17:59:56 2007 UTC (6 years, 11 months ago) by codeman
add the debug line to the config.


Revision 292 - Directory Listing
Modified Mon Dec 31 17:58:41 2007 UTC (6 years, 11 months ago) by codeman
cleaned up the debugging.  took out existing jobs lines.


Revision 291 - Directory Listing
Modified Mon Dec 31 16:53:36 2007 UTC (6 years, 11 months ago) by agaffney
drop tab in heredoc terminator

Revision 290 - Directory Listing
Modified Mon Dec 31 16:46:19 2007 UTC (6 years, 11 months ago) by agaffney
add get_interface_info() to get MAC/IP for register_client()

Revision 289 - Directory Listing
Modified Mon Dec 31 16:38:42 2007 UTC (6 years, 11 months ago) by agaffney
add interface config option

Revision 288 - Directory Listing
Modified Mon Dec 31 06:52:05 2007 UTC (6 years, 11 months ago) by codeman
add jobdir for server.


Revision 287 - Directory Listing
Modified Mon Dec 31 06:51:28 2007 UTC (6 years, 11 months ago) by codeman
added global for clientid, added to identify query.
toss existing jobs concept for get_jobs.
fleshed out get_jobs and get_job a bit.
fixed some rough DBI.


Revision 286 - Directory Listing
Modified Mon Dec 31 01:28:36 2007 UTC (6 years, 11 months ago) by codeman
adding a check for existence of logfile in the config
if not present, falls back to STDERR.
helps for the time being.


Revision 285 - Directory Listing
Modified Sun Dec 30 21:39:31 2007 UTC (6 years, 11 months ago) by agaffney
debug statement

Revision 284 - Directory Listing
Modified Sun Dec 30 21:35:51 2007 UTC (6 years, 11 months ago) by agaffney
log server debug output to a file

Revision 283 - Directory Listing
Modified Sun Dec 30 17:00:57 2007 UTC (6 years, 11 months ago) by agaffney
add parse_command() and modify existing code to use it

Revision 282 - Directory Listing
Modified Sun Dec 30 06:19:03 2007 UTC (6 years, 11 months ago) by codeman
adding query for get_jobs from old server.


Revision 281 - Directory Listing
Modified Sun Dec 30 03:41:53 2007 UTC (6 years, 11 months ago) by codeman
adding in the DBI commands, commented out, to actually do stuff instead of faking it.
will continue faking it for now to ease development.


Revision 280 - Directory Listing
Modified Sun Dec 30 02:54:46 2007 UTC (6 years, 11 months ago) by codeman
adding debug() function.
makes things so much cleaner.


Revision 279 - Directory Listing
Modified Sun Dec 30 02:54:19 2007 UTC (6 years, 11 months ago) by codeman
adding debug.


Revision 278 - Directory Listing
Modified Sun Dec 30 02:44:17 2007 UTC (6 years, 11 months ago) by codeman
removing hte getresponse stuff.


Revision 277 - Directory Listing
Modified Sun Dec 30 02:35:25 2007 UTC (6 years, 11 months ago) by agaffney
remove END block as it seems unnecessary, since it looks like ssh dies by itself when the STDIN and STDOUT are closed

Revision 276 - Directory Listing
Modified Sun Dec 30 02:23:53 2007 UTC (6 years, 11 months ago) by agaffney
add END block and clean up errors

Revision 275 - Directory Listing
Modified Sun Dec 30 02:19:34 2007 UTC (6 years, 11 months ago) by agaffney
relative config file location

Revision 274 - Directory Listing
Modified Sun Dec 30 02:04:34 2007 UTC (6 years, 11 months ago) by agaffney
remove run_test() stuff

Revision 273 - Directory Listing
Modified Sun Dec 30 02:03:37 2007 UTC (6 years, 11 months ago) by agaffney
modify all code using send_command() to pass output through parse_response()

Revision 272 - Directory Listing
Modified Sun Dec 30 01:59:45 2007 UTC (6 years, 11 months ago) by agaffney
implement debug() and modify all current code to use it

Revision 271 - Directory Listing
Modified Sun Dec 30 01:53:28 2007 UTC (6 years, 11 months ago) by agaffney
implement parse_response()

Revision 270 - Directory Listing
Modified Sun Dec 30 01:43:20 2007 UTC (6 years, 11 months ago) by agaffney
move get_response() code into send_command() since nothing else uses it

Revision 269 - Directory Listing
Modified Sun Dec 30 01:15:05 2007 UTC (6 years, 11 months ago) by codeman
config updates.


Revision 268 - Directory Listing
Modified Sun Dec 30 01:12:03 2007 UTC (6 years, 11 months ago) by codeman
big changes. adding a whole bunch of code to flesh this out.


Revision 267 - Directory Listing
Modified Sun Dec 30 01:11:18 2007 UTC (6 years, 11 months ago) by codeman
adding a whole bunch of code here.
lots taken from the original server code in python.



Revision 266 - Directory Listing
Modified Wed Dec 26 05:20:15 2007 UTC (6 years, 11 months ago) by codeman
adding fake server config.


Revision 265 - Directory Listing
Modified Wed Dec 26 05:18:56 2007 UTC (6 years, 11 months ago) by codeman
if to unless b/c of possible undef.


Revision 264 - Directory Listing
Modified Wed Dec 26 05:18:17 2007 UTC (6 years, 11 months ago) by codeman
copied config reading from the client
added DBI.  added connection code.
tested, works.



Revision 263 - Directory Listing
Modified Mon Dec 24 18:30:59 2007 UTC (6 years, 11 months ago) by agaffney
move connection string building into its own function
move most of global stuff inside run_main
react properly to responses from IDENTIFY command
move the job_dir check into its own function

Revision 262 - Directory Listing
Modified Mon Dec 24 18:29:14 2007 UTC (6 years, 11 months ago) by agaffney
implement IDENTIFY command with random response in server

Revision 261 - Directory Listing
Modified Mon Dec 24 15:56:33 2007 UTC (6 years, 11 months ago) by codeman
musta been too drunk to not remember mkpath.


Revision 260 - Directory Listing
Modified Mon Dec 24 07:18:23 2007 UTC (6 years, 11 months ago) by agaffney
rename verbose to debug
split identify and register

Revision 259 - Directory Listing
Modified Mon Dec 24 06:27:16 2007 UTC (6 years, 11 months ago) by codeman
config touchups.
added a register function. it needs a fingerprint or digest
to verify the client.


Revision 258 - Directory Listing
Modified Mon Dec 24 02:30:05 2007 UTC (6 years, 11 months ago) by agaffney
toss in a comment...just because

Revision 257 - Directory Listing
Modified Mon Dec 24 02:29:48 2007 UTC (6 years, 11 months ago) by agaffney
use a match and capture instead of split for parsing config file lines

Revision 256 - Directory Listing
Modified Mon Dec 24 01:30:35 2007 UTC (6 years, 11 months ago) by agaffney
ok, where to begin....
SCIRE_CONFIG_FILE is no longer a constant so it can be overriden via commandline
basic commandline parsing
helper function for sending/receiving and creating the connection
move my test code into run_test() function
temporary connection_command override for development
fix a few syntax errors
random other changes that I can't be bothered to think of

Revision 255 - Directory Listing
Modified Mon Dec 24 01:28:00 2007 UTC (6 years, 11 months ago) by agaffney
change var name from USERNAME to USER to match existing code

Revision 254 - Directory Listing
Modified Mon Dec 24 00:21:22 2007 UTC (6 years, 11 months ago) by codeman
adding config-related stuff.


Revision 253 - Directory Listing
Modified Sun Dec 23 18:02:22 2007 UTC (6 years, 11 months ago) by agaffney
add servercmd comment

Revision 252 - Directory Listing
Modified Sun Dec 23 08:08:30 2007 UTC (6 years, 11 months ago) by agaffney
initial perl-based client and server with shiny IPC

Revision 251 - Directory Listing
Modified Sun Dec 23 06:13:26 2007 UTC (6 years, 11 months ago) by agaffney
add new-fu server/client directories

Revision 250 - Directory Listing
Modified Sun Dec 23 06:11:12 2007 UTC (6 years, 11 months ago) by agaffney
add new-fu directory

Revision 249 - Directory Listing
Added Sun Dec 23 04:50:57 2007 UTC (6 years, 11 months ago) by agaffney
add branches and tags directories

Sticky Revision:

  ViewVC Help
Powered by ViewVC 1.1.20