15 Commits

Author SHA1 Message Date
Yuriy Zveryanskyy
84b1b0d34e [ansible] Add basic root device hints support
This patch adds support for Ironic root hints to ansible deploy driver.

The advanced root hints based on oslo.utils operators are not supported yet,
only exact matches.

Change-Id: I6fd468cfa9a7792fa0e55aa58c337396e13d76ee
2017-06-16 19:25:58 +00:00
Pavlo Shchelokovskyy
1d6b1b89d2 [ansible] Improve partition images support
- partitioning scheme now closer resembles what's being done by IPA

  - for partition images the root partition is last so that it can grow
  - for whole-disk images, configdrive is created as far as possible

- added support for setting disk label for created partition table,
  supported are 'gpt' and 'msdos' (default)

  - for 'gpt' disks, a bios_grub partiton is prepended to standard ones

- 'parted' module for Ansible was renamed to ``ironic_parted`` to not
  shadow ``parted`` module included in Ansible 2.3
  It was also rewritten to be cleaner and more stable:

  - changed accepted module arguments
  - added support for units (MiB and % for now)
  - added more validations
  - left support for msdos and gpt partition tables only
  - partitions are created one by one, and actual block devices created
    are searched for and reported.
  - module returns only after all partitions are available for write

Change-Id: I4d6d7619c6f3ba25c29263ffe5d778698e598429
2017-06-16 19:25:51 +00:00
Pavlo Shchelokovskyy
b963a18c63 [ansible] Major changes in playbooks "API"
Possibly existing out-of-tree playbooks will be imcompatible
with this version and must be rewritten!

Changes include:

- all info passed into ansible playbooks from ironic is now available in
  the playbooks as elements of 'ironic' dictionary to better differentiate
  those from other vars possibly created/set inside playbooks.

- any field of node's instance_info having a form of "image_<field>"
  is now available in playbooks as "ironic.image.<field>" var.

- 'parted' tag in playbooks is removed and instead differentiation
  between partition and whole-disk imaged is being done based on
  ironic.image.type var value.

- 'shutdown' tag is removed, and soft power-off is moved to a separate
  playbook, defined by new driver_info field 'ansible_shutdown_playbook'
  ('shutdown.yaml' by default)

- default 'deploy' role is split into smaller roles,
  each targeting a separate stage of deployment process
  to faciliate customiation and re-use

    - discover - e.g. set root device and image target
    - prepare - if needed, prepare system, e.g. create partitions
    - deploy - download/convert/write user image and configdrive
    - configure - post-deployment steps, e.g. installing the bootloader

Documentation is updated.

Change-Id: I158a96d26dc9a114b6b607267c13e3ee1939cac9
2017-06-12 13:47:18 +00:00
Pavlo Shchelokovskyy
209e6a4da6 Add documentation for ansible-deploy driver
Change-Id: Ieb61ccda30cc31434ffe3a0ec7d1a85ca0f7988f
Related-Bug: #1526308
2016-11-09 14:49:25 +00:00
Pavlo Shchelokovskyy
c82b63c423 Add docs for Intel NM vendor passthru driver
Change-Id: I917176d90ba4aacb73a18eff46863716ff8a14e8
2016-10-10 13:40:28 +03:00
Pavlo Shchelokovskyy
21df4aec85 [Docs] give example of dev libvirt pkg name
as examples, point to appropriate names for Ubuntu and Fedora.

Change-Id: Icaa81a250220d2a26bdcc02886c25247fcf91884
2016-09-19 21:33:36 +03:00
Jenkins
7bfbfcf5fa Merge "Add docs for libvirt driver" 2016-09-19 17:48:10 +00:00
Pavlo Shchelokovskyy
f333dbfab4 Add docs for libvirt driver
Change-Id: Ie9a164818645562e7e7140113f9ebeb5e9eee4c8
2016-08-29 16:35:40 +03:00
Pavlo Shchelokovskyy
b993e8c281 Fix reference in WoL driver docs
There is an internal Ironic docs reference left after moving
this driver from Ironic repo, which does not work and produces warnings
during docs build.

Change-Id: I8111d90b530708b3a0ce00361ae532b933553536
2016-08-25 14:47:26 +03:00
Lucas Alvares Gomes
6e8fc9fc4d Add iBoot driver
This patch is importing the iBoot driver and its documentation from
ironic to ironic-staging-driver.

Since we can't have duplicated entry points in setuptools we had to
rename the driver names as following:

pxe_iboot   -> pxe_iboot_iscsi
agent_iboot -> pxe_iboot_agent
fake_iboot  -> fake_iboot_fake

Change-Id: I2783b8e65408811858ffb00c372aa7ae269ad75b
2016-08-10 16:04:28 +01:00
Lin Tan
5215fb6bb9 Improve the readability of AMT doc
Change-Id: I53de692f77c9b4eb5a1a629de4b6265d886eec0d
2016-03-31 14:15:57 +08:00
Lin Tan
79217fcaee Add amt driver
This patch is importing the amt driver and the documentation.

Change-Id: Ief024a4b21dcfdfaa2e2799c44f96044caef49b2
2016-03-24 10:48:12 +08:00
Lucas Alvares Gomes
5ad7c7c925 Add Wake-On-Lan driver
This patch is importing the Wake-On-Lan (WOL) driver and its documentation
from ironic to ironic-staging-driver.

Since we can't have duplicated entry points in setuptools we had to
rename the driver names as following:

pxe_wol   -> pxe_wol_iscsi
agent_wol -> pxe_wol_agent
fake_wol  -> fake_wol_fake

This patch is using the "<boot>_<power>_<deploy>" template to name the
drivers consistently.

Change-Id: I2b051494fdba7bf6ca30d8f7bb406511bf7d4d76
2016-02-23 14:36:59 +00:00
Lucas Alvares Gomes
52e5a3a766 Add the version.py module
This commit is adding the version.py module for ironic-staging-drivers
and updating the doc/source/conf.py configuration file to use the new
version module.

Change-Id: If845ebb4ca35293a1cd4bd1a42e93999cb919777
2016-02-05 16:54:56 +00:00
Lucas Alvares Gomes
a27e38e50c Skeleton initial commit
Change-Id: I6b2c34135c79931defaccc6480e382f54a95d9a6
2016-01-26 12:48:24 +00:00