Skip to content
Snippets Groups Projects
  1. Apr 18, 2012
    • Michael Hanselmann's avatar
      Fix error in opcode result processing · abe362d3
      Michael Hanselmann authored
      
      LUXI queries are processed without callbacks (see
      server.masterd.ClientOps._Query). With commit 07923a3c the logic for
      checking an opcode's result for jobs to submit was changed and
      subsequently raised an exception (“'NoneType' object has no attribute
      'SubmitManyJobs'”) in such a case. Before said commit the exception
      would also have been raised if an opcode used by a query submitted jobs.
      
      This patch changes the logic to only resolve the method if callbacks are
      defined and to use an exception-raising implementation otherwise.
      
      Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      abe362d3
  2. Apr 17, 2012
  3. Apr 16, 2012
  4. Apr 13, 2012
  5. Apr 12, 2012
  6. Apr 11, 2012
  7. Mar 30, 2012
  8. Mar 29, 2012
    • Dimitris Aragiorgis's avatar
      Fix a bug concerning TCP port release · 3b3b1bca
      Dimitris Aragiorgis authored
      
      Commit f396ad8c returns the TCP port used by DRBD disk back to the
      TCP/UDP port pool using AddTcpUdpPort().
      
      However, AddTcpUdpPort() writes the config on every invocation,
      using _WriteConfig(). This causes two problems:
      
       * it causes critical errors logged by VerifyConfig(), after the DRBD
         disk removal, and until the actual instance removal.
       * if the code following AddTcpUdpPort() fails, the port is already
         returned back the pool, which causes the port to have duplicates
         (inconsistent config).
      
      AddTcpUdpPort() is invoked in three cases:
      
       * during InstanceRemove() through _RemoveDisks().
       * during InstanceSetParams() in case of disk removal.
       * during InstanceSetParams() through _ConvertDrbdToPlain().
      
      This commit fixes the problem by removing the _WriteConfig() call from
      AddTcpUdpPort(), delegate it to Update() via the
      TemporaryReservationManager and ensure AddTcpUdpPort() precedes
      Update().
      
      Signed-off-by: default avatarDimitris Aragiorgis <dimara@grnet.gr>
      [iustin@google.com: small comments adjustements]
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      3b3b1bca
  9. Mar 28, 2012
  10. Mar 27, 2012
Loading