Skip to content
Snippets Groups Projects
  1. Dec 19, 2012
  2. Dec 03, 2012
  3. Nov 29, 2012
  4. Nov 26, 2012
  5. Nov 23, 2012
  6. Nov 21, 2012
  7. Nov 20, 2012
    • Dimitris Aragiorgis's avatar
      Basic IP pool management logic · 6c0a75db
      Dimitris Aragiorgis authored
      
      Implement LUs for corresponding opcodes:
       * LUNetworkAdd:
         - Check for IP validity
         - Reserves all necessary IPs
         - Create new Network config object
       * LUNetworkRemove:
         - Checks if connected to any nodegroup
         - Remove a Network config object
      
      Implement basic config methods:
       * LookupNetwork()
         - Given the network name return the network UUID
       * AddNetwork()
         - Add a new network to the config
       * RemoveNetwork()
         - Remove a network from the config
      
      Add new locking level: LEVEL_NETWORK
      
      Add various useful config methods for retrieving network info.
      
      Signed-off-by: default avatarApollon Oikonomopoulos <apollon@noc.grnet.gr>
      Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      6c0a75db
  8. Nov 19, 2012
  9. Nov 13, 2012
  10. Aug 23, 2012
    • Iustin Pop's avatar
      Bump pep8 version to 1.2 · 5ae4945a
      Iustin Pop authored
      
      Debian Wheezy will ship with this version, and it has many improved checks compared to 0.6, so let's:
      
      - bump version in the docs
      - silence some new checks that are wrong due to our indent=2 instead of 4
      - fix lots of errors in the code where the indentation was wrong by 1
        or 2 spaces
      - fix a few cases of == True, False, None and replace with 'is'
      - re-indent some cases where the code is OK, but pep8 complains
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
      5ae4945a
  11. Mar 30, 2012
  12. Mar 22, 2012
  13. Feb 21, 2012
  14. Dec 19, 2011
  15. Nov 30, 2011
  16. Nov 15, 2011
  17. Nov 02, 2011
  18. Aug 30, 2011
  19. Aug 03, 2011
  20. Jul 21, 2011
  21. Jul 15, 2011
  22. May 13, 2011
    • Michael Hanselmann's avatar
      SharedLock: Implement downgrade from exclusive to shared mode · 3dbe3ddf
      Michael Hanselmann authored
      
      If a job needs to modify a resource and then wait for a result, it must
      acquire the resource lock in exclusive mode. In some cases it would be
      possible to only have a shared lock for waiting. Until now it was not
      possible to change a lock's mode once it'd been acquired. Releasing and
      re-acquiring might have been possible, but would require many more
      checks and can introduce new issues.
      
      With this patch a new method, named “downgrade”, is added to Ganeti's
      own SharedLock class. It can only be called when the lock is held in
      exclusive mode and changes it to shared. If there are any pending shared
      acquires on the same priority, they're moved to the front of the queue
      and notified (jumping ahead of exclusive acquires).
      
      In a lockset the internal lock will be downgraded if, and only if, all
      individual locks owned by the current thread are either released or
      acquired in shared mode.
      
      Unittests are provided.
      
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
      3dbe3ddf
  23. May 09, 2011
  24. Apr 29, 2011
  25. Mar 16, 2011
    • Michael Hanselmann's avatar
      locking: Fix race condition in lock monitor · e4e35357
      Michael Hanselmann authored
      
      In some rare cases it can happen that a lock is re-created very soon
      after deletion, while the old instance hasn't been destructed yet. In
      such a case the code would detect a duplicate name and raise an
      exception.
      
      We have seen at least one case where this happened during the creation
      of many instances. It is not exactly clear how it came to be, but it
      appears to have occurred while different jobs fought for locks with
      short timeouts (in the case of instance creation locks are added at this
      stage and removed shortly after if not all locks can be acquired).
      
      The issue is fixed by removing the check for duplicate names. To still
      guarantee a stable sort order for the lock information as shown by
      “gnt-debug locks”, a registration number is recorded for each lock in
      the monitor.
      
      A unittest is included to check for the situation.
      
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      e4e35357
  26. Jan 06, 2011
  27. Dec 06, 2010
  28. Dec 01, 2010
  29. Nov 16, 2010
  30. Oct 28, 2010
Loading