def setUpClass(self): super(TestPhysicalVols, self).setUpClass() self.logging.info("--> TestPhysicalVols.setUpClass()") self.logging.debug("enable and partition the eckd" "device specified in config file") bus_id = utils.readconfig(self, "config", "DASDdevs", "bus_id") try: utils.enable_eckd(bus_id) self.dev = utils.fetch_dasd_dev(bus_id) # utils.format_eckd(self.dev) utils.partition_eckd(self.dev) time.sleep(5) except Exception, err: self.logging.error(str(err)) raise Exception(str(err))
def setUpClass(self): super(TestLogicalVols, self).setUpClass() self.logging.info('--> TestLogicalVols.setUpClass()') self.logging.debug('creating pv and vg on the eckd' 'device specified in config file') bus_id = utils.readconfig(self, 'config', 'DASDdevs', 'bus_id') try: utils.enable_eckd(bus_id) self.dev = utils.fetch_dasd_dev(bus_id) #utils.format_eckd(self.dev) utils.partition_eckd(self.dev) time.sleep(5) utils.create_pv(self.dev+'1') self.vgname = utils.readconfig(self, 'config', 'LV', 'vgname') utils.create_vg(self.vgname, self.dev+'1') except Exception, err: self.logging.error(str(err)) raise Exception(str(err))
def setUpClass(self): super(TestFilesystems, self).setUpClass() self.logging.info('--> TestFilesystems.setUpClass()') self.logging.debug('enabling and formatting the eckd' 'device specified in config file') bus_id = utils.readconfig(self, 'config', 'DASDdevs', 'bus_id') try: utils.enable_eckd(bus_id) self.dev = utils.fetch_dasd_dev(bus_id) #utils.format_eckd(self.dev) utils.partition_eckd(self.dev) time.sleep(5) utils.format_part_with_fs(self.dev+'1', 'ext4') self.mountpt = utils.readconfig(self, 'config', 'FILESYSTEM', 'mount_point') utils.create_mount_point(self.mountpt) self.server = 'localhost' self.nfs_share = utils.readconfig(self, 'config', 'FILESYSTEM', 'nfs_share') self.nfs_mount_pt = utils.readconfig(self, 'config', 'FILESYSTEM', 'nfs_mntpt') utils.nfs_setup(self.nfs_share, self.nfs_mount_pt) except Exception, err: self.logging.error(str(err)) raise Exception(str(err))