delete_share_server_with_last_share = True
and
automatic_share_server_cleanup = True
I was able to reproduce with the following patch:
@@ -1878,11 +1879,15 @@ class ShareManager(manager.SchedulerDependentManager): LOG.debug("Scheduled deletion of share-server " "with id '%s' automatically by " "deletion of last share.", share_server['id'])
+ print "Sleep some minutes....."
+ time.sleep(120)
+ import pdb; pdb.set_trace() self.delete_share_server(context, share_server)
- @periodic_task.periodic_task(spacing=600)
+ @periodic_task.periodic_task(spacing=1)
@utils.require_driver_initialized
def delete_free_share_servers(self, ctxt):
if not (self.driver.driver_handles_share_servers and self.configuration.automatic_share_server_cleanup):
Issue orccours when:
delete_ share_server_ with_last_ share = True share_server_ cleanup = True
and
automatic_
I was able to reproduce with the following patch: manager. SchedulerDepend entManager) :
LOG. debug(" Scheduled deletion of share-server "
" with id '%s' automatically by "
" deletion of last share.", share_server['id'])
self. delete_ share_server( context, share_server)
@@ -1878,11 +1879,15 @@ class ShareManager(
+ print "Sleep some minutes....."
+ time.sleep(120)
+ import pdb; pdb.set_trace()
- @periodic_ task.periodic_ task(spacing= 600) task.periodic_ task(spacing= 1) require_ driver_ initialized free_share_ servers( self, ctxt): driver_ handles_ share_servers and
self. configuration. automatic_ share_server_ cleanup) :
+ @periodic_
@utils.
def delete_
if not (self.driver.