summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-03-18debian packaging: adjust build-depends for xenialScott Moser
python3 support was moved out of pyflakes into python3-pyflakes. Adjust the package to build on trusty where python3-pyflakes was not present and also on xenial where it is. Note, this does mean that sbuild now requires '--resolve-alternatives'. That is how it is used on launchpad but is not the default in sbuild.
2016-03-17Send proper SUCCESS / FAILED events to the underlying VMware hypervisor.Scott Moser
Added code to customize timezone. Added few utility functions to send events to the VMware hypervisor. Re-factored the code little bit. Added code to send SUCCESS event when customization succeeds. Added code to send FAILED event if any error occurs during customization.
2016-03-15 - Added the code to customize timezone.Sankar Tanguturi
2016-03-14fix ssh_pwauth behavior to function as documented.Scott Moser
Add option checking for ssh_pwauth to bring behavior inline with the description cloud-config.txt example. Previously, setting 'ssh_pwauth' to 'unchanged' or '' would result in an empty value for PasswordAuthentication when it should have simply not been modified.
2016-03-14fix long lineScott Moser
2016-03-14merge with trunkScott Moser
2016-03-14doc/ add new logo to rtd (read the docs) docs.Scott Moser
2016-03-14doc: document that volume label must be 'cidata' NocCloud datasource.Scott Moser
2016-03-14some systemd cleanupsScott Moser
generator: * write to directory /run/cloud-init/ rather than /run * read from /proc/1/cmdline for the command line if inside a container cloud-init-local.service: now run fully before any networking comes up. cloud-init.service: run before network-online.target and after networking.service. This ends up meaning other things that require network-online.target will run after cloud-init.service, but cloud-init.service will still have networking. The 'networking.service' is ifupdown specific. Further changes would be needed for other networking systems (networkd for example)
2016-03-14change return value for dmi data of all \xff to be ""Scott Moser
Previously we returned a string of "." the same length as the dmi field. That seems confusing to the user as "." would seem like a valid response when in fact this value should not be considered valid. So now, in this case, return empty string.
2016-03-14strip return of dmidecode and do so before checking for all "."Scott Moser
2016-03-14change where we handle the translationScott Moser
2016-03-14change return value for dmi data of all \xff to be ""Scott Moser
Previously we returned a string of "." the same length as the dmi field. That seems confusing to the user as "." would seem like a valid response when in fact this value should not be considered valid. So now, in this case, return empty string.
2016-03-11 - Fixed few pep8 and flake8 issues.Sankar Tanguturi
- Changed the really long 'from ... import ...' statements.
2016-03-11- Executed 'bzr merge' and resolved all the conflicts.Sankar Tanguturi
- Now my branch is identical to trunk.dist
2016-03-10dmi data: fix failure of reading dmi data for unset dmi valuesScott Moser
it is not uncommon to find dmi data in /sys full of 'ff'. utf-8 decoding of those would fail, causing warning and stacktrace. Return '.' instead of \xff. This is what dmidecode would return. $ dmidecode --string system-product-name
2016-03-10improve commentScott Moser
2016-03-10dmi data: fix failure of reading dmi data for unset dmi valuesScott Moser
it is not uncommon to find dmi data in /sys full of 'ff'. utf-8 decoding of those would fail, causing warning and stacktrace. Return '.' instead of \xff. This maps to what dmidecode would return $ dmidecode --string system-product-name .................................
2016-03-10generator: use /run/cloud-init instead of /runScott Moser
2016-03-10generator: support reading cmdline of pid 1 in a containerScott Moser
This might need cleaning up in the future as I believe in some containers /proc/cmdline is provided, and in that case it would be preferred to pid 1's command line.
2016-03-10initial systemd service suggestions provided by pittiScott Moser
This should mean that cloud-init-local is running earlier now (DefaultDependencies=no). And also blocking networking coming up (Before=network-pre.target) cloud-init.service should now actually block network-online.target from being made (meaning it will run before anything that expects that) but after networking.service, which is what actually does the bringup on ifupdown / ubuntu.
2016-03-09add default user to 'lxd' group and create groups when necessary.Scott Moser
This add 'lxd' to the list of groups that the default user is added to. It also changes behavior to create any necessary groups that are listed for the user rather than failing to add the user. Theres also a fix for usage of logexc that I found along the way. LP: #1539317
2016-03-09 - Fixed few issues with return values form util.subp()Sankar Tanguturi
- Added a new utility method to send a RPC for enabling NICS - Modified DataSourceOVF.py to enable nics. - Executed ./tools/run-pep8 and no issues were reported.
2016-03-09Add default ubuntu user to lxd group (LP: #1539317)Robert Jennings
LP: #1539317
2016-03-08 - Ignored return code 1 for 'pkill' command in config_nic.pySankar Tanguturi
- Added few utility functions to report events to the underlying VMware Virtualization platform - Re-factored code little bit. - Executed ./tools/run-pep8 and no pep8 errors were reported.
2016-03-08No longer run pollinate by default in seed_randomScott Moser
The user can still choose to run pollinate here to seed their random data. And in an environment with network datasource, that would be expected to work. However, we do not want to run it any more from cloud-init because a.) pollinate's own init system jobs should get it ran before ssh, which is the primary purpose of wanting cloud-init to run it. b.) with a local datasource, there is no network guarantee when init_modules run, so pollinate -q would often cause issues then. c.) cloud-init would run pollinate and log the failure causing many cloud-init specific failures that it could do nothing about. Additionally, add documentation for the seed_random config module.
2016-03-08BigStep: enable datasource in default settingsScott Moser
This enables BigStep in the default settings, and also changes the datasource to not raise exception if we are not on BigStep.
2016-03-08add docScott Moser
2016-03-07No longer run pollinate by default in seed_randomScott Moser
The user can still choose to run pollinate here to seed their random data. And in an environment with network datasource, that would be expected to work. However, we do not want to run it any more from cloud-init because a.) pollinate's own init system jobs should get it ran before ssh, which is the primary purpose of wanting cloud-init to run it. b.) with a local datasource, there is no network guarantee when init_modules run, so pollinate -q would often cause issues then. c.) cloud-init would run pollinate and log the failure causing many cloud-init specific failures that it could do nothing about. LP: #1554152
2016-03-07Implemented review concerning position of try and more information about the ↵Alex Sirbu
caught exception.
2016-03-07Returning false if file does not exist, instead of throwing errorAlex Sirbu
2016-03-07Enable Bigstep data source in default configurationAlex Sirbu
2016-03-04pep8: update formatting to pass pep8 1.4.6 (trusty) and 1.6.2 (xenial)Scott Moser
make check fails in a trusty sbuild due to different rules on older pep8. Fix formatting to pass in older and newer pep8.
2016-03-04pep8: update formatting to pass pep8 1.4.6 (trusty) and 1.6.2 (xenial)Ryan Harper
make check fails in a trusty sbuild due to different rules on older pep8. Fix formatting to pass in older and newer pep8.
2016-03-04Added Bigstep datasourceDaniel Watkins
2016-03-04Enable password changing via a hashed stringDaniel Watkins
2016-03-04Add a kill switch for customization on VMware platform.Scott Moser
The customization is set to False by default and is triggered only when the option disable_vmware_customization is set to false in /etc/cloud/cloud.cfg.
2016-03-04merge with trunkScott Moser
2016-03-04Apply pep8, pyflakes fixes for python2 and 3Scott Moser
Update make check target to run pep8 and run pyflakes or pyflakes3 depending on the value of 'PYVER'. This way the python3 build environment does not need python2 and vice versa. Also have make check run the 'yaml' test. tox: have tox run pep8 in the pyflakes
2016-03-04systemd: support disabling cloud-init via file or kernel cmdlineScott Moser
This adds a systemd generator for a 'cloud-init.target'. That target will be WantedBy multi-user.target in the default case. If there is a file /etc/cloud/cloud-init.disabled or the kernel command line contains 'cloud-init=disabled' then cloud-init will not affect boot at all. There are some packages/debian changes to affect this: * postinst, preinst: these are necessary to remove some old target files for multi-user.target (LP: #1552999) * changes to include these files in the debian source package. * rules.in: supports DEB_BUILD_OPTIONS=nocheck to not run check setup.py: mostly changes to support installing the generator but also pep8 fixes along the way systemd/*: make each of the services 'WantedBy=cloud-init.target' rather than being wanted by multi-user.target
2016-03-04fix packages/debian/rules.inScott Moser
2016-03-04fix tab in rulesScott Moser
2016-03-04remove debug set -xScott Moser
2016-03-04postinst/preinst: cleanup old multi-user.target enabled filesScott Moser
also, actually enable the services. now this will have them enabled in the cloud-init.target.
2016-03-03mention link path in generatorScott Moser
2016-03-03packages/bddeb: copy all files in packages/debian/Scott Moser
just copy all the files that are there. makes adding files easier.
2016-03-03support nocheck in building.Scott Moser
2016-03-03merge with trunkScott Moser
2016-03-03packages/debian: make trunk packaging closer to ubuntuScott Moser
The big difference is using: ${python3:Depends} or ${python:Depends} rather than explicitly listing the dependencies (via template ${requires}). which means we get paths of /usr/lib/python3/dist-packages/.. rather than /usr/lib/python3.5/dist-packages/.. when built on xenial. Additionally it seems we no longer need this strange line. # Because setup tools didn't copy data...
2016-03-03 Resolved all the pep8 errors.Sankar Tanguturi
Executed ./tools/run-pep8 cloudinit/sources/DataSourceOVF.py and no errors were reported.