As reported in #57, there is small window of opportunity for race condition during server creation. Primary IP allocation and server creation are two separate API calls that can't be done atomically. By serializing access to this method, this could be further mitigated as HetznerCloud instance is using same instance of HetznerCloudResourceManager during its lifecycle.
As reported in #57, there is small window of opportunity for race condition during server creation. Primary IP allocation and server creation are two separate API calls that can't be done atomically. By serializing access to this method, this could be further mitigated as
HetznerCloud
instance is using same instance ofHetznerCloudResourceManager
during its lifecycle.This fix won't prevent problems done externally.
Closes #57