~davmor2/+junk/test-smart-scopes

« back to all changes in this revision

Viewing changes to bin/setup_vm.py

  • Committer: Vincent Ladeuil
  • Date: 2013-02-07 17:14:51 UTC
  • Revision ID: vila+qa@canonical.com-20130207171451-tk81vq6t7kqx2iqz
Summarize install_with_seed() implementation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
385
385
        self._disk_image_path = disk_image_path
386
386
 
387
387
    def install_with_seed(self):
 
388
        # Create a kvm, relying on cloud-init to customize the base image.
 
389
        #  
 
390
        # There are two processes involvded here:
 
391
        # - virt-install creates the vm and boots it.
 
392
        # - progress is monitored via the console to detect cloud-final.
 
393
        #  
 
394
        # Once cloud-init has finished, the vm is powered off.
 
395
        
388
396
        # FIXME: If the install doesn't finish after $time, emit a warning and
389
397
        # terminate self.install_proc.
390
398
        # FIXME: If we can't connect to the console, emit a warning and