Hi Kaz,
Thanks for responding.
I found my mistake the Designate Resource requires that the name
provided be a FQDN
I was just passing in the name.
I should look like this
instance_record:
type: OS::Designate::Record
properties:
data: { get_attr: [ instance, first_address ] }
description: { get_attr: [instance, name] }
domain: { get_param: dns_zone }
name: { list_join: ['.', [{ get_attr: [instance, name] }, {
get_param: dns_zone }]] }
type: "A"
Thanks
Lance
On 22.07.17 07:46, Kaz Shinohara wrote:
Hi Lance,
Just a quick question, have you tried "depends_on" ?
Also looks the error what you got indicates your posted properties for
"instance_record" includes not supported one.
Regards,
Kaz
On Jul 22, 2017 1:19 AM, "Lance Haig" <la...@haigmail.com
<mailto:la...@haigmail.com>> wrote:
Hi,
I have the following instance code
server1:
type: OS::Nova::Server
properties:
name: Server1
image: { get_param: image }
flavor: { get_param: flavor }
key_name: { get_param: key_name }
networks:
- port: { get_resource: server1_port }
and I am trying to create a DNS record from the output of the
Instance.
instance_record:
type: OS::Designate::Record
properties:
data: { get_attr: [ instance, first_address ] }
description: { get_attr: [instance, name] }
domain: { get_param: dns_zone }
name: { get_attr: [instance, name] }
type: "A"
For some reason it is giving me an error
resources.instance_stack: Went to status CREATE_FAILED due to
"BadRequest: resources.instance_record: Provided object does not
match schema"
Is it possible to use the output from Nova Server to populate the
DNS record?
Regards
Lance
_______________________________________________
Mailing list:
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
<http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack>
Post to : openstack@lists.openstack.org
<mailto:openstack@lists.openstack.org>
Unsubscribe :
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
<http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack>
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack