[Openstack] the numbs of openstack VolumeManager instance

AllenSun allensunroot at 163.com
Tue Apr 25 08:08:29 UTC 2017


Dear All:
    This is my first mail. I want to ask why the cinder driver instance id changes in different request ? [ Openstack LIberty ]
    I read from source code ,when service start ,VolumeManager init , the volume driver init but I do not see the volume driver init or destroy any where else;
    but when I create two volumes ,I can see the id of volumedriver is different from the log. I add the Log info as following:
#cinder.volume.manager.py
#def create_volume(self, context, volume_id, request_spec=None,
#                  filter_properties=None, allow_reschedule=True):
#    """Creates the volume."""
#    context_elevated = context.elevated()
#    if filter_properties is None:
#        filter_properties = {}
#    if request_spec is None:
#        request_spec = {}
#    try:
#        # NOTE(flaper87): Driver initialization is
#        # verified by the task itself.
#        LOG.info(_LI("="*40))
#        LOG.info(_LI(str(self.driver)))
#        LOG.info(_LI(id(self.driver)))
#        LOG.info(_LI("="*40))       
#        flow_engine = create_volume.get_flow(
#            context_elevated,
#            self,
#            self.db,
#            self.driver,
#            self.scheduler_rpcapi,
#            self.host,
#            volume_id,
#            allow_reschedule,
#            context,
#            request_spec,
#            filter_properties,
#            image_volume_cache=self.image_volume_cache,
#        )
the output line I have marked yellow and green,the part of the log as following:
2017-04-20 15:45:24.775 22117 INFO cinder.volume.manager [req-7acb170b-68bf-4b99-9cd3-35b6672621dd c296515f5381447699c74b1c13996d85 10acaa079771484f96f1467dc23ee617 - - -] ==================================================
2017-04-20 15:45:24.776 22117 INFO cinder.volume.manager [req-7acb170b-68bf-4b99-9cd3-35b6672621dd c296515f5381447699c74b1c13996d85 10acaa079771484f96f1467dc23ee617 - - -] <cinder.volume.drivers.ebs.ebs_driver.EBSDriver object at 0x3e605d0>
2017-04-20 15:45:24.777 22117 INFO cinder.volume.manager [req-7acb170b-68bf-4b99-9cd3-35b6672621dd c296515f5381447699c74b1c13996d85 10acaa079771484f96f1467dc23ee617 - - -] 
65406416
2017-04-20 15:45:24.777 22117 INFO cinder.volume.manager [req-7acb170b-68bf-4b99-9cd3-35b6672621dd c296515f5381447699c74b1c13996d85 10acaa079771484f96f1467dc23ee617 - - -] ==================================================


2017-04-20 15:04:47.311 47898 INFO cinder.volume.manager [req-af81463f-3d8a-43f5-b1c8-2dfd6d54150b c296515f5381447699c74b1c13996d85 10acaa079771484f96f1467dc23ee617 - - -] ==================================================
2017-04-20 15:04:47.313 47898 INFO cinder.volume.manager [req-af81463f-3d8a-43f5-b1c8-2dfd6d54150b c296515f5381447699c74b1c13996d85 10acaa079771484f96f1467dc23ee617 - - -] <cinder.volume.drivers.ebs.ebs_driver.EBSDriver object at 0x42b6fd0>
2017-04-20 15:04:47.313 47898 INFO cinder.volume.manager [req-af81463f-3d8a-43f5-b1c8-2dfd6d54150b c296515f5381447699c74b1c13996d85 10acaa079771484f96f1467dc23ee617 - - -] 
69955536
2017-04-20 15:04:47.314 47898 INFO cinder.volume.manager [req-af81463f-3d8a-43f5-b1c8-2dfd6d54150b c296515f5381447699c74b1c13996d85 10acaa079771484f96f1467dc23ee617 - - -] ==================================================


Anyone can help ? Thanks very much!






 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20170425/289ba600/attachment.html>


More information about the Openstack mailing list