@Override public void fireEnable(ServiceConfiguration config) throws ServiceRegistrationException { if (!config.isVmLocal()) { for (Host h : Hosts.list()) { if (h.getHostAddresses().contains(config.getInetAddress())) { EventRecord.here( EucalyptusBuilder.class, EventType.COMPONENT_SERVICE_ENABLED, config.toString()) .info(); return; } } throw Faults.failure( config, Exceptions.error( "There is no host in the system (yet) for the given cloud controller configuration: " + config.getFullName() + ".\nHosts are: " + Hosts.list())); } else if (config.isVmLocal() && !Hosts.isCoordinator()) { throw Faults.failure( config, Exceptions.error( "This cloud controller " + config.getFullName() + " is not currently the coordinator " + Hosts.list())); } }