summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-09-29tools/build-on-freebsd: add blkid and e2fsprogrsScott Moser
2014-09-29tools/build-on-freebsd: sort pkgs listScott Moser
2014-09-29further platform cleanupScott Moser
2014-09-29fix re-use of 'platform' in local scopeScott Moser
2014-09-27Fix link for config_drive docThomas Bechtold
The current link does no longer work.
2014-09-22support 'mtype' as a list, and fix up freebsd mount typesScott Moser
this supports a list of input, and cleans up that list for the platform specific mount types. Basically, mtype = None means 'mount -t auto' or the equivalent for the platform. and 'iso9660' means "iso type".
2014-09-22merge from trunkScott Moser
2014-09-17MetadataMaterializer support custom leaf decoderScott Moser
This allows the caller to supply their own leaf decoder, which will then be in charge of translating the content of the url.
2014-09-17cc_grub_dpkg consider /dev/xvda as a candidate for grub installationScott Moser
HVM instances on EC2 have grub on /dev/xvda. The bug here resulted in a prompt on grub update. LP: #1336855
2014-09-15resizefs: fix backgrounded resizingScott Moser
add kwargs to fork_cb, and utilize that to call log_time and pass through the provided args to resize_cmd. LP: #1338614
2014-09-15merge from trunkScott Moser
2014-09-15Remove pylint: linesJay Faulkner
2014-09-15Fix bug 1338614Jay Faulkner
util.log_time()'s return value was what was being sent to fork_cb. This means the resize ran in parallel and the call to fork_cb threw a traceback (trying to call Nonetype). By permitting fork_cb to take kwargs, and using the correct method syntax, this now forks and resizes in the background as appropriate.
2014-09-15cloud-init-blocknet: remove debug code going to /run/cloud-init-blocknetScott Moser
2014-09-12upstart/cloud-init-nonet.conf: only mention wait if larger than 5 secondsScott Moser
silently wait 5 seconds for networking to come up. We started seeing the message more now, as we are now blocking the networking from coming up until cloud-init-local is done. Previously that would have happened in parallel, and we were less likely to see that message.
2014-09-12upstart: add blocknet which blocks net until after cloud-init-localScott Moser
This makes it so networking wont start to come up until after cloud-init-local has had a chance to search local datasources and write /etc/network/interfaces. The changes most likely need to still be done for systemd. LP: #1368861
2014-09-12upstart/cloud-init-nonet.conf: do not exit on existance of obj.pklScott Moser
not sure why this was here. the intent must of have been to allow for a local datasource to continue booting and not annoyingly block waiting for network information (if ithere was no network information). However, that seems wrong. If the datasource wipes /etc/network/interfaces and there are no network interfaces then we're probably breaking that use case here. However we're fixing the other more common case.
2014-09-12netinfo: log error on failure of route infoScott Moser
2014-09-12OpenStack: fix consumption of vendor-data to allow namespacingScott Moser
Not all vendor data is destined for cloud-init. This sanely reads the vendor data as a dict, array or a string.
2014-09-12allow local disabling of blocknetScott Moser
2014-09-12upstart: add blocknet which blocks net until after cloud-init-localScott Moser
This makes it so networking wont start to come up until after cloud-init-local has had a chance to search local datasources and set /etc/network/interfaces. The changes most likely need to still be done for systemd. LP: #1368861
2014-09-11merge from trunkScott Moser
2014-09-11cloud-init-local depends on /run. reflect that in upstart job.Scott Moser
With the writing of cloud-init status, cloud-init-local needs to have /run mounted. The issue we were seeing was a race where: cloud-init-local creates /run/cloud-init /run is mounted cloud-init-local tries to link a file into /run/cloud-init that directory was no longer visisable as /run was mounted over the top. LP: #1353008
2014-09-11when loading vendordata allow it to be string or listScott Moser
2014-09-10Openstack: Vendor data cleanupScott Moser
For now, this vendor data handling is just added to openstack. However, in an effort to allow sanely handling of multi-part vendor-data that is namespaced, we add openstack.convert_vendordata_json . That basically takes whatever was loaded from vendordata and takes the 'cloud-init' key if it is a dict. This way the author can namespace cloud-init, basically telling it to ignore everything else.
2014-09-10OpenStack: search less urls to determine if MD service is there.Scott Moser
We were checking for presense of meta_data.json for each supported metadata version. Instead just check that /openstack is there. This reduces the time to check on EC2 or any other cloud.
2014-09-10ConfigDrive: support reading vendor_data similar to OpenStack MD readerScott Moser
This makes the DataSourceConfigDrive support vendor-data in the same way the metadata service reader does. There are still some things to fix here, but now we're similar between these two. Also drops the ability to specify a version (as in YYYY-MM-DD) that you want to look for. Nothing was using this, but it may be useful to add back in in the future and expose as a datasource config option.
2014-09-10drop version= from readersScott Moser
instead of taking a version that they should look for, the readers now just select the highest supported version. definitely a use case later for having version= but nothing is using it now.
2014-09-10fix log messageScott Moser
2014-09-10make BaseReader select latest supported versionScott Moser
2014-09-10merge from trunkScott Moser
2014-09-10openstack: fix bug referencing undefined variable, revert some changesScott Moser
I had leaked in a couple exception loud-ness changes previously. This does fix one bug in that os_versions was not defined.
2014-09-10fix a bug, use a list instead of tuple for _versionsScott Moser
using tuple for _versions was just not necessary. fix reference to undefined os_versions.
2014-09-10log as warn if things are obviously wrongScott Moser
If something is broken as in a built in config, or code just broken, then logging warning during search for metadata is ok.
2014-09-10merge from trunkScott Moser
2014-09-10pyflakes fixes.Scott Moser
make pyflakes now passes.
2014-09-10Only use vendordata under cloud-init key for ConfigDriveJay Faulkner
This data will be treated the same as vendordata from other sources.
2014-09-09merge from trunkScott Moser
2014-09-08Update read_config_drive to use OS_VERSIONS tuple for readersJay Faulkner
Updated read_config_drive: removed the unused version kwarg, used the OS_VERSIONS tuple from the openstack helper to avoid hardcoding versions. Added a comment to the tuple in helpers/openstack.py asking for it to be kept in chronological order.
2014-09-08resizefs: first check if device is writable before attemptingScott Moser
In a container the device nodes may exist but not be writable. I'm seeing this on trusty host with trusty containers, the root device ends up looking like it is to /dev/loop0. LP: #1366891
2014-09-05freebsd: fixes for sudo and build-on-freebsdScott Moser
Use the regular logic to create sudo rules and just supply the correct filename. The temp script in tools/ should install 2 more dependencies.
2014-09-05Allow customized metadata leaf decodingJoshua Harlow
2014-09-04Fix a couple more cases of exceptional logsJoshua Harlow
2014-09-04Reduce logging levels and fix broken call to _fetch_available_versionsJoshua Harlow
2014-09-03improved logging of errors around module loading/searchingScott Moser
2014-09-03fix: Since these now actually exist in ports, install them properlyHarm Weites
(with pkg).
2014-09-03fix: Write sudo rules upon user creation.Harm Weites
2014-09-03Datasource: fix to provide local-hostname if not available in datasourceScott Moser
2014-09-02Fix logic statement and pep8 issueJoshua Harlow
2014-09-02Remove/adjust the verbose 'failed at attempted import of' logJoshua Harlow
Instead of using this log (which really isn't a failure) we should instead of just return the looked up locations and then if there really is an error the caller can handle the usage of the looked up locations as they choose fit.