Class: Bosh::Director::ProblemHandlers::MissingVM

Inherits:
Base
  • Object
show all
Defined in:
lib/bosh/director/problem_handlers/missing_vm.rb

Constant Summary

Constants included from CloudcheckHelper

CloudcheckHelper::DEFAULT_AGENT_TIMEOUT

Instance Attribute Summary

Attributes inherited from Base

#data, #job

Instance Method Summary collapse

Methods inherited from Base

action, action_for, #apply_resolution, auto_resolution, #auto_resolution, #auto_resolve, #checkpoint, #cloud, create_by_type, create_from_model, get_auto_resolution, inherited, init_dsl_data, plan, plan_for, register_as, resolution, #resolution_plan, #resolutions

Methods included from CloudcheckHelper

#delete_vm, #delete_vm_from_cloud, #delete_vm_reference, #reboot_vm, #recreate_vm, #recreate_vm_skip_post_start

Constructor Details

#initialize(instance_id, data) ⇒ MissingVM

Returns a new instance of MissingVM.



8
9
10
11
# File 'lib/bosh/director/problem_handlers/missing_vm.rb', line 8

def initialize(instance_id, data)
  super
  @instance = Models::Instance.find(id: instance_id)
end

Instance Method Details

#descriptionObject



33
34
35
# File 'lib/bosh/director/problem_handlers/missing_vm.rb', line 33

def description
  "VM with cloud ID '#{@instance.vm_cid}' missing."
end