Comment 3 for bug 705758

Revision history for this message
Vish Ishaya (vishvananda) wrote : Re: [Bug 705758] Re: Ubuntu packaging should handle (some) DB upgrades cases

It seems like we can manually change it each release. The script could specifically check for version 2 in the current version, then check for 3 at cactus release etc...
On Jan 27, 2011, at 5:12 AM, Soren Hansen wrote:

> "nova-manage db version" as I understand it, shows the current version
> of the schema (as seen in the data store). How can I tell if that's up-
> to-date?
>
> --
> You received this bug notification because you are a member of Nova Bug
> Team, which is subscribed to OpenStack Compute (nova).
> https://bugs.launchpad.net/bugs/705758
>
> Title:
> Ubuntu packaging should handle (some) DB upgrades cases
>
> Status in OpenStack Compute (Nova):
> Confirmed
>
> Bug description:
> Continuation of bug 705073. From soren:
>
> I've added a snippet to nova-common's postinst that creates the database if it's a fresh install.
> I haven't sorted out upgrades yet, but I expect it'll involve checking if there's an sql_connection set in nova.conf. If so, show a help screen explaining that a db sync is needed and that it has to be synced between the components that share the data store. If no custom sql_connection is set, just do the upgrade.
>
> I need to add a way to check if an upgrade is due, though. I only want
> to be showing the help text if there's actually an upgrade that needs
> to be done.
>
>