1. 09 Nov, 2017 1 commit
    • Mike Hibler's avatar
      Introduce a "failed" state for resource allocation. · 7e13f79b
      Mike Hibler authored
      If a background resource allocation fails, we put the lease in the "failed"
      state instead of destroying it. There were some ripple effects, specifically,
      the lease_daemon now checks for "failed" leases and send messages to us at
      the same frequency as for "unapproved" leases. The correct response here is
      almost certainly to destroy the lease, though you can put it back in the
      "unapproved" state (via modlease) and try to approve it to see what happened.
      
      Also add background mode to approvelease since it can do time consuming
      resource allocation.
      
      Nit: cleanup logfiles used in backgroud operation.
      7e13f79b
  2. 15 Feb, 2016 1 commit
  3. 09 Jan, 2015 1 commit
  4. 11 Nov, 2014 1 commit
    • Leigh Stoller's avatar
      Add gid to project_leases, and allow creation in subgroups. · d859078e
      Leigh Stoller authored
      This is not exposed to users, the main reason for this is so that the name
      space for leases (datasets) is per-group instead of per-project. We need
      this when creating datasets via the geni interface (backend to APT), since
      all leases are created in the holding project. Without a subgroup, we would
      run into name collisions on the backend. It also gives us finer access
      permission control for the same reason.
      
      Note that I yanked out the lease cache from Lease.pm (not worth the
      trouble), and I expanded Lookup to allow for the usual variety of
      possibilities that we allow in other Lookup methods.
      d859078e
  5. 06 Feb, 2014 1 commit
  6. 23 Jan, 2014 1 commit
    • Mike Hibler's avatar
      Change the default for auto-destruction of leases. · 5c5f6b66
      Mike Hibler authored
      Before it defaulted to no auto-destroy and you specified -A to turn it on.
      Now we default to auto-destroy and you specify -N to turn it off.
      
      I was being overly paranoid and you can accomplish the same thing by setting
      the autodestroy sitevar for each lease type to 0.
      5c5f6b66
  7. 16 Jan, 2014 1 commit
  8. 07 Jan, 2014 1 commit
    • Mike Hibler's avatar
      A couple of minor tweaks. · dac3a614
      Mike Hibler authored
      Add -1 option to run the lease_daemon for exactly one pass and then exit.
      
      Allow fractional values for some of the sitevars whose values are measured
      in days. Mostly for debugging, in normal use, a granularity of days is fine.
      
      Tweak the log output.
      dac3a614
  9. 06 Jan, 2014 3 commits