<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div id="isForwardContent"><div style="line-height: 1.7;"><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 14px;"><span style="font-size: 16px;"><b>Dear All:</b></span></div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 14px;"><span style="font-size: 16px;"><b>    This is my first mail. I want to ask why the cinder driver instance id changes in different request ? [ Openstack LIberty ]</b></span></div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 14px;"><span style="font-size: 16px;"><b>    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;</b></span></div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 14px;"><span style="font-size: 16px;"><b>    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:</b></span><br>#cinder.volume.manager.py</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 14px;"><div>#def create_volume(self, context, volume_id, request_spec=None,</div><div>#                  filter_properties=None, allow_reschedule=True):</div><div>#    """Creates the volume."""</div><div>#    context_elevated = context.elevated()</div><div>#    if filter_properties is None:</div><div>#        filter_properties = {}</div><div>#    if request_spec is None:</div><div>#        request_spec = {}</div><div>#    try:</div><div>#        # NOTE(flaper87): Driver initialization is</div><div>#        # verified by the task itself.</div><div><span style="background-color: rgb(255, 204, 0);">#        LOG.info(_LI("="*40))</span></div><div><span style="background-color: rgb(255, 204, 0);">#        LOG.info(_LI(str(self.driver)))</span></div><div><span style="background-color: rgb(255, 204, 0);">#        LOG.info(_LI(id(self.driver)))</span></div><div><span style="background-color: rgb(255, 204, 0);">#        LOG.info(_LI("="*40))    </span>   </div><div>#        flow_engine = create_volume.get_flow(</div><div>#            context_elevated,</div><div>#            self,</div><div>#            self.db,</div><div>#            self.driver,</div><div>#            self.scheduler_rpcapi,</div><div>#            self.host,</div><div>#            volume_id,</div><div>#            allow_reschedule,</div><div>#            context,</div><div>#            request_spec,</div><div>#            filter_properties,</div><div>#            image_volume_cache=self.image_volume_cache,</div><div>#        )</div></div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 14px;"><b>the output line I have marked yellow and green,</b><b>the part of the log as following</b><b>:</b></div><div><div style="">2017-04-20 15:45:24.775 22117 INFO cinder.volume.manager [req-7acb170b-68bf-4b99-9cd3-35b6672621dd c296515f5381447699c74b1c13996d85 10acaa079771484f96f1467dc23ee617 - - -] <span style="background-color: rgb(255, 204, 0);">==================================================</span></div><div>2017-04-20 15:45:24.776 22117 INFO cinder.volume.manager [req-7acb170b-68bf-4b99-9cd3-35b6672621dd c296515f5381447699c74b1c13996d85 10acaa079771484f96f1467dc23ee617 - - -] <span style="background-color: rgb(255, 204, 0);"><cinder.volume.drivers.ebs.ebs_driver.EBSDriver object at 0x3e605d0></span></div><div>2017-04-20 15:45:24.777 22117 INFO cinder.volume.manager [req-7acb170b-68bf-4b99-9cd3-35b6672621dd c296515f5381447699c74b1c13996d85 10acaa079771484f96f1467dc23ee617 - - -] </div><div><span style="background-color: rgb(255, 204, 0);">65406416</span></div><div>2017-04-20 15:45:24.777 22117 INFO cinder.volume.manager [req-7acb170b-68bf-4b99-9cd3-35b6672621dd c296515f5381447699c74b1c13996d85 10acaa079771484f96f1467dc23ee617 - - -] <span style="background-color: rgb(255, 204, 0);">==================================================</span></div></div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 14px;"><br></div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 14px;"><div>2017-04-20 15:04:47.311 47898 INFO cinder.volume.manager [req-af81463f-3d8a-43f5-b1c8-2dfd6d54150b c296515f5381447699c74b1c13996d85 10acaa079771484f96f1467dc23ee617 - - -] <span style="background-color: rgb(128, 128, 0);">==================================================</span></div><div>2017-04-20 15:04:47.313 47898 INFO cinder.volume.manager [req-af81463f-3d8a-43f5-b1c8-2dfd6d54150b c296515f5381447699c74b1c13996d85 10acaa079771484f96f1467dc23ee617 - - -] <span style="background-color: rgb(128, 128, 0);"><cinder.volume.drivers.ebs.ebs_driver.EBSDriver object at 0x42b6fd0></span></div><div>2017-04-20 15:04:47.313 47898 INFO cinder.volume.manager [req-af81463f-3d8a-43f5-b1c8-2dfd6d54150b c296515f5381447699c74b1c13996d85 10acaa079771484f96f1467dc23ee617 - - -] </div><div><span style="background-color: rgb(128, 128, 0);">69955536</span></div><div>2017-04-20 15:04:47.314 47898 INFO cinder.volume.manager [req-af81463f-3d8a-43f5-b1c8-2dfd6d54150b c296515f5381447699c74b1c13996d85 10acaa079771484f96f1467dc23ee617 - - -] <span style="background-color: rgb(128, 128, 0);">==================================================</span></div><div><span style="background-color: rgb(128, 128, 0);"><br></span></div></div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 14px;"><b>Anyone can help ? Thanks very much!</b></div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 14px;"><br></div></div><br><br><span title="neteasefooter"><p> </p></span></div></div><br><br><span title="neteasefooter"><p> </p></span>