Skip to content
  • Iustin Pop's avatar
    Add check for node memory in instance creation · 49ce1563
    Iustin Pop authored
    Currently the check for enough memory is done only on instance start
    command and failover command. But we also start an instance in instance
    create, therefore we need to check this instead of failing to start in
    the hypervisor phase.
    
    The patch adds a check for node memory in the case the creation command
    specifies that the instance should be started. It is allowed for the
    memory to be less than needed if the instance will not be started, in
    order to allow migration and other such cases.
    
    Reviewed-by: imsnah
    49ce1563