def install_sam(self, build): version = build.split("-")[1][:-2] beaker_command = BeakerCMD() job_xml = beaker_command.create_runtime_job(SAM_JOB) beaker_command.update_job_param(job_xml, "/installation/entitlement-qa/Install/sam-latest-install", "VERSION", version) beaker_command.set_beaker_job_name(job_xml, "%s installation" % build) job = beaker_command.job_submit(job_xml) sam_server = beaker_command.check_job_finished(job) beaker_command.post_config_sam(sam_server) return 0, build, sam_server
def start(self, distro=None, sam_build=None, sam_server=None): if distro == None: distro = self.confs._confs["beakerdistro"] if sam_server == None: sam_server = self.confs._confs["samhostname"] sam_ip = self.confs._confs["samhostip"] else: sam_ip = sam_server beaker_command = BeakerCMD() job_xml = beaker_command.create_runtime_job(ESX_JOB) beaker_command.set_beaker_distro_name(job_xml, distro) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/virt-who-esx", "HANDLEGUEST", self.confs._confs["handleguest"]) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/virt-who-esx", "SAMHOSTNAME", sam_server) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/virt-who-esx", "SAMHOSTIP", sam_ip) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/virt-who-esx", "CONFILE", self.confs._confs["confile"]) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/virt-who-esx", "COPYIMAGES", self.confs._confs["copyimages"]) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/virt-who-esx", "VCENTERMACHINE_IP", self.confs._confs["vcentermachine_ip"]) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/virt-who-esx", "VCENTERMACHINE_USERNAME", self.confs._confs["vcentermachine_username"]) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/virt-who-esx", "VCENTERMACHINE_PASSWORD", self.confs._confs["vcentermachine_password"]) beaker_command.set_beaker_job_name( job_xml, "Host/guest association test on ESX against %s" % (sam_build)) if beaker_command.get_rhel_version(distro) == 5: RHEL5_PACKAGES.append("@kvm") beaker_command.set_packages(job_xml, RHEL5_PACKAGES) beaker_command.set_beaker_distro_variant(job_xml, "") else: beaker_command.set_packages(job_xml, PACKAGES) beaker_command.job_submit(job_xml)
def start(self, distro=None, sam_build=None, sam_server=None): if distro == None: distro = self.confs._confs["beakerdistro"] if sam_server == None: sam_server = self.confs._confs["samhostname"] sam_ip = self.confs._confs["samhostip"] else: sam_ip = sam_server beaker_command = BeakerCMD() job_xml = beaker_command.create_runtime_job(RHSM_JOB) beaker_command.set_beaker_distro_name(job_xml, distro) beaker_command.set_beaker_job_name( job_xml, "RHSM GUI testing on %s against %s" % (distro, sam_build)) if beaker_command.get_rhel_version(distro) == 7: RHEL7_PACKAGES.extend(GUI_PACKAGES) beaker_command.set_packages(job_xml, RHEL7_PACKAGES) else: PACKAGES.extend(GUI_PACKAGES) beaker_command.set_packages(job_xml, PACKAGES) beaker_command.update_task( job_xml, "/distribution/entitlement-qa/Regression/rhsm", "/installation/entitlement-qa/Regression/rhsm-gui") beaker_command.update_job_param( job_xml, "/installation/entitlement-qa/Regression/rhsm-gui", "RUN_SERVER", "sam") beaker_command.update_job_param( job_xml, "/installation/entitlement-qa/Regression/rhsm-gui", "RUN_LEVEL", "rhsm_gui") beaker_command.update_job_param( job_xml, "/installation/entitlement-qa/Regression/rhsm-gui", "SAM_IP", sam_ip) beaker_command.update_job_param( job_xml, "/installation/entitlement-qa/Regression/rhsm-gui", "SAM_HOSTNAME", sam_server) job = beaker_command.job_submit(job_xml)
def start(self, distro=None, sam_build=None, sam_server=None): if distro == None: distro = self.confs._confs["beakerdistro"] if sam_server == None: sam_server = self.confs._confs["samhostname"] sam_ip = self.confs._confs["samhostip"] else: sam_ip = sam_server beaker_command = BeakerCMD() if beaker_command.get_rhel_version(distro) == 5: RHEL5_PACKAGES.append("@xen") job_xml = beaker_command.create_runtime_job(KVM_JOB) beaker_command.set_beaker_distro_name(job_xml, distro) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/virt-who", "HANDLEGUEST", self.confs._confs["handleguest"], ) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/virt-who", "SAMHOSTNAME", sam_server ) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/virt-who", "SAMHOSTIP", sam_ip ) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/virt-who", "CONFILE", self.confs._confs["confile"] ) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/virt-who", "COPYIMAGES", self.confs._confs["copyimages"], ) beaker_command.set_packages(job_xml, RHEL5_PACKAGES) beaker_command.set_beaker_job_name( job_xml, "Host/guest association test on %s(XEN/FV) against %s" % (distro, sam_build) ) beaker_command.set_beaker_distro_variant(job_xml, "") beaker_command.job_submit(job_xml)
def start(self, distro=None, sam_build=None, sam_server=None): if distro == None: distro = self.confs._confs["beakerdistro"] if sam_server == None: sam_server = self.confs._confs["samhostname"] sam_ip = self.confs._confs["samhostip"] else: sam_ip = sam_server beaker_command = BeakerCMD() # KVM/XEN hypervisor if beaker_command.get_rhel_version(distro) == 5: # packages = RHEL5_PACKAGES # if self.confs._confs["hypervisor"] == "xen": # packages.append("@xen") # else: # packages.append("@kvm") # beaker_command.set_beaker_distro_variant(job_xml, "") packages = RHEL5_PACKAGES import copy packages_kvm = copy.copy(packages) packages_kvm.append("@kvm") packages_xen = copy.copy(packages) packages_xen.append("@xen") # kvm run job_xml = beaker_command.create_runtime_job(KVM_JOB) beaker_command.set_beaker_distro_name(job_xml, distro) beaker_command.update_job_param(job_xml, "/distribution/entitlement-qa/Regression/virt-who", "HANDLEGUEST", self.confs._confs["handleguest"]) beaker_command.update_job_param(job_xml, "/distribution/entitlement-qa/Regression/virt-who", "SAMHOSTNAME", sam_server) beaker_command.update_job_param(job_xml, "/distribution/entitlement-qa/Regression/virt-who", "SAMHOSTIP", sam_ip) beaker_command.update_job_param(job_xml, "/distribution/entitlement-qa/Regression/virt-who", "CONFILE", self.confs._confs["confile"]) beaker_command.update_job_param(job_xml, "/distribution/entitlement-qa/Regression/virt-who", "COPYIMAGES", self.confs._confs["copyimages"]) beaker_command.set_packages(job_xml, packages_kvm) beaker_command.set_beaker_job_name(job_xml, "Host/guest association test on %s(KVM) against %s" % (distro, sam_build)) beaker_command.set_beaker_distro_variant(job_xml, "") beaker_command.job_submit(job_xml) # xen fv run job_xml = beaker_command.create_runtime_job(KVM_JOB) beaker_command.set_beaker_distro_name(job_xml, distro) beaker_command.update_job_param(job_xml, "/distribution/entitlement-qa/Regression/virt-who", "HANDLEGUEST", self.confs._confs["handleguest_fv"]) beaker_command.update_job_param(job_xml, "/distribution/entitlement-qa/Regression/virt-who", "SAMHOSTNAME", sam_server) beaker_command.update_job_param(job_xml, "/distribution/entitlement-qa/Regression/virt-who", "SAMHOSTIP", sam_ip) beaker_command.update_job_param(job_xml, "/distribution/entitlement-qa/Regression/virt-who", "CONFILE", self.confs._confs["confile_xen"]) beaker_command.update_job_param(job_xml, "/distribution/entitlement-qa/Regression/virt-who", "COPYIMAGES", self.confs._confs["copyimages"]) beaker_command.set_packages(job_xml, packages_xen) beaker_command.set_beaker_job_name(job_xml, "Host/guest association test on %s(XEN/FV) against %s" % (distro, sam_build)) beaker_command.set_beaker_distro_variant(job_xml, "") beaker_command.job_submit(job_xml) # xen pv run job_xml = beaker_command.create_runtime_job(KVM_JOB) beaker_command.set_beaker_distro_name(job_xml, distro) beaker_command.update_job_param(job_xml, "/distribution/entitlement-qa/Regression/virt-who", "HANDLEGUEST", self.confs._confs["handleguest_pv"]) beaker_command.update_job_param(job_xml, "/distribution/entitlement-qa/Regression/virt-who", "SAMHOSTNAME", sam_server) beaker_command.update_job_param(job_xml, "/distribution/entitlement-qa/Regression/virt-who", "SAMHOSTIP", sam_ip) beaker_command.update_job_param(job_xml, "/distribution/entitlement-qa/Regression/virt-who", "CONFILE", self.confs._confs["confile_xen"]) beaker_command.update_job_param(job_xml, "/distribution/entitlement-qa/Regression/virt-who", "COPYIMAGES", self.confs._confs["copyimages"]) beaker_command.set_packages(job_xml, packages_xen) beaker_command.set_beaker_job_name(job_xml, "Host/guest association test on %s(XEN/PV) against %s" % (distro, sam_build)) beaker_command.set_beaker_distro_variant(job_xml, "") beaker_command.job_submit(job_xml) else: packages = PACKAGES job_xml = beaker_command.create_runtime_job(KVM_JOB) beaker_command.set_beaker_distro_name(job_xml, distro) beaker_command.update_job_param(job_xml, "/distribution/entitlement-qa/Regression/virt-who", "HANDLEGUEST", self.confs._confs["handleguest"]) beaker_command.update_job_param(job_xml, "/distribution/entitlement-qa/Regression/virt-who", "SAMHOSTNAME", sam_server) beaker_command.update_job_param(job_xml, "/distribution/entitlement-qa/Regression/virt-who", "SAMHOSTIP", sam_ip) beaker_command.update_job_param(job_xml, "/distribution/entitlement-qa/Regression/virt-who", "CONFILE", self.confs._confs["confile"]) beaker_command.update_job_param(job_xml, "/distribution/entitlement-qa/Regression/virt-who", "COPYIMAGES", self.confs._confs["copyimages"]) beaker_command.set_packages(job_xml, packages) beaker_command.set_beaker_job_name(job_xml, "Host/guest association test on %s(KVM) against %s" % (distro, sam_build)) beaker_command.job_submit(job_xml)
def start(self, distro=None, run_level="rhsm_level_1"): if distro == None: distro = self.confs._confs["beakerdistro"] beaker_command = BeakerCMD() job_xml = beaker_command.create_runtime_job(RHSM_JOB) beaker_command.set_beaker_distro_name(job_xml, distro) beaker_command.set_beaker_job_name( job_xml, "RHSM testing(%s) on %s against Stage Candlepin" % (run_level, distro)) if beaker_command.get_rhel_version(distro) == 7: beaker_command.set_packages(job_xml, RHEL7_PACKAGES) else: beaker_command.set_packages(job_xml, PACKAGES) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/rhsm", "RUN_SERVER", "stage") beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/rhsm", "RUN_LEVEL", run_level) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/rhsm", "STAGE_NAME", "subscription.rhn.stage.redhat.com") job = beaker_command.job_submit(job_xml)
def install_sam(self, build): version = build.split("-")[1][:-2] beaker_command = BeakerCMD() job_xml = beaker_command.create_runtime_job(SAM_JOB) beaker_command.update_job_param( job_xml, "/installation/entitlement-qa/Install/sam-latest-install", "VERSION", version) beaker_command.set_beaker_job_name(job_xml, "%s installation" % build) job = beaker_command.job_submit(job_xml) sam_server = beaker_command.check_job_finished(job) beaker_command.post_config_sam(sam_server) return 0, build, sam_server
def start(self, distro=None, sam_build=None, sam_server=None): if distro == None: distro = self.confs._confs["beakerdistro"] if sam_server == None: sam_server = self.confs._confs["samhostname"] sam_ip = self.confs._confs["samhostip"] else: sam_ip = sam_server beaker_command = BeakerCMD() # KVM/XEN hypervisor if beaker_command.get_rhel_version(distro) == 5: # packages = RHEL5_PACKAGES # if self.confs._confs["hypervisor"] == "xen": # packages.append("@xen") # else: # packages.append("@kvm") # beaker_command.set_beaker_distro_variant(job_xml, "") packages = RHEL5_PACKAGES import copy packages_kvm = copy.copy(packages) packages_kvm.append("@kvm") packages_xen = copy.copy(packages) packages_xen.append("@xen") # kvm run job_xml = beaker_command.create_runtime_job(KVM_JOB) beaker_command.set_beaker_distro_name(job_xml, distro) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/virt-who", "HANDLEGUEST", self.confs._confs["handleguest"]) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/virt-who", "SAMHOSTNAME", sam_server) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/virt-who", "SAMHOSTIP", sam_ip) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/virt-who", "CONFILE", self.confs._confs["confile"]) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/virt-who", "COPYIMAGES", self.confs._confs["copyimages"]) beaker_command.set_packages(job_xml, packages_kvm) beaker_command.set_beaker_job_name( job_xml, "Host/guest association test on %s(KVM) against %s" % (distro, sam_build)) beaker_command.set_beaker_distro_variant(job_xml, "") beaker_command.job_submit(job_xml) # xen fv run job_xml = beaker_command.create_runtime_job(KVM_JOB) beaker_command.set_beaker_distro_name(job_xml, distro) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/virt-who", "HANDLEGUEST", self.confs._confs["handleguest_fv"]) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/virt-who", "SAMHOSTNAME", sam_server) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/virt-who", "SAMHOSTIP", sam_ip) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/virt-who", "CONFILE", self.confs._confs["confile_xen"]) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/virt-who", "COPYIMAGES", self.confs._confs["copyimages"]) beaker_command.set_packages(job_xml, packages_xen) beaker_command.set_beaker_job_name( job_xml, "Host/guest association test on %s(XEN/FV) against %s" % (distro, sam_build)) beaker_command.set_beaker_distro_variant(job_xml, "") beaker_command.job_submit(job_xml) # xen pv run job_xml = beaker_command.create_runtime_job(KVM_JOB) beaker_command.set_beaker_distro_name(job_xml, distro) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/virt-who", "HANDLEGUEST", self.confs._confs["handleguest_pv"]) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/virt-who", "SAMHOSTNAME", sam_server) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/virt-who", "SAMHOSTIP", sam_ip) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/virt-who", "CONFILE", self.confs._confs["confile_xen"]) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/virt-who", "COPYIMAGES", self.confs._confs["copyimages"]) beaker_command.set_packages(job_xml, packages_xen) beaker_command.set_beaker_job_name( job_xml, "Host/guest association test on %s(XEN/PV) against %s" % (distro, sam_build)) beaker_command.set_beaker_distro_variant(job_xml, "") beaker_command.job_submit(job_xml) else: packages = PACKAGES job_xml = beaker_command.create_runtime_job(KVM_JOB) beaker_command.set_beaker_distro_name(job_xml, distro) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/virt-who", "HANDLEGUEST", self.confs._confs["handleguest"]) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/virt-who", "SAMHOSTNAME", sam_server) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/virt-who", "SAMHOSTIP", sam_ip) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/virt-who", "CONFILE", self.confs._confs["confile"]) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/virt-who", "COPYIMAGES", self.confs._confs["copyimages"]) beaker_command.set_packages(job_xml, packages) beaker_command.set_beaker_job_name( job_xml, "Host/guest association test on %s(KVM) against %s" % (distro, sam_build)) beaker_command.job_submit(job_xml)
def start(self, distro=None, sam_build=None, sam_server=None, run_level="rhsm_level_1"): if distro == None: distro = self.confs._confs["beakerdistro"] if sam_server == None: sam_server = self.confs._confs["samhostname"] sam_ip = self.confs._confs["samhostip"] else: sam_ip = sam_server beaker_command = BeakerCMD() job_xml = beaker_command.create_runtime_job(RHSM_JOB) beaker_command.set_beaker_distro_name(job_xml, distro) beaker_command.set_beaker_job_name( job_xml, "RHSM testing(%s) on %s against %s" % (run_level, distro, sam_build) ) if beaker_command.get_rhel_version(distro) == 7: beaker_command.set_packages(job_xml, RHEL7_PACKAGES) else: beaker_command.set_packages(job_xml, PACKAGES) beaker_command.update_job_param(job_xml, "/distribution/entitlement-qa/Regression/rhsm", "RUN_SERVER", "sam") beaker_command.update_job_param(job_xml, "/distribution/entitlement-qa/Regression/rhsm", "RUN_LEVEL", run_level) beaker_command.update_job_param(job_xml, "/distribution/entitlement-qa/Regression/rhsm", "SAM_IP", sam_ip) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/rhsm", "SAM_HOSTNAME", sam_server ) job = beaker_command.job_submit(job_xml)
def start(self, distro=None, sam_build=None, sam_server=None): if distro == None: distro = self.confs._confs["beakerdistro"] if sam_server == None: sam_server = self.confs._confs["samhostname"] sam_ip = self.confs._confs["samhostip"] else: sam_ip = sam_server beaker_command = BeakerCMD() if beaker_command.get_rhel_version(distro) == 5: RHEL5_PACKAGES.append("@xen") job_xml = beaker_command.create_runtime_job(KVM_JOB) beaker_command.set_beaker_distro_name(job_xml, distro) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/virt-who", "HANDLEGUEST", self.confs._confs["handleguest"]) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/virt-who", "SAMHOSTNAME", sam_server) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/virt-who", "SAMHOSTIP", sam_ip) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/virt-who", "CONFILE", self.confs._confs["confile"]) beaker_command.update_job_param( job_xml, "/distribution/entitlement-qa/Regression/virt-who", "COPYIMAGES", self.confs._confs["copyimages"]) beaker_command.set_packages(job_xml, RHEL5_PACKAGES) beaker_command.set_beaker_job_name( job_xml, "Host/guest association test on %s(XEN/PV) against %s" % (distro, sam_build)) beaker_command.set_beaker_distro_variant(job_xml, "") beaker_command.job_submit(job_xml)