MongoDB guest fails during prepare on Fedora with invalid user

Bug #1416155 reported by Doug Shelley
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack DBaaS (Trove)
Fix Released
Medium
Doug Shelley

Bug Description

During trove create of a MongoDB 2.4 guest running on Fedora, the guest fails with this error

chown: invalid user: ‘mongodb:mongodb’

(Aside, the error was actually masked by this bug - https://bugs.launchpad.net/trove/+bug/1366189)

The problem here is that the Mongo user is hardcoded to "mongodb" which works perfectly fine on Ubuntu but on Fedora/Centos etc, Mongo installs with a "mongod" user.

Doug Shelley (0-doug)
Changed in oslo.utils:
assignee: nobody → Doug Shelley (0-doug)
Doug Shelley (0-doug)
affects: oslo.utils → trove
Changed in trove:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to trove (master)

Reviewed: https://review.openstack.org/151484
Committed: https://git.openstack.org/cgit/openstack/trove/commit/?id=b1b61221a96ad4298b8d81b44f9b20bdb4733231
Submitter: Jenkins
Branch: master

commit b1b61221a96ad4298b8d81b44f9b20bdb4733231
Author: Doug Shelley <email address hidden>
Date: Fri Jan 30 00:28:03 2015 +0000

    Changed hardcoded Mongodb username to variable

    The operating system user used by MongoDB for its files
    and processes was hardcoded to "mongodb" for Debian. Other
    linux variants use different users. This adds a variable,
    MONGO_USER which is set depending on the guest O/S.

    Change-Id: I5b47243ff13607766adfc3337d4e31d4c0598c2a
    Closes-bug: 1416155

Changed in trove:
status: In Progress → Fix Committed
Changed in trove:
importance: Undecided → Medium
milestone: none → kilo-2
Thierry Carrez (ttx)
Changed in trove:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in trove:
milestone: kilo-2 → 2015.1.0
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.