« Previous | Next » 

Revision 1cb7846c

ID1cb7846c1b583d4696581aaffda7e1679179b8b4

Added by Christos Stavrakakis over 10 years ago

cyclades: Fix removal of stale NICs in BUILD state

Until now, NICs that did not exist in the Ganeti backend and were in
BUILD state were removed after a timeout (BUILDING_NIC_TIMEOUT). This
was dangerous, because if an OP_INSTANCE_CONNECT job had been "stuck"
in Ganeti, the NIC and it's IP address would be released. This commit
fixes this by removing such NICs only if the OP_INSTANCE_CONNECT has
been finished and the NIC does not exist in the Ganeti backend. Because,
querying Ganeti has a time overhead, this is only done for NICs that
have not been created too recently.

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences