def refresh_lun_size_by_SCSIid_on_slaves(session, SCSIid): for slave in util.get_all_slaves(session): util.SMlog("Calling on-slave.refresh_lun_size_by_SCSIid(%s) on %s." % (SCSIid, slave)) resulttext = session.xenapi.host.call_plugin( slave, "on-slave", "refresh_lun_size_by_SCSIid", {'SCSIid': SCSIid}) if "True" == resulttext: util.SMlog("Calling on-slave.refresh_lun_size_by_SCSIid(%s) on" " %s succeeded." % (SCSIid, slave)) else: message = ("Failed in on-slave.refresh_lun_size_by_SCSIid(%s) " "on %s." % (SCSIid, slave)) raise util.SMException("Slave %s failed in on-slave.refresh_lun_" "size_by_SCSIid(%s) " % (slave, SCSIid))
def refresh_lun_size_by_SCSIid_on_slaves(session, SCSIid): for slave in util.get_all_slaves(session): util.SMlog("Calling on-slave.refresh_lun_size_by_SCSIid(%s) on %s." % (SCSIid, slave)) resulttext = session.xenapi.host.call_plugin( slave, "on-slave", "refresh_lun_size_by_SCSIid", {'SCSIid': SCSIid }) if "True" == resulttext: util.SMlog("Calling on-slave.refresh_lun_size_by_SCSIid(%s) on" " %s succeeded." % (SCSIid, slave)) else: message = ("Failed in on-slave.refresh_lun_size_by_SCSIid(%s) " "on %s." % (SCSIid, slave)) raise util.SMException("Slave %s failed in on-slave.refresh_lun_" "size_by_SCSIid(%s) " % (slave, SCSIid))
def lvRefreshOnAllSlaves(session, srUuid, vgName, lvName, vdiUuid): slaves = util.get_all_slaves(session) lvRefreshOnSlaves(session, srUuid, vgName, lvName, vdiUuid, slaves)