Detached VM Snapshots after Warm Migration
-
@DustyArmstrong I have hard times to understand how the VM is aware of the XOA it is/was attached to...
a VM resides on a host
a Host in in a pool
a Pool is attached to a (or many) XO/XOAhow the hell your VM is aware of its previous XO ?

-
lol your previous post answered my questions. other-config.
-
@Pilow Time for a drink, I think.
-
nice catch
you now know the internal magic of the xo backup . -
@Pilow said in Detached VM Snapshots after Warm Migration:
@DustyArmstrong I have hard times to understand how the VM is aware of the XOA it is/was attached to...
a VM resides on a host
a Host in in a pool
a Pool is attached to a (or many) XO/XOAhow the hell your VM is aware of its previous XO ?

- a running vm has a property resident_on exposed by xapi
- the queries from pools are handled separatly, thus we can decorate all the object of a xapi with a $pool property
- this is the
servercollection that track which server data we know, and which one are connected or not
Mots of the data lives in the xapi, that means that multiple XO can handle multiple pools. The exception are the SDN Controller ( best handled by only one XO) and the backups of the same VM.
-
@florent Thanks, had to put the DFIR hat on.
May as well ask as I thought about a PR for this - would it be feasible/practical/desirable to allow this to be done from XO's UI? I don't know how much of an edge case this was for me, but being able to remove "other-config" data following a migration (e.g. you do what I did and want the VMs to start over independently on a new host) might be beneficial to others.
Obviously it would be quite destructive I imagine, if used inappropriately. Even just reporting those ghostly associations would be nice - again not sure of your overall design ethos so there may be good reasons why it's not a solid idea.
-
I think at least showing them could be a good idea. this is planned ( but low priority)
-
@florent I'd be interested in giving it a shot if you accept PRs, but if you already have it planned and would rather do it yourselves at a later date (and it's too low a priority to review a PR anyway) then that's fair enough. I'll be content enough knowing it's a thing to be aware of under the hood.
-
@DustyArmstrong I think we won't do too much on XO5 for now, and for xo6 we are trying to do everything with a UX designer to ensure coherence, at least until we have a full working app
-
@florent No problem, just thought it would be fun.
Thanks for your work anyway!