<div dir="ltr"><div><div><div><div><div><div>HI,<br></div>   I been looking into this.<br></div>   After  reset-state --reset-migration-status of a error volume, I try to retype the same volume using --migration-policy on-demand flag.<br><br></div>   There is no error in cinder-schedule.log but cinder show <vol_id> show the migrations state error again.<br><br></div>   Have a look at cinde-volume.log on my rbd backend, I see that the rbd volume was created (with the correct size 2GB) and deleted:<br><br>   2016-05-05 09:56:46.400 28900 INFO cinder.volume.flows.manager.create_volume [req-67ac8546-e661-440b-9084-1ac1ad4d9ebb 6e57d91da967475b887ef485ca4db611 276c19f252d24f0ebe0aa9ff39307f56 - - -] <b>Volume 440d11b5-540c-4a11-b0d6-a834ad24c02a: being created as raw with specification: {'status': u'creating', 'volume_size': 2, 'volume_name': u'volume-440d11b5-540c-4a11-b0d6-a834ad24c02a'}</b><br>2016-05-05 09:56:46.820 28900 INFO cinder.volume.flows.manager.create_volume [req-67ac8546-e661-440b-9084-1ac1ad4d9ebb 6e57d91da967475b887ef485ca4db611 276c19f252d24f0ebe0aa9ff39307f56 - - -] Volume volume-440d11b5-540c-4a11-b0d6-a834ad24c02a (440d11b5-540c-4a11-b0d6-a834ad24c02a): <b>created successfully</b><br>2016-05-05 09:56:46.825 28900 INFO cinder.volume.manager [req-67ac8546-e661-440b-9084-1ac1ad4d9ebb 6e57d91da967475b887ef485ca4db611 276c19f252d24f0ebe0aa9ff39307f56 - - -] <b>Created volume successfully</b>.<br>2016-05-05 09:56:48.118 28900 INFO cinder.volume.manager [req-b60973b3-e31d-48fb-9fb2-de4bc5c3940f - - - - -] <b>Initialize volume connection completed successfully</b>.<br>2016-05-05 09:56:48.717 28900 INFO cinder.volume.manager [req-67ac8546-e661-440b-9084-1ac1ad4d9ebb 6e57d91da967475b887ef485ca4db611 276c19f252d24f0ebe0aa9ff39307f56 - - -] <b>Deleted volume successfully</b>.<br></div><br></div>Looking if the volume was really created:<br><div><div>cephvolume:~ # for i in {1..30};do rbd ls volumes;sleep 2;done<br>...................<br>volume-c092989d-56e7-445a-aba4-6e66b17aebe7<br>volume-1b840b3a-2f71-4a92-a15e-d0c4161e0cb4<br>volume-440d11b5-540c-4a11-b0d6-a834ad24c02a<br>...................<br><br></div><div>Two seconds after the volume-440d11b5-540c-4a11-b0d6-a834ad24c02a was not there<br></div><div><br></div><div>in cinder-api.log<br><br>2016-05-05 10:14:15.850 28759 INFO cinder.volume.api [req-f14dadc8-ffdb-4447-8b30-7c360c6db563 6e57d91da967475b887ef485ca4db611 276c19f252d24f0ebe0aa9ff39307f56 - - -] Volume info retrieved successfully.<br>2016-05-05 10:14:16.000 28759 INFO cinder.volume.api [req-06e3ac2b-c63f-492d-baa3-3f3877306a25 - - - - -] Volume updated successfully.<br>2016-05-05 10:14:16.007 28759 INFO cinder.volume.api [req-06e3ac2b-c63f-492d-baa3-3f3877306a25 - - - - -] Retype volume request issued successfully.<br>2016-05-05 10:14:16.007 28759 INFO cinder.api.openstack.wsgi [req-06e3ac2b-c63f-492d-baa3-3f3877306a25 - - - - -] <a href="https://cinder01.ifca.es:8776/v2/276c19f252d24f0ebe0aa9ff39307f56/volumes/19440b1b-4db5-43a9-bbe8-fef07fb69c20/action">https://cinder01.ifca.es:8776/v2/276c19f252d24f0ebe0aa9ff39307f56/volumes/19440b1b-4db5-43a9-bbe8-fef07fb69c20/action</a> returned with HTTP 202<br>2016-05-05 10:14:16.009 28759 INFO eventlet.wsgi.server [req-06e3ac2b-c63f-492d-baa3-3f3877306a25 - - - - -] 10.10.32.1 - - [05/May/2016 10:14:16] "POST /v2/276c19f252d24f0ebe0aa9ff39307f56/volumes/19440b1b-4db5-43a9-bbe8-fef07fb69c20/action HTTP/1.1" 202 211 0.215593<br>2016-05-05 10:15:29.052 28759 INFO cinder.api.openstack.wsgi [req-74e3e806-6391-4ebc-a2e0-59bfee940c4d 6e57d91da967475b887ef485ca4db611 276c19f252d24f0ebe0aa9ff39307f56 - - -] GET <a href="https://cinder01.ifca.es:8776/v2/276c19f252d24f0ebe0aa9ff39307f56/volumes/19440b1b-4db5-43a9-bbe8-fef07fb69c20">https://cinder01.ifca.es:8776/v2/276c19f252d24f0ebe0aa9ff39307f56/volumes/19440b1b-4db5-43a9-bbe8-fef07fb69c20</a><br>2016-05-05 10:15:29.207 28759 INFO cinder.volume.api [req-74e3e806-6391-4ebc-a2e0-59bfee940c4d 6e57d91da967475b887ef485ca4db611 276c19f252d24f0ebe0aa9ff39307f56 - - -] Volume info retrieved successfully.<br><br></div><div>Any idea will be welcomed :)<br></div><div>Redgards, I<br></div><div><br><br><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-05-04 15:54 GMT+02:00 Iban Cabrillo <span dir="ltr"><<a href="mailto:cabrillo@ifca.unican.es" target="_blank">cabrillo@ifca.unican.es</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div>  </div><div> looking at cinder.conf</div><div><br></div><div><div># Default volume type to use (string value)</div><div>default_volume_type=rbd</div></div><div><br></div><div><div>[rbd-cephvolume]</div><div>volume_backend_name=rbd</div><div>volume_driver = cinder.volume.drivers.rbd.RBDDriver</div><div>rbd_pool = volumes</div><div>rbd_ceph_conf = /etc/ceph/ceph.conf</div><div>rbd_flatten_volume_from_snapshot = false</div><div>rbd_max_clone_depth = 5</div><div>rbd_store_chunk_size = 4</div><div>rados_connect_timeout = -1</div><div>glance_api_version = 2</div></div><div><br></div><div>regards, I</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2016-05-04 15:13 GMT+02:00 Avishay Traeger <span dir="ltr"><<a href="mailto:avishay@stratoscale.com" target="_blank">avishay@stratoscale.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">How is the volume's volume-type defined?</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Wed, May 4, 2016 at 1:20 PM, Iban Cabrillo <span dir="ltr"><<a href="mailto:cabrillo@ifca.unican.es" target="_blank">cabrillo@ifca.unican.es</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div><div><div>Hi,<br><br></div>   I am trying to move block storage between servers with different storage types, one using iscsi and the other rbd, individually they work fine. nova version is 2:12.0.2-0ubuntu1~cloud0. Of course I have checked with attached and detached blocks for these tests.<br><br></div>  I see both pools:<br>  cloud:~ # cinder get-pools <br><br>+----------+---------------------------------------------+<br>| Property |                    Value                    |<br>+----------+---------------------------------------------+<br>|   name   | cloudvolume@iscsi-cloudvolume#iscsi |<br>+----------+---------------------------------------------+<br>+----------+---------------------------------------+<br>| Property |                 Value                 |<br>+----------+---------------------------------------+<br>|   name   | rbdvolume@rbd-cephvolume#rbd |<br>+----------+---------------------------------------+<br><br></div>running:<br><div><div> #cinder migrate <vol_id>  rbdvolume@rbd-cephvolume#rbd<div><div>  I see this error in cinder-schedule.log<br><br>  2016-05-04 10:32:18.397 28665 ERROR cinder.scheduler.manager [req-609fb633-6c1d-419b-a0d7-193d10a0732a 6e57d91da967475b887ef485ca4db611 276c19f252d24f0ebe0aa9ff39307f56 - - -] Failed to schedule_migrate_volume_to_host: No valid host was found. Cannot place volume cc23af33-586c-4e0d-b248-127aef26acfd on rbdvolume@rbd-cephvolume#rbd<br><br></div><div>Then I checked using retype instead of migrate for different backend types (iscsi and rbd):<br><br>#cinder retype <vol_id> rbd<br><br></div><div>show this log:<br><br>2016-05-04 10:45:04.506 28665 ERROR cinder.scheduler.manager [req-5c7066bf-6fb7-484c-9c95-25cd9508f381 6e57d91da967475b887ef485ca4db611 276c19f252d24f0ebe0aa9ff39307f56 - - -] Could not find a host for volume cc23af33-586c-4e0d-b248-127aef26acfd with type cc8705d5-98cb-4071-bd63-7440a5f95138.<br><br></div><div>using  --migration-policy on-demand flag there is no error in scheduler log, but there is no migration either.<br><br></div><div>Any Idea?<br><br></div><div>Regards, I<span><font color="#888888"><br></font></span></div><span><font color="#888888"><div>-- <br><div><div dir="ltr">############################################################################<br>Iban Cabrillo Bartolome<br>Instituto de Fisica de Cantabria (IFCA)<br>Santander, Spain<br>Tel: <a href="tel:%2B34942200969" value="+34942200969" target="_blank">+34942200969</a><div>PGP PUBLIC KEY: <a href="http://pgp.mit.edu/pks/lookup?op=get&search=0xD9DF0B3D6C8C08AC" target="_blank">http://pgp.mit.edu/pks/lookup?op=get&search=0xD9DF0B3D6C8C08AC</a><br>############################################################################<br><span style="color:rgb(255,255,204)">Bertrand Russell:</span><br style="color:rgb(255,255,204)"><i style="color:rgb(255,255,204)">"El problema con el mundo es que los estúpidos están seguros de todo y los inteligentes están llenos de dudas</i><span style="color:rgb(255,255,204)">"</span><br></div></div></div>
</div></font></span></div></div></div></div>
<br></div></div>_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><b style="font-size:12.7272720336914px"><font color="#666666">Avishay Traeger, PhD</font></b><br></div><div><font color="#666666"><i>System Architect</i></font></div><div><span style="color:rgb(102,102,102);font-size:12.7272720336914px"><br></span></div><div><span style="color:rgb(102,102,102)">Mobile:</span><span style="color:rgb(102,102,102)"> </span><a value="+972524317955" style="color:rgb(17,85,204)">+972 54 447 1475</a><br></div><div><font color="#666666">E-mail: <a href="mailto:avishay@stratoscale.com" style="color:rgb(17,85,204)" target="_blank">avishay@stratoscale.com</a></font></div><div><font color="#666666"><br></font></div><div><img src="http://www.stratoscale.com/wp-content/uploads/Logo-Signature-Stratoscale-230.jpg"><br></div><div><font color="#666666"><br></font></div><div><p style="margin:0in"><a href="http://www.stratoscale.com/" style="color:rgb(17,85,204)" target="_blank"><span style="font-family:arial;font-size:9.75pt">Web</span></a><span style="font-family:arial;font-size:9.75pt"> | </span><a href="http://www.stratoscale.com/blog/" style="color:rgb(17,85,204)" target="_blank"><span style="font-family:arial;font-size:9.75pt">Blog</span></a><span style="font-family:arial;font-size:9.75pt;color:rgb(108,163,214)"> | </span><a href="https://twitter.com/Stratoscale" style="color:rgb(17,85,204)" target="_blank"><span style="font-family:arial;font-size:9.75pt">Twitter</span></a><span style="font-family:arial;font-size:9.75pt;color:rgb(108,163,214)"> | <a href="https://plus.google.com/u/1/b/108421603458396133912/108421603458396133912/posts" style="color:rgb(17,85,204)" target="_blank">Google+</a> | </span><span style="font-family:arial;font-size:9.75pt"><a href="https://www.linkedin.com/company/stratoscale" style="color:rgb(17,85,204)" target="_blank">Linkedin</a></span></p></div></div></div></div></div></div></div></div></div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">############################################################################<br>Iban Cabrillo Bartolome<br>Instituto de Fisica de Cantabria (IFCA)<br>Santander, Spain<br>Tel: <a href="tel:%2B34942200969" value="+34942200969" target="_blank">+34942200969</a><div>PGP PUBLIC KEY: <a href="http://pgp.mit.edu/pks/lookup?op=get&search=0xD9DF0B3D6C8C08AC" target="_blank">http://pgp.mit.edu/pks/lookup?op=get&search=0xD9DF0B3D6C8C08AC</a><br>############################################################################<br><span style="color:rgb(255,255,204)">Bertrand Russell:</span><br style="color:rgb(255,255,204)"><i style="color:rgb(255,255,204)">"El problema con el mundo es que los estúpidos están seguros de todo y los inteligentes están llenos de dudas</i><span style="color:rgb(255,255,204)">"</span><br></div></div></div>
</div>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr">############################################################################<br>Iban Cabrillo Bartolome<br>Instituto de Fisica de Cantabria (IFCA)<br>Santander, Spain<br>Tel: +34942200969<div>PGP PUBLIC KEY: <a href="http://pgp.mit.edu/pks/lookup?op=get&search=0xD9DF0B3D6C8C08AC" target="_blank">http://pgp.mit.edu/pks/lookup?op=get&search=0xD9DF0B3D6C8C08AC</a><br>############################################################################<br><span style="color:rgb(255,255,204)">Bertrand Russell:</span><br style="color:rgb(255,255,204)"><i style="color:rgb(255,255,204)">"El problema con el mundo es que los estúpidos están seguros de todo y los inteligentes están llenos de dudas</i><span style="color:rgb(255,255,204)">"</span><br></div></div></div>
</div>