コード例 #1
0
ファイル: scrubber.py プロジェクト: bopopescu/Openstack-11
    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()
コード例 #2
0
ファイル: scrubber.py プロジェクト: ameade/glance
    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)
コード例 #3
0
ファイル: prefetcher.py プロジェクト: fruitscloud/glance
 def __init__(self):
     glance.store.create_stores()
     super(Prefetcher, self).__init__()
     registry.configure_registry_client()
     registry.configure_registry_admin_creds()
コード例 #4
0
ファイル: queue_image.py プロジェクト: AsylumCorp/glance
 def __init__(self, conf, **local_conf):
     self.conf = conf
     self.cache = ImageCache(conf)
     registry.configure_registry_client(conf)
     registry.configure_registry_admin_creds(conf)
コード例 #5
0
 def __init__(self):
     glance.store.create_stores()
     super(Prefetcher, self).__init__()
     registry.configure_registry_client()
     registry.configure_registry_admin_creds()
コード例 #6
0
 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)
コード例 #7
0
 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)
コード例 #8
0
 def __init__(self):
     super(Prefetcher, self).__init__()
     registry.configure_registry_client()
     registry.configure_registry_admin_creds()
コード例 #9
0
 def __init__(self, conf, **local_conf):
     self.conf = conf
     self.cache = ImageCache(conf)
     registry.configure_registry_client(conf)
     registry.configure_registry_admin_creds(conf)