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

#agent_client, #agent_timeout_guard, #cloud, #delete_vm, #delete_vm_reference, #handler_error, #instance_name, #reboot_vm, #recreate_vm

Constructor Details

#initialize(vm_id, data) ⇒ MissingVM

Returns a new instance of MissingVM.



10
11
12
13
# File 'lib/bosh/director/problem_handlers/missing_vm.rb', line 10

def initialize(vm_id, data)
  super
  @vm = Models::Vm[vm_id]
end

Instance Method Details

#descriptionObject



30
31
32
# File 'lib/bosh/director/problem_handlers/missing_vm.rb', line 30

def description
  "VM with cloud ID `#{@vm.cid}' missing."
end