| Trees | Indices | Help | 
        
  | 
  
|---|
| 
       | 
  
Fake hypervisor interface.
This can be used for testing the ganeti code without having to have a real virtualisation software installed.
    
  | 
|||
      
  | 
  |||
      
  | 
  |||
      
  | 
  |||
      
  | 
  |||
      
  | 
  |||
      
  | 
  |||
      
  | 
  |||
      
  | 
  |||
      
  | 
  |||
      
  | 
  |||
      
  | 
  |||
      
  | 
  |||
      
  | 
  |||
      
  | 
  |||
      
  | 
  |||
| 
     Inherited from  Inherited from   | 
  |||
    
  | 
|||
      
  | 
  |||
      
  | 
  |||
      
  | 
  |||
| 
     Inherited from   | 
  |||
    
  | 
|||
| 
     Inherited from   | 
  |||
    
  | 
|||
| boolean | 
        CAN_MIGRATE = Truewhether this hypervisor can do migration (either live or non-live)  | 
  ||
        _ROOT_DIR = constants.RUN_GANETI_DIR+ "/fake-hypervisor"
     | 
  |||
| 
     Inherited from   | 
  |||
    
  | 
|||
| 
     Inherited from   | 
  |||
    
  | 
|||
  
 x.__init__(...) initializes x; see x.__class__.__doc__ for signature 
  | 
  
 Get the list of running instances. 
  | 
  
 Get instance properties. 
  | 
  
 Get properties of all instances. 
  | 
  
 Mark the instance as running. This does no checks, which should be done by its callers.  | 
  
 Mark the instance as running. This does no checks, which should be done by its callers.  | 
  
 Start an instance. For the fake hypervisor, it just creates a file in the base dir, creating an exception if it already exists. We don't actually handle race conditions properly, since these are *FAKE* instances. 
  | 
  
 Stop an instance. For the fake hypervisor, this just removes the file in the base dir, if it exist, otherwise we raise an exception. 
  | 
  
 Reboot an instance. For the fake hypervisor, this does nothing. 
  | 
  
 Return information about the node. This is just a wrapper over the base GetLinuxNodeInfo method. 
  | 
  
 Return a command for connecting to the console of an instance.  | 
  
 Verify the hypervisor. For the fake hypervisor, it just checks the existence of the base dir. 
  | 
  
 Fake hypervisor powercycle, just a wrapper over Linux powercycle. 
  | 
  
 Prepare to accept an instance. 
  | 
  
 Migrate an instance. 
  | 
  
 Finalize an instance migration. For the fake hv, this just marks the instance up. 
  | 
| Trees | Indices | Help | 
        
  | 
  
|---|
| Generated by Epydoc 3.0.1 on Mon Dec 20 13:27:00 2010 | http://epydoc.sourceforge.net |