Bug 1265714 - Tempest has a wrong stack_owner_role value when deploying with osp-d
Summary: Tempest has a wrong stack_owner_role value when deploying with osp-d
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-rdomanager-oscplugin
Version: 7.0 (Kilo)
Hardware: All
OS: Linux
high
high
Target Milestone: y2
: 7.0 (Kilo)
Assignee: Imre Farkas
QA Contact: Daniel Mellado
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-23 14:09 UTC by Daniel Mellado
Modified: 2016-09-20 05:03 UTC (History)
11 users (show)

Fixed In Version: python-rdomanager-oscplugin-0.0.10-10.el7ost
Doc Type: Bug Fix
Doc Text:
Previously, the 'tempest-deployer-input.conf' file contained incorrect stack_owner_role. So using the 'tempest-deployer-input.conf' file for post-install validation caused more Tempest test failures. With this update, the value in the 'tempest-deployer-input.conf' file generated during deployment is changed. As a result, less number of Tempest tests will fail during post-install validation.
Clone Of:
Environment:
Last Closed: 2015-12-21 16:49:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 226826 0 None MERGED Fix heat_stack_owner variable 2020-08-19 09:47:59 UTC
Red Hat Product Errata RHSA-2015:2650 0 normal SHIPPED_LIVE Moderate: Red Hat Enterprise Linux OpenStack Platform 7 director update 2015-12-21 21:44:54 UTC

Description Daniel Mellado 2015-09-23 14:09:03 UTC
Description of problem:

Over an OpenStack 7.0 installed by OSP-D, the heat tempest tests with unauthorized error due to the wrong value being parsed at the creation of tempest.conf file

Version-Release number of selected component (if applicable):
Director

How reproducible:
Create the tempest.conf file using --deployer-input provided from deployment. It'd contain a wrong value of stack_owner_role = heat_stack_user when it should be stack_owner_role = heat_stack_owner.

This is created by:
https://github.com/rdo-management/python-rdomanager-oscplugin/blob/master/rdomanager_oscplugin/v1/overcloud_deploy.py#L656


Steps to Reproduce:
1. Run orchestration tempest tests with provided tempest.conf

Actual results:

The test fails with the following error:

Traceback (most recent call last):
  File "/home/stack/tempest/tempest/api/orchestration/stacks/test_environment.py", line 36, in test_environment_parameter
    environment=environment)
  File "/home/stack/tempest/tempest/api/orchestration/base.py", line 75, in create_stack
    files=files)
  File "/home/stack/tempest/tempest/services/orchestration/json/orchestration_client.py", line 56, in create_stack
    resp, body = self.post(uri, headers=headers, body=body)
  File "/usr/lib/python2.7/site-packages/tempest_lib/common/rest_client.py", line 252, in post
    return self.request('POST', url, extra_headers, headers, body)
  File "/usr/lib/python2.7/site-packages/tempest_lib/common/rest_client.py", line 629, in request
    resp, resp_body)
  File "/usr/lib/python2.7/site-packages/tempest_lib/common/rest_client.py", line 672, in _error_checker
    raise exceptions.Forbidden(resp_body)
Forbidden: Forbidden


Expected results:

The test should pass, they do with this line in tempest.conf:

[orchestration]
stack_owner_role = heat_stack_owner


Additional info:

Comment 2 Filip Hubík 2015-09-23 14:21:59 UTC
Proposed fix attached.

Comment 11 errata-xmlrpc 2015-12-21 16:49:20 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/RHSA-2015:2650


Note You need to log in before you can comment on or make changes to this bug.