/** * Start all services required to support management of infrastructure and applications. */ protected void startCommonServices() throws Throwable { this.log(Level.INFO, "Common service starting ..."); HostInitCommonServiceConfig.startServices(this); HostInitAuthServiceConfig.startServices(this); HostInitUpgradeServiceConfig.startServices(this); registerForServiceAvailability(AuthBootstrapService.startTask(this), true, AuthBootstrapService.FACTORY_LINK); if (!ConfigurationUtil.isVca()) { registerForServiceAvailability(ProjectsTransformationBootstrapService.startTask(this), true, ProjectsTransformationBootstrapService.FACTORY_LINK, ProjectFactoryService.SELF_LINK); } this.log(Level.INFO, "Common services started."); }
private static void waitForDefaultRegistryCreated(ManagementHost host) { TestContext ctx = new TestContext(1, Duration.ofSeconds(120)); host.log(Level.INFO, "Waiting for default registry to start."); host.registerForServiceAvailability(ctx.getCompletion(), RegistryService.DEFAULT_INSTANCE_LINK); ctx.await(); host.log(Level.INFO, "Default registry started."); }
/** * Start all services required to support management of infrastructure and applications. */ protected void startManagementServices() throws Throwable { this.log(Level.INFO, "Management service starting ..."); registerForServiceAvailability(CaSigningCertService.startTask(this), true, CaSigningCertService.FACTORY_LINK); HostInitComputeServicesConfig.startServices(this, false); HostInitComputeBackgroundServicesConfig.startServices(this); HostInitRequestServicesConfig.startServices(this); HostInitImageServicesConfig.startServices(this); HostInitUiServicesConfig.startServices(this); HostInitHarborServices.startServices(this, startMockHostAdapterInstance); HostInitDockerAdapterServiceConfig.startServices(this, startMockHostAdapterInstance); HostInitKubernetesAdapterServiceConfig.startServices(this, startMockHostAdapterInstance); HostInitRegistryAdapterServiceConfig.startServices(this); this.log(Level.INFO, "Management services started."); }