Search in sources :

Example 11 with DetailedStackStatus

use of com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.DetailedStackStatus in project cloudbreak by hortonworks.

the class UpgradeCcmService method deregisterMinaState.

public void deregisterMinaState(Long stackId) {
    DetailedStackStatus detailedStatus = UPGRADE_CCM_IN_PROGRESS;
    String statusReason = "Deregistering Mina agent";
    stackUpdater.updateStackStatus(stackId, detailedStatus, statusReason);
}
Also used : DetailedStackStatus(com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.DetailedStackStatus)

Example 12 with DetailedStackStatus

use of com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.DetailedStackStatus in project cloudbreak by hortonworks.

the class UpgradeCcmService method failedState.

public void failedState(UpgradeCcmContext context, UpgradeCcmFailureEvent payload) {
    InMemoryStateStore.deleteStack(payload.getResourceId());
    DetailedStackStatus detailedStatus = payload.getTransitionStatusAfterFailure().orElse(UPGRADE_CCM_FAILED);
    String statusReason = "Upgrade CCM failed";
    stackUpdater.updateStackStatus(payload.getResourceId(), detailedStatus, statusReason);
}
Also used : DetailedStackStatus(com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.DetailedStackStatus)

Example 13 with DetailedStackStatus

use of com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.DetailedStackStatus in project cloudbreak by hortonworks.

the class UpgradeCcmService method healthCheckState.

public void healthCheckState(Long stackId) {
    DetailedStackStatus detailedStatus = UPGRADE_CCM_IN_PROGRESS;
    String statusReason = "Running health check";
    stackUpdater.updateStackStatus(stackId, detailedStatus, statusReason);
}
Also used : DetailedStackStatus(com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.DetailedStackStatus)

Example 14 with DetailedStackStatus

use of com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.DetailedStackStatus in project cloudbreak by hortonworks.

the class UpgradeCcmService method finishedState.

public void finishedState(Long stackId) {
    InMemoryStateStore.deleteStack(stackId);
    DetailedStackStatus detailedStatus = AVAILABLE;
    String statusReason = "Upgrade CCM completed";
    stackUpdater.updateStackStatus(stackId, detailedStatus, statusReason);
}
Also used : DetailedStackStatus(com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.DetailedStackStatus)

Example 15 with DetailedStackStatus

use of com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.DetailedStackStatus in project cloudbreak by hortonworks.

the class UpgradeCcmService method upgradeState.

public void upgradeState(Long stackId) {
    DetailedStackStatus detailedStatus = UPGRADE_CCM_IN_PROGRESS;
    String statusReason = "Applying upgrade on nodes";
    stackUpdater.updateStackStatus(stackId, detailedStatus, statusReason);
}
Also used : DetailedStackStatus(com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.DetailedStackStatus)

Aggregations

DetailedStackStatus (com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.DetailedStackStatus)17 InstanceMetaData (com.sequenceiq.freeipa.entity.InstanceMetaData)3 CloudVmInstanceStatus (com.sequenceiq.cloudbreak.cloud.model.CloudVmInstanceStatus)2 InstanceStatus (com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.instance.InstanceStatus)2 StackStatus (com.sequenceiq.freeipa.entity.StackStatus)2 ArrayList (java.util.ArrayList)2 HashMap (java.util.HashMap)2 Map (java.util.Map)2 RPCResponse (com.sequenceiq.cloudbreak.client.RPCResponse)1 BadRequestException (com.sequenceiq.cloudbreak.common.exception.BadRequestException)1 Benchmark.checkedMeasure (com.sequenceiq.cloudbreak.util.Benchmark.checkedMeasure)1 DistroXV1Request (com.sequenceiq.distrox.api.v1.distrox.model.DistroXV1Request)1 DetailedEnvironmentResponse (com.sequenceiq.environment.api.v1.environment.model.response.DetailedEnvironmentResponse)1 FlowLogService (com.sequenceiq.flow.core.FlowLogService)1 Status (com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.Status)1 DescribeFreeIpaResponse (com.sequenceiq.freeipa.api.v1.freeipa.stack.model.describe.DescribeFreeIpaResponse)1 Stack (com.sequenceiq.freeipa.entity.Stack)1 InstanceMetaDataService (com.sequenceiq.freeipa.service.stack.instance.InstanceMetaDataService)1 LinkedList (java.util.LinkedList)1 List (java.util.List)1