Age | Commit message (Collapse) | Author | |
---|---|---|---|
2011-02-04 | fix logging in DataSource modules | Scott Moser | |
Previous logging was getting 'None' set in the DataSource collections. Thus, 'log.debug' would throw error. I think it is proper to pull in the base cloudinit's log. | |||
2011-02-04 | First try to read from cdrom device before mounting | Scott Moser | |
mount was taking 18 seconds when there was no media on a kvm guest. a simple read should be about as quick as we can fail. The only other thing to try would be to use cdrom.h and ioctl for CDROM_DRIVE_STATUS. | |||
2011-01-31 | replace DataSource's self.log | Scott Moser | |
After adding the 'log' element to the DataSource class, pickling would fail with TypeError: can't pickle file objects Instead of having the object with a log reference, use one from 'DataSource.log' and have that set by cloudinit | |||
2011-01-26 | rework of DataSource loading. | Scott Moser | |
The DataSources that are loaded are now controlled entirely via configuration file of 'datasource_list', like: datasource_list: [ "NoCloud", "OVF", "Ec2" ] Each item in that list is a "DataSourceCollection". for each item in the list, cloudinit will attempt to load: cloudinit.DataSource<item> and, failing that, DataSource<item> The module is required to have a method named 'get_datasource_list' in it that takes a single list of "dependencies" and returns a list of python classes inside the collection that can run needing only those dependencies. The dependencies are defines in DataSource.py. Currently: DEP_FILESYSTEM = "FILESYSTEM" DEP_NETWORK = "NETWORK" When 'get_datasource_list' is called for the DataSourceOVF module with [DEP_FILESYSTEM], then DataSourceOVF returns a single item list with a reference to the 'DataSourceOVF' class. When 'get_datasource_list' is called for the DataSourceOVF module with [DEP_FILESYSTEM, DEP_NETWORK], it will return a single item list with a reference to 'DataSourceOVFNet'. cloudinit will then instanciate the class and call its 'get_data' method. if the get_data method returns 'True', then it selects this class as the selected Datasource. | |||
2011-01-26 | import fixes for DataSourceOVF | Scott Moser | |
2011-01-25 | add get_public_ssh_keys and get_hostname methods to DataSourceOVF.py | Scott Moser | |
2011-01-25 | add mostly untested but possibly functional DataSourceOVF code | Scott Moser | |
2011-01-25 | add a stubbed OVF Transport implementation for vmware-guestd | Scott Moser | |
2011-01-25 | add initial ovf data source class | Scott Moser | |
2011-01-06 | initial import of work-in-progress OVF code | Scott Moser | |