Task 381 | 19:06:02 | L executing post-stop: master/<ID> (1) (00:00:22) L Error: Invalid CPI response - SchemaValidationError: Expected instance of Hash, given instance of NilClass
D, [2021-06-22T19:06:10.988693 #6144] [instance_update(master/<ID> (1))] DEBUG -- DirectorJobRunner: [external-cpi] [cpi-792807] request: {"method":"attach_disk","arguments":["vm-<ID>","disk-<ID>"],"context":{"director_uuid":"<ID>","request_id":"cpi-<ID>","vm":{"stemcell":{"api_version":3}},"datacenters":"<redacted>","default_disk_type":"<redacted>","host":"<redacted>","password":"<redacted>","user":"<redacted>"},"api_version":1} with command: /var/vcap/jobs/vsphere_cpi/bin/cpi D, [2021-06-22T19:06:11.499431 #6144] [instance_update(master/<ID> (1))] DEBUG -- DirectorJobRunner: [external-cpi] [cpi-792807] response: , err: , exit_status: pid 18445 exit 245 <logs omitted for brevity> E, [2021-06-22T19:06:11.506138 #6144] [instance_update(master/<ID> (1))] ERROR -- DirectorJobRunner: Error updating instance: #<Bosh::Clouds::ExternalCpi::InvalidResponse: Invalid CPI response - SchemaValidationError: Expected instance of Hash, given instance of NilClass> /var/vcap/data/packages/director/9ab6cf0d054129da2585c3d01c752015589a85c7/gem_home/ruby/2.6.0/gems/bosh-director-0.0.0/lib/cloud/external_cpi.rb:240:in `rescue in validate_response' /var/vcap/data/packages/director/9ab6cf0d054129da2585c3d01c752015589a85c7/gem_home/ruby/2.6.0/gems/bosh-director-0.0.0/lib/cloud/external_cpi.rb:237:in `validate_response' /var/vcap/data/packages/director/9ab6cf0d054129da2585c3d01c752015589a85c7/gem_home/ruby/2.6.0/gems/bosh-director-0.0.0/lib/cloud/external_cpi.rb:103:in `invoke_cpi_method' /var/vcap/data/packages/director/9ab6cf0d054129da2585c3d01c752015589a85c7/gem_home/ruby/2.6.0/gems/bosh-director-0.0.0/lib/cloud/external_cpi.rb:67:in `attach_disk'
Make note of the attach_disk/create_disk/set_vm_metadata & PID references from the logs as they will assist in resolving this issue.
<Info> af356e5f-42ef-4c10-57dc-a8cdc84e1a83 [6647:17220 ] {dypd:DYPD:Inject:18445-ruby:Initialize:} Executable changed, canceling injection <Info> af356e5f-42ef-4c10-57dc-a8cdc84e1a83 [18447:18447 ] {pmd:AppArmor} Checking for 18445 <Info> af356e5f-42ef-4c10-57dc-a8cdc84e1a83 [6647:18139 ] {dypd:DYPD:Inject:18445-ruby:} Injecting <Warning> af356e5f-42ef-4c10-57dc-a8cdc84e1a83 [6647:18139 ] {dypd:DYPD:Inject:18445-ruby:Initialize:} Can't inject before process started properly <Info> af356e5f-42ef-4c10-57dc-a8cdc84e1a83 [18453:18453 ] {pmd:AppArmor} Checking for 18445