← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1569145] Re: Launch stack fails when heat template includes OS::Neutron::Subnet with a list of nameservers

 

** Also affects: openstack-user-stories
   Importance: Undecided
       Status: New

** No longer affects: openstack-user-stories

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1569145

Title:
  Launch stack fails when heat template includes OS::Neutron::Subnet
  with a list of nameservers

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  When using a heat template where OS::Neutron::Subnet dns_nameservers
  points at a yaml comma_delimited_list of nameservers eg:

    private_net_dns_servers:
      type: comma_delimited_list
      description: DNS servers for the private network
      default: [ 202.78.247.197, 202.78.247.198, 202.78.247.199 ]

    private_subnet:
      type: OS::Neutron::Subnet
      properties:
        name: { get_param: private_subnet_name }
        network_id: { get_resource: private_net }
        cidr: { get_param: private_net_cidr }
        gateway_ip: { get_param: private_net_gateway }
        allocation_pools:
          - start: { get_param: private_net_pool_start }
            end: { get_param: private_net_pool_end }
        dns_nameservers: { get_param: private_net_dns_servers }

  Config examples above from this heat template:
  https://raw.githubusercontent.com/catalyst/catalystcloud-
  orchestration/master/hot/ubuntu-14.04/first-instance/first-
  instance.yaml

  When the template above is loaded either by direct url or from a file
  the launch stack form is populated from the template provided. The
  form field is populated with the following content:

  [u'202.78.247.197', u'202.78.247.198', u'202.78.247.199']

  If this is run directly it results in these errors:

  bug-test        5715a06f-af3c-43d7-ab9d-302527265ba3    0 minutes
  Create Failed   Resource CREATE failed: BadRequest:
  resources.private_subnet: Invalid input for dns_nameservers. Reason:
  '[u'202.78.247.197 is not a valid nameserver. [u'202.78.247.197' is
  not a valid IP or hostname. Details: '[u'202.78.247.197 is not a valid
  IP addr

  This should be:

  202.78.247.197,202.78.247.198,202.78.247.199

  These errors have been confirmed using the latest upstream horizon
  code.

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1569145/+subscriptions


References