1. 19 7月, 2016 4 次提交
    • N
      vz: fix destination domain synchronization · eb2fe4eb
      Nikolay Shirokovskiy 提交于
      Adding domain to domain list on preparation step is not correct.
      First domain is not fully constructed - domain definition is
      missing. Second we can't use VIR_MIGRATE_PARAM_DEST_XML parameter
      to parse definition as vz sdk can patch it by itself. Let's add/remove
      domain on finish step. This is for synchronization purpose only so domain
      is present/absent on destination after migration completion. Actually
      domain object will probably be created right after actual vz sdk
      migration start by vz sdk domain defined event.
      
      We can not and should not sync domain cache on error path in finish step
      of migration. We can not as we really don't know what is the reason of
      cancelling and we should not as user should not make assumptions on
      state on error path. What we should do is cleaning up temporary migration
      state that is induced on prepare step but we don't have one. Thus
      cancellation should be noop.
      Signed-off-by: NNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
      Signed-off-by: NMaxim Nestratov <mnestratov@virtuozzo.com>
      eb2fe4eb
    • N
      vz: fix memory leaks in prlsdkLoadDomains · e126352e
      Nikolay Shirokovskiy 提交于
      Free sdkdom on any result of prlsdkNewDomainByHandle.
      Signed-off-by: NNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
      e126352e
    • N
      vz: fix missed defined domain event · b5e08e8c
      Nikolay Shirokovskiy 提交于
      libvirt domain defined event is issued only on correspondent vz sdk
      event. But in case event delivered before domain is added to
      domain list we can mistakenly skip this event if prlsdkNewDomainByHandle
      return NULL in case of domain is discovered in the list under
      the driver lock. Let's return domain object in this case.
      Now prlsdkNewDomainByHandle returns NULL only in case of
      error which is more convinient.
      Signed-off-by: NNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
      b5e08e8c
    • N
      vz: don't pass empty and unused fields in migration cookie · ac60d423
      Nikolay Shirokovskiy 提交于
      The first version of migration cookie was rather dumb resulting
      in passing empty or unused fields here and there. Add flags to
      specify what to bake to and eat from cookie so we deal only
      with meaningful data. However for backwards compatibility
      we still need to pass at least some faked fields sometimes.
      Signed-off-by: NNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
      ac60d423
  2. 11 7月, 2016 2 次提交
  3. 28 6月, 2016 2 次提交
  4. 27 6月, 2016 1 次提交
  5. 26 6月, 2016 18 次提交
  6. 20 6月, 2016 1 次提交
  7. 17 6月, 2016 1 次提交
  8. 15 6月, 2016 2 次提交
  9. 14 6月, 2016 1 次提交
  10. 11 6月, 2016 7 次提交
  11. 10 6月, 2016 1 次提交