| Verifiy that directories are created is required. ... ok | |
| Make sure the selinux guard is called correctly. ... ok | |
| test_config_file_dhcp_2nics (tests.unittests.test_vmware_config_file.TestVmwareConfigFile) ... ok | |
| test_configfile_static_2nics (tests.unittests.test_vmware_config_file.TestVmwareConfigFile) ... ok | |
| test_utility_methods (tests.unittests.test_vmware_config_file.TestVmwareConfigFile) ... ok | |
| ====================================================================== | |
| ERROR: Test user_data_rhevm() where modprobe fails. | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/tests/unittests/test_datasource/test_altcloud.py", line 318, in test_modprobe_fails | |
| self.assertEqual(False, dsrc.user_data_rhevm()) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/sources/DataSourceAltCloud.py", line 195, in user_data_rhevm | |
| (cmd_out, _err) = util.subp(cmd) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1819, in subp | |
| out = ldecode(out) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1817, in ldecode | |
| return data.decode(m, errors=decode) | |
| TypeError: decode() takes no keyword arguments | |
| -------------------- >> begin captured logging << -------------------- | |
| cloudinit.util: DEBUG: Running command ['ls', 'modprobe floppy'] with allowed return codes [0] (shell=False, capture=True) | |
| --------------------- >> end captured logging << --------------------- | |
| ====================================================================== | |
| ERROR: Test user_data_rhevm() where mount_cb fails. | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/tests/unittests/test_datasource/test_altcloud.py", line 308, in test_mount_cb_fails | |
| self.assertEqual(False, dsrc.user_data_rhevm()) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/sources/DataSourceAltCloud.py", line 195, in user_data_rhevm | |
| (cmd_out, _err) = util.subp(cmd) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1819, in subp | |
| out = ldecode(out) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1817, in ldecode | |
| return data.decode(m, errors=decode) | |
| TypeError: decode() takes no keyword arguments | |
| -------------------- >> begin captured logging << -------------------- | |
| cloudinit.util: DEBUG: Running command ['echo', 'modprobe floppy'] with allowed return codes [0] (shell=False, capture=True) | |
| --------------------- >> end captured logging << --------------------- | |
| ====================================================================== | |
| ERROR: Test user_data_rhevm() with no udevadm command. | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/tests/unittests/test_datasource/test_altcloud.py", line 348, in test_no_udevadm_cmd | |
| self.assertEqual(False, dsrc.user_data_rhevm()) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/sources/DataSourceAltCloud.py", line 195, in user_data_rhevm | |
| (cmd_out, _err) = util.subp(cmd) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1819, in subp | |
| out = ldecode(out) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1817, in ldecode | |
| return data.decode(m, errors=decode) | |
| TypeError: decode() takes no keyword arguments | |
| -------------------- >> begin captured logging << -------------------- | |
| cloudinit.util: DEBUG: Running command ['/sbin/modprobe', 'floppy'] with allowed return codes [0] (shell=False, capture=True) | |
| --------------------- >> end captured logging << --------------------- | |
| ====================================================================== | |
| ERROR: Test user_data_rhevm() where udevadm fails. | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/tests/unittests/test_datasource/test_altcloud.py", line 338, in test_udevadm_fails | |
| self.assertEqual(False, dsrc.user_data_rhevm()) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/sources/DataSourceAltCloud.py", line 195, in user_data_rhevm | |
| (cmd_out, _err) = util.subp(cmd) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1819, in subp | |
| out = ldecode(out) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1817, in ldecode | |
| return data.decode(m, errors=decode) | |
| TypeError: decode() takes no keyword arguments | |
| -------------------- >> begin captured logging << -------------------- | |
| cloudinit.util: DEBUG: Running command ['/sbin/modprobe', 'floppy'] with allowed return codes [0] (shell=False, capture=True) | |
| --------------------- >> end captured logging << --------------------- | |
| ====================================================================== | |
| ERROR: test_latest_lease_used (tests.unittests.test_datasource.test_azure_helper.TestFindEndpoint) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/tests/unittests/test_datasource/test_azure_helper.py", line 90, in test_latest_lease_used | |
| azure_helper.WALinuxAgentShim.find_endpoint("foobar")) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/sources/helpers/azure.py", line 296, in find_endpoint | |
| fallback_lease_file) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/sources/helpers/azure.py", line 235, in _get_value_from_leases_file | |
| LOG.debug("content is {}".format(content)) | |
| ValueError: zero length field name in format | |
| -------------------- >> begin captured logging << -------------------- | |
| cloudinit.sources.helpers.azure: DEBUG: Finding Azure endpoint... | |
| cloudinit.sources.helpers.azure: DEBUG: Unable to find endpoint in dhclient logs. Falling back to check lease files | |
| cloudinit.sources.helpers.azure: DEBUG: Looking for endpoint in lease file foobar | |
| --------------------- >> end captured logging << --------------------- | |
| ====================================================================== | |
| ERROR: test_connection (tests.unittests.test_datasource.test_digitalocean.TestDataSourceDigitalOcean) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/home/jenkins/workspace/cloud-init@2/.venv/lib/python2.6/site-packages/httpretty/core.py", line 1146, in wrapper | |
| return test(*args, **kw) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/tests/unittests/test_datasource/test_digitalocean.py", line 71, in test_connection | |
| success = self.ds.get_data() | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/sources/DataSourceDigitalOcean.py", line 86, in get_data | |
| LOG.debug("reading metadata from {}".format(self.metadata_address)) | |
| ValueError: zero length field name in format | |
| ====================================================================== | |
| ERROR: test_metadata (tests.unittests.test_datasource.test_digitalocean.TestDataSourceDigitalOcean) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/home/jenkins/workspace/cloud-init@2/.venv/lib/python2.6/site-packages/httpretty/core.py", line 1146, in wrapper | |
| return test(*args, **kw) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/tests/unittests/test_datasource/test_digitalocean.py", line 79, in test_metadata | |
| self.ds.get_data() | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/sources/DataSourceDigitalOcean.py", line 86, in get_data | |
| LOG.debug("reading metadata from {}".format(self.metadata_address)) | |
| ValueError: zero length field name in format | |
| ====================================================================== | |
| ERROR: test_multiple_ssh_keys (tests.unittests.test_datasource.test_digitalocean.TestDataSourceDigitalOcean) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/home/jenkins/workspace/cloud-init@2/.venv/lib/python2.6/site-packages/httpretty/core.py", line 1146, in wrapper | |
| return test(*args, **kw) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/tests/unittests/test_datasource/test_digitalocean.py", line 108, in test_multiple_ssh_keys | |
| self.ds.get_data() | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/sources/DataSourceDigitalOcean.py", line 86, in get_data | |
| LOG.debug("reading metadata from {}".format(self.metadata_address)) | |
| ValueError: zero length field name in format | |
| ====================================================================== | |
| ERROR: test_context_parser (tests.unittests.test_datasource.test_opennebula.TestOpenNebulaDataSource) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/tests/unittests/test_datasource/test_opennebula.py", line 151, in test_context_parser | |
| results = ds.read_context_disk_dir(self.seed_dir) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/sources/DataSourceOpenNebula.py", line 356, in read_context_disk_dir | |
| context = parse_shell_config(content, asuser=asuser) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/sources/DataSourceOpenNebula.py", line 298, in parse_shell_config | |
| (output, _error) = util.subp(cmd, data=bcmd) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1819, in subp | |
| out = ldecode(out) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1817, in ldecode | |
| return data.decode(m, errors=decode) | |
| TypeError: decode() takes no keyword arguments | |
| -------------------- >> begin captured logging << -------------------- | |
| cloudinit.util: DEBUG: Reading from /tmp/tmpnddkSI/seed/opennebula/context.sh (quiet=False) | |
| cloudinit.util: DEBUG: Read 262 bytes from /tmp/tmpnddkSI/seed/opennebula/context.sh | |
| cloudinit.util: DEBUG: Running command ['bash', '-e'] with allowed return codes [0] (shell=False, capture=True) | |
| --------------------- >> end captured logging << --------------------- | |
| ====================================================================== | |
| ERROR: test_get_data (tests.unittests.test_datasource.test_opennebula.TestOpenNebulaDataSource) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/tests/unittests/test_datasource/test_opennebula.py", line 119, in test_get_data | |
| ret = dsrc.get_data() | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/sources/DataSourceOpenNebula.py", line 69, in get_data | |
| results = read_context_disk_dir(cdev, asuser=parseuser) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/sources/DataSourceOpenNebula.py", line 356, in read_context_disk_dir | |
| context = parse_shell_config(content, asuser=asuser) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/sources/DataSourceOpenNebula.py", line 298, in parse_shell_config | |
| (output, _error) = util.subp(cmd, data=bcmd) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1819, in subp | |
| out = ldecode(out) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1817, in ldecode | |
| return data.decode(m, errors=decode) | |
| TypeError: decode() takes no keyword arguments | |
| -------------------- >> begin captured logging << -------------------- | |
| cloudinit.util: DEBUG: Reading from /tmp/tmpIE6tHv/seed/opennebula/context.sh (quiet=False) | |
| cloudinit.util: DEBUG: Read 56 bytes from /tmp/tmpIE6tHv/seed/opennebula/context.sh | |
| cloudinit.util: DEBUG: Running command ['bash', '-e'] with allowed return codes [0] (shell=False, capture=True) | |
| --------------------- >> end captured logging << --------------------- | |
| ====================================================================== | |
| ERROR: test_get_data_broken_contextdisk (tests.unittests.test_datasource.test_opennebula.TestOpenNebulaDataSource) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/tests/unittests/test_datasource/test_opennebula.py", line 86, in test_get_data_broken_contextdisk | |
| self.assertRaises(ds.BrokenContextDiskDir, dsrc.get_data) | |
| File "/home/jenkins/workspace/cloud-init@2/.venv/lib/python2.6/site-packages/unittest2/case.py", line 748, in assertRaises | |
| return context.handle('assertRaises', args, kwargs) | |
| File "/home/jenkins/workspace/cloud-init@2/.venv/lib/python2.6/site-packages/unittest2/case.py", line 194, in handle | |
| callable_obj(*args, **kwargs) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/sources/DataSourceOpenNebula.py", line 69, in get_data | |
| results = read_context_disk_dir(cdev, asuser=parseuser) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/sources/DataSourceOpenNebula.py", line 356, in read_context_disk_dir | |
| context = parse_shell_config(content, asuser=asuser) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/sources/DataSourceOpenNebula.py", line 298, in parse_shell_config | |
| (output, _error) = util.subp(cmd, data=bcmd) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1819, in subp | |
| out = ldecode(out) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1817, in ldecode | |
| return data.decode(m, errors=decode) | |
| TypeError: decode() takes no keyword arguments | |
| -------------------- >> begin captured logging << -------------------- | |
| cloudinit.util: DEBUG: Reading from /tmp/tmprBDiFV/seed/opennebula/context.sh (quiet=False) | |
| cloudinit.util: DEBUG: Read 1 bytes from /tmp/tmprBDiFV/seed/opennebula/context.sh | |
| cloudinit.util: DEBUG: Running command ['bash', '-e'] with allowed return codes [0] (shell=False, capture=True) | |
| --------------------- >> end captured logging << --------------------- | |
| ====================================================================== | |
| ERROR: test_hostname (tests.unittests.test_datasource.test_opennebula.TestOpenNebulaDataSource) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/tests/unittests/test_datasource/test_opennebula.py", line 205, in test_hostname | |
| results = ds.read_context_disk_dir(my_d) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/sources/DataSourceOpenNebula.py", line 356, in read_context_disk_dir | |
| context = parse_shell_config(content, asuser=asuser) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/sources/DataSourceOpenNebula.py", line 298, in parse_shell_config | |
| (output, _error) = util.subp(cmd, data=bcmd) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1819, in subp | |
| out = ldecode(out) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1817, in ldecode | |
| return data.decode(m, errors=decode) | |
| TypeError: decode() takes no keyword arguments | |
| -------------------- >> begin captured logging << -------------------- | |
| cloudinit.util: DEBUG: Reading from /tmp/tmp1phtYQ/HOSTNAME/context.sh (quiet=False) | |
| cloudinit.util: DEBUG: Read 64 bytes from /tmp/tmp1phtYQ/HOSTNAME/context.sh | |
| cloudinit.util: DEBUG: Running command ['bash', '-e'] with allowed return codes [0] (shell=False, capture=True) | |
| --------------------- >> end captured logging << --------------------- | |
| ====================================================================== | |
| ERROR: test_network_interfaces (tests.unittests.test_datasource.test_opennebula.TestOpenNebulaDataSource) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/tests/unittests/test_datasource/test_opennebula.py", line 213, in test_network_interfaces | |
| results = ds.read_context_disk_dir(self.seed_dir) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/sources/DataSourceOpenNebula.py", line 356, in read_context_disk_dir | |
| context = parse_shell_config(content, asuser=asuser) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/sources/DataSourceOpenNebula.py", line 298, in parse_shell_config | |
| (output, _error) = util.subp(cmd, data=bcmd) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1819, in subp | |
| out = ldecode(out) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1817, in ldecode | |
| return data.decode(m, errors=decode) | |
| TypeError: decode() takes no keyword arguments | |
| -------------------- >> begin captured logging << -------------------- | |
| cloudinit.util: DEBUG: Reading from /tmp/tmpcJkepJ/seed/opennebula/context.sh (quiet=False) | |
| cloudinit.util: DEBUG: Read 62 bytes from /tmp/tmpcJkepJ/seed/opennebula/context.sh | |
| cloudinit.util: DEBUG: Running command ['bash', '-e'] with allowed return codes [0] (shell=False, capture=True) | |
| --------------------- >> end captured logging << --------------------- | |
| ====================================================================== | |
| ERROR: test_seed_dir_broken_context (tests.unittests.test_datasource.test_opennebula.TestOpenNebulaDataSource) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/tests/unittests/test_datasource/test_opennebula.py", line 147, in test_seed_dir_broken_context | |
| self.seed_dir) | |
| File "/home/jenkins/workspace/cloud-init@2/.venv/lib/python2.6/site-packages/unittest2/case.py", line 748, in assertRaises | |
| return context.handle('assertRaises', args, kwargs) | |
| File "/home/jenkins/workspace/cloud-init@2/.venv/lib/python2.6/site-packages/unittest2/case.py", line 194, in handle | |
| callable_obj(*args, **kwargs) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/sources/DataSourceOpenNebula.py", line 356, in read_context_disk_dir | |
| context = parse_shell_config(content, asuser=asuser) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/sources/DataSourceOpenNebula.py", line 298, in parse_shell_config | |
| (output, _error) = util.subp(cmd, data=bcmd) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1819, in subp | |
| out = ldecode(out) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1817, in ldecode | |
| return data.decode(m, errors=decode) | |
| TypeError: decode() takes no keyword arguments | |
| -------------------- >> begin captured logging << -------------------- | |
| cloudinit.util: DEBUG: Reading from /tmp/tmpW3Hu_z/seed/opennebula/context.sh (quiet=False) | |
| cloudinit.util: DEBUG: Read 1 bytes from /tmp/tmpW3Hu_z/seed/opennebula/context.sh | |
| cloudinit.util: DEBUG: Running command ['bash', '-e'] with allowed return codes [0] (shell=False, capture=True) | |
| --------------------- >> end captured logging << --------------------- | |
| ====================================================================== | |
| ERROR: test_seed_dir_empty1_context (tests.unittests.test_datasource.test_opennebula.TestOpenNebulaDataSource) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/tests/unittests/test_datasource/test_opennebula.py", line 130, in test_seed_dir_empty1_context | |
| results = ds.read_context_disk_dir(self.seed_dir) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/sources/DataSourceOpenNebula.py", line 356, in read_context_disk_dir | |
| context = parse_shell_config(content, asuser=asuser) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/sources/DataSourceOpenNebula.py", line 298, in parse_shell_config | |
| (output, _error) = util.subp(cmd, data=bcmd) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1819, in subp | |
| out = ldecode(out) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1817, in ldecode | |
| return data.decode(m, errors=decode) | |
| TypeError: decode() takes no keyword arguments | |
| -------------------- >> begin captured logging << -------------------- | |
| cloudinit.util: DEBUG: Reading from /tmp/tmpLgieQh/seed/opennebula/context.sh (quiet=False) | |
| cloudinit.util: DEBUG: Read 0 bytes from /tmp/tmpLgieQh/seed/opennebula/context.sh | |
| cloudinit.util: DEBUG: Running command ['bash', '-e'] with allowed return codes [0] (shell=False, capture=True) | |
| --------------------- >> end captured logging << --------------------- | |
| ====================================================================== | |
| ERROR: test_seed_dir_empty2_context (tests.unittests.test_datasource.test_opennebula.TestOpenNebulaDataSource) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/tests/unittests/test_datasource/test_opennebula.py", line 137, in test_seed_dir_empty2_context | |
| results = ds.read_context_disk_dir(self.seed_dir) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/sources/DataSourceOpenNebula.py", line 356, in read_context_disk_dir | |
| context = parse_shell_config(content, asuser=asuser) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/sources/DataSourceOpenNebula.py", line 298, in parse_shell_config | |
| (output, _error) = util.subp(cmd, data=bcmd) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1819, in subp | |
| out = ldecode(out) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1817, in ldecode | |
| return data.decode(m, errors=decode) | |
| TypeError: decode() takes no keyword arguments | |
| -------------------- >> begin captured logging << -------------------- | |
| cloudinit.util: DEBUG: Reading from /tmp/tmpimPEWP/seed/opennebula/context.sh (quiet=False) | |
| cloudinit.util: DEBUG: Read 44 bytes from /tmp/tmpimPEWP/seed/opennebula/context.sh | |
| cloudinit.util: DEBUG: Running command ['bash', '-e'] with allowed return codes [0] (shell=False, capture=True) | |
| --------------------- >> end captured logging << --------------------- | |
| ====================================================================== | |
| ERROR: test_ssh_key (tests.unittests.test_datasource.test_opennebula.TestOpenNebulaDataSource) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/tests/unittests/test_datasource/test_opennebula.py", line 162, in test_ssh_key | |
| results = ds.read_context_disk_dir(my_d) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/sources/DataSourceOpenNebula.py", line 356, in read_context_disk_dir | |
| context = parse_shell_config(content, asuser=asuser) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/sources/DataSourceOpenNebula.py", line 298, in parse_shell_config | |
| (output, _error) = util.subp(cmd, data=bcmd) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1819, in subp | |
| out = ldecode(out) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1817, in ldecode | |
| return data.decode(m, errors=decode) | |
| TypeError: decode() takes no keyword arguments | |
| -------------------- >> begin captured logging << -------------------- | |
| cloudinit.util: DEBUG: Reading from /tmp/tmpy1i01v/SSH_KEY-0/context.sh (quiet=False) | |
| cloudinit.util: DEBUG: Read 75 bytes from /tmp/tmpy1i01v/SSH_KEY-0/context.sh | |
| cloudinit.util: DEBUG: Running command ['bash', '-e'] with allowed return codes [0] (shell=False, capture=True) | |
| --------------------- >> end captured logging << --------------------- | |
| ====================================================================== | |
| ERROR: test_user_data_base64_encoding (tests.unittests.test_datasource.test_opennebula.TestOpenNebulaDataSource) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/tests/unittests/test_datasource/test_opennebula.py", line 196, in test_user_data_base64_encoding | |
| results = ds.read_context_disk_dir(my_d) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/sources/DataSourceOpenNebula.py", line 356, in read_context_disk_dir | |
| context = parse_shell_config(content, asuser=asuser) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/sources/DataSourceOpenNebula.py", line 298, in parse_shell_config | |
| (output, _error) = util.subp(cmd, data=bcmd) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1819, in subp | |
| out = ldecode(out) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1817, in ldecode | |
| return data.decode(m, errors=decode) | |
| TypeError: decode() takes no keyword arguments | |
| -------------------- >> begin captured logging << -------------------- | |
| cloudinit.util: DEBUG: Reading from /tmp/tmpcXDNvr/USER_DATA/context.sh (quiet=False) | |
| cloudinit.util: DEBUG: Read 128 bytes from /tmp/tmpcXDNvr/USER_DATA/context.sh | |
| cloudinit.util: DEBUG: Running command ['bash', '-e'] with allowed return codes [0] (shell=False, capture=True) | |
| --------------------- >> end captured logging << --------------------- | |
| ====================================================================== | |
| ERROR: test_user_data_encoding_required_for_decode (tests.unittests.test_datasource.test_opennebula.TestOpenNebulaDataSource) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/tests/unittests/test_datasource/test_opennebula.py", line 186, in test_user_data_encoding_required_for_decode | |
| results = ds.read_context_disk_dir(my_d) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/sources/DataSourceOpenNebula.py", line 356, in read_context_disk_dir | |
| context = parse_shell_config(content, asuser=asuser) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/sources/DataSourceOpenNebula.py", line 298, in parse_shell_config | |
| (output, _error) = util.subp(cmd, data=bcmd) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1819, in subp | |
| out = ldecode(out) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1817, in ldecode | |
| return data.decode(m, errors=decode) | |
| TypeError: decode() takes no keyword arguments | |
| -------------------- >> begin captured logging << -------------------- | |
| cloudinit.util: DEBUG: Reading from /tmp/tmpENIPMr/USER_DATA/context.sh (quiet=False) | |
| cloudinit.util: DEBUG: Read 101 bytes from /tmp/tmpENIPMr/USER_DATA/context.sh | |
| cloudinit.util: DEBUG: Running command ['bash', '-e'] with allowed return codes [0] (shell=False, capture=True) | |
| --------------------- >> end captured logging << --------------------- | |
| ====================================================================== | |
| ERROR: test_user_data_plain (tests.unittests.test_datasource.test_opennebula.TestOpenNebulaDataSource) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/tests/unittests/test_datasource/test_opennebula.py", line 176, in test_user_data_plain | |
| results = ds.read_context_disk_dir(my_d) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/sources/DataSourceOpenNebula.py", line 356, in read_context_disk_dir | |
| context = parse_shell_config(content, asuser=asuser) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/sources/DataSourceOpenNebula.py", line 298, in parse_shell_config | |
| (output, _error) = util.subp(cmd, data=bcmd) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1819, in subp | |
| out = ldecode(out) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1817, in ldecode | |
| return data.decode(m, errors=decode) | |
| TypeError: decode() takes no keyword arguments | |
| -------------------- >> begin captured logging << -------------------- | |
| cloudinit.util: DEBUG: Reading from /tmp/tmpLvSVyR/USER_DATA/context.sh (quiet=False) | |
| cloudinit.util: DEBUG: Read 109 bytes from /tmp/tmpLvSVyR/USER_DATA/context.sh | |
| cloudinit.util: DEBUG: Running command ['bash', '-e'] with allowed return codes [0] (shell=False, capture=True) | |
| --------------------- >> end captured logging << --------------------- | |
| ====================================================================== | |
| ERROR: test_no_seconds (tests.unittests.test_datasource.test_opennebula.TestParseShellConfig) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/tests/unittests/test_datasource/test_opennebula.py", line 290, in test_no_seconds | |
| ret = ds.parse_shell_config(cfg) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/sources/DataSourceOpenNebula.py", line 298, in parse_shell_config | |
| (output, _error) = util.subp(cmd, data=bcmd) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1819, in subp | |
| out = ldecode(out) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1817, in ldecode | |
| return data.decode(m, errors=decode) | |
| TypeError: decode() takes no keyword arguments | |
| -------------------- >> begin captured logging << -------------------- | |
| cloudinit.util: DEBUG: Running command ['bash', '-e'] with allowed return codes [0] (shell=False, capture=True) | |
| --------------------- >> end captured logging << --------------------- | |
| ====================================================================== | |
| ERROR: Failure: SyntaxError (invalid syntax (test_handler_apt_conf_v1.py, line 121)) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/home/jenkins/workspace/cloud-init@2/.venv/lib/python2.6/site-packages/nose/loader.py", line 418, in loadTestsFromName | |
| addr.filename, addr.module) | |
| File "/home/jenkins/workspace/cloud-init@2/.venv/lib/python2.6/site-packages/nose/importer.py", line 47, in importFromPath | |
| return self.importFromDir(dir_path, fqname) | |
| File "/home/jenkins/workspace/cloud-init@2/.venv/lib/python2.6/site-packages/nose/importer.py", line 94, in importFromDir | |
| mod = load_module(part_fqname, fh, filename, desc) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/tests/unittests/test_handler/test_handler_apt_conf_v1.py", line 121 | |
| self.assertIn(mirror, {m['uri'] for m in f['apt']['primary']}) | |
| ^ | |
| SyntaxError: invalid syntax | |
| ====================================================================== | |
| ERROR: test_subp_decode_ignore (tests.unittests.test_util.TestSubp) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/tests/unittests/test_util.py", line 542, in test_subp_decode_ignore | |
| capture=True, decode='ignore') | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1819, in subp | |
| out = ldecode(out) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1817, in ldecode | |
| return data.decode(m, errors=decode) | |
| TypeError: decode() takes no keyword arguments | |
| -------------------- >> begin captured logging << -------------------- | |
| cloudinit.util: DEBUG: Running command ['bash', '-c', 'printf "$@"', 'printf', 'abc\\xaadef'] with allowed return codes [0] (shell=False, capture=True) | |
| --------------------- >> end captured logging << --------------------- | |
| ====================================================================== | |
| ERROR: test_subp_decode_invalid_utf8_replaces (tests.unittests.test_util.TestSubp) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/tests/unittests/test_util.py", line 552, in test_subp_decode_invalid_utf8_replaces | |
| data=self.utf8_invalid) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1819, in subp | |
| out = ldecode(out) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1817, in ldecode | |
| return data.decode(m, errors=decode) | |
| TypeError: decode() takes no keyword arguments | |
| -------------------- >> begin captured logging << -------------------- | |
| cloudinit.util: DEBUG: Running command ['cat'] with allowed return codes [0] (shell=False, capture=True) | |
| --------------------- >> end captured logging << --------------------- | |
| ====================================================================== | |
| ERROR: test_subp_decode_strict_raises (tests.unittests.test_util.TestSubp) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/tests/unittests/test_util.py", line 560, in test_subp_decode_strict_raises | |
| self.assertRaises(UnicodeDecodeError, util.subp, *args, **kwargs) | |
| File "/home/jenkins/workspace/cloud-init@2/.venv/lib/python2.6/site-packages/unittest2/case.py", line 748, in assertRaises | |
| return context.handle('assertRaises', args, kwargs) | |
| File "/home/jenkins/workspace/cloud-init@2/.venv/lib/python2.6/site-packages/unittest2/case.py", line 194, in handle | |
| callable_obj(*args, **kwargs) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1819, in subp | |
| out = ldecode(out) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1817, in ldecode | |
| return data.decode(m, errors=decode) | |
| TypeError: decode() takes no keyword arguments | |
| -------------------- >> begin captured logging << -------------------- | |
| cloudinit.util: DEBUG: Running command ['cat'] with allowed return codes [0] (shell=False, capture=True) | |
| --------------------- >> end captured logging << --------------------- | |
| ====================================================================== | |
| ERROR: test_subp_decode_strict_valid_utf8 (tests.unittests.test_util.TestSubp) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/tests/unittests/test_util.py", line 547, in test_subp_decode_strict_valid_utf8 | |
| decode='strict', data=self.utf8_valid) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1819, in subp | |
| out = ldecode(out) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1817, in ldecode | |
| return data.decode(m, errors=decode) | |
| TypeError: decode() takes no keyword arguments | |
| -------------------- >> begin captured logging << -------------------- | |
| cloudinit.util: DEBUG: Running command ['cat'] with allowed return codes [0] (shell=False, capture=True) | |
| --------------------- >> end captured logging << --------------------- | |
| ====================================================================== | |
| ERROR: test_subp_handles_utf8 (tests.unittests.test_util.TestSubp) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/tests/unittests/test_util.py", line 529, in test_subp_handles_utf8 | |
| (out, _err) = util.subp(cmd, capture=True) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1819, in subp | |
| out = ldecode(out) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1817, in ldecode | |
| return data.decode(m, errors=decode) | |
| TypeError: decode() takes no keyword arguments | |
| -------------------- >> begin captured logging << -------------------- | |
| cloudinit.util: DEBUG: Running command ['bash', '-c', 'printf "$@"', 'printf', 'd\xc3\xa9j\xc8\xa7'] with allowed return codes [0] (shell=False, capture=True) | |
| --------------------- >> end captured logging << --------------------- | |
| ====================================================================== | |
| FAIL: test_scripts_shebanged (tests.unittests.test_datasource.test_smartos.TestSmartOSDataSource) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/tests/unittests/test_datasource/test_smartos.py", line 476, in test_scripts_shebanged | |
| self.assertEqual(shebang, "#!/bin/bash") | |
| AssertionError: '/bin/true' != '#!/bin/bash' | |
| - /bin/true | |
| + #!/bin/bash | |
| -------------------- >> begin captured logging << -------------------- | |
| cloudinit.util: DEBUG: Writing to /tmp/tmpyX1P5y/instances/f65e0d66-fa44-42fd-af11-0b13e767b548/data/user-script - wb: [448] 10 bytes | |
| cloudinit.util: DEBUG: Running command ['file', '--brief', '--mime-type', '/tmp/tmpyX1P5y/instances/f65e0d66-fa44-42fd-af11-0b13e767b548/data/user-script'] with allowed return codes [0] (shell=False, capture=True) | |
| cloudinit.sources.DataSourceSmartOS: WARNING: ('Failed to identify script type for /tmp/tmpyX1P5y/instances/f65e0d66-fa44-42fd-af11-0b13e767b548/data/user-script', TypeError('decode() takes no keyword arguments',)) | |
| cloudinit.sources.DataSourceSmartOS: DEBUG: ('Failed to identify script type for /tmp/tmpyX1P5y/instances/f65e0d66-fa44-42fd-af11-0b13e767b548/data/user-script', TypeError('decode() takes no keyword arguments',)) | |
| Traceback (most recent call last): | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/sources/DataSourceSmartOS.py", line 634, in write_boot_content | |
| (f_type, _err) = util.subp(cmd) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1819, in subp | |
| out = ldecode(out) | |
| File "/home/jenkins/workspace/cloud-init@2/cloud-init/cloudinit/util.py", line 1817, in ldecode | |
| return data.decode(m, errors=decode) | |
| TypeError: decode() takes no keyword arguments | |
| cloudinit.util: DEBUG: Writing to /tmp/tmpyX1P5y/instances/f65e0d66-fa44-42fd-af11-0b13e767b548/data/operator-script - wb: [448] 9 bytes | |
| cloudinit.util: DEBUG: Writing to /tmp/tmpyX1P5y/legacy_user_tmp/mdata-user-data - wb: [256] 10 bytes | |
| cloudinit.sources.DataSourceSmartOS: DEBUG: Instance provisioning state set as successful | |
| --------------------- >> end captured logging << --------------------- | |
| ---------------------------------------------------------------------- | |
| XML: /home/jenkins/workspace/cloud-init@2/cloud-init/results.xml | |
| ---------------------------------------------------------------------- | |
| Ran 718 tests in 4.050s | |
| FAILED (SKIP=28, errors=27, failures=1) | |
| [Pipeline] } | |
| $ docker stop --time=1 831a6fe578ac991dbf6e05b0b7562431b7d5cfee06f4f66b1e6180f3dfae8e6f | |
| $ docker rm -f 831a6fe578ac991dbf6e05b0b7562431b7d5cfee06f4f66b1e6180f3dfae8e6f | |
| [Pipeline] // withDockerContainer | |
| [Pipeline] } | |
| [Pipeline] // ws | |
| [Pipeline] } | |
| [Pipeline] // node | |
| [Pipeline] } | |
| [Pipeline] // stage | |
| [Pipeline] slackSend | |
| Slack Send Pipeline step configured values from global config - teamDomain: true, token: true, channel: true, color: false | |
| [Pipeline] End of Pipeline | |
| ERROR: script returned exit code 1 | |
| Finished: FAILURE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment