Refactor problem scanner

* Split to VMScanStage and DiskScanStage

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Add check if cloud has disk in disk scanner

* If has_disk is not implement the problem is not created

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Add problem handler for missing disk

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Add has_disk? method to vsphere cpi

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Add has_disk? to external cpi

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
vSphere detach disk should update VM settings event if disk is not attached

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Send list_disk to agent to determine disk presence

Having persistent_disk > 0 in apply spec is not an indication of disk presence

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Add has_disk? to vsphere lifecycle tests

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Split Travis integration tests into 2 groups to avoid timeouts

- Groups are deterministic using filesize as a heuristic

[#76564098]

Signed-off-by: Karl Isenberg <kisenberg@pivotallabs.com>
stemcell_builder: set infrastructure to vsphere for vcloud stemcell
Fix vcloud spec

/var/vcap/bosh/etc/infrastructure is now contains vsphere

Signed-off-by: Maria Shaldibina <mariash@pivotallabs.com>
Changed rake spec:integration to use GROUP env var

- parallel_test takes --only-group with GROUP value
- parallel_test also now takes NUM_GROUPS instead of NUM_PROCESSES
- Upgraded parellel_test gem to 1.0.3

[#76564098]

Signed-off-by: Karl Isenberg <kisenberg@pivotallabs.com>
Broke Travis integration tests into 4 groups

[#76564098]

Signed-off-by: Karl Isenberg <kisenberg@pivotallabs.com>
Add integration test for missing disk cck
Remove Director::Api::Controller

This was missed in 63bc328, Update bosh-director routing.

Signed-off-by: Kris Hicks <krishicks@gmail.com>
Restore /task director endpoint

Signed-off-by: Kris Hicks <krishicks@gmail.com>