defining more than 5 nameservers to the undercloud results in a deployment failure

Bug #1812919 reported by Alex Schultz on 2019-01-22
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Alex Schultz

Bug Description

If you try and configure more than 5 nameservers as part of the undercloud.conf, the creation of ctlplane-subnet fails.

      "ERROR: Create subnet ctlplane-subnet failed.",
      "[2019-01-22 20:55:10,146] (heat-config) [DEBUG] Traceback (most recent call last):",
      " File \"/var/lib/heat-config/heat-config-script/4c14c3ad-8fa0-4f88-a53c-7d49c7952b29\", line 286, in <module>",
      " net_cidrs = _local_neutron_segments_and_subnets(sdk,, net_cidrs)",
      " File \"/var/lib/heat-config/heat-config-script/4c14c3ad-8fa0-4f88-a53c-7d49c7952b29\", line 227, in _local_neutron_segments_and_subnets",
      " CONF['nameservers'])",
      " File \"/var/lib/heat-config/heat-config-script/4c14c3ad-8fa0-4f88-a53c-7d49c7952b29\", line 92, in _neutron_subnet_create",
      " dns_nameservers=dns_nameservers)",
      " File \"/usr/lib/python2.7/site-packages/openstack/network/v2/\", line 2855, in create_subnet",
      " return self._create(_subnet.Subnet, **attrs)",
      " File \"/usr/lib/python2.7/site-packages/openstack/\", line 192, in _create",
      " return res.create(self)",
      " File \"/usr/lib/python2.7/site-packages/openstack/\", line 763, in create",
      " self._translate_response(response)",
      " File \"/usr/lib/python2.7/site-packages/openstack/\", line 695, in _translate_response",
      " exceptions.raise_from_response(response, error_message=error_message)",
      " File \"/usr/lib/python2.7/site-packages/openstack/\", line 212, in raise_from_response",
      " http_status=http_status, request_id=request_id",
      "openstack.exceptions.BadRequestException: BadRequestException: 400: Client Error for url:, {\"NeutronError\": {\"message\": \"Unable to complete operation for new subnet. The number of DNS nameservers exceeds the limit 5.\", \"type\": \"DNSNameServersExhausted\", \"detail\": \"\"}}",

Fix proposed to branch: master

Changed in tripleo:
assignee: nobody → Alex Schultz (alex-schultz)
status: Triaged → In Progress
Changed in tripleo:
assignee: Alex Schultz (alex-schultz) → Emilien Macchi (emilienm)
Changed in tripleo:
assignee: Emilien Macchi (emilienm) → Alex Schultz (alex-schultz)

Submitter: Zuul
Branch: master

commit cf026ddb20d175c2926a1f3f4fb153887e228868
Author: Alex Schultz <email address hidden>
Date: Tue Jan 22 14:33:49 2019 -0700

    Fail if too many nameservers are provided

    The nameservers are limited by neutron to the max configured servers
    which is 5 by default. Since we do not offer a way to tune this value,
    let's fail the user early if they are providing too many nameservers.
    If a user wants to provide more than 5, they can do so by increasing the
    max_dns_nameservers in neutron and setting the DnsServers via extra
    environment files.

    Change-Id: I51ed6f8bb109df7f9038bbf691097d50ce9e54b3
    Closes-Bug: 1812919

Changed in tripleo:
status: In Progress → Fix Released

This issue was fixed in the openstack/python-tripleoclient 11.3.0 release.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers