def __init__(self): self.datadir = CONF.scrubber_datadir self.cleanup = CONF.cleanup_scrubber self.cleanup_time = CONF.cleanup_scrubber_time # configs for registry API store auth self.admin_user = CONF.admin_user self.admin_tenant = CONF.admin_tenant_name host, port = CONF.registry_host, CONF.registry_port LOG.info( _("Initializing scrubber with conf: %s") % { 'datadir': self.datadir, 'cleanup': self.cleanup, 'cleanup_time': self.cleanup_time, 'registry_host': host, 'registry_port': port }) registry.configure_registry_client() registry.configure_registry_admin_creds() ctx = context.RequestContext() self.registry = registry.get_registry_client(ctx) utils.safe_mkdirs(self.datadir) store.create_stores()
def __init__(self): self.datadir = CONF.scrubber_datadir self.cleanup = CONF.cleanup_scrubber self.cleanup_time = CONF.cleanup_scrubber_time # configs for registry API store auth self.admin_user = CONF.admin_user self.admin_tenant = CONF.admin_tenant_name host, port = CONF.registry_host, CONF.registry_port LOG.info( _("Initializing scrubber with conf: %s") % { "datadir": self.datadir, "cleanup": self.cleanup, "cleanup_time": self.cleanup_time, "registry_host": host, "registry_port": port, } ) registry.configure_registry_client() registry.configure_registry_admin_creds() ctx = context.RequestContext() self.registry = registry.get_registry_client(ctx) utils.safe_mkdirs(self.datadir)
def __init__(self): glance.store.create_stores() super(Prefetcher, self).__init__() registry.configure_registry_client() registry.configure_registry_admin_creds()
def __init__(self, conf, **local_conf): self.conf = conf self.cache = ImageCache(conf) registry.configure_registry_client(conf) registry.configure_registry_admin_creds(conf)
def __init__(self, conf, **local_conf): self.conf = conf glance.store.create_stores(conf) self.cache = ImageCache(conf) registry.configure_registry_client(conf) registry.configure_registry_admin_creds(conf)
def __init__(self): super(Prefetcher, self).__init__() registry.configure_registry_client() registry.configure_registry_admin_creds()