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))