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')
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()
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')
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)
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)
def __init__(self): self.power = ssh.SSHPower() self.deploy = fake.FakeDeploy() self.management = ssh.SSHManagement() self.console = ssh.ShellinaboxConsole()
def __init__(self): self.power = ssh.SSHPower() self.deploy = fake.FakeDeploy() self.management = ssh.SSHManagement()
def __init__(self): self.power = ssh.SSHPower() self.deploy = pxe.PXEDeploy() self.management = ssh.SSHManagement() self.vendor = pxe.VendorPassthru()
def __init__(self): self.power = ssh.SSHPower() self.deploy = fake.FakeDeploy()
def __init__(self): self.power = ssh.SSHPower() self.deploy = pxe.PXEDeploy() self.rescue = self.deploy self.vendor = pxe.VendorPassthru()
def __init__(self): self.power = ssh.SSHPower() self.deploy = agent.AgentDeploy() self.management = ssh.SSHManagement() self.vendor = agent.AgentVendorInterface()
def __init__(self): self.power = ssh.SSHPower() self.boot = pxe.PXEBoot() self.deploy = ansible_deploy.AnsibleDeploy() self.management = ssh.SSHManagement()
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()