summaryrefslogtreecommitdiff
path: root/cloudinit/DataSourceOVF.py
AgeCommit message (Collapse)Author
2011-09-23DataSourceOVF: specify timeout=None in read_seeded callScott Moser
If the user told us to read from a seed, we should not timeout quickly
2011-09-01DataSourceOVF: change the default instance id from nocloud to iid-dsovfScott Moser
2011-09-01DataSourceOVF do not provide a default static hostnameScott Moser
This is the same change made in DataSourceNoCloud, but to the OVF DataSource.
2011-02-18fix bug if ovf had empty seedfromScott Moser
2011-02-04fix logging in DataSource modulesScott 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-04First try to read from cdrom device before mountingScott 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-31replace DataSource's self.logScott 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-26rework 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-26import fixes for DataSourceOVFScott Moser
2011-01-25add get_public_ssh_keys and get_hostname methods to DataSourceOVF.pyScott Moser
2011-01-25add mostly untested but possibly functional DataSourceOVF codeScott Moser
2011-01-25add a stubbed OVF Transport implementation for vmware-guestdScott Moser
2011-01-25add initial ovf data source classScott Moser
2011-01-06initial import of work-in-progress OVF codeScott Moser