[Bug 1427263] Re: Vivid: DataSourceCloudSigma.py[WARNING]: failed to get hypervisor product name via dmi data

Ben Howard ben.howard at canonical.com
Mon Mar 2 19:02:41 UTC 2015


Cause is that any instance that returns dmi data will be flags as
running on CloudSIgma:

>From cloudinit/sources/DataSourceCloudSigma.py
 45     def is_running_in_cloudsigma(self):                                         
 46         """                                                                     
 47         Uses dmi data to detect if this instance of cloud-init is running       
 48         in the CloudSigma's infrastructure.                                     
 49         """                                                                     
 50         uname_arch = os.uname()[4]                                              
 51         if uname_arch.startswith("arm") or uname_arch == "aarch64":             
 52             # Disabling because dmi data on ARM processors                      
 53             LOG.debug("Disabling CloudSigma datasource on arm (LP: #1243287)")  
 54             return False                                                        
 55                                                                                 
 56         LOG.debug("determining hypervisor product name via dmi data")           
 57         sys_product_name = util.read_dmi_data("system-product-name")            
 58         if not sys_product_name:                                                
 59             LOG.warn("failed to get hypervisor product name via dmi data")      
 60             return False                                                        
 61         else:                                                                   
 62             LOG.debug("detected hypervisor as {}".format(sys_product_name))     
 63             return 'cloudsigma' in sys_product_name.lower()                     
 64                                                                                 
 65         LOG.warn("failed to query dmi data for system product name")            
 66         return False

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1427263

Title:
  Vivid: DataSourceCloudSigma.py[WARNING]: failed to get hypervisor
  product name via dmi data

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1427263/+subscriptions



More information about the Ubuntu-server-bugs mailing list