summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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-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.
2014-09-02FreeBsd: fix initscripts and add working config fileScott Moser
This set of changes generally produces a functional cloud-init on FreeBsd.
2014-09-02merge from trunkScott Moser
2014-08-28fix: The original regex was a little harsh, the rest of the bitsHarm Weites
regarding keys and values from /etc/rc.conf is tweaked as well (harlowja).
2014-08-28fix: Make sure this freebsd test succeeds on all platforms (harlowja).Harm Weites
2014-08-27Openstack: do not load urls twiceScott Moser
The metadata service openstack implementation would end up fetching urls more than once, as _path_exists would end up doing a GET. Now instead, get things you expect to be there.
2014-08-27no functional changes, but some minor changes.Scott Moser
2014-08-27Fix retry cb to reflect what used to existJoshua Harlow
2014-08-27Fixed more of the slowness around fetching and retryingJoshua Harlow
2014-08-26Show the available versions in the debug log messageJoshua Harlow
2014-08-26Log a warning when unable to fetch the openstack versionsJoshua Harlow
2014-08-26Just use os.path.exists directlyJoshua Harlow
2014-08-26Add logging around failure to read optional/mandatory pathsJoshua Harlow
2014-08-26Refactor vendor_data handlingJay Faulkner
vendor_data is guaranteed to be a dict if it exists; if it doesn't exist ensure it's represented by an empty dict to avoid checking it to see if it's a dict.
2014-08-26Add failback for older Openstack configdrive versionsJay Faulkner
- Also utilizing the constants defined in cloudinit/sources/helpers/openstack.py for configdrive versions
2014-08-26Optimize away most of the path_exists checksJoshua Harlow
2014-08-26Fix pep8 issues, drop pylint.Jay Faulkner
pep8: passes on pylint 1.5.7 (and 1.5.6 utopic). intent is that is to be the target for future changes. pylint: remove as more hassle than its worth. Intent is to move to pyflakes at some point.
2014-08-26further remove evidence of pylint.Scott Moser
This just removes comments '# pylint:' things and other code remnents of pylint.
2014-08-26Upgrade configdrive versionJay Faulkner
- Upgrade configdrive to use 2013-10-17 - Fix issue with vendor_data.json parsing Co-Authored-By: Paul Querna <pquerna@apache.org>
2014-08-26Remove pylintJay Faulkner
pylint was not passing, and per smoser in IRC pylint can/should be removed.
2014-08-26fix(pep8): Fix various pep8 violations and version-lock pep8Jay Faulkner
Fixed all complaints from running "make pep8". Also version locked pep8 in test-requirements.txt to ensure that pep8 requirements don't change without an explicit commit.
2014-08-26change: Use a compiled regex and use the included match groups insteadHarm Weites
of matching yet again.
2014-08-26ssh_authkey_fingerprints: fix bug that prevented disabling the moduleScott Moser
Module intended to allow disabling by configuration, but that was broken. Now this allows: no_ssh_fingerprints = True LP: #1340903
2014-08-23fix: Drop some overly loud debug messages.Harm Weites
2014-08-23change: Rename the config file to cloud.cfg-freebsd so it doesn'tHarm Weites
get copied per default. Packaging will take care of installing this configfile on the BSD platform.
2014-08-23fix: Syntax.Harm Weites
2014-08-23fix: Use the correct variable.Harm Weites