Skip to content
  • Guido Trotter's avatar
    Hypervisors: Add retry= to StopInstance · 07b49e41
    Guido Trotter authored
    
    
    Currently some hypervisors need the stop operations to be retried more
    than once, while other ones only do it in one pass. With this change
    we'll handle retries outside the hypervisor code, but telling whether
    this is the first try or not.
    
    Since this option is not used for now, all hypervisors just return if
    called with retry set to on, maintaining the old behavior. Since the
    fake hypervisor has an idempotent StopInstance call, we avoid returning
    in that case.
    
    Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
    Reviewed-by: default avatarOlivier Tharan <olive@google.com>
    07b49e41