modify remarks and logs for cinder proxy
Change-Id: Ib39eb92dc68e8cacfb5588a2b04226723249bbf5
This commit is contained in:
parent
fa7b301843
commit
7f649fc7ad
|
@ -79,8 +79,8 @@ volume_manager_opts = [
|
||||||
'when synchronizing volume data'),
|
'when synchronizing volume data'),
|
||||||
cfg.IntOpt('pagination_limit',
|
cfg.IntOpt('pagination_limit',
|
||||||
default=50,
|
default=50,
|
||||||
help='pagination limit query for volume between cascading'
|
help='pagination limit query for volumes between'
|
||||||
'and cascaded volume'),
|
'cascading and cascaded openstack'),
|
||||||
cfg.IntOpt('voltype_sync_interval',
|
cfg.IntOpt('voltype_sync_interval',
|
||||||
default=3600,
|
default=3600,
|
||||||
help='seconds between cascading and cascaded cinders'
|
help='seconds between cascading and cascaded cinders'
|
||||||
|
@ -550,17 +550,17 @@ class CinderProxy(manager.SchedulerDependentManager):
|
||||||
'limit': page_limit,
|
'limit': page_limit,
|
||||||
}
|
}
|
||||||
vols = cinderClient.volumes.list(search_opts=search_opt)
|
vols = cinderClient.volumes.list(search_opts=search_opt)
|
||||||
LOG.debug(_('cascade info, pagination volumes query.marker'
|
LOG.debug(_('cascade info: pagination volumes query.'
|
||||||
'%s, vols:%s'), marker, vols)
|
'marker: %s, vols: %s'), marker, vols)
|
||||||
if (vols):
|
if (vols):
|
||||||
volumes.extend(vols)
|
volumes.extend(vols)
|
||||||
marker = vols[-1]._info['id']
|
marker = vols[-1]._info['id']
|
||||||
LOG.debug(_('cascade info, marker: %s'), marker)
|
LOG.debug(_('cascade info: marker: %s'), marker)
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
break
|
break
|
||||||
LOG.info(_('Cascade info: change since time is none,'
|
LOG.info(_('Cascade info: change since time is none,'
|
||||||
'volumes:%s'), volumes)
|
'volumes: %s'), volumes)
|
||||||
else:
|
else:
|
||||||
change_since_isotime = \
|
change_since_isotime = \
|
||||||
timeutils.parse_isotime(self._change_since_time)
|
timeutils.parse_isotime(self._change_since_time)
|
||||||
|
|
Loading…
Reference in New Issue