Mongo replica setup is broken

Bug #1421283 reported by Vitaly Gusev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Ivan Berezovskiy
5.1.x
Invalid
High
Fuel Library (Deprecated)
6.0.x
Invalid
High
Fuel Library (Deprecated)
6.1.x
Fix Released
High
Ivan Berezovskiy

Bug Description

{"build_id": "2015-02-10_22-54-44", "ostf_sha": "6c046b69d29021524906109f18092363505ee222", "build_number": "112", "release_versions": {"2014.2-6.1": {"VERSION": {"build_id": "2015-02-10_22-54-44", "ostf_sha": "6c046b69d29021524906109f18092363505ee222", "build_number": "112", "api": "1.0", "nailgun_sha": "e6d6cd143b3c52713e301b721807ac199482680b", "production": "docker", "python-fuelclient_sha": "e2e556f6654f9ba280ae43e1cdd0c12d1825bb43", "astute_sha": "214604ee6ba164a112cef6775f428de68372eff3", "feature_groups": ["mirantis"], "release": "6.1", "fuelmain_sha": "a6e7cc1b8998dd86f627ec4b556310ae1fc1d31e", "fuellib_sha": "6435016559edf22bd790c6d2f627272de447e8d7"}}}, "auth_required": true, "api": "1.0", "nailgun_sha": "e6d6cd143b3c52713e301b721807ac199482680b", "production": "docker", "python-fuelclient_sha": "e2e556f6654f9ba280ae43e1cdd0c12d1825bb43", "astute_sha": "214604ee6ba164a112cef6775f428de68372eff3", "feature_groups": ["mirantis"], "release": "6.1", "fuelmain_sha": "a6e7cc1b8998dd86f627ec4b556310ae1fc1d31e", "fuellib_sha": "6435016559edf22bd790c6d2f627272de447e8d7"}

Ceilometer API doesn't connect to Mongo and Mongo is broken

In logs we can see these errors:
http://paste.openstack.org/show/172150/

Changed in fuel:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Ivan Berezovskiy (iberezovskiy)
milestone: none → 6.1
Revision history for this message
Ivan Berezovskiy (iberezovskiy) wrote :

On primary mongo node config /etc/mongodb.conf doesn't contain parameter 'replset'. That's why you can see { "ok" : 0, "errmsg" : "server is not running with --replSet" } on error log. This parameter should be set if we are using more than one mongo node.
It should be passed from https://github.com/stackforge/fuel-library/blob/master/deployment/puppet/osnailyfacter/modular/mongo_primary.pp for primary node and from https://github.com/stackforge/fuel-library/blob/master/deployment/puppet/osnailyfacter/modular/mongo.pp for all secondary nodes.

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

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

Changed in fuel:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/156254
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=b2b6e0c47669fe5c770eec20a4b254aa543a0451
Submitter: Jenkins
Branch: master

commit b2b6e0c47669fe5c770eec20a4b254aa543a0451
Author: iberezovskiy <email address hidden>
Date: Mon Feb 16 18:30:54 2015 +0300

    Set parameter 'replset' to ceilometer for all mongo nodes

    Change-Id: I8e1adff9a9fc843414c2366185ab4b07be372740
    Closes-bug: #1421283

Changed in fuel:
status: In Progress → Fix Committed
tags: added: ceilometer mongo
Revision history for this message
Ivan Berezovskiy (iberezovskiy) wrote :

This issue affects only 6.1 milestone because it was broken after changes for granular deployment that is feature for 6.1 only

Revision history for this message
Maksym Strukov (unbelll) wrote :

{
  "build_id": "2015-03-16_22-54-44",
  "ostf_sha": "e86c961ceacfa5a8398b6cbda7b70a5f06afb476",
  "build_number": "202",
  "release_versions": {
    "2014.2-6.1": {
      "VERSION": {
        "build_id": "2015-03-16_22-54-44",
        "ostf_sha": "e86c961ceacfa5a8398b6cbda7b70a5f06afb476",
        "build_number": "202",
        "api": "1.0",
        "nailgun_sha": "874df0d06e32f14db77746cfeb2dd74d4a6e528c",
        "production": "docker",
        "python-fuelclient_sha": "2509c9b72cdcdbe46c141685a99b03cd934803be",
        "astute_sha": "93e427ac49109fa3fd8b0e1d0bb3d14092be2e8c",
        "feature_groups": [
          "mirantis"
        ],
        "release": "6.1",
        "fuelmain_sha": "608b72a6f79a719cf01c35a19d0091fe20c8288a",
        "fuellib_sha": "924d73ae4766646e1c3a44d7b59c4120985e45f0"
      }
    }
  },
  "auth_required": true,
  "api": "1.0",
  "nailgun_sha": "874df0d06e32f14db77746cfeb2dd74d4a6e528c",
  "production": "docker",
  "python-fuelclient_sha": "2509c9b72cdcdbe46c141685a99b03cd934803be",
  "astute_sha": "93e427ac49109fa3fd8b0e1d0bb3d14092be2e8c",
  "feature_groups": [
    "mirantis"
  ],
  "release": "6.1",
  "fuelmain_sha": "608b72a6f79a719cf01c35a19d0091fe20c8288a",
  "fuellib_sha": "924d73ae4766646e1c3a44d7b59c4120985e45f0"
}

Verified as fixed

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.