AttributeError: 'function' object has no attribute 'get'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Designate |
New
|
Undecided
|
Unassigned | ||
OpenStack Heat |
New
|
Undecided
|
Unassigned |
Bug Description
Trying to create a heat stack like this:
----- s n i p -----
heat_template_
description: Designate domain record template - test
resources:
record:
type: OS::Designate:
properties:
description: test record
name: test.domain.top.
domain: domain.top.
data: 10.0.0.1
type: A
----- s n i p -----
with:
----- s n i p -----
# heat stack-create -f test-dns.yaml test-dns
ERROR: Property error: : resources.
----- s n i p -----
gives me this in designate-api.log:
----- s n i p -----
2016-09-01 20:05:21.328 5850 ERROR designate.
2016-09-01 20:05:21.328 5850 ERROR designate.
2016-09-01 20:05:21.328 5850 ERROR designate.
2016-09-01 20:05:21.328 5850 ERROR designate.
2016-09-01 20:05:21.328 5850 ERROR designate.
2016-09-01 20:05:21.328 5850 ERROR designate.
2016-09-01 20:05:21.328 5850 ERROR designate.
2016-09-01 20:05:21.328 5850 ERROR designate.
2016-09-01 20:05:21.328 5850 ERROR designate.
2016-09-01 20:05:21.328 5850 ERROR designate.
2016-09-01 20:05:21.328 5850 ERROR designate.
2016-09-01 20:05:21.328 5850 ERROR designate.
2016-09-01 20:05:21.328 5850 ERROR designate.
2016-09-01 20:05:21.328 5850 ERROR designate.
2016-09-01 20:05:21.328 5850 ERROR designate.
2016-09-01 20:05:21.328 5850 ERROR designate.
2016-09-01 20:05:21.328 5850 ERROR designate.
2016-09-01 20:05:21.328 5850 ERROR designate.
2016-09-01 20:05:21.328 5850 ERROR designate.
2016-09-01 20:05:21.328 5850 ERROR designate.
2016-09-01 20:05:21.328 5850 ERROR designate.
2016-09-01 20:05:21.328 5850 ERROR designate.
2016-09-01 20:05:21.328 5850 ERROR designate.
2016-09-01 20:05:21.328 5850 ERROR designate.
2016-09-01 20:05:21.328 5850 ERROR designate.
2016-09-01 20:05:21.328 5850 ERROR designate.
2016-09-01 20:05:21.328 5850 ERROR designate.
2016-09-01 20:05:21.328 5850 ERROR designate.
2016-09-01 20:05:21.328 5850 ERROR designate.
2016-09-01 20:05:21.328 5850 ERROR designate.
2016-09-01 20:05:21.334 5850 INFO eventlet.wsgi [req-da9c24c4-
----- s n i p -----
That URL gave a 500 error, which is strange since:
----- s n i p -----
# designate domain-list
+------
| id | name | serial |
+------
| 16bdefc0-
| e437e2df-
| d8c10490-
+------
# designate record-list bayour.net.
+------
| id | type | name | data |
+------
| e1c939c7-
| 14fce707-
| ab3de9fd-
| 36b80246-
| 598a9096-
| 32e129cb-
| 6344132b-
| dac61f02-
| 441041bd-
| ab02a064-
| 2b1e946d-
| 830d4f41-
| 58ff2582-
+------
----- s n i p -----
Creating a record from the shell works just fine:
----- s n i p -----
# designate record-create --name test.domain.top. --data 10.0.0.1 --type A domain.top.
+------
| Field | Value |
+------
| description | None |
| type | A |
| created_at | 2016-09-
| updated_at | None |
| domain_id | d8c10490-
| priority | None |
| ttl | None |
| data | 10.0.0.1 |
| id | 240b3803-
| name | test.domain.top. |
+------
----- s n i p -----
If I use the heat-templates/ hot/designate/ desginate_ record. yaml template, then it works.
This is Designate v1:2.0.0-3 and Heat v1:6.0.0-2 on Debian GNU/Linux Sid.