dice-cyfronet/atmosphere

check metadata while setting version when VMT is assigned into AT

Closed this issue · 0 comments

We have following scenario:

  • VMT (vmt1) is available on First CS with version 1
  • it is migrated into Second CS. As a result new VMT (vmt2) is create (version is set to 1)
  • New AT is created and vmt1 is assigned
  • Administrator assigns vmt2 into AT

As a result vmt2 version will be set into AT.version + 1 (2). This obviously wrong. Correct solution should contact compute site, get metadata and if source_uuid is available than we should check if source VMT is assigned to the AT. If yes the same version should be set to new assigned VMT.

/cc @paoolo, @nowakowski