nova-common installation triggers nova-manage db sync on compute node
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nova (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I've installed nova-compute-xen on a compute node, and nova-common tries to make a nova-manage db sync when the package is configured. This results on a "/var/lib/
$ sudo aptitude install python-
$ sudo add-apt-repository ppa:nova-
$ sudo aptitude update
$ sudo aptitude install nova-compute-xen
(...)
Configuring nova-common (2012.1~
Adding system user `nova' (UID 107) ...
Adding new user `nova' (UID 107) with group `nogroup' ...
Not creating home directory `/var/lib/nova'.
2012-02-08 15:40:59,488 DEBUG nova.utils [-] backend <module 'nova.db.
2012-02-08 15:40:59,489 DEBUG migrate.
(...)
$ dpkg -l|grep nova
ii nova-common 2012.1~
ii nova-compute 2012.1~
ii nova-compute-xen 2012.1~
ii python-nova 2012.1~
ii python-novaclient 2012.1~
Hi Alvaro-
This is run in the post-installation step of the nova-common package, which is installed with nova-compute-xen. It is the expected behavior and happens to help users who want to install all nova components on a single node and have something ready to use out-of-the-box. Note that this command is only called when nova.conf's sql_connection points to a local sqlite database (which it does with the default config). If you've installed a compute package on an isolated node, you've probably also updated your config to point to a remote, shared database. If that is the case, and you've elected to keep your custom config file during the next package installation/ upgrade, the call to nova db sync is skipped.