Example #1
0
 def __init__(self, read_only):
     # Note that baremetal doesn't have a read-only connection
     # mode, so the read_only parameter is ignored
     super(ProxyConnection, self).__init__()
     self.baremetal_nodes = nodes.get_baremetal_nodes()
     self._wrapped_conn = None
     self._host_state = None
Example #2
0
 def __init__(self, read_only):
     # Note that baremetal doesn't have a read-only connection
     # mode, so the read_only parameter is ignored
     super(ProxyConnection, self).__init__()
     self.baremetal_nodes = nodes.get_baremetal_nodes()
     self._wrapped_conn = None
     self._host_state = None
Example #3
0
File: driver.py Project: rbumg/nova
 def __init__(self, read_only):
     _late_load_cheetah()
     # Note that baremetal doesn't have a read-only connection
     # mode, so the read_only parameter is ignored
     super(BareMetalDriver, self).__init__()
     self.baremetal_nodes = nodes.get_baremetal_nodes()
     self._wrapped_conn = None
     self._host_state = None
Example #4
0
 def __init__(self, read_only):
     _late_load_cheetah()
     # Note that baremetal doesn't have a read-only connection
     # mode, so the read_only parameter is ignored
     super(BareMetalDriver, self).__init__()
     self.baremetal_nodes = nodes.get_baremetal_nodes()
     self._wrapped_conn = None
     self._host_state = None
Example #5
0
    def __init__(self, fake_dom_file="/tftpboot/test_fake_dom_file"):
        """
        Only call __init__ the first time object is instantiated.

        Sets and Opens domain file: /tftpboot/test_fake_dom_file. Even though
        nova-compute service is rebooted, this file should retain the
        existing domains.
        """
        if self._is_init:
            return
        self._is_init = True

        self.fake_dom_file = fake_dom_file
        self.domains = []
        self.fake_dom_nums = 0
        self.baremetal_nodes = nodes.get_baremetal_nodes()

        self._read_domain_from_file()
Example #6
0
    def __init__(self, fake_dom_file="/tftpboot/test_fake_dom_file"):
        """
        Only call __init__ the first time object is instantiated.

        Sets and Opens domain file: /tftpboot/test_fake_dom_file. Even though
        nova-compute service is rebooted, this file should retain the
        existing domains.
        """
        if self._is_init:
            return
        self._is_init = True

        self.fake_dom_file = fake_dom_file
        self.domains = []
        self.fake_dom_nums = 0
        self.baremetal_nodes = nodes.get_baremetal_nodes()

        self._read_domain_from_file()
Example #7
0
 def __init__(self, read_only):
     super(ProxyConnection, self).__init__()
     self.baremetal_nodes = nodes.get_baremetal_nodes()
     self._wrapped_conn = None
     self.read_only = read_only
     self._host_state = None
Example #8
0
 def __init__(self, read_only):
     super(ProxyConnection, self).__init__()
     self.baremetal_nodes = nodes.get_baremetal_nodes()
     self._wrapped_conn = None
     self.read_only = read_only
     self._host_state = None