Deprecates tripleo.roles.list action

The tripleo.roles.list action is deprecated.  Please use the
tripleo.plan_management.v1.list_roles workflow instead.  Calling actions
directly is no longer supported.

This patch adds a deprecation notice to the action code, the file
where the action is registered and an associated release note.

Change-Id: I233be93b5a22008fbbfae8a49f24c3a79b9e2df2
This commit is contained in:
Ryan Brady 2018-02-14 19:28:05 -05:00
parent 2f42cbe2a1
commit 29d5b5aa8f
3 changed files with 10 additions and 2 deletions

View File

@ -0,0 +1,6 @@
---
deprecations:
- |
The tripleo.roles.list action is deprecated. Please use the
tripleo.plan_management.v1.list_roles workflow instead. Calling actions
directly is no longer supported.

View File

@ -119,7 +119,6 @@ mistral.actions =
tripleo.logging_to_swift.format_messages = tripleo_common.actions.logging_to_swift:FormatMessagesAction
tripleo.logging_to_swift.publish_ui_log_to_swift = tripleo_common.actions.logging_to_swift:PublishUILogToSwiftAction
tripleo.logging_to_swift.prepare_log_download = tripleo_common.actions.logging_to_swift:PrepareLogDownloadAction
tripleo.role.list = tripleo_common.actions.plan:ListRolesAction
tripleo.scale.delete_node = tripleo_common.actions.scale:ScaleDownAction
tripleo.swift.tempurl = tripleo_common.actions.swifthelper:SwiftTempUrlAction
tripleo.swift.swift_information = tripleo_common.actions.swifthelper:SwiftInformationAction
@ -151,4 +150,5 @@ mistral.actions =
tripleo.ansible = tripleo_common.actions.ansible:AnsibleAction
tripleo.ansible-playbook = tripleo_common.actions.ansible:AnsiblePlaybookAction
tripleo.templates.upload_default = tripleo_common.actions.templates:UploadTemplatesAction
# deprecated for rocky release, will be removed in the "S" cycle
tripleo.role.list = tripleo_common.actions.plan:ListRolesAction

View File

@ -137,6 +137,8 @@ class DeletePlanAction(base.TripleOAction):
class ListRolesAction(base.TripleOAction):
"""Returns a deployment plan's roles
DEPRECATED, please use tripleo.plan_management.v1.list_roles workflow
Parses roles_data.yaml and returns the names of all available roles.
:param container: name of the Swift container / plan name