Bug 1378086

Summary: "Property StackAction not assigned" when deploying from the UI
Product: Red Hat OpenStack Reporter: Udi Kalifon <ukalifon>
Component: rhosp-director-uiAssignee: Jason E. Rist <jrist>
Status: CLOSED WONTFIX QA Contact: Ola Pavlenko <opavlenk>
Severity: urgent Docs Contact:
Priority: high    
Version: 9.0 (Mitaka)CC: rhel-osp-director-maint
Target Milestone: ---   
Target Release: 10.0 (Newton)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-05 15:59:19 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:

Description Udi Kalifon 2016-09-21 13:00:34 UTC
Description of problem:
The UI must set the StackAction property accordingly (CREATE, UPDATE...). Currently we have to add "StackAction: CREATE" to the default_properties section of the plans, but that will cause problems when scaling the cloud later.


How reproducible:
100%


Additional info:
Traceback (most recent call last):
  File "/home/stack/rhci-tripleo-api/tripleo_api/api/utils.py", line 122, in wrapper
    return func(*args, **kwargs)
  File "/home/stack/rhci-tripleo-api/tripleo_api/api/v1.py", line 123, in api_plan_deploy
    deploy_manager.deploy(root_template, environment, files)
  File "/home/stack/rhci-tripleo-api/tripleo_api/deploy.py", line 116, in deploy
    return self.heatclient.stacks.create(**stack_args)
  File "/home/stack/rhci-tripleo-api/.tox/venv/lib/python2.7/site-packages/heatclient/v1/stacks.py", line 172, in create
    data=kwargs, headers=headers)
  File "/home/stack/rhci-tripleo-api/.tox/venv/lib/python2.7/site-packages/heatclient/common/http.py", line 290, in post
    return self.client_request("POST", url, **kwargs)
  File "/home/stack/rhci-tripleo-api/.tox/venv/lib/python2.7/site-packages/heatclient/common/http.py", line 280, in client_request
    resp, body = self.json_request(method, url, **kwargs)
  File "/home/stack/rhci-tripleo-api/.tox/venv/lib/python2.7/site-packages/heatclient/common/http.py", line 269, in json_request
    resp = self._http_request(url, method, **kwargs)
  File "/home/stack/rhci-tripleo-api/.tox/venv/lib/python2.7/site-packages/heatclient/common/http.py", line 232, in _http_request
    raise exc.from_response(resp)
HTTPBadRequest: ERROR: Property error: : resources.allNodesConfig.properties: : Property StackAction not assigned

Comment 2 Jason E. Rist 2016-10-05 15:59:19 UTC
This is using the old API and is not relevant to 10.