'Make sure instance started without image (from volume)
can be termintad without issues'

def test_run_terminate_no_image(self):

    params = {'image_ref': ''}
    instance = self._create_fake_instance_obj(params)
    self.compute.build_and_run_instance(self.context, instance, {}, {}, {}, block_device_mapping=[])
    self._assert_state({'vm_state': vm_states.ACTIVE, 'task_state': None})
    self.compute.terminate_instance(self.context, instance, [], [])
    instances = db.instance_get_all(self.context)
    self.assertEqual(len(instances), 0)
