Example #1
0
 def __init__(self):
     self.power = ssh.SSHPower()
     self.deploy = pxe.PXEDeploy()
     self.management = ssh.SSHManagement()
     self.vendor = pxe.VendorPassthru()
     self.inspect = inspector.Inspector.create_if_enabled(
         'PXEAndSSHDriver')
Example #2
0
 def __init__(self):
     self.power = ssh.SSHPower()
     self.boot = pxe.PXEBoot()
     self.deploy = iscsi_deploy.ISCSIDeploy()
     self.management = ssh.SSHManagement()
     self.inspect = inspector.Inspector.create_if_enabled('PXEAndSSHDriver')
     self.raid = agent.AgentRAID()
     self.console = ssh.ShellinaboxConsole()
 def __init__(self):
     self.power = ssh.SSHPower()
     self.boot = pxe.PXEBoot()
     self.deploy = iscsi_deploy.ISCSIDeploy()
     self.management = ssh.SSHManagement()
     self.vendor = iscsi_deploy.VendorPassthru()
     self.inspect = inspector.Inspector.create_if_enabled('PXEAndSSHDriver')
     self.raid = agent.AgentRAID()
     self.console = ssh.get_console_driver()
Example #4
0
 def __init__(self):
     self.power = ssh.SSHPower()
     self.boot = pxe.PXEBoot()
     self.deploy = agent.AgentDeploy()
     self.management = ssh.SSHManagement()
     self.vendor = agent.AgentVendorInterface()
     self.raid = agent.AgentRAID()
     self.inspect = inspector.Inspector.create_if_enabled(
         'AgentAndSSHDriver')
Example #5
0
 def test_update_dhcp_set_sleep_and_ssh(self, mock_gnvi, mock_updo,
                                        mock_ts):
     mock_gnvi.return_value = {'ports': {'port-uuid': 'vif-uuid'},
                               'portgroups': {}}
     self.config(port_setup_delay=30, group='neutron')
     with task_manager.acquire(self.context,
                               self.node.uuid) as task:
         task.driver.power = ssh.SSHPower()
         opts = pxe_utils.dhcp_options_for_instance(task)
         api = dhcp_factory.DHCPFactory()
         api.update_dhcp(task, opts)
         mock_ts.assert_called_with(30)
     mock_updo.assert_called_once_with(mock.ANY, 'vif-uuid', opts,
                                       token=self.context.auth_token)
Example #6
0
 def test_update_dhcp_unset_sleep_and_ssh(self, mock_gnvi, mock_updo,
                                          mock_ts, mock_log):
     mock_gnvi.return_value = {'ports': {'port-uuid': 'vif-uuid'},
                               'portgroups': {}}
     with task_manager.acquire(self.context,
                               self.node.uuid) as task:
         opts = pxe_utils.dhcp_options_for_instance(task)
         task.driver.power = ssh.SSHPower()
         api = dhcp_factory.DHCPFactory()
         api.update_dhcp(task, opts)
         self.assertTrue(mock_log.warning.called)
         self.assertIn('Setting the port delay to 15 for SSH',
                       mock_log.warning.call_args[0][0])
         mock_ts.assert_called_with(15)
     mock_updo.assert_called_once_with(mock.ANY, 'vif-uuid', opts,
                                       token=self.context.auth_token)
Example #7
0
 def __init__(self):
     self.power = ssh.SSHPower()
     self.deploy = fake.FakeDeploy()
     self.management = ssh.SSHManagement()
     self.console = ssh.ShellinaboxConsole()
Example #8
0
 def __init__(self):
     self.power = ssh.SSHPower()
     self.deploy = fake.FakeDeploy()
     self.management = ssh.SSHManagement()
Example #9
0
 def __init__(self):
     self.power = ssh.SSHPower()
     self.deploy = pxe.PXEDeploy()
     self.management = ssh.SSHManagement()
     self.vendor = pxe.VendorPassthru()
Example #10
0
 def __init__(self):
     self.power = ssh.SSHPower()
     self.deploy = fake.FakeDeploy()
Example #11
0
 def __init__(self):
     self.power = ssh.SSHPower()
     self.deploy = pxe.PXEDeploy()
     self.rescue = self.deploy
     self.vendor = pxe.VendorPassthru()
Example #12
0
 def __init__(self):
     self.power = ssh.SSHPower()
     self.deploy = agent.AgentDeploy()
     self.management = ssh.SSHManagement()
     self.vendor = agent.AgentVendorInterface()
Example #13
0
 def __init__(self):
     self.power = ssh.SSHPower()
     self.boot = pxe.PXEBoot()
     self.deploy = ansible_deploy.AnsibleDeploy()
     self.management = ssh.SSHManagement()
Example #14
0
 def __init__(self):
     self.power = ssh.SSHPower()
     self.deploy = fuel_agent.FuelAgentDeploy()
     self.management = ssh.SSHManagement()
     self.vendor = fuel_agent.FuelAgentVendor()
 def __init__(self):
     self.power = ssh.SSHPower()
     self.deploy = fake.FakeDeploy()
     self.management = ssh.SSHManagement()
     self.console = ssh.get_console_driver()