cloudbreak icon indicating copy to clipboard operation
cloudbreak copied to clipboard

CB-17882 Integrate EBS `consumption` into datahub (create & terminate)

Open lajosrodek opened this issue 3 years ago • 0 comments

  • Add cloud-consumption-api as new compile dependency for core service.
  • Integrate EBS consumption schedule / unschedule invocations into stack create & terminate flows.
    • Enabled for DH clusters with Kudu only.
    • New states: com.sequenceiq.cloudbreak.core.flow2.stack.provision.StackCreationState.ATTACHED_VOLUME_CONSUMPTION_COLLECTION_SCHEDULING_STATE, com.sequenceiq.cloudbreak.core.flow2.stack.termination.StackTerminationState.ATTACHED_VOLUME_CONSUMPTION_COLLECTION_UNSCHEDULING_STATE .
    • New handlers: com.sequenceiq.cloudbreak.reactor.handler.consumption.AttachedVolumeConsumptionCollectionSchedulingHandler, com.sequenceiq.cloudbreak.reactor.handler.consumption.AttachedVolumeConsumptionCollectionUnschedulingHandler .
    • Just like for its environment (CB-17216 / #12807, property environment.consumption.enabled) and datalake (CB-17217 / #12940, property datalake.consumption.enabled) counterparts, consumption schedule / unschedule invocations are guarded by two checks: application property in application.yml (cb.consumption.enabled) and entitlement (CDP_SAAS). The properties are disabled by default in all cases and are enabled separately in CBD (CB-18965) and helm charts (CB-18768 / CB-18954).
  • Some code cleanup.
  • Testing:
    • Manual testing in local CB.
    • Added new UT and updated existing ones.

lajosrodek avatar Oct 14 '22 02:10 lajosrodek