Create softwareconfig resource in multiregion stack fails
Bug #1429036 reported by
Ethan Lynn
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-heatclient |
Fix Released
|
High
|
Ethan Lynn |
Bug Description
I use below template to create a softwareconfig resource in regionone,
https:/
heat stack-create fd-sc -f update.yaml
And I got this failure message.
HTTPBadRequest: ERROR: Property error : sc: config No content found in the "files" section for get_file path: test.sh
If I don't use OS::Heat::Stack resource, it works fine.
Changed in heat: | |
assignee: | nobody → Ethan Lynn (ethanlynn) |
Changed in heat: | |
status: | New → Triaged |
Changed in python-heatclient: | |
status: | Triaged → In Progress |
Changed in python-heatclient: | |
assignee: | Ethan Lynn (ethanlynn) → Steve Baker (steve-stevebaker) |
Changed in python-heatclient: | |
milestone: | none → v0.4 |
assignee: | Steve Baker (steve-stevebaker) → Ethan Lynn (ethanlynn) |
Changed in python-heatclient: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
It seems heatclient didn't pass softwareconfig scripts to heat services.
[elynn@devstack 20150306-mr-sc]$ heat --debug stack-create region -f update.yaml data/CA/ int-ca/ ca-chain. pem" -X GET http:// 192.168. 31.215: 5000/v2. 0 -H "Accept: application/json" -$ keystoneclient" request- id: req-7e11d98d-1e1$ 8fdb332229b2 17T00:00: 00Z", "media-types": [{"base": "application/json", "type": "application/ vnd.ope$ v2.0+json" }], "id": "v2.0", "links": [{"href": "http:// 192.168. 31.215: 5000/v2. 0/", "rel": "self"}, {"href": "http:// docs.openstack. org/",
DEBUG (session) REQ: curl -g -i --cacert "/opt/stack/
"User-Agent: python-
INFO (connectionpool) Starting new HTTP connection (1): 192.168.31.215
DEBUG (connectionpool) "GET /v2.0 HTTP/1.1" 200 340
DEBUG (session) RESP: [200] content-length: 340 vary: X-Auth-Token keep-alive: timeout=5, max=100 server: Apache/2.4.10 (Fedora) OpenSSL/1.0.1e-fips mod$
wsgi/3.5 Python/2.7.5 connection: Keep-Alive date: Tue, 10 Mar 2015 10:14:01 GMT content-type: application/json x-openstack-
-4efd-812d-
RESP BODY: {"version": {"status": "stable", "updated": "2014-04-
stack.identity-
"type": "text/html", "rel": "describedby"}]}}
DEBUG (v2) Making authentication request to http:// 192.168. 31.215: 5000/v2. 0/tokens data/CA/ int-ca/ ca-chain. pem" -X POST http:// 192.168. 31.215: 8004/v1/ f18e7e37f9f44a2 8b43a3d74d417cb f7/ 4bae758af10f7b6 cc42d7194134bd6 b" -H "X-Region-Name: RegionOne" -H "X-Auth-Key: Pass 192.168. 31.215: 5000/v2. 0" -d ///home/ elynn/source/ templates/ bug/20150306- mr-sc/web. yaml": "heat_template_ version: 2013-05- 23\nparameters: \n image:\n type: strin nresources: \n server:\n type: OS::Nova::Server\n properties:\n flavor: {get_param: f :SoftwareCo :SoftwareDeploy ment\n properties:\n template_ version" : "2013-05-23", "parameters": {"flavor": {"default": "m1.small", "type": "string"}, "image": {"default": "fed //home/ elynn/source/ templates/ bug/20150306- mr-sc/web. yaml"}, "parameters": {"flavor": {"
DEBUG (connectionpool) "POST /v2.0/tokens HTTP/1.1" 200 9419
DEBUG (session) REQ: curl -g -i --cacert "/opt/stack/
stacks -H "Accept: application/json" -H "X-Auth-Token: {SHA1}23cac33e2
w0rd" -H "X-Auth-User: admin" -H "User-Agent: python-heatclient" -H "Content-Type: application/json" -H "X-Auth-Url: http://
'{"files": {"file:
g\n flavor:\n type: string\n key:\n type: string\
lavor}\n image: {get_param: image}\n key_name: {get_param: key}\n user_data_format: SOFTWARE_CONFIG\n sc:\n type: OS::Heat:
nfig\n properties:\n group: script\n config: {get_file: test.sh}\n sc-deploy:\n type: OS::Heat:
config: {get_resource: sc}\n server: {get_resource: server} \n"}, "disable_rollback": true, "parameters": {}, "stack_name": "region", "environmen
t": {}, "template": {"heat_
ora-sc", "type": "string"}, "key": {"default": "lxiaojun", "type": "string"}}, "resources": {"stack": {"type": "OS::Heat::Stack", "properties": {"context
": {"region_name": "RegionOne"}, "template": {"get_file": "file:/
get_param": "flavor"}, "image": {"get_param": "image"}, "key": {"get_param": "key"}}}}}}}'
INFO (connectionpool) Starting new HTTP connect...