Bug 1611224

Summary: Importing deployment plan from Git repository is broken
Product: Red Hat OpenStack Reporter: Jiri Tomasek <jtomasek>
Component: openstack-tripleo-commonAssignee: Adriano Petrich <apetrich>
Status: CLOSED ERRATA QA Contact: Udi Kalifon <ukalifon>
Severity: medium Docs Contact:
Priority: medium    
Version: 14.0 (Rocky)CC: dmatthew, jschluet, mburns, slinaber
Target Milestone: z1Keywords: TestOnly, Triaged, ZStream
Target Release: 14.0 (Rocky)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-ui-9.3.1-0.20180921180345.df30b55.el7ost openstack-tripleo-common-9.4.1-0.20181012010885.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-03-18 13:03:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jiri Tomasek 2018-08-02 08:09:00 UTC
Description of problem:
When trying to import plan from Git repository by passing Git url, the workflow fails with

"result": "Failed to run task [error=Invalid input [name=tripleo.templates.upload, class=tripleo_common.actions.templates.UploadTemplatesAction, unexpected=[u'templates_path']], wf=tripleo.plan_management.v1.create_deployment_plan, task=upload_templates_directory]:\nTraceback (most recent call last):\n  File \"/usr/lib/python2.7/site-packages/mistral/engine/task_handler.py\", line 63, in run_task\n    task.run()\n  File \"/usr/lib/python2.7/site-packages/osprofiler/profiler.py\", line 158, in wrapper\n    result = f(*args, **kwargs)\n  File \"/usr/lib/python2.7/site-packages/mistral/engine/tasks.py\", line 390, in run\n    self._run_new()\n  File \"/usr/lib/python2.7/site-packages/osprofiler/profiler.py\", line 158, in wrapper\n    result = f(*args, **kwargs)\n  File \"/usr/lib/python2.7/site-packages/mistral/engine/tasks.py\", line 419, in _run_new\n    self._schedule_actions()\n  File \"/usr/lib/python2.7/site-packages/mistral/engine/tasks.py\", line 488, in _schedule_actions\n    action.validate_input(input_dict)\n  File \"/usr/lib/python2.7/site-packages/mistral/engine/actions.py\", line 323, in validate_input\n    self.action_def.action_class\n  File \"/usr/lib/python2.7/site-packages/mistral/engine/utils.py\", line 66, in validate_input\n    raise exc.InputException(msg % tuple(msg_props))\nInputException: Invalid input [name=tripleo.templates.upload, class=tripleo_common.actions.templates.UploadTemplatesAction, unexpected=[u'templates_path']]\n"

This is caused by wrong input used for UploadTemplatesAction

Comment 9 Mikey Ariel 2019-02-20 12:44:27 UTC
If this bug requires doc text for errata release, please set the 'Doc Type' and provide draft text according to the template in the 'Doc Text' field. The documentation team will review, edit, and approve the text.

If this bug does not require doc text, please set the 'requires_doc_text' flag to -.

Comment 11 errata-xmlrpc 2019-03-18 13:03:09 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:0446