- 05 Mar, 2002 16 commits
-
-
Leigh B. Stoller authored
assign_wrapper.in: Hack in a change that ensures a delay node is created for any link on which an event is posted (up,down,modify), no matter what its initial parameters are. ie: If a link is created with no delay, but there is an event that adds a delay later, then we must drop in a delay node. Same for up/down on a link. We do this in the delay node. I am reasonably confident that this change is fine for duplex links, but I am less sure of the effect on lans! eventsys_control.in: Checkpoint latest changes. Add "replay" option, which right now just stops and starts the event scheduler so that it reloads the entire event list. Add check for existing experiment, and that the experiment is either active or swapping (do not want to start a scheduler for a swapped out experiment!). Add check to see if there are any events, and skip startup if there are not events in the DB. Lastly, get very serious about preventing more than one scheduler from being started, either by accident or intentionally. My protocol is to lock the table, grab and set the pid to -pid, test the pid for a positive value, and if positive, send the scheduler a kill(TERM) so that it can cleanup, clear the pid to zero in the DB, and exit. This approach ensures that we do not try to send a kill to a pid that is no longer active or owned by the user (this last part is not really necessary cause of how pids are reused, but it was easy to add so why not). exports_setup.in: Trivial change to make it easier to turn this on temporarily in devel trees. named_setup.in: Ditto. node_reboot.in: Add call to TBdbfork() in child cause of apparent DB connection problems across forks. In the child, set the eventstatus for the node to REBOOT if successful (not this event status stuff is temporary, will be recast in next set of revisions). GNUmakefile: Add new controlling program, eventsys_control. power.in: Ditto previous comment about REBOOT. os_setup.in: Non event system cleanups. tbend.in: Add DB cleanup of the new virt_trafgens and eventlist tables. tbprerun.in: Ditto. tbreport.in: Print out the event list in a pretty print format. tbswapin.in: Add call to start the event system. Also a big fix; move the named script up above the os_setup so that the named tables have been updated by the time the first node reboots. I noticed that nodes were failing on gethostbyname(). tbswapout.in: Add call to stop the event system.
-
Leigh B. Stoller authored
them into a private header file.
-
Leigh B. Stoller authored
-
Leigh B. Stoller authored
-
Leigh B. Stoller authored
its meaning!
-
Leigh B. Stoller authored
export that stuff. Add signal handlers to ensure that INT/TERM/HUP signals are caught and that we exit cleanly (clearing the pid from the DB). Minor rework for DB table structure and the switch from per-experiment event tables to a single event table indexed by pid,eid.
-
Leigh B. Stoller authored
are gone!
-
Leigh B. Stoller authored
recreating the connection to the DB across a fork. It appears that with the connection shared, DB queries can fail. It would be nice if PERL had fork handlers. Add TBSetNodeEventState() and TBGetNodeEventState() library routines, and some constants for the event tags. Beef up the experiment access check code to handle destroy as a distinct case.
-
Leigh B. Stoller authored
tevd: Proper daemonization code, controlled by debug option.
-
Leigh B. Stoller authored
delay-agent/{callback,main}.c: Minor -Wall fixes.
-
Leigh B. Stoller authored
-
Leigh B. Stoller authored
tbsend.c and tbrecv.c, which are trivial examples of how to send and receive a sample event.
-
Leigh B. Stoller authored
already a pid associated with the experiment (unless clearing it to zero). This enforces the restriction that there should only be a single event scheduler running for an experiment!
-
Leigh B. Stoller authored
-
Leigh B. Stoller authored
Daemon if it exists.
-
Leigh B. Stoller authored
which agents are attached to which node, so that we can assign portnumbers to them. Also add code to updating the DB with these agents (virt_trafgens). sim.tcl: Get rid of $pid_$eid_events (per experiment events table), and replace with global eventlist table. Revisit this later, since it was causing problems and we do not really have a problem right now. Maybe later. traffic.tcl: Add virt_trafgens DB table update code. Get rid of oskit based traffic generators and replace with FreeBSD nodes, which will boot up and check if they are traffic gen source. Add get_params call, called by the event code im sim.tcl to get the current params for the START event.
-
- 04 Mar, 2002 11 commits
-
-
Abhijeet Joglekar authored
-
Leigh B. Stoller authored
generator node.
-
Robert Ricci authored
matches the one in the checked-out source. This now gets called as part of the 'boss-install' target, to guard against installing software that is out-of-sync with the running database. It is skipped if @prefix@ is not /usr/testbed, to avoid getting in the way of development. If you want to bypass this check, use the 'boss-install-force' target. Use of this, however, is not recommended.
-
Robert Ricci authored
Also, now indicates differences, or lack thereof, with its exit value. Returns 0 if there is no difference between the schemas, or 1 if there is one.
-
Robert Ricci authored
-
Chad Barb authored
-
Leigh B. Stoller authored
-
Chad Barb authored
rather than assuming a fixed size of 640x480. Should provide more room in workarea for network designs.
-
Abhijeet Joglekar authored
events .
-
Abhijeet Joglekar authored
-
Leigh B. Stoller authored
-
- 02 Mar, 2002 2 commits
-
-
Leigh B. Stoller authored
-
Leigh B. Stoller authored
pedantic than either opera or IE, or more likely just stupid).
-
- 01 Mar, 2002 9 commits
-
-
Leigh B. Stoller authored
-
Robert Ricci authored
our web access checks are in php3, it's wrapped in a php3 wrapper script. Access to it is controlled via the cvsweb column in the users table. cvsweb only gets installed on the main emulab site - that is, if OURDOMAIN is defined to be emulab.net cvsweb itself is originally from http://www.idaemons.org/~knu/cvsweb/
-
Leigh B. Stoller authored
-
Chad Barb authored
Minor fix; solves a potential security problem by ensuring backend will execute no code if called directly.
-
Robert Ricci authored
Note: I edited out the tables created by the event system. We should probably have a script that does this for us.
-
Robert Ricci authored
event system.
-
Mike Hibler authored
-
Mike Hibler authored
-
Mike Hibler authored
-
- 28 Feb, 2002 2 commits
-
-
Mike Hibler authored
-
Leigh B. Stoller authored
-