sqlite files end up owned by root
Bug #654452 reported by
Soren Hansen
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Soren Hansen |
Bug Description
Even if started with --uid (and --gid), the sqlite databases are created owned by root.
This can be reproduced by removing nova.sqlite and starting nova-network (and likely any of the other twisted worked) with --uid. It happens because register_models gets called during the Service object instantiation which happens before twistd sheds its privileges.
Related branches
lp:~soren/nova/lp654452
- Jay Pipes (community): Approve
- Eric Day (community): Approve
-
Diff: 114 lines (+22/-3)3 files modifiednova/service.py (+9/-3)
nova/tests/scheduler_unittest.py (+10/-0)
nova/tests/service_unittest.py (+3/-0)
Changed in nova: | |
status: | New → Fix Committed |
importance: | Undecided → Low |
assignee: | nobody → Soren Hansen (soren) |
milestone: | none → austin-feature-freeze |
Changed in nova: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.