Re: [openstack-dev] [cinder]Using DEFAULT section to configure drivers is not supported since Ocata

2017-02-03 Thread Gyorgy Szombathelyi
Hello!
> >
> __
> 
> >  OpenStack Development Mailing List (not for usage questions)
> > Unsubscribe:
> > openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> 
> Hi György,
> 
> There is a manage command that allows you to change the host without
> using SQL:
> 
>  cinder-manage volume update_host --currenthost CURRENTHOST --
> newhost NEWHOST
> 
> 
> If you are using consistency groups you'll also have to change those:
> 
>  cinder-manage cg update_cg_host --currenthost CURRENTHOST --newhost
> NEWHOST
> 
> 
> I hope these help.

Definitely! So nothing has to be written, it is already done. 

> 
> Cheers,
> Gorka.
> 
Thanks,
György
> __
> 
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-
> requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [cinder]Using DEFAULT section to configure drivers is not supported since Ocata

2017-02-03 Thread Gorka Eguileor
On 02/02, Gyorgy Szombathelyi wrote:
> Hi!
>
> Because of the deprecated driver configuration in the DEFAULT section doesn't 
> work anymore in Ocata, I would like to ask if any migration tool exists for 
> using the previously created volumes?
>
> E.g. if the existing volumes have the attribute os-vol-host-attr:host like 
> hostname#RBD, cinder operations won't work until one doesn't do a database 
> update to the format like hostname#ceph#ceph (if the new backend section name 
> is ceph).
> It is not that hard to do a UPDATE SQL on the database, but I think it is not 
> a good thing to force users to do it. Maybe a migration script, or a fallback 
> code in cinder-volume would be appreciated.
> Thinking about the migration script, maybe it should update the old style 
> host attribute to the first defined backend. Or am I just oversighting 
> something obvious?
>
> Br,
> György
>
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Hi György,

There is a manage command that allows you to change the host without
using SQL:

 cinder-manage volume update_host --currenthost CURRENTHOST --newhost NEWHOST


If you are using consistency groups you'll also have to change those:

 cinder-manage cg update_cg_host --currenthost CURRENTHOST --newhost NEWHOST


I hope these help.

Cheers,
Gorka.

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev