Bug 1692581

Summary: heat_tempest_plugin.tests.scenario.test_server_cfn_init.CfnInitIntegrationTest.test_server_cfn_init require wrong path about cfn-tools
Product: Red Hat OpenStack Reporter: Takashi Kajinami <tkajinam>
Component: python-heat-tests-tempestAssignee: Rabi Mishra <ramishra>
Status: CLOSED ERRATA QA Contact: Sasha Smolyak <ssmolyak>
Severity: high Docs Contact:
Priority: medium    
Version: 13.0 (Queens)CC: jschluet, ramishra, ssmolyak
Target Milestone: ---Keywords: Triaged, ZStream
Target Release: 13.0 (Queens)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-heat-tests-tempest-0.3.0-1.el7ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-30 17:23:45 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 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