Merge "documentation: follow-up to file:// support in direct deploy"
This commit is contained in:
commit
eb648c1df0
@ -95,15 +95,28 @@ and file URLs (file:///images/img).
|
|||||||
There are however some limitations for different hardware interfaces:
|
There are however some limitations for different hardware interfaces:
|
||||||
|
|
||||||
* If you're using :ref:`direct-deploy` with HTTP(s) URLs, you have to provide
|
* If you're using :ref:`direct-deploy` with HTTP(s) URLs, you have to provide
|
||||||
the Bare Metal service with the MD5 checksum of your instance image.
|
the Bare Metal service with the a checksum of your instance image.
|
||||||
To compute it, you can use the following command::
|
|
||||||
|
|
||||||
md5sum image.qcow2
|
MD5 is used by default for backward compatibility reasons. To compute an MD5
|
||||||
|
checksum, you can use the following command::
|
||||||
|
|
||||||
|
$ md5sum image.qcow2
|
||||||
ed82def8730f394fb85aef8a208635f6 image.qcow2
|
ed82def8730f394fb85aef8a208635f6 image.qcow2
|
||||||
|
|
||||||
|
Alternatively, use a SHA256 checksum or any other algorithm supported by
|
||||||
|
the Python's hashlib_, e.g.::
|
||||||
|
|
||||||
|
$ sha256sum image.qcow2
|
||||||
|
9f6c942ad81690a9926ff530629fb69a82db8b8ab267e2cbd59df417c1a28060 image.qcow2
|
||||||
|
|
||||||
* :ref:`direct-deploy` started supporting ``file://`` images in the Victoria
|
* :ref:`direct-deploy` started supporting ``file://`` images in the Victoria
|
||||||
release cycle, before that only HTTP(s) had been supported.
|
release cycle, before that only HTTP(s) had been supported.
|
||||||
|
|
||||||
|
.. warning::
|
||||||
|
File images must be accessible to every conductor! Use a shared file
|
||||||
|
system if you have more than one conductor. The ironic CLI tool will not
|
||||||
|
transfer the file from a local machine to the conductor(s).
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
The Bare Metal service tracks content changes for non-Glance images by
|
The Bare Metal service tracks content changes for non-Glance images by
|
||||||
checking their modification date and time. For example, for HTTP image,
|
checking their modification date and time. For example, for HTTP image,
|
||||||
@ -112,6 +125,8 @@ There are however some limitations for different hardware interfaces:
|
|||||||
modification time, Ironic will re-download the content. For "file://"
|
modification time, Ironic will re-download the content. For "file://"
|
||||||
images, the file system modification time is used.
|
images, the file system modification time is used.
|
||||||
|
|
||||||
|
.. _hashlib: https://docs.python.org/3/library/hashlib.html
|
||||||
|
|
||||||
Using CLI
|
Using CLI
|
||||||
---------
|
---------
|
||||||
|
|
||||||
@ -183,9 +198,7 @@ Populating instance_info
|
|||||||
(see :doc:`creating-images`):
|
(see :doc:`creating-images`):
|
||||||
|
|
||||||
* ``image_source`` - URL of the whole disk or root partition image,
|
* ``image_source`` - URL of the whole disk or root partition image,
|
||||||
mandatory. For :ref:`direct-deploy` only HTTP(s) links are accepted,
|
mandatory.
|
||||||
while :ref:`iscsi-deploy` also accepts links to local files (prefixed
|
|
||||||
with ``file://``).
|
|
||||||
|
|
||||||
* ``root_gb`` - size of the root partition, required for partition images.
|
* ``root_gb`` - size of the root partition, required for partition images.
|
||||||
|
|
||||||
@ -195,13 +208,18 @@ Populating instance_info
|
|||||||
it for compatibility.
|
it for compatibility.
|
||||||
|
|
||||||
* ``image_checksum`` - MD5 checksum of the image specified by
|
* ``image_checksum`` - MD5 checksum of the image specified by
|
||||||
``image_source``, only required for :ref:`direct-deploy`.
|
``image_source``, only required for ``http://`` images when using
|
||||||
|
:ref:`direct-deploy`.
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
Additional checksum support exists via the ``image_os_hash_algo`` and
|
Additional checksum support exists via the ``image_os_hash_algo`` and
|
||||||
``image_os_hash_value`` fields. They may be used instead of the
|
``image_os_hash_value`` fields. They may be used instead of the
|
||||||
``image_checksum`` field.
|
``image_checksum`` field.
|
||||||
|
|
||||||
|
.. warning::
|
||||||
|
If your operating system is running in FIPS 140-2 mode, MD5 will not be
|
||||||
|
available, and you **must** use SHA256 or another modern algorithm.
|
||||||
|
|
||||||
Starting with the Stein release of ironic-python-agent can also be a URL
|
Starting with the Stein release of ironic-python-agent can also be a URL
|
||||||
to a checksums file, e.g. one generated with:
|
to a checksums file, e.g. one generated with:
|
||||||
|
|
||||||
@ -222,6 +240,16 @@ Populating instance_info
|
|||||||
--instance-info ramdisk=$RAMDISK \
|
--instance-info ramdisk=$RAMDISK \
|
||||||
--instance-info root_gb=10
|
--instance-info root_gb=10
|
||||||
|
|
||||||
|
With a SHA256 hash::
|
||||||
|
|
||||||
|
openstack baremetal node set $NODE_UUID \
|
||||||
|
--instance-info image_source=$IMG \
|
||||||
|
--instance-info image_os_hash_algo=sha256 \
|
||||||
|
--instance-info image_os_hash_value=$SHA256HASH \
|
||||||
|
--instance-info kernel=$KERNEL \
|
||||||
|
--instance-info ramdisk=$RAMDISK \
|
||||||
|
--instance-info root_gb=10
|
||||||
|
|
||||||
With a whole disk image::
|
With a whole disk image::
|
||||||
|
|
||||||
openstack baremetal node set $NODE_UUID \
|
openstack baremetal node set $NODE_UUID \
|
||||||
|
Loading…
Reference in New Issue
Block a user