[openstack-dev] [Cinder] Query on adding new table to cinder DB

Ivan Kolodyazhny e0ne at e0ne.info
Mon Apr 13 19:33:09 UTC 2015


Hi Deepak,

Your steps look good for e except #3.1 - add unit-tests for new migrations

Regards,
Ivan Kolodyazhny

On Mon, Apr 13, 2015 at 8:20 PM, Deepak Shetty <dpkshetty at gmail.com> wrote:

> Hi Stackers,
>     As part of my WIP work for implementing
> https://blueprints.launchpad.net/nova/+spec/volume-snapshot-improvements
> I am required to add a new table to cinder (snapshot_admin_metadata) and I
> was looking for some inputs on whats are the steps to add a new table to
> existing DB
>
> From what I know:
>
> 1) Create a new migration script at
> cinder/db/sqlalchemy/migrate_repo/versions
>
> 2) Implement the upgrade and downgrade methods
>
> 3) Create your model inside cinder/db/sqlalchemy/models.py
>
> 4) Sync DB using cinder-manage db sync
>
> Are these steps correct ?
>
> thanx,
> deepak
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150413/ee8f802d/attachment.html>


More information about the OpenStack-dev mailing list