def METHOD_NAME(self):
    self.log.debug("PilotCommand doMaster")
    siteNames = getSites()
    if not siteNames["OK"]:
        return siteNames
    siteNames = siteNames["Value"]
    res = getCESiteMapping()
    if not res["OK"]:
        return res
    ces = list(res["Value"])
    pilotResults = self.doNew(("Site", siteNames))
    if not pilotResults["OK"]:
        self.metrics["failed"].append(pilotResults["Message"])
    pilotResults = self.doNew(("Resource", ces))
    if not pilotResults["OK"]:
        self.metrics["failed"].append(pilotResults["Message"])
    return S_OK(self.metrics)