Telemetry install guide instructions and Mongo version discrepancy

Bug #1582356 reported by Cameron
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-manuals
Fix Released
High
Chason Chan

Bug Description

On Ubuntu 14.04 and following the full install guide for Mitaka I see an issue when reaching the Telemetry install.

The commands to create the ceilometer DB use db.createUser which is not a valid command in Mongo 2.4.9 which is what comes with Ubuntu 14.04:

mongo --host controller --eval '
  db = db.getSiblingDB("ceilometer");
  db.createUser({user: "ceilometer",
  pwd: "CEILOMETER_DBPASS",
  roles: [ "readWrite", "dbAdmin" ]})'

MongoDB shell version: 2.4.9
connecting to: controller:27017/test
Mon May 16 11:36:25.468 TypeError: Property 'createUser' of object ceilometer is not a function

I believe that command requires Mongo 2.6 or higher.
Mongo was installed per the instructions earlier in the guide in the Environment > NoSQL Database walkthrough and has been working correctly for the previous services that use it.

-----------------------------------
Release: 0.1 on 2016-05-16 07:52
SHA: a5bb7603659afdcab9907a4d211eef48af0b8fe3
Source: http://git.openstack.org/cgit/openstack/openstack-manuals/tree/doc/install-guide/source/ceilometer-install.rst
URL: http://docs.openstack.org/mitaka/install-guide-ubuntu/ceilometer-install.html

Changed in openstack-manuals:
importance: Undecided → Critical
importance: Critical → High
Chason Chan (chen-xing)
Changed in openstack-manuals:
assignee: nobody → Chason (chen-xing)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-manuals (master)

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

Changed in openstack-manuals:
status: New → In Progress
Tom Fifield (fifieldt)
Changed in openstack-manuals:
milestone: none → newton
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-manuals (master)

Reviewed: https://review.openstack.org/321646
Committed: https://git.openstack.org/cgit/openstack/openstack-manuals/commit/?id=1af2a24f56e4e351f9696835204ddc995fd2311d
Submitter: Jenkins
Branch: master

commit 1af2a24f56e4e351f9696835204ddc995fd2311d
Author: chen-xing <chen.xing@99cloud.net>
Date: Fri May 27 00:17:04 2016 +0800

    [install] Fix the incorrect function name

    On Ubuntu 14.04, SUSE and Debian, MongoDB shell version is 2.4.x.
    We should use 'addUser' instead of 'createUser'.

    backport:mitaka

    Change-Id: I66178af5477b52d8e22f44d509c4af30feb4ace5
    Closes-Bug:#1582356

Changed in openstack-manuals:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/openstack-manuals 15.0.0

This issue was fixed in the openstack/openstack-manuals 15.0.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.