Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
IloVirtualMediaIscsi deploy driver
This commit introduces a new iLo deploy driver which uses virtual media to boot up proliant baremetal nodes, and uses iSCSI to deploy the baremetal nodes. Change-Id: I98f47ed6082a3a28fce3148f6d5177cdb5c61881 Implements: blueprint ironic-ilo-virtualmedia-driver
- Loading branch information
1 parent
1773bcd
commit 571579a
Showing
14 changed files
with
1,380 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Copyright 2014 Hewlett-Packard Development Company, L.P. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); you may | ||
# not use this file except in compliance with the License. You may obtain | ||
# a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
# License for the specific language governing permissions and limitations | ||
# under the License. | ||
""" | ||
iLO Driver for managing HP Proliant Gen8 and above servers. | ||
""" | ||
|
||
from oslo.utils import importutils | ||
|
||
from ironic.common import exception | ||
from ironic.common.i18n import _ | ||
from ironic.drivers import base | ||
from ironic.drivers.modules.ilo import deploy | ||
from ironic.drivers.modules.ilo import power | ||
from ironic.drivers.modules import ipmitool | ||
|
||
|
||
class IloVirtualMediaIscsiDriver(base.BaseDriver): | ||
"""IloDriver using IloClient interface. | ||
This driver implements the `core` functionality using | ||
:class:ironic.drivers.modules.ilo.power.IloPower for power management. | ||
and | ||
:class:ironic.drivers.modules.ilo.deploy.IloVirtualMediaIscsiDeploy for | ||
deploy. | ||
""" | ||
|
||
def __init__(self): | ||
if not importutils.try_import('proliantutils'): | ||
raise exception.DriverLoadError( | ||
driver=self.__class__.__name__, | ||
reason=_("Unable to import proliantutils library")) | ||
|
||
self.power = power.IloPower() | ||
self.deploy = deploy.IloVirtualMediaIscsiDeploy() | ||
self.console = ipmitool.IPMIShellinaboxConsole() | ||
self.management = ipmitool.IPMIManagement() | ||
self.vendor = deploy.VendorPassthru() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.