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.



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

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

Instance Method Details

#descriptionObject



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

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