This repository was archived by the owner on Jan 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 242
This repository was archived by the owner on Jan 21, 2022. It is now read-only.
BOSH cck fails when attempting to recreate containers #353
Copy link
Copy link
Open
Labels
Description
https://github.com/cloudfoundry/bosh-lite/blob/master/docs/bosh-cck.md
The above instructions no longer works to recover bosh-lite containers upon reboot of the host (AWS EC2 instance in this case). The strange thing for my scenario is that bosh cck fails but one of the containers is fixed upon completion of that command. A subsequent bosh deploy adds the two additional missing containers.
ubuntu@agent-id-bosh-0:~$ bosh -d etcd-manifest.yml cck
<skipped some output>
Scan is complete, checking if any problems found...
Found 3 problems
Problem 1 of 3: etcd_z1/2 (ed696055-75b8-4449-8807-fb1d0d091538) (c6396aee-ce0b-4dc0-44b6-d96f67506dff) is not responding.
1. Skip for now
2. Reboot VM
3. Recreate VM for 'etcd_z1/2 (ed696055-75b8-4449-8807-fb1d0d091538)'
4. Delete VM reference (forceful; may need to manually delete VM from the Cloud to avoid IP conflicts)
Please choose a resolution [1 - 4]: 3
<skipped more output; chose "3" or "recreate" for all VMs>
Director task 24
Started applying problem resolutions
Started applying problem resolutions > unresponsive_agent 3: Recreate VM for 'etcd_z1/2 (ed696055-75b8-4449-8807-fb1d0d091538)'. Failed: Creating VM with agent ID '5eda1ec1-3f7c-4e9b-875e-73a9d75209d0': Creating container: container: start: exit status 2 (00:00:11)
Started applying problem resolutions > unresponsive_agent 1: Recreate VM for 'etcd_z1/0 (783a020c-f5d5-449e-b0f4-e48f8c74dfa9)'. Failed: Creating VM with agent ID '4a51a656-07e3-4c42-89e3-69faad4b205c': Creating container: container: start: exit status 2 (00:00:11)
Started applying problem resolutions > unresponsive_agent 2: Recreate VM for 'etcd_z1/1 (e4ecbcb5-4ecd-488a-98a7-ad51c1ed6bf8)'. Done (00:00:52)
Failed applying problem resolutions (00:01:14)
Error 100: Error resolving problem `7': Creating VM with agent ID '5eda1ec1-3f7c-4e9b-875e-73a9d75209d0': Creating container: container: start: exit status 2
Error resolving problem `8': Creating VM with agent ID '4a51a656-07e3-4c42-89e3-69faad4b205c': Creating container: container: start: exit status 2
Task 24 error
A snippet from the debug log:
I, [2016-03-23 16:29:57 #2526] [task:24] INFO -- DirectorJobRunner: Creating VM
D, [2016-03-23 16:29:57 #2526] [task:24] DEBUG -- DirectorJobRunner: External CPI sending request: {"method":"create_vm","arguments":["4a51a656-07e3-4c42-89e3-69faad4b205c","9ff9ea15-73e5-467b-7fef-67d079850c1e",{},{"etcd1":{"ip":"10.244.4.4","netmask":"255.255.255.0","cloud_properties":{"name":"random"},"default":["dns","gateway"],"gateway":"10.244.4.1"}},["dac4223b-97c2-4031-6bb5-8718c908485f"],{}],"context":{"director_uuid":"60e5fa30-1059-4a03-8d85-351fde555719"}} with command: /var/vcap/jobs/warden_cpi/bin/cpi
D, [2016-03-23 16:29:58 #2526] [task:24] DEBUG -- DirectorJobRunner: External CPI got response: {"result":null,"error":{"type":"Bosh::Clouds::CloudError","message":"Creating VM with agent ID '4a51a656-07e3-4c42-89e3-69faad4b205c': Creating container: container: start: exit status 2","ok_to_retry":false},"log":""}, err: , exit_status: pid 3077 exit 0
E, [2016-03-23 16:29:58 #2526] [task:24] ERROR -- DirectorJobRunner: error creating vm: Creating VM with agent ID '4a51a656-07e3-4c42-89e3-69faad4b205c': Creating container: container: start: exit status 2
E, [2016-03-23 16:29:58 #2526] [task:24] ERROR -- DirectorJobRunner: Error resolving problem `8': Creating VM with agent ID '4a51a656-07e3-4c42-89e3-69faad4b205c': Creating container: container: start: exit status 2
E, [2016-03-23 16:29:58 #2526] [task:24] ERROR -- DirectorJobRunner: /var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh_cpi-1.3215.0/lib/cloud/external_cpi.rb:119:in `handle_error'
/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh_cpi-1.3215.0/lib/cloud/external_cpi.rb:88:in `invoke_cpi_method'
/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh_cpi-1.3215.0/lib/cloud/external_cpi.rb:51:in `create_vm'
/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.3215.0/lib/bosh/director/vm_creator.rb:118:in `create'
/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.3215.0/lib/bosh/director/vm_creator.rb:53:in `create_for_instance_plan'
/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.3215.0/lib/bosh/director/cloudcheck_helper.rb:62:in `recreate_vm'
/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.3215.0/lib/bosh/director/problem_handlers/unresponsive_agent.rb:37:in `block (2 levels) in <class:UnresponsiveAgent>'
/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.3215.0/lib/bosh/director/problem_handlers/base.rb:83:in `instance_eval'
/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.3215.0/lib/bosh/director/problem_handlers/base.rb:83:in `apply_resolution'
/var/vcap/packages/director/gem_home/ruby/2.1.0/gems/bosh-director-1.3215.0/lib/bosh/director/problem_resolver.rb:65:in `block in apply_resolution'