MongoDB guest fails during prepare on Fedora with invalid user
Bug #1416155 reported by
Doug Shelley
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:/
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.
Changed in oslo.utils: | |
assignee: | nobody → Doug Shelley (0-doug) |
affects: | oslo.utils → trove |
Changed in trove: | |
status: | New → In Progress |
Changed in trove: | |
importance: | Undecided → Medium |
milestone: | none → kilo-2 |
Changed in trove: | |
status: | Fix Committed → Fix Released |
Changed in trove: | |
milestone: | kilo-2 → 2015.1.0 |
To post a comment you must log in.
Reviewed: https:/ /review. openstack. org/151484 /git.openstack. org/cgit/ openstack/ trove/commit/ ?id=b1b61221a96 ad4298b8d81b44f 9b20bdb4733231
Committed: https:/
Submitter: Jenkins
Branch: master
commit b1b61221a96ad42 98b8d81b44f9b20 bdb4733231
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: I5b47243ff13607 766adfc3337d4e3 1d4c0598c2a
Closes-bug: 1416155