Description of problem: heat didn't work correctly. Version-Release number of selected component (if applicable): RHEL OSP6 How reproducible: Steps to Reproduce: 1.used packstack to deply rhelosp6 2.heat stack-create wordpress --template-file=WordPress_Composed_Instances.template --parameters="DBUsername=wp;DBPassword=wp;KeyName=userkey;LinuxDistribution=F17" 3.heat list Actual results: the heat stack create failed. because heat use keystone v3 api.but packstack install keystone v2 api default. the ip of controller node is 10.66.216.223. the log of heat-engine.log 2015-05-01 06:34:14.520 13583 INFO heat.engine.service [req-5267f593-1754-48d9-957e-ea33b32dcec0 None] Creating stack wordpress 2015-05-01 06:34:14.550 13583 DEBUG heat.engine.parameter_groups [req-5267f593-1754-48d9-957e-ea33b32dcec0 None] <heat.engine.cfn.template.CfnTemplate object at 0x447e3d0> __init__ /usr/lib/python2.7/site-packages/heat/engine/parameter_groups.py:31 2015-05-01 06:34:14.550 13583 DEBUG heat.engine.parameter_groups [req-5267f593-1754-48d9-957e-ea33b32dcec0 None] <heat.engine.parameters.Parameters object at 0x4481590> __init__ /usr/lib/python2.7/site-packages/heat/engine/parameter_groups.py:32 2015-05-01 06:34:14.551 13583 DEBUG heat.engine.parameter_groups [req-5267f593-1754-48d9-957e-ea33b32dcec0 None] Validating Parameter Groups. validate /usr/lib/python2.7/site-packages/heat/engine/parameter_groups.py:43 2015-05-01 06:34:14.552 13583 DEBUG heat.engine.parameter_groups [req-5267f593-1754-48d9-957e-ea33b32dcec0 None] [u'DBUsername', u'LinuxDistribution', u'InstanceType', u'DBRootPassword', 'AWS::StackId', u'KeyName', u'DBPassword', u'DBName'] validate /usr/lib/python2.7/site-packages/heat/engine/parameter_groups.py:44 2015-05-01 06:34:14.554 13583 INFO heat.engine.resource [req-5267f593-1754-48d9-957e-ea33b32dcec0 None] Validating NestedStack "DatabaseTemplate" 2015-05-01 06:34:14.556 13583 INFO heat.engine.resource [req-5267f593-1754-48d9-957e-ea33b32dcec0 None] Validating Instance "WebServer" 2015-05-01 06:34:14.559 13583 DEBUG heat.common.keystoneclient [req-5267f593-1754-48d9-957e-ea33b32dcec0 None] Using stack domain e5feac5aa6b64dbebcafe82d44c2ef63 __init__ /usr/lib/python2.7/site-packages/heat/common/heat_keystoneclient.py:115 2015-05-01 06:34:14.575 13583 DEBUG glanceclient.common.http [req-5267f593-1754-48d9-957e-ea33b32dcec0 ] curl -i -X GET -H 'User-Agent: python-glanceclient' -H 'Content-Type: application/octet-stream' -H 'Accept-Encoding: gzip, deflate' -H 'Accept: */*' -H 'X-Auth-Token: {SHA1}aab611eae09480ce4b469ec2c705237690a7fd31' http://10.66.216.223:9292/v1/images/detail?limit=20&name=F17-x86_64-cfntools log_curl_request /usr/lib/python2.7/site-packages/glanceclient/common/http.py:120 2015-05-01 06:34:14.597 13583 INFO urllib3.connectionpool [req-5267f593-1754-48d9-957e-ea33b32dcec0 ] Starting new HTTP connection (1): 10.66.216.223 2015-05-01 06:34:15.234 13583 DEBUG urllib3.connectionpool [req-5267f593-1754-48d9-957e-ea33b32dcec0 ] "GET /v1/images/detail?limit=20&name=F17-x86_64-cfntools HTTP/1.1" 200 514 _make_request /usr/lib/python2.7/site-packages/urllib3/connectionpool.py:357 2015-05-01 06:34:15.235 13583 DEBUG glanceclient.common.http [req-5267f593-1754-48d9-957e-ea33b32dcec0 ] HTTP/1.1 200 OK date: Fri, 01 May 2015 10:34:15 GMT content-length: 514 content-type: application/json; charset=UTF-8 x-openstack-request-id: req-2cf351ce-7115-456c-b4e6-6d77bcc79cd7 {"images": [{"status": "active", "deleted_at": null, "name": "F17-x86_64-cfntools", "deleted": false, "container_format": "bare", "created_at": "2015-05-01T08:16:21", "disk_format": "qcow2", "updated_at": "2015-05-01T08:20:30", "min_disk": 0, "protected": false, "id": "4b6d3090-96df-4424-9451-7a89d8d8431e", "min_ram": 0, "checksum": "d009530079fd6567a3f0579a09c03af0", "owner": "fbc2310b277e4467b3502bbbb6fbb1ba", "is_public": true, "virtual_size": null, "properties": {"description": null}, "size": 158443520}]} log_http_response /usr/lib/python2.7/site-packages/glanceclient/common/http.py:133 2015-05-01 06:34:15.334 13583 INFO urllib3.connectionpool [req-5267f593-1754-48d9-957e-ea33b32dcec0 ] Starting new HTTP connection (1): 10.66.216.223 2015-05-01 06:34:15.446 13583 DEBUG urllib3.connectionpool [req-5267f593-1754-48d9-957e-ea33b32dcec0 ] "GET /v2/fbc2310b277e4467b3502bbbb6fbb1ba/os-keypairs/userkey HTTP/1.1" 200 678 _make_request /usr/lib/python2.7/site-packages/urllib3/connectionpool.py:357 2015-05-01 06:34:15.524 13583 DEBUG heat.engine.stack_lock [req-5267f593-1754-48d9-957e-ea33b32dcec0 None] Engine cd8d887f-09b0-46a2-9665-759362d9a0d0 acquired lock on stack f9de6aed-4331-4f83-9bc8-94c22a7bff3c acquire /usr/lib/python2.7/site-packages/heat/engine/stack_lock.py:72 2015-05-01 06:34:15.526 13583 DEBUG keystoneclient.auth.identity.v3 [-] Making authentication request to http://10.66.216.223:35357/v3/auth/tokens get_auth_ref /usr/lib/python2.7/site-packages/keystoneclient/auth/identity/v3.py:117 2015-05-01 06:34:15.529 13583 INFO urllib3.connectionpool [-] Starting new HTTP connection (1): 10.66.216.223 2015-05-01 06:34:15.646 13583 DEBUG urllib3.connectionpool [-] "POST /v3/auth/tokens HTTP/1.1" 401 114 _make_request /usr/lib/python2.7/site-packages/urllib3/connectionpool.py:357 2015-05-01 06:34:15.647 13583 DEBUG keystoneclient.session [-] Request returned failure status: 401 request /usr/lib/python2.7/site-packages/keystoneclient/session.py:345 2015-05-01 06:34:15.647 13583 DEBUG keystoneclient.v3.client [-] Authorization failed. get_raw_token_from_identity_service /usr/lib/python2.7/site-packages/keystoneclient/v3/client.py:267 2015-05-01 06:34:15.663 13583 DEBUG heat.engine.stack_lock [-] Engine cd8d887f-09b0-46a2-9665-759362d9a0d0 released lock on stack f9de6aed-4331-4f83-9bc8-94c22a7bff3c release /usr/lib/python2.7/site-packages/heat/engine/stack_lock.py:122 Expected results: heat stack-create can work correctly. Additional info:
Heat can be configured to use only Keystone v2 (although Keystone v3 is highly, highly recommended), so I'm moving this to the packstack component because that's where we need the configuration to match the actually deployed Keystone version.
Hi Zane: I used this method to configure heat to used keystone v2. but can not install successfully. https://github.com/openstack/heat/tree/master/contrib/heat_keystoneclient_v2 the error message is below: i have already install git. [root@osp1 heat]# rpm -qa | grep git-1.8 git-1.8.3.1-4.el7.x86_64 [root@osp1 heat]# ./setup.py install ERROR:root:Error parsing Traceback (most recent call last): File "/root/heat/pbr-0.11.0-py2.7.egg/pbr/core.py", line 109, in pbr attrs = util.cfg_to_args(path) File "/root/heat/pbr-0.11.0-py2.7.egg/pbr/util.py", line 243, in cfg_to_args pbr.hooks.setup_hook(config) File "/root/heat/pbr-0.11.0-py2.7.egg/pbr/hooks/__init__.py", line 25, in setup_hook metadata_config.run() File "/root/heat/pbr-0.11.0-py2.7.egg/pbr/hooks/base.py", line 27, in run self.hook() File "/root/heat/pbr-0.11.0-py2.7.egg/pbr/hooks/metadata.py", line 26, in hook self.config['name'], self.config.get('version', None)) File "/root/heat/pbr-0.11.0-py2.7.egg/pbr/packaging.py", line 660, in get_version raise Exception("Versioning for this project requires either an sdist" Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. Are you sure that git is installed? error in setup command: Error parsing /root/heat/setup.cfg: Exception: Versioning for this project requires either an sdist tarball, or access to an upstream git repository. Are you sure that git is installed?
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://rhn.redhat.com/errata/RHBA-2015-2693.html