¿ù°£ Àα⠰Խù°

°Ô½Ã¹° 715°Ç
   
cinder retype
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2017-11-21 (È­) 13:08 Á¶È¸ : 7166
                                
¹®Á¦) cinder Backend°¡ LVM ÇüÅÂÀÏ°æ¿ì¿¡´Â retype ¿¡¼­ ¹®Á¦°¡ ¾ø¾úÀ¸³ª....ceph backend ¿¡¼­´Â ¾Æ·¡¿Í °°ÀÌ ¿¡·¯ ¹ß»ý 
# cinder list
+--------------------------------------+-----------+------------------------------------------------+------+-------------+----------+-------------+
|                  ID                  |   Status  |                      Name                      | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+-----------+------------------------------------------------+------+-------------+----------+-------------+
| 3614c395-f9be-4ba6-853f-f73c4e56eb5a |  retyping |                   test_sata                    |  10  |     sata    |  false   |             |



# cinder help retype
usage: cinder retype [--migration-policy <never|on-demand>]
                     <volume> <volume-type>

Changes the volume type for a volume.

Positional arguments:
  <volume>              Name or ID of volume for which to modify type.
  <volume-type>         New volume type.

Optional arguments:
  --migration-policy <never|on-demand>
                        Migration policy during retype of volume.



# tail -f   /var/log/cinder/cinder-volume.log
...................................
2017-11-21 13:07:49.696 9399 INFO cinder.volume.flows.manager.create_volume [req-772586bc-c68a-43e5-9ea9-2fdc270b96a1 0989cabab0124d578b69f1e4aa9a1841 7d5a2d6a87b7425b84a23a673a1a530d - - -] Volume 9243a24f-0bd7-4d92-ac06-6e30e34aecd9: being created as raw with specification: {'status': u'creating', 'volume_size': 30, 'volume_name': 'volume-9243a24f-0bd7-4d92-ac06-6e30e34aecd9'}
2017-11-21 13:07:49.880 9399 INFO cinder.volume.flows.manager.create_volume [req-772586bc-c68a-43e5-9ea9-2fdc270b96a1 0989cabab0124d578b69f1e4aa9a1841 7d5a2d6a87b7425b84a23a673a1a530d - - -] Volume volume-9243a24f-0bd7-4d92-ac06-6e30e34aecd9 (9243a24f-0bd7-4d92-ac06-6e30e34aecd9): created successfully
2017-11-21 13:07:49.885 9399 INFO cinder.volume.manager [req-772586bc-c68a-43e5-9ea9-2fdc270b96a1 0989cabab0124d578b69f1e4aa9a1841 7d5a2d6a87b7425b84a23a673a1a530d - - -] Created volume successfully.
2017-11-21 13:07:50.625 9424 ERROR cinder.volume.manager [req-772586bc-c68a-43e5-9ea9-2fdc270b96a1 0989cabab0124d578b69f1e4aa9a1841 7d5a2d6a87b7425b84a23a673a1a530d - - -] Failed to copy volume 3b717e62-0d3f-4aa4-b3a2-c4886879c4ee to 9243a24f-0bd7-4d92-ac06-6e30e34aecd9
2017-11-21 13:07:50.625 9424 ERROR cinder.volume.manager Traceback (most recent call last):
2017-11-21 13:07:50.625 9424 ERROR cinder.volume.manager   File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 1784, in _migrate_volume_generic
2017-11-21 13:07:50.625 9424 ERROR cinder.volume.manager     new_volume.id)
2017-11-21 13:07:50.625 9424 ERROR cinder.volume.manager   File "/usr/lib/python2.7/dist-packages/cinder/compute/nova.py", line 169, in update_server_volume
2017-11-21 13:07:50.625 9424 ERROR cinder.volume.manager     novaclient(context).volumes.update_server_volume(server_id,
2017-11-21 13:07:50.625 9424 ERROR cinder.volume.manager   File "/usr/lib/python2.7/dist-packages/cinder/compute/nova.py", line 133, in novaclient
2017-11-21 13:07:50.625 9424 ERROR cinder.volume.manager     **region_filter)
2017-11-21 13:07:50.625 9424 ERROR cinder.volume.manager   File "/usr/lib/python2.7/dist-packages/novaclient/service_catalog.py", line 84, in url_for
2017-11-21 13:07:50.625 9424 ERROR cinder.volume.manager     raise novaclient.exceptions.EndpointNotFound()
2017-11-21 13:07:50.625 9424 ERROR cinder.volume.manager EndpointNotFound
2017-11-21 13:07:50.625 9424 ERROR cinder.volume.manager 
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher [req-772586bc-c68a-43e5-9ea9-2fdc270b96a1 0989cabab0124d578b69f1e4aa9a1841 7d5a2d6a87b7425b84a23a673a1a530d - - -] Exception during message handling: 
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher Traceback (most recent call last):
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 138, in _dispatch_and_reply
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher     incoming.message))
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 185, in _dispatch
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher     return self._do_dispatch(endpoint, method, ctxt, args)
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/oslo_messaging/rpc/dispatcher.py", line 127, in _do_dispatch
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher     result = func(ctxt, **new_args)
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 2310, in retype
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher     new_reservations, status_update)
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher     self.force_reraise()
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 2306, in retype
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher     new_type_id=new_type_id)
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 1983, in migrate_volume
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher     volume.save()
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher     self.force_reraise()
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 1976, in migrate_volume
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher     new_type_id)
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 1791, in _migrate_volume_generic
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher     new_volume)
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 220, in __exit__
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher     self.force_reraise()
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/oslo_utils/excutils.py", line 196, in force_reraise
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher     six.reraise(self.type_, self.value, self.tb)
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/cinder/volume/manager.py", line 1784, in _migrate_volume_generic
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher     new_volume.id)
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/cinder/compute/nova.py", line 169, in update_server_volume
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher     novaclient(context).volumes.update_server_volume(server_id,
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/cinder/compute/nova.py", line 133, in novaclient
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher     **region_filter)
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher   File "/usr/lib/python2.7/dist-packages/novaclient/service_catalog.py", line 84, in url_for
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher     raise novaclient.exceptions.EndpointNotFound()
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher EndpointNotFound
2017-11-21 13:07:50.773 9424 ERROR oslo_messaging.rpc.dispatcher 
2017-11-21 13:07:51.204 9399 INFO cinder.volume.manager [req-772586bc-c68a-43e5-9ea9-2fdc270b96a1 0989cabab0124d578b69f1e4aa9a1841 7d5a2d6a87b7425b84a23a673a1a530d - - -] Deleted volume successfully.




À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.