sleep(10) always make us uncomfortable, Could you make it as a wait_for?
You can use utils_misc.wait_for(), and you can refer to utils_libvirtd.libvirtd_wait_for_start() as an example.

If you need more information, please '@' me here any time.

Thanx.