def check_migration_protocol(self, protocol, host): resp = SshClient(host.ipaddress, port=22, user=self.hostConfig["username"],passwd=self.hostConfig["password"])\ .execute("grep -a listen_%s=1 /etc/libvirt/libvirtd.conf | tail -1" % protocol) if protocol not in resp[0]: cloudstackTestCase.fail(self, "Libvirt listen protocol expected: '" + protocol + "\n" "does not match actual: " + resp[0])
def check_migration_protocol(self, protocol, host): resp = SshClient(host.ipaddress, port=22, user=self.hostConfig["username"], passwd=self.hostConfig["password"]) \ .execute("grep -a listen_%s=1 /etc/libvirt/libvirtd.conf | tail -1" % protocol) if protocol not in resp[0]: cloudstackTestCase.fail( self, "Libvirt listen protocol expected: '" + protocol + "\n" "does not match actual: " + resp[0])
def check_migration_protocol(self, protocol, host): resp = SshClient(host.ipaddress, port=22, user=self.hostConfig["username"],passwd=self.hostConfig["password"])\ .execute("grep -a Live /var/log/cloudstack/agent/agent.log | tail -1") if protocol not in resp[0]: cloudstackTestCase.fail( self, "Migration protocol was not as expected: '" + protocol + "\n" "Instead we got: " + resp[0])