Exemple #1
0
 def _setup_driver(self):
     self.driver = hbsd_fc.HBSDFCDriver(
         configuration=self.configuration)
     context = None
     db = None
     self.driver.common = hbsd_common.HBSDCommon(
         self.configuration, self.driver, context, db)
Exemple #2
0
 def _setup_driver(self):
     self.driver = hbsd_iscsi.HBSDISCSIDriver(
         configuration=self.configuration)
     context = None
     db = None
     self.driver.common = hbsd_common.HBSDCommon(self.configuration,
                                                 self.driver, context, db)
     self.driver.common.command = hbsd_snm2.HBSDSNM2(self.configuration)
     self.driver.common.horcmgr_flock = \
         self.driver.common.command.set_horcmgr_flock()
Exemple #3
0
 def _setup_driver(self):
     self.driver = hbsd_fc.HBSDFCDriver(configuration=self.configuration)
     context = None
     db = None
     self.driver.common = hbsd_common.HBSDCommon(self.configuration,
                                                 self.driver, context, db)
     self.driver.common.command = hbsd_snm2.HBSDSNM2(self.configuration)
     self.driver.common.pair_flock = \
         self.driver.common.command.set_pair_flock()
     self.driver.do_setup_status.set()
Exemple #4
0
    def do_setup(self, context):
        self.context = context
        self.common = common.HBSDCommon(self.configuration, self, context,
                                        self.db)

        self.check_param()

        self.common.create_lock_file()

        self.common.command.connect_storage()

        lock = basic_lib.get_process_lock(self.common.service_lock_file)
        with lock:
            self.add_hostgroup()

        self.output_param_to_log()
        self.do_setup_status.set()
Exemple #5
0
    def do_setup(self, context):
        self.context = context
        self.common = common.HBSDCommon(self.configuration, self, context,
                                        self.db)
        msg = _("The HBSD iSCSI driver is deprecated and "
                "will be removed in P release")
        versionutils.report_deprecated_feature(LOG, msg)

        self.check_param()

        self.common.create_lock_file()

        self.common.command.connect_storage()

        lock = basic_lib.get_process_lock(self.common.service_lock_file)
        with lock:
            self.add_hostgroup()

        self.output_param_to_log()
        self.do_setup_status.set()