1. 06 Dec, 2000 10 commits
    • Kristin Wright's avatar
      Added check for if os features supported. it's just like in ifc_setup · e20757a7
      Kristin Wright authored
      except ifc_setup deals in node_ids and, where i make the call, i
      am dealing with node IP addresses. also, we are  in the habit (i am
      anyway) of playing fast and loose with scoping. specifically, i use
      a global scope for my database queries, statement handles and ROWS.
      turns out that while in the subroutines GetCurrentOS() and OSFeatureSupported(), i was overwriting a value i was setting before (before i had called
      the subroutines) and using after the calls. I think the scripts are
      getting sufficiently complicated that we should use better scoping --
      we can think about that after the demo.
    • Leigh B. Stoller's avatar
      More support for OSKit kernels (or foreign OSs in general). Both · 9f16769a
      Leigh B. Stoller authored
      os_setup and ifc_setup read the features list from the database for
      the currently assigned OS. os_setup will not enter a ping wait for the
      node to come back alive if the node does not support ping! ifc_setup
      will not try and and do ifconfig stuff if the OS does not support ifconfig.
    • Leigh B. Stoller's avatar
    • Kristin Wright's avatar
      · c7c3239d
      Kristin Wright authored
      Added calls to create paperbag shell account on paper as well as
      add a group entry.
    • Leigh B. Stoller's avatar
      Change so that mkacct-ctrl runs before mkprojdir, since mkprojdir · 75200214
      Leigh B. Stoller authored
      does a chown to the new user, and I was not thinking to pass in a
      numeric uid, and this is easier to change than the script. So there.
    • Leigh B. Stoller's avatar
    • Robert Ricci's avatar
      Added '-i /root/.ssh/identity' option to ssh, scp, etc. because $HOME is · f5ad4e30
      Robert Ricci authored
      not /root if we're setuid....
      Also, set $< to 0 if $> is 0 - this seems to be necessary to stop sshtb
      from dropping root permissions.
    • Robert Ricci's avatar
      Fixed up delay_setup to run with taint checking, so that it can be · 2094770e
      Robert Ricci authored
      setuid root. Modified the Makefile so that it gets the setuid bit
      when the post-install target is run.
    • Leigh B. Stoller's avatar
      Checkpoint a set of hacky changes to support your own OSKit kernel · ce613288
      Leigh B. Stoller authored
      via the create-os directive in the NS file.
      tbsetup/ir/handle_os.tcl - Do a valid check for the image given with
      	set-node-os in the NS file, and propogate that information through
              to the IR file. Nothing is added to the DB.
      tbsetup/mkexpdir - Add a tftpboot to the list of experiment directories. The
      	tftpd daemon now allows kernels from /proj.
      tbsetup/os_setup - Very hacky changes to allow for multiboot kernels. Read
      	local images table and cross check against that for nodeos spec.
              Hardwire in "mb" as a special partition tag that says to not try
      	and do too much with it. This should be changed to a DB check of
      	some kind. On reboot, do not wait for these nodes to come alive since
      	there is no way to determine if an oskit kernel (or any foreign)
      	kernel is running.
    • Kristin Wright's avatar
      · 15bb3655
      Kristin Wright authored
      Two changes:
      	- changed the uname ssh to accept ssh output in addition
      	  to the uname output. Initially, i thought this was hackish
      	  but, given ssh'es propensity to output messages for every
       	  conceivable occasion, now i think this is simply robust.
      	- previously, i was using perl's grep() function to
      	  detect duplicate IP addresses. testing with more complicated
             	  scenarios revealed that not only was i misusing the grep()
                function, but it wasn't sufficient even when used correctly.
                Many of the IP addresses aren't reachable from paper; the script
                would deal with this, but only after lengthy delays while
                waiting for input. i changed the script to only communicate
                with interfaces on the control net.
  2. 05 Dec, 2000 12 commits
  3. 04 Dec, 2000 15 commits
  4. 03 Dec, 2000 3 commits
    • Kristin Wright's avatar
      · 6b11b08d
      Kristin Wright authored
      Complete re-write. This version will be easier
      to maintain and less likely to break. Turns out that in
      addition to being cleaner, the script runs about 5 times faster
      because we open many fewer remote pipes.
      An example of what was modified:
      To create a user in the old version:
      	- open up a local file
      	- dynamically generate a script of chpass calls for
      		new user accounts and dump into above file
      	- scp over the file
      	- source it remotely via ssh
      And now:
      	- ssh pw
      	- ssh chpass (turns out i couldn't use dave's usermod
      	   example because usermod takes an unencrypted password)
    • Leigh B. Stoller's avatar
      Allow normal users to change node control parameters for nodes in · 6372cb0d
      Leigh B. Stoller authored
      their experiments, via the experiment information page.
    • Kristin Wright's avatar
      3 Minor changes: · aa7de27f
      Kristin Wright authored
      Noticed that I had a hard-coded test value still in the code ('lkwbox'
      instead of $project; fixed that. Took out inclusion of Open2 package. Allow
      a dash into the project name verification.