Dear oVirt,

This request was bounced two times as well.

Details below. Can you please advise me.

Sent from my iPhone

On 8 Jul 2019, at 09:58, Vrgotic, Marko <M.Vrgotic@activevideo.com> wrote:

Dear oVIrt,

 

Happy to report I have deployed my first python vdsm_hook which removes A, AAAA, TXT records of VM each time after_vm_destroy event is triggered, and it works fine.

This was required to be able to quickly redploy/rebuild VMs using same hostname.

 

Issue I am observing/just discovered now is:

Since live_migration of VM guest is considered a destruction from Host perspective, DNS records get deleted and VM lands on new host without being resolvable 😊 .

 

I would like to introduce another python script for hook regarding migration events to get these entries back into DNS but for that I need there IPs.

 

Question:

  • Where can I find/locate/read VMs IPs and Hostnames (is it dom_xml) to be able to incorporate them for DNS Update script?

Or even better:

  • What would be even better, is there a way to not trigger the dns update if VM is being Migrated? Can I use dom_xml or other location/file to check whether VM is migrated  or not,  which would allow me to control if dnsupdate should be triggered?

 

 

If its relevant for the question: we are currently running oVirt 4.3.3 version

 

Kindly awaiting your reply.

 

Marko Vrgotic

ActiveVideo