summaryrefslogtreecommitdiff
path: root/cloudinit/sources/DataSourceOpenNebula.py
AgeCommit message (Collapse)Author
2015-01-27Respond to review:Barry Warsaw
- Refactor both the base64 encoding and decoding into utility functions. Also: - Mechanically fix some other broken untested code.
2015-01-27Respond to review:Barry Warsaw
- Just use util.load_file() instead of yet another way to open and read the file.
2015-01-26Another handling of b64decode.Barry Warsaw
Also, restore Python 2 compatibility.
2015-01-26* More str/bytes fixes.Barry Warsaw
* Temporarily skip the MAAS tests in py3 since they need to be ported to oauthlib.
2015-01-22Low hanging Python 3 fruit.Barry Warsaw
2014-08-26further remove evidence of pylint.Scott Moser
This just removes comments '# pylint:' things and other code remnents of pylint.
2014-03-27change 'default' encoding to be "None"Scott Moser
Instead of just trying to see if userdata decodes as the indication that it should be encoded, the user must explicitly set this. The "just try it" will fail in the case where the user had other use of user-data and wanted a blob of data to go through unrecognized by cloud-init. In cases where there can be mistake in automatic behavior, and some users may be relaying on old behavior, its best to just require explicit use.
2014-03-25Added base64 decoding of user data for OpenNebula.Enol Fernandez
2014-01-16DataSourceOpenNebula:parse_shell_config skip 'SECONDS' var if seenScott Moser
SECONDS is a special variable in bash, it gets set to the time the shell has been alive. This would cause us to fail randomly (if the process happened to take more than 1 second, then SECONDS would be defined).
2013-09-10some cleanups and changesScott Moser
* use util.subp from inside parse_shell_config, and adjust exception handling accordingly. * add 'switch_user_cmd' as a callback function to pass to parse_shell_config, which allows us to mock this to avoid 'sudo' when running test cases. Basically the test cases just return '[]' here. * fix some pylint * handle empty 'content' in parse_shell_config and remove the protection that was present.
2013-09-10Fix detection of ETHx_IP context variable, add test.Vlastimil Holer
2013-09-10Configurable OpenNebula::parseuser. Seed search dir+dev merge. ↵Vlastimil Holer
Eat shell parser error output. Few tests for tests for get_data.
2013-09-10Replace RE context.sh parser with Scott's rewrite of bash dumper. Upper case ↵Vlastimil Holer
context variable names.
2013-09-05PEP8 and Pylint fixes. Move context.sh "parser" into separateVlastimil Holer
function. Fix fetching user specified dsmode (from context). Rename context_sh->context. Reuse unittests.helpers.populate_dir.
2013-09-04Search for contextualization CDROM by LABEL=CONTEXTVlastimil Holer
2013-09-04Fix RE matching context variables. Test cleanups.Vlastimil Holer
2013-09-04Apply parse.diff by Javier Fontan <jfontan@opennebula.org>Vlastimil Holer
2013-04-02PEP8 fixes.Vlastimil Holer
2013-02-21Remove TODOVlastimil Holer
2013-02-20Minor OpenNebula DS cleanups (style, dsmode, static network).Vlastimil Holer
2013-02-19Context.sh parsing cleanups, fix single quotes handling in multiword variables.Vlastimil Holer
2013-02-19Name unification Context.*Device -> Context.*DiskVlastimil Holer
2013-02-19Change network ifaces detection from ifconfig to ip command.Vlastimil Holer
2013-01-04Append DNS related stuff to network interfaces configuration. Minor cleanups.Vlastimil Holer
2013-01-02Add OpenNebula.org copyright.Vlastimil Holer
2012-12-21Add OpenNebula contextualization options to cloud-initJavi Fontan
2012-12-20Fix exception handlers for data read. Fix name read_context_disk_dir.Vlastimil Holer
2012-12-20Change subp exception handling to util.ProcessExecutionErrorVlastimil Holer
2012-12-20Add explanation on how context variables parsing works.Vlastimil Holer
2012-12-20Change context variables .replace with .decodeVlastimil Holer
2012-10-03Delete hyphen.Vlastimil Holer
2012-10-03Delete old ConfigDrive's code.Vlastimil Holer
2012-09-24Process userdata, ignored by mistake.Vlastimil Holer
2012-09-20Configurable dsmode. Resolve IPv4 hostname only with dsmode=net.Vlastimil Holer
2012-09-19Use and resolve PUBLIC_IP from context disk if no HOSTNAME is specified.Vlastimil Holer
2012-09-12Initial support for OpenNebula's contextualization disk.Vlastimil Holer