RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/
Bug 1047256 - error with waitcondition in openstack heat due to URL quoting
Summary: error with waitcondition in openstack heat due to URL quoting
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: RDO
Classification: Community
Component: openstack-heat
Version: unspecified
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: RHOS Maint
QA Contact: Amit Ugol
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-30 07:28 UTC by Alienyyg
Modified: 2014-06-05 09:19 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-30 08:32:16 UTC
Embargoed:


Attachments (Terms of Use)

Description Alienyyg 2013-12-30 07:28:56 UTC
Description of problem:
I deploy openstack with RDO, and get "
[root@nova1 ~]# curl http://7.7.7.7:8000/v1/waitcondition
<ErrorResponse><Error><Message>The request signature does not conform to AWS standards</Message><Code>IncompleteSignature</Code><Type>Sender</Type></Error></ErrorResponse>
"

seems the same bug as https://bugs.launchpad.net/heat/+bug/1088746

so I can't create a resouce contain "AWS::CloudFormation::WaitCondition " via heat 

the log is heat-apt-cfn.log are "
2013-12-30 15:18:15.199 2195 DEBUG heat.api.middleware.version_negotiation [-] Processing request: GET /v1/waitcondition Accept: */* process_request /usr/lib/python2.6/site-packages/heat/api/middleware/version_negotiation.py:52
2013-12-30 15:18:15.199 2195 DEBUG heat.api.middleware.version_negotiation [-] Matched versioned URI. Version: 1.0 process_request /usr/lib/python2.6/site-packages/heat/api/middleware/version_negotiation.py:67
2013-12-30 15:18:15.200 2195 INFO heat.api.aws.ec2token [-] Checking AWS credentials..
2013-12-30 15:18:15.200 2195 INFO heat.api.aws.ec2token [-] No AWS Signature found.
2013-12-30 15:18:15.200 2195 DEBUG root [-] XML response : <ErrorResponse><Error><Message>The request signature does not conform to AWS standards</Message><Code>IncompleteSignature</Code><Type>Sender</Type></Error></ErrorResponse> to_xml /usr/lib/python2.6/site-packages/heat/common/wsgi.py:604

"


Version-Release number of selected component (if applicable):
[root@nova1 heat]# rpm -qa | grep heat
openstack-heat-api-cloudwatch-2013.2.1-1.0.el6.noarch
python-heatclient-0.2.6-1.el6.noarch
openstack-heat-common-2013.2.1-1.0.el6.noarch
openstack-heat-api-2013.2.1-1.0.el6.noarch
openstack-heat-api-cfn-2013.2.1-1.0.el6.noarch
openstack-heat-engine-2013.2.1-1.0.el6.noarch




Steps to Reproduce:
1.deploy opentack on centos 6.4 with template:http://paste.openstack.org/show/58440/
2.run: curl hostip:8000/v1/waitcondition

Actual results:
[root@nova1 ~]# curl http://7.7.7.7:8000/v1
<ErrorResponse><Error><Message>The request signature does not conform to AWS standards</Message><Code>IncompleteSignature</Code><Type>Sender</Type></Error></ErrorResponse>

Comment 1 Steven Hardy 2013-12-30 09:02:17 UTC
https://bugs.launchpad.net/heat/+bug/1088746 was fixed by this commit, in heat-cfntools 1.2.1:

https://github.com/openstack/heat-cfntools/commit/305f6753abdc9459305cc9c8d21cc17d2d39778b

The error you are getting is not a bug, it is the correct response, since the request you're making is not a correctly formatted, signed request.

You should use the cfn-signal helper script, which will make the call correctly, several examples exist in the heat-templates repo, such as:

https://github.com/openstack/heat-templates/blob/master/cfn/F17/WordPress_Single_Instance_With_IHA.template#L239


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