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

Bug #1812919 reported by Alex Schultz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Medium
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, network.id, 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/_proxy.py\", line 2855, in create_subnet",
      " return self._create(_subnet.Subnet, **attrs)",
      " File \"/usr/lib/python2.7/site-packages/openstack/proxy.py\", line 192, in _create",
      " return res.create(self)",
      " File \"/usr/lib/python2.7/site-packages/openstack/resource.py\", line 763, in create",
      " self._translate_response(response)",
      " File \"/usr/lib/python2.7/site-packages/openstack/resource.py\", line 695, in _translate_response",
      " exceptions.raise_from_response(response, error_message=error_message)",
      " File \"/usr/lib/python2.7/site-packages/openstack/exceptions.py\", line 212, in raise_from_response",
      " http_status=http_status, request_id=request_id",
      "openstack.exceptions.BadRequestException: BadRequestException: 400: Client Error for url: https://192.168.24.2:13696/v2.0/subnets, {\"NeutronError\": {\"message\": \"Unable to complete operation for new subnet. The number of DNS nameservers exceeds the limit 5.\", \"type\": \"DNSNameServersExhausted\", \"detail\": \"\"}}",

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-tripleoclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/632560

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)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (master)

Reviewed: https://review.openstack.org/632560
Committed: https://git.openstack.org/cgit/openstack/python-tripleoclient/commit/?id=cf026ddb20d175c2926a1f3f4fb153887e228868
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
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient 11.3.0

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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.