summaryrefslogtreecommitdiff
path: root/doc/source/drivers/cimc.rst
blob: 583e29df6fc39268e5d788d789e15b5dedc99b87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
.. _CIMC:

============
CIMC drivers
============

Overview
========
The CIMC drivers are targeted for standalone Cisco UCS C series servers.
These drivers enable you to take advantage of CIMC by using the
python SDK.

``pxe_iscsi_cimc`` driver uses PXE boot + iSCSI deploy (just like ``pxe_ipmitool``
driver) to deploy the image and uses CIMC to do all management operations on
the baremetal node (instead of using IPMI).

``pxe_agent_cimc`` driver uses PXE boot + Agent deploy (just like ``agent_ipmitool``
and ``agent_ipminative`` drivers.) to deploy the image and uses CIMC to do all
management operations on the baremetal node (instead of using IPMI). Unlike with
iSCSI deploy in Agent deploy, the ramdisk is responsible for writing the image to
the disk, instead of the conductor.

Prerequisites
=============

* ``ImcSdk`` is a python SDK for the CIMC HTTP/HTTPS XML API used to control
  CIMC.

Install the ``ImcSdk`` module
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. note::

  Install the ``ImcSdk`` module on the Ironic conductor node. Required version is
  0.7.1.

#. Download the tar.gz from: https://communities.cisco.com/docs/DOC-56257

#. Unpack it::

   $ tar xvf ImcSdk-0.7.1.tar.gz

#. Install it::

   $ cd ImcSdk-0.7.1
   $ sudo python setup.py install

Tested Platforms
~~~~~~~~~~~~~~~~
This driver works with UCS C-Series servers and has been tested with:

* UCS C240M3S

Configuring and Enabling the driver
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1. Add ``pxe_iscsi_cimc`` and/or ``pxe_agent_cimc`` to the list of ``enabled_drivers`` in
   ``/etc/ironic/ironic.conf``.  For example::

    enabled_drivers = pxe_ipmitool,pxe_iscsi_cimc,pxe_agent_cimc

2. Restart the Ironic conductor service:

   For Ubuntu/Debian systems::

      $ sudo service ironic-conductor restart

   or for RHEL/CentOS/Fedora::

      $ sudo systemctl restart openstack-ironic-conductor

Registering CIMC Managed UCS node in Ironic
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Nodes configured for CIMC driver should have the ``driver`` property set to
``pxe_iscsi_cimc`` or ``pxe_agent_cimc``.  The following configuration values are
also required in ``driver_info``:

- ``cimc_address``: IP address or hostname for CIMC
- ``cimc_username``: CIMC login user name
- ``cimc_password``: CIMC login password for the above CIMC user.
- ``deploy_kernel``: Identifier for the deployment kernel e.g. a Glance UUID
- ``deploy_ramdisk``: Identifier for the deployment ramdisk e.g. a Glance UUID

The following sequence of commands can be used to enroll a UCS Standalone node.

  Create Node::

    ironic node-create -d <pxe_iscsi_cimc OR pxe_agent_cimc> -i cimc_address=<CIMC hostname OR ip-address> -i cimc_username=<cimc_username> -i cimc_password=<cimc_password> -i deploy_kernel=<glance_uuid_of_deploy_kernel> -i deploy_ramdisk=<glance_uuid_of_deploy_ramdisk> -p cpus=<number_of_cpus> -p memory_mb=<memory_size_in_MB> -p local_gb=<local_disk_size_in_GB> -p cpu_arch=<cpu_arch>

  The above command 'ironic node-create' will return UUID of the node, which is the value of $NODE in the following command.

  Associate port with the node created::

    ironic port-create -n $NODE -a <MAC_address_of_Ucs_server's_NIC>

For more information about enrolling nodes see "Enrolling a node" in the :ref:`install-guide`