dhcp_agents_per_network set to 1 when deploying multiple nodes running the NeutronDhcpAgent service

Bug #1632721 reported by Marius Cornea
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
High
Brent Eagles

Bug Description

dhcp_agents_per_network is set to 1 when deploying multiple nodes running the NeutronDhcpAgent service.

I'm doing a deployment with 3 controllers and 2 networker nodes running the Neutron agents including the dhcp agent. The deployed configuration ends up with dhcp_agents_per_network=1 and I'd expect it to be equal to the number of nodes that run the NeutronDhcpAgent service.

export THT=/usr/share/openstack-tripleo-heat-templates/

openstack overcloud deploy --templates $THT \
-r ~/openstack_deployment/roles/roles_data.yaml \
-e $THT/environments/network-isolation.yaml \
-e $THT/environments/network-management.yaml \
-e $THT/environments/storage-environment.yaml \
-e $THT/environments/puppet-pacemaker.yaml \
-e ~/openstack_deployment/environments/nodes.yaml \
-e ~/openstack_deployment/environments/network-environment.yaml \
-e ~/openstack_deployment/environments/disk-layout.yaml \
-e ~/openstack_deployment/environments/neutron-settings.yaml

Environment files:
http://paste.openstack.org/show/585459/

Steven Hardy (shardy)
Changed in tripleo:
status: New → Triaged
importance: Undecided → High
milestone: none → ocata-1
Changed in tripleo:
assignee: nobody → Jiří Stránský (jistr)
Changed in tripleo:
assignee: Jiří Stránský (jistr) → nobody
Steven Hardy (shardy)
Changed in tripleo:
milestone: ocata-1 → ocata-2
Changed in tripleo:
milestone: ocata-2 → ocata-3
Revision history for this message
Brad P. Crochet (brad-9) wrote :

There is currently logic[1] in the client code to set this. It's odd that it was set to 1 with 3 controllers, but IIUC it should have been set to 5? This may need to set in THT now, instead of by the client, as the client isn't aware of the other node types.

1. https://github.com/openstack/python-tripleoclient/blob/master/tripleoclient/v1/overcloud_deploy.py#L103-L110

Changed in tripleo:
milestone: ocata-3 → ocata-rc1
Brent Eagles (beagles)
Changed in tripleo:
assignee: nobody → Brent Eagles (beagles)
Changed in tripleo:
milestone: ocata-rc1 → ocata-rc2
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-tripleo (master)

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

Changed in tripleo:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (master)

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

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/438564

Brent Eagles (beagles)
tags: added: ocata-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-tripleo (master)

Reviewed: https://review.openstack.org/438545
Committed: https://git.openstack.org/cgit/openstack/puppet-tripleo/commit/?id=52a68ffc8f060e1961458a524e5861cea02d1c1c
Submitter: Jenkins
Branch: master

commit 52a68ffc8f060e1961458a524e5861cea02d1c1c
Author: Brent Eagles <email address hidden>
Date: Fri Feb 24 11:52:11 2017 -0330

    Default neutron dhcp_agents_per_network to number of agents

    This patch will set neutron's dhcp_agents_per_network equal to the
    number of deployed neutron DHCP agents unless otherwise explicitly set.

    Partial-bug: #1632721
    Change-Id: I5533e42c5ba9f72cc70d80489a07e30ee2341198

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-tripleo (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/441084

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-tripleo (stable/ocata)

Reviewed: https://review.openstack.org/441084
Committed: https://git.openstack.org/cgit/openstack/puppet-tripleo/commit/?id=4b3ff753717e926a64df0173f1dafab38e41de0b
Submitter: Jenkins
Branch: stable/ocata

commit 4b3ff753717e926a64df0173f1dafab38e41de0b
Author: Brent Eagles <email address hidden>
Date: Fri Feb 24 11:52:11 2017 -0330

    Default neutron dhcp_agents_per_network to number of agents

    This patch will set neutron's dhcp_agents_per_network equal to the
    number of deployed neutron DHCP agents unless otherwise explicitly set.

    Conflicts:
     manifests/profile/base/neutron.pp

    Note: spec/classes/tripleo_profile_base_neutron_spec.rb removed from
    backport as it required defining the neutron class as a precondition to
    satisfy a requirement for a rabbit password. This leads to a duplicate
    definition.

    Partial-bug: #1632721
    Change-Id: I5533e42c5ba9f72cc70d80489a07e30ee2341198
    (cherry picked from commit 52a68ffc8f060e1961458a524e5861cea02d1c1c)

tags: added: in-stable-ocata
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.openstack.org/438549
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=3c5345fc75da1e289929ef5caf08a0f75f904bb4
Submitter: Jenkins
Branch: master

commit 3c5345fc75da1e289929ef5caf08a0f75f904bb4
Author: Brent Eagles <email address hidden>
Date: Mon Feb 27 11:42:20 2017 -0330

    Make neutron dhcp agents per network conditional

    While the heat templates specify a default value of 3, it rarely seems
    to have an effect as the tripleoclient is setting this according to the
    controller scale. This was fine before composable roles, but it is now
    invalid. While the client needs to be modified to no longer set this
    according to controller scale, the template should default to a sentinel
    value that will allow the puppet code to determine the proper value by
    the number of hosts that have the neutron dhcp agent deployed on them.

    Depends-On: I5533e42c5ba9f72cc70d80489a07e30ee2341198
    Partial-bug: #1632721
    Change-Id: I06628764c4769d91bbc42efe1c722702d6574d02

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (master)

Reviewed: https://review.openstack.org/438564
Committed: https://git.openstack.org/cgit/openstack/python-tripleoclient/commit/?id=1051880e92a46a508bc92da01f4beb7a9203525b
Submitter: Jenkins
Branch: master

commit 1051880e92a46a508bc92da01f4beb7a9203525b
Author: Brent Eagles <email address hidden>
Date: Mon Feb 27 12:06:48 2017 -0330

    Remove calculation for NeutronDhcpAgentsPerNetwork

    This patch removes the calculation that set the
    NeutronDhcpAgentsPerNetwork configuration based on the number of
    "controllers" being deployed. With composable roles, this is incorrect
    and the default, if required, should be determined by the number of
    neutron dhcp agent services being deployed - not a role count.

    Closes-Bug: #1632721
    Depends-On: I06628764c4769d91bbc42efe1c722702d6574d02
    Change-Id: If202a8255f8ad9f662f0d66a5f630f1b7ae60a26

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

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/442022

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tripleo-heat-templates (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/442024

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (stable/ocata)

Reviewed: https://review.openstack.org/442024
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=9c91720199242174151b5d01803785e8266a4db7
Submitter: Jenkins
Branch: stable/ocata

commit 9c91720199242174151b5d01803785e8266a4db7
Author: Brent Eagles <email address hidden>
Date: Mon Feb 27 11:42:20 2017 -0330

    Make neutron dhcp agents per network conditional

    While the heat templates specify a default value of 3, it rarely seems
    to have an effect as the tripleoclient is setting this according to the
    controller scale. This was fine before composable roles, but it is now
    invalid. While the client needs to be modified to no longer set this
    according to controller scale, the template should default to a sentinel
    value that will allow the puppet code to determine the proper value by
    the number of hosts that have the neutron dhcp agent deployed on them.

    Depends-On: I5533e42c5ba9f72cc70d80489a07e30ee2341198
    Partial-bug: #1632721
    Change-Id: I06628764c4769d91bbc42efe1c722702d6574d02
    (cherry picked from commit 3c5345fc75da1e289929ef5caf08a0f75f904bb4)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (stable/ocata)

Reviewed: https://review.openstack.org/442022
Committed: https://git.openstack.org/cgit/openstack/python-tripleoclient/commit/?id=4a5fb3810ee23b59f10ee87251c6149b761c9daa
Submitter: Jenkins
Branch: stable/ocata

commit 4a5fb3810ee23b59f10ee87251c6149b761c9daa
Author: Brent Eagles <email address hidden>
Date: Mon Feb 27 12:06:48 2017 -0330

    Remove calculation for NeutronDhcpAgentsPerNetwork

    This patch removes the calculation that set the
    NeutronDhcpAgentsPerNetwork configuration based on the number of
    "controllers" being deployed. With composable roles, this is incorrect
    and the default, if required, should be determined by the number of
    neutron dhcp agent services being deployed - not a role count.

    Closes-Bug: #1632721
    Depends-On: I06628764c4769d91bbc42efe1c722702d6574d02
    Change-Id: If202a8255f8ad9f662f0d66a5f630f1b7ae60a26
    (cherry picked from commit 1051880e92a46a508bc92da01f4beb7a9203525b)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient 7.0.0

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient 6.2.0

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-tripleo (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/479970

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

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/479971

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-tripleo (stable/newton)

Reviewed: https://review.openstack.org/479970
Committed: https://git.openstack.org/cgit/openstack/puppet-tripleo/commit/?id=d1d38fb26a632b1a7adddc2f2d58bb7649efcfc6
Submitter: Jenkins
Branch: stable/newton

commit d1d38fb26a632b1a7adddc2f2d58bb7649efcfc6
Author: Brent Eagles <email address hidden>
Date: Fri Feb 24 11:52:11 2017 -0330

    Default neutron dhcp_agents_per_network to number of agents

    This patch will set neutron's dhcp_agents_per_network equal to the
    number of deployed neutron DHCP agents unless otherwise explicitly set.

    Conflicts:
     manifests/profile/base/neutron.pp

    Note: spec/classes/tripleo_profile_base_neutron_spec.rb removed from
    backport as it required defining the neutron class as a precondition to
    satisfy a requirement for a rabbit password. This leads to a duplicate
    definition.

    Partial-bug: #1632721
    Change-Id: I5533e42c5ba9f72cc70d80489a07e30ee2341198
    (cherry picked from commit 52a68ffc8f060e1961458a524e5861cea02d1c1c)
    (cherry picked from commit 4b3ff753717e926a64df0173f1dafab38e41de0b)

tags: added: in-stable-newton
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-tripleoclient (stable/newton)

Reviewed: https://review.openstack.org/479971
Committed: https://git.openstack.org/cgit/openstack/python-tripleoclient/commit/?id=153972c4080bef87bfff2563e0b5b331dd29fe26
Submitter: Jenkins
Branch: stable/newton

commit 153972c4080bef87bfff2563e0b5b331dd29fe26
Author: Brent Eagles <email address hidden>
Date: Mon Feb 27 12:06:48 2017 -0330

    Remove calculation for NeutronDhcpAgentsPerNetwork

    This patch removes the calculation that set the
    NeutronDhcpAgentsPerNetwork configuration based on the number of
    "controllers" being deployed. With composable roles, this is incorrect
    and the default, if required, should be determined by the number of
    neutron dhcp agent services being deployed - not a role count.

    Closes-Bug: #1632721
    Depends-On: I06628764c4769d91bbc42efe1c722702d6574d02
    Change-Id: If202a8255f8ad9f662f0d66a5f630f1b7ae60a26
    (cherry picked from commit 1051880e92a46a508bc92da01f4beb7a9203525b)
    (cherry picked from commit 4a5fb3810ee23b59f10ee87251c6149b761c9daa)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-tripleoclient 5.4.3

This issue was fixed in the openstack/python-tripleoclient 5.4.3 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.