Baremetal deploy - user playbook interface

This is a partial cherry-pick of the commit
1d2547cc7f to include `InvalidPlaybook`
exception class used in validate_roles_playbooks method in utils.py.

This is not a clean cherry pick because part of the code was
refactored in [1] and was cherry-picked accordingly in
wallaby [2]

validate_playbook method and `PlaybookNotFound` exception is not used
anymore and will be removed with[3].

Conflicts:
  tripleoclient/v2/overcloud_node.py

[1] https://review.opendev.org/c/openstack/python-tripleoclient/+/794017/10/tripleoclient/v2/overcloud_node.py
[2] https://review.opendev.org/c/openstack/python-tripleoclient/+/797231/4/tripleoclient/v2/overcloud_node.py
[3] https://review.opendev.org/c/openstack/python-tripleoclient/+/814117

Implements: blueprint network-data-v2-ports
Change-Id: I67a15f637a62e2cb683e6e160483201f7ba093e9
(cherry picked from commit 1d2547cc7f)
This commit is contained in:
Harald Jensås 2021-04-13 13:59:12 +02:00 committed by Sandeep Yadav
parent c22f23a075
commit f43317cb54
1 changed files with 4 additions and 0 deletions

View File

@ -139,3 +139,7 @@ class BannedParameters(Base):
class HeatPodMessageQueueException(Base):
"""Heat messaging queue not created"""
class InvalidPlaybook(Base):
"""Invalid playbook path specified"""