Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 548780 - sys-cluster/nova doesn't require a db when installing only the compute module
Summary: sys-cluster/nova doesn't require a db when installing only the compute module
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-06 15:30 UTC by Thomas Capricelli
Modified: 2015-05-15 07:39 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Capricelli 2015-05-06 15:30:31 UTC
Installing only the compute module is something pretty common in openstack (you'll do this on all compute nodes, while other modules are only needed on the controller).

In this case, you do not require a db. Currently the ebuild requires one to be installed.

Reproducible: Always
Comment 1 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2015-05-09 22:14:44 UTC
I'm not sure how easy this will be to do.  The easiest way to do it would be to have a compute-only use flag maybe?  Otherwise it would need to check all the other use flags to be sure no other services are used.  Easier to prove a positive then a negative.
Comment 2 Thomas Capricelli 2015-05-10 00:05:52 UTC
i'm not familiar with ebuilds, but isn't it possible to do something like

Either
* add a USE flag "api" that would mean xvpvncproxy, spicehtml5proxy, scheduler, consoleauth, conductor, cert and api
* or add USE flags for every one of them

Then
db_needed = false
if useflag(api): db_needed = true
if useflag(conductor): db_needed = true
etc..

then only the test
if (db_needed)
  current check about using mysql or sqlite

(btw, is 'network' really still used ? neutron has been there for a long time now)
And WHO uses sqlite, anyway ?
Comment 3 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2015-05-10 00:25:47 UTC
honestly not sure who uses sqlite, I think it's more there for swift installs.

some still use nova-network, even if it sucks :P

the db_needed trick could work, I'll have to think about it.
Comment 4 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2015-05-15 07:39:12 UTC
It's controlled via a compute-only use flag for both neutron and nova.