Provision nodes with Ironic+Mistral/Ansible without Nova

Registered by Dmitry Tantsur on 2018-05-03

Making TripleO workflows use Ironic directly to provision nodes has quite a few benefits:
1. First and foremost, getting rid of the horrible "no valid hosts found" exception. The scheduling will be much simpler and the errors will be clearer.
2. Also important for the generic provisioner case, we'll be able to get rid of Nova and Glance, reducing the memory footprint.
3. We'll get rid of pre-deploy validations that currently try to get what nova scheduler will expect.
4. We'll become on charge of building the configdrive, potentially putting more useful things there.
5. In the future we'll be able to integrate things like building RAID on demand much easier.
6. Also in the future we might want to use introspection data in scheduling and provisioning decisions. Particularly, we can automate handling root device hints.
7. We'll probably have easier time combining ironic with pre-deployed services or virtual solutions (e.g. putting controllers on oVirt, which is currently done via an unsupported ironic-staging-driver driver).
8. Hopefully, scale-up will be less error-prone.

The way I see it implemented is probably similar to the config-download work (and based on it). We can have a Heat flag to not provision instances, essentially stop after creating ports and creating ansible input. Then a mistral workflow will pick the required number of nodes, prepare them and provision. Then the usual config-download will proceed.

A library is being prepared to host the reusable code for provisioning: https://github.com/openstack/metalsmith.

Blueprint information

Status:
Started
Approver:
Emilien Macchi
Priority:
Medium
Drafter:
Dmitry Tantsur
Direction:
Approved
Assignee:
Steve Baker
Definition:
Approved
Series goal:
Accepted for train
Implementation:
Good progress
Milestone target:
milestone icon train-2
Started by
Dmitry Tantsur on 2018-08-02

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/nova-less-deploy,n,z

Addressed by: https://review.openstack.org/576856
    Support provisioning bare metals without Nova

Addressed by: https://review.openstack.org/576512
    Add ServerDeletionPolicy parameter

Addressed by: https://review.openstack.org/579522
    Add RoleNetPortIdMap output

Addressed by: https://review.openstack.org/579556
    Add RoleCtlplanePortMap output

Addressed by: https://review.openstack.org/604761
    [WIP] Bare metal provisioning without Nova and Glance

Addressed by: https://review.openstack.org/632701
    nova-less-deploy: follow-up to deploy_instances

Addressed by: https://review.openstack.org/633477
    nova-less-deploy: updates for metalsmith >= 0.9.0

Addressed by: https://review.openstack.org/637191
    [WIP] nova-less-deploy: implement deploy_roles workflow

Addressed by: https://review.openstack.org/638685
    nova-less-deploy: command for deploying nodes with ironic

Gerrit topic: https://review.opendev.org/#/q/topic:bp/nova-less-deploy

Addressed by: https://review.opendev.org/656581
    Switch off nova metadata api on the undercloud

Addressed by: https://review.opendev.org/657626
    Revert "Switch off nova metadata api on the undercloud"

Addressed by: https://review.opendev.org/658706
    Revert "Revert "Switch off nova metadata api on the undercloud""

Gerrit topic: https://review.opendev.org/#/q/topic:nova-less-deploy

Addressed by: https://review.opendev.org/659186
    Configure nova_compute for vendordata

Addressed by: https://review.opendev.org/663891
    [WIP] nova-less-deploy: stop using glance for ironic-python-agent images

Addressed by: https://review.opendev.org/663897
    Rework create_or_find_kernel_and_ramdisk to match the current reality

Addressed by: https://review.opendev.org/664168
    Define var undercloud_enable_nova

Addressed by: https://review.opendev.org/664169
    Write out overcloud_baremetal_deploy.yaml

Addressed by: https://review.opendev.org/664170
    DNM: undercloud_enable_nova: false by default

Addressed by: https://review.opendev.org/664174
    Env file to disable undercloud nova

Addressed by: https://review.opendev.org/664179
    Add undercloud.conf enable_nova option

Addressed by: https://review.opendev.org/664180
    DNM Set enable_nova in undercloud.conf

Addressed by: https://review.opendev.org/664456
    Define variable baremetal_provision

Addressed by: https://review.opendev.org/664457
    DNM: Set baremetal_provision:true for OVB jobs

Addressed by: https://review.opendev.org/665038
    Filter the rendered DeployedServerPortMap values

Addressed by: https://review.opendev.org/665040
    Improve yaml output of "openstack overcloud node provision"

Addressed by: https://review.opendev.org/665373
    Drop EC2MetadataIp parameter and its uses

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.