Bug 1692581 - heat_tempest_plugin.tests.scenario.test_server_cfn_init.CfnInitIntegrationTest.test_server_cfn_init require wrong path about cfn-tools
Summary: heat_tempest_plugin.tests.scenario.test_server_cfn_init.CfnInitIntegrationTes...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-heat-tests-tempest
Version: 13.0 (Queens)
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ---
: 13.0 (Queens)
Assignee: Rabi Mishra
QA Contact: Sasha Smolyak
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-25 23:11 UTC by Takashi Kajinami
Modified: 2019-04-30 17:23 UTC (History)
3 users (show)

Fixed In Version: python-heat-tests-tempest-0.3.0-1.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-04-30 17:23:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 639477 0 None MERGED Use cfn tools under /usr/bin instead of /opt/aws/bin 2020-02-03 16:39:55 UTC
Red Hat Product Errata RHBA-2019:0926 0 None None None 2019-04-30 17:23:55 UTC

Description Takashi Kajinami 2019-03-25 23:11:48 UTC
Description of problem:

heat_tempest_plugin.tests.scenario.test_server_cfn_init.CfnInitIntegrationTest.test_server_cfn_init is a test case
to verify notification feature in heat.
In this test case, it requires to have cfn-tools placed under /opt/aws/bin in the guest image.

However, this path can not be found in RHEL, CentOS, and even Fedora image, which seems to be used in community testing,
and we need to edit guest image to pass this test.

I checked the latest these images, and confirmed we have cfn-tools under /usr/bin, IMO it would be better to change
the path specified in the heat template.

How reproducible:
Always

Steps to Reproduce:
1. run the said test case with RHEL, CentOS, or Fedora image

Actual results:
The test case fails without editing guest image

Expected results:
We can pass the test case without editing guest image

Additional info:

Comment 1 Takashi Kajinami 2019-03-25 23:13:37 UTC
Please find the attached gerrit url, about possible fix already proposed to community gerrit.
It would be nice if I can get some help to land the patch .

Comment 4 Sasha Smolyak 2019-04-16 06:59:04 UTC
Checked the latest tempest, the fix is there:
    Properties:
      ImageId: {Ref: image}
      InstanceType: {Ref: flavor}
      KeyName: {Ref: key_name}
      SubnetId: {Ref: subnet}
      SecurityGroups:
      - {Ref: SmokeSecurityGroup}
      UserData:
        Fn::Replace:
        - WaitHandle: {Ref: WaitHandle}
        - |
          #!/bin/bash -v
          /usr/bin/cfn-init
          /usr/bin/cfn-signal -e 0 --data "`cat /tmp/smoke-status`" \
              --id smoke_status "WaitHandle"

Verified

Comment 7 errata-xmlrpc 2019-04-30 17:23:45 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:0926


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