Nailgun doesn't send primary-mongo role in single deployment

Bug #1311779 reported by Dmitry Ilyin
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Alexander Kislitsky

Bug Description

Naigun should choose one of Mongo nodes as primary similiar to HA mode

diff --git a/nailgun/nailgun/orchestrator/deployment_serializers.py b/nailgun/nailgun/orchestrator/deployment_serializers.py
index 802fe85..8a4e2b6 100644
--- a/nailgun/nailgun/orchestrator/deployment_serializers.py
+++ b/nailgun/nailgun/orchestrator/deployment_serializers.py
@@ -96,6 +96,7 @@ class DeploymentMultinodeSerializer(object):
                 attrs['use_cinder'] = True

         cls.set_storage_parameters(cluster, attrs)
+ cls.set_primary_mongo(attrs['nodes'])

         attrs = dict_merge(
             attrs,
@@ -161,6 +162,9 @@ class DeploymentMultinodeSerializer(object):
         for n in cls.by_role(nodes, 'mongo'):
             n['priority'] = prior.next

+ for n in cls.by_role(nodes, 'primary-mongo'):
+ n['priority'] = prior.next
+
         for n in cls.by_role(nodes, 'controller'):
             n['priority'] = prior.next

Dmitry Ilyin (idv1985)
Changed in fuel:
importance: Undecided → High
milestone: none → 5.0
assignee: nobody → Evgeniy L (rustyrobot)
Evgeniy L (rustyrobot)
Changed in fuel:
assignee: Evgeniy L (rustyrobot) → Fuel Python Team (fuel-python)
status: New → Triaged
Dmitry Ilyin (idv1985)
Changed in fuel:
status: Triaged → Fix Committed
Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Alexander Kislitsky (akislitsky)
Dmitry Ilyin (idv1985)
Changed in fuel:
status: Fix Committed → In Progress
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix merged to fuel-web (master)

Reviewed: https://review.openstack.org/89895
Committed: https://git.openstack.org/cgit/stackforge/fuel-web/commit/?id=d7d85312381af194bd163163da9a1a82c922d23a
Submitter: Jenkins
Branch: master

commit d7d85312381af194bd163163da9a1a82c922d23a
Author: Dmitry Ilyin <email address hidden>
Date: Fri Apr 25 16:53:25 2014 +0400

    Primary-mongo node selection in simple mode added

    * primary-mongo selection node added into simple mode serizlizer
    * mongo nodes priority fixed: mongo, primary-mongo, controllers

    Change-Id: I7769fa3e28d2f112a9ddcf9459dc878117ad3d34
    Closes-Bug: 1311779
    Closes-Bug: 1312637

Changed in fuel:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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