Ubuntu packaging should handle (some) DB upgrades cases
Bug #705758 reported by
Thierry Carrez
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Wishlist
|
Unassigned | ||
nova (Ubuntu) |
Fix Released
|
Wishlist
|
Unassigned |
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.
To post a comment you must log in.
nova-manage db version? /bugs.launchpad .net/bugs/ 705758
On Jan 21, 2011 12:20 AM, "Thierry Carrez" <email address hidden> wrote:
> Public bug reported:
>
> 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.
>
> ** Affects: nova
> Importance: Wishlist
> Status: Confirmed
>
>
> ** Tags: ubuntu
>
> --
> You received this bug notification because you are a member of Nova Bug
> Team, which is subscribed to OpenStack Compute (nova).
> https:/
>
> 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.
>
>