(self)
| 739 | virtstoraged"); |
| 740 | |
| 741 | def config(self): |
| 742 | try: |
| 743 | self.setupLiveMigration() |
| 744 | |
| 745 | filename = "/etc/libvirt/qemu.conf" |
| 746 | |
| 747 | cfo = configFileOps(filename, self) |
| 748 | cfo.addEntry("security_driver", "\"none\"") |
| 749 | cfo.addEntry("user", "\"root\"") |
| 750 | cfo.addEntry("group", "\"root\"") |
| 751 | configure_libvirt_tls(self.syscfg.env.secure, cfo) |
| 752 | cfo.save() |
| 753 | |
| 754 | if os.path.exists("/lib/systemd/system/libvirtd.service"): |
| 755 | bash("systemctl restart libvirtd") |
| 756 | else: |
| 757 | self.syscfg.svo.stopService("libvirt-bin") |
| 758 | self.syscfg.svo.enableService("libvirt-bin") |
| 759 | if os.path.exists("/lib/systemd/system/libvirt-bin.socket"): |
| 760 | bash("systemctl stop libvirt-bin.socket") |
| 761 | return True |
| 762 | except: |
| 763 | raise |
| 764 | |
| 765 | def restore(self): |
| 766 | try: |
nothing calls this directly
no test coverage detected