Ask Your Question

Lance Haig's profile - activity

2017-12-27 20:00:14 -0600 received badge  Famous Question (source)
2017-10-26 09:57:53 -0600 received badge  Notable Question (source)
2017-07-24 07:43:27 -0600 received badge  Popular Question (source)
2017-07-24 02:14:09 -0600 answered a question Trouble assigning output from NOVA Server to Designate record

I found my mistake the Designate Resource requires that the name provided be a FQDN

I was just passing in the name.

It 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"
2017-07-24 02:14:05 -0600 received badge  Enthusiast
2017-07-21 11:12:10 -0600 asked a question Trouble assigning output from NOVA Server to Designate record

Hi,

I have the following instance code

instanc:
  type: OS::Nova::Server
  properties:
    name: server1-prod-nightly
    image: { get_param: image }
    flavor: { get_param: flavor }
    key_name: { get_param: key_name }
    networks:
      - port: { get_resource: instance_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?

Thanks

Lance

2017-07-17 10:34:29 -0600 answered a question heat resource property not assigned for nested template

Not having seen you network template I would say that your network template does not have an output named name.