예제 #1
0
파일: proxy.py 프로젝트: haluomao/nova
 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
예제 #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
예제 #3
0
파일: driver.py 프로젝트: 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
예제 #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
예제 #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()
예제 #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()
예제 #7
0
파일: proxy.py 프로젝트: derekhiggins/nova
 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
예제 #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