Stack create fails with OS::Barbican::Order if we doesn't set bit_length and algorithm

Bug #1535791 reported by Oleksii Chuprykov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
High
Oleksii Chuprykov

Bug Description

Creation of stack without these properties fail

heat_template_version: 2015-04-30
resources:
    bb:
        type: OS::Barbican::Order
        properties:
            type: key
            name: abc

2016-01-19 17:50:37.720 TRACE heat.engine.resource Traceback (most recent call last):
File "/opt/stack/heat/heat/engine/resource.py", line 626, in _action_recorder
     yield
File "/opt/stack/heat/heat/engine/resource.py", line 697, in _do_action
     yield self.action_handler_task(action, args=handler_args)
File "/opt/stack/heat/heat/engine/scheduler.py", line 295, in wrapper
     step = next(subtask)
 File "/opt/stack/heat/heat/engine/resource.py", line 668, in action_handler_task
     handler_data = handler(*args)
 File "/opt/stack/heat/heat/engine/resources/openstack/barbican/order.py", line 179, in handle_create
     order = self.client().orders.create(**info)
 File "/opt/stack/python-barbicanclient/barbicanclient/orders.py", line 34, in wrapper
     return func(self, *args)
 File "/opt/stack/python-barbicanclient/barbicanclient/orders.py", line 233, in submit
    response = self._api.post(self._entity, json=order_dict)
 File "/opt/stack/python-barbicanclient/barbicanclient/client.py", line 77, in post
     return super(_HTTPClient, self).post(path, *args, **kwargs).json()
 File "/usr/local/lib/python2.7/dist-packages/keystoneclient/adapter.py", line 176, in post
    return self.request(url, 'POST', **kwargs)
 File "/opt/stack/python-barbicanclient/barbicanclient/client.py", line 65, in request
    self._check_status_code(resp)
 File "/opt/stack/python-barbicanclient/barbicanclient/client.py", line 109, in _check_status_code
    status HTTPClientError: Bad Request

These properties are required by barbican now.

Changed in heat:
assignee: nobody → Oleksii Chuprykov (ochuprykov)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to heat (master)

Fix proposed to branch: master
Review: https://review.openstack.org/269737

Changed in heat:
status: New → In Progress
Changed in heat:
milestone: none → mitaka-3
Changed in heat:
importance: Undecided → Medium
importance: Medium → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to heat (master)

Reviewed: https://review.openstack.org/269737
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=7601c6cb42967d461a1e851ea4f304a81843db9c
Submitter: Jenkins
Branch: master

commit 7601c6cb42967d461a1e851ea4f304a81843db9c
Author: Oleksii Chuprykov <email address hidden>
Date: Tue Jan 19 18:15:01 2016 +0200

    Add validation to barbican order

    Algorithm and bit_length properties are required by barbican
    for non-certificate types of order.

    Change-Id: I61117ed9e00ebbd42374df6eb5b533b13c98360d
    Closes-Bug: #1535791

Changed in heat:
status: In Progress → Fix Released
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/heat 6.0.0.0b3

This issue was fixed in the openstack/heat 6.0.0.0b3 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.