| $ nosetests | |
| ...............SSSSS...................................................................F.................................F...................EEEEEEEE.....................................................EE...........................................................................................................................................................................................................................................................................................................................................................................................................................................F... | |
| ====================================================================== | |
| ERROR: test_bad_request_doesnt_stop_ds_from_working (tests.unittests.test_datasource.test_cloudstack.TestCloudStackPasswordFetching) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/jxharlow/Dev/cloud-init/tests/unittests/test_datasource/test_cloudstack.py", line 45, in test_bad_request_doesnt_stop_ds_from_working | |
| ds = DataSourceCloudStack({}, None, helpers.Paths({})) | |
| File "/Users/jxharlow/Dev/cloud-init/cloudinit/sources/DataSourceCloudStack.py", line 85, in __init__ | |
| self.vr_addr = get_vr_address() | |
| File "/Users/jxharlow/Dev/cloud-init/cloudinit/sources/DataSourceCloudStack.py", line 227, in get_vr_address | |
| return get_default_gateway() | |
| File "/Users/jxharlow/Dev/cloud-init/cloudinit/sources/DataSourceCloudStack.py", line 180, in get_default_gateway | |
| lines = util.load_file("/proc/net/route").splitlines() | |
| File "/Users/jxharlow/Dev/cloud-init/cloudinit/util.py", line 1198, in load_file | |
| with open(fname, 'rb') as ifh: | |
| IOError: [Errno 2] No such file or directory: '/proc/net/route' | |
| -------------------- >> begin captured logging << -------------------- | |
| cloudinit.sources.DataSourceCloudStack: DEBUG: No lease file found, using default gateway | |
| cloudinit.util: DEBUG: Reading from /proc/net/route (quiet=False) | |
| --------------------- >> end captured logging << --------------------- | |
| ====================================================================== | |
| ERROR: test_empty_password_doesnt_create_config (tests.unittests.test_datasource.test_cloudstack.TestCloudStackPasswordFetching) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/jxharlow/Dev/cloud-init/tests/unittests/test_datasource/test_cloudstack.py", line 26, in test_empty_password_doesnt_create_config | |
| ds = DataSourceCloudStack({}, None, helpers.Paths({})) | |
| File "/Users/jxharlow/Dev/cloud-init/cloudinit/sources/DataSourceCloudStack.py", line 85, in __init__ | |
| self.vr_addr = get_vr_address() | |
| File "/Users/jxharlow/Dev/cloud-init/cloudinit/sources/DataSourceCloudStack.py", line 227, in get_vr_address | |
| return get_default_gateway() | |
| File "/Users/jxharlow/Dev/cloud-init/cloudinit/sources/DataSourceCloudStack.py", line 180, in get_default_gateway | |
| lines = util.load_file("/proc/net/route").splitlines() | |
| File "/Users/jxharlow/Dev/cloud-init/cloudinit/util.py", line 1198, in load_file | |
| with open(fname, 'rb') as ifh: | |
| IOError: [Errno 2] No such file or directory: '/proc/net/route' | |
| -------------------- >> begin captured logging << -------------------- | |
| cloudinit.sources.DataSourceCloudStack: DEBUG: No lease file found, using default gateway | |
| cloudinit.util: DEBUG: Reading from /proc/net/route (quiet=False) | |
| --------------------- >> end captured logging << --------------------- | |
| ====================================================================== | |
| ERROR: test_password_not_saved_if_already_saved (tests.unittests.test_datasource.test_cloudstack.TestCloudStackPasswordFetching) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/jxharlow/Dev/cloud-init/tests/unittests/test_datasource/test_cloudstack.py", line 75, in test_password_not_saved_if_already_saved | |
| self._check_password_not_saved_for('saved_password') | |
| File "/Users/jxharlow/Dev/cloud-init/tests/unittests/test_datasource/test_cloudstack.py", line 67, in _check_password_not_saved_for | |
| ds = DataSourceCloudStack({}, None, helpers.Paths({})) | |
| File "/Users/jxharlow/Dev/cloud-init/cloudinit/sources/DataSourceCloudStack.py", line 85, in __init__ | |
| self.vr_addr = get_vr_address() | |
| File "/Users/jxharlow/Dev/cloud-init/cloudinit/sources/DataSourceCloudStack.py", line 227, in get_vr_address | |
| return get_default_gateway() | |
| File "/Users/jxharlow/Dev/cloud-init/cloudinit/sources/DataSourceCloudStack.py", line 180, in get_default_gateway | |
| lines = util.load_file("/proc/net/route").splitlines() | |
| File "/Users/jxharlow/Dev/cloud-init/cloudinit/util.py", line 1198, in load_file | |
| with open(fname, 'rb') as ifh: | |
| IOError: [Errno 2] No such file or directory: '/proc/net/route' | |
| -------------------- >> begin captured logging << -------------------- | |
| cloudinit.sources.DataSourceCloudStack: DEBUG: No lease file found, using default gateway | |
| cloudinit.util: DEBUG: Reading from /proc/net/route (quiet=False) | |
| --------------------- >> end captured logging << --------------------- | |
| ====================================================================== | |
| ERROR: test_password_not_saved_if_bad_request (tests.unittests.test_datasource.test_cloudstack.TestCloudStackPasswordFetching) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/jxharlow/Dev/cloud-init/tests/unittests/test_datasource/test_cloudstack.py", line 78, in test_password_not_saved_if_bad_request | |
| self._check_password_not_saved_for('bad_request') | |
| File "/Users/jxharlow/Dev/cloud-init/tests/unittests/test_datasource/test_cloudstack.py", line 67, in _check_password_not_saved_for | |
| ds = DataSourceCloudStack({}, None, helpers.Paths({})) | |
| File "/Users/jxharlow/Dev/cloud-init/cloudinit/sources/DataSourceCloudStack.py", line 85, in __init__ | |
| self.vr_addr = get_vr_address() | |
| File "/Users/jxharlow/Dev/cloud-init/cloudinit/sources/DataSourceCloudStack.py", line 227, in get_vr_address | |
| return get_default_gateway() | |
| File "/Users/jxharlow/Dev/cloud-init/cloudinit/sources/DataSourceCloudStack.py", line 180, in get_default_gateway | |
| lines = util.load_file("/proc/net/route").splitlines() | |
| File "/Users/jxharlow/Dev/cloud-init/cloudinit/util.py", line 1198, in load_file | |
| with open(fname, 'rb') as ifh: | |
| IOError: [Errno 2] No such file or directory: '/proc/net/route' | |
| -------------------- >> begin captured logging << -------------------- | |
| cloudinit.sources.DataSourceCloudStack: DEBUG: No lease file found, using default gateway | |
| cloudinit.util: DEBUG: Reading from /proc/net/route (quiet=False) | |
| --------------------- >> end captured logging << --------------------- | |
| ====================================================================== | |
| ERROR: test_password_not_saved_if_empty (tests.unittests.test_datasource.test_cloudstack.TestCloudStackPasswordFetching) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/jxharlow/Dev/cloud-init/tests/unittests/test_datasource/test_cloudstack.py", line 72, in test_password_not_saved_if_empty | |
| self._check_password_not_saved_for('') | |
| File "/Users/jxharlow/Dev/cloud-init/tests/unittests/test_datasource/test_cloudstack.py", line 67, in _check_password_not_saved_for | |
| ds = DataSourceCloudStack({}, None, helpers.Paths({})) | |
| File "/Users/jxharlow/Dev/cloud-init/cloudinit/sources/DataSourceCloudStack.py", line 85, in __init__ | |
| self.vr_addr = get_vr_address() | |
| File "/Users/jxharlow/Dev/cloud-init/cloudinit/sources/DataSourceCloudStack.py", line 227, in get_vr_address | |
| return get_default_gateway() | |
| File "/Users/jxharlow/Dev/cloud-init/cloudinit/sources/DataSourceCloudStack.py", line 180, in get_default_gateway | |
| lines = util.load_file("/proc/net/route").splitlines() | |
| File "/Users/jxharlow/Dev/cloud-init/cloudinit/util.py", line 1198, in load_file | |
| with open(fname, 'rb') as ifh: | |
| IOError: [Errno 2] No such file or directory: '/proc/net/route' | |
| -------------------- >> begin captured logging << -------------------- | |
| cloudinit.sources.DataSourceCloudStack: DEBUG: No lease file found, using default gateway | |
| cloudinit.util: DEBUG: Reading from /proc/net/route (quiet=False) | |
| --------------------- >> end captured logging << --------------------- | |
| ====================================================================== | |
| ERROR: test_password_sets_password (tests.unittests.test_datasource.test_cloudstack.TestCloudStackPasswordFetching) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/jxharlow/Dev/cloud-init/tests/unittests/test_datasource/test_cloudstack.py", line 39, in test_password_sets_password | |
| ds = DataSourceCloudStack({}, None, helpers.Paths({})) | |
| File "/Users/jxharlow/Dev/cloud-init/cloudinit/sources/DataSourceCloudStack.py", line 85, in __init__ | |
| self.vr_addr = get_vr_address() | |
| File "/Users/jxharlow/Dev/cloud-init/cloudinit/sources/DataSourceCloudStack.py", line 227, in get_vr_address | |
| return get_default_gateway() | |
| File "/Users/jxharlow/Dev/cloud-init/cloudinit/sources/DataSourceCloudStack.py", line 180, in get_default_gateway | |
| lines = util.load_file("/proc/net/route").splitlines() | |
| File "/Users/jxharlow/Dev/cloud-init/cloudinit/util.py", line 1198, in load_file | |
| with open(fname, 'rb') as ifh: | |
| IOError: [Errno 2] No such file or directory: '/proc/net/route' | |
| -------------------- >> begin captured logging << -------------------- | |
| cloudinit.sources.DataSourceCloudStack: DEBUG: No lease file found, using default gateway | |
| cloudinit.util: DEBUG: Reading from /proc/net/route (quiet=False) | |
| --------------------- >> end captured logging << --------------------- | |
| ====================================================================== | |
| ERROR: test_saved_password_doesnt_create_config (tests.unittests.test_datasource.test_cloudstack.TestCloudStackPasswordFetching) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/jxharlow/Dev/cloud-init/tests/unittests/test_datasource/test_cloudstack.py", line 32, in test_saved_password_doesnt_create_config | |
| ds = DataSourceCloudStack({}, None, helpers.Paths({})) | |
| File "/Users/jxharlow/Dev/cloud-init/cloudinit/sources/DataSourceCloudStack.py", line 85, in __init__ | |
| self.vr_addr = get_vr_address() | |
| File "/Users/jxharlow/Dev/cloud-init/cloudinit/sources/DataSourceCloudStack.py", line 227, in get_vr_address | |
| return get_default_gateway() | |
| File "/Users/jxharlow/Dev/cloud-init/cloudinit/sources/DataSourceCloudStack.py", line 180, in get_default_gateway | |
| lines = util.load_file("/proc/net/route").splitlines() | |
| File "/Users/jxharlow/Dev/cloud-init/cloudinit/util.py", line 1198, in load_file | |
| with open(fname, 'rb') as ifh: | |
| IOError: [Errno 2] No such file or directory: '/proc/net/route' | |
| -------------------- >> begin captured logging << -------------------- | |
| cloudinit.sources.DataSourceCloudStack: DEBUG: No lease file found, using default gateway | |
| cloudinit.util: DEBUG: Reading from /proc/net/route (quiet=False) | |
| --------------------- >> end captured logging << --------------------- | |
| ====================================================================== | |
| ERROR: test_valid_response_means_password_marked_as_saved (tests.unittests.test_datasource.test_cloudstack.TestCloudStackPasswordFetching) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/jxharlow/Dev/cloud-init/tests/unittests/test_datasource/test_cloudstack.py", line 60, in test_valid_response_means_password_marked_as_saved | |
| ds = DataSourceCloudStack({}, None, helpers.Paths({})) | |
| File "/Users/jxharlow/Dev/cloud-init/cloudinit/sources/DataSourceCloudStack.py", line 85, in __init__ | |
| self.vr_addr = get_vr_address() | |
| File "/Users/jxharlow/Dev/cloud-init/cloudinit/sources/DataSourceCloudStack.py", line 227, in get_vr_address | |
| return get_default_gateway() | |
| File "/Users/jxharlow/Dev/cloud-init/cloudinit/sources/DataSourceCloudStack.py", line 180, in get_default_gateway | |
| lines = util.load_file("/proc/net/route").splitlines() | |
| File "/Users/jxharlow/Dev/cloud-init/cloudinit/util.py", line 1198, in load_file | |
| with open(fname, 'rb') as ifh: | |
| IOError: [Errno 2] No such file or directory: '/proc/net/route' | |
| -------------------- >> begin captured logging << -------------------- | |
| cloudinit.sources.DataSourceCloudStack: DEBUG: No lease file found, using default gateway | |
| cloudinit.util: DEBUG: Reading from /proc/net/route (quiet=False) | |
| --------------------- >> end captured logging << --------------------- | |
| ====================================================================== | |
| ERROR: test_hostname (tests.unittests.test_datasource.test_opennebula.TestOpenNebulaDataSource) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/jxharlow/Dev/cloud-init/tests/unittests/test_datasource/test_opennebula.py", line 205, in test_hostname | |
| results = ds.read_context_disk_dir(my_d) | |
| File "/Users/jxharlow/Dev/cloud-init/cloudinit/sources/DataSourceOpenNebula.py", line 410, in read_context_disk_dir | |
| (out, _) = util.subp(['/sbin/ip', 'link']) | |
| File "/Users/jxharlow/Dev/cloud-init/cloudinit/util.py", line 1719, in subp | |
| errno=e.errno) | |
| ProcessExecutionError: Unexpected error while running command. | |
| Command: ['/sbin/ip', 'link'] | |
| Exit code: - | |
| Reason: [Errno 2] No such file or directory | |
| Stdout: '' | |
| Stderr: '' | |
| -------------------- >> begin captured logging << -------------------- | |
| cloudinit.util: DEBUG: Reading from /var/folders/xj/fl7mwgh55hxclltynvxr4k9jp5tcyl/T/tmp3HV4Hc/HOSTNAME/context.sh (quiet=False) | |
| cloudinit.util: DEBUG: Read 64 bytes from /var/folders/xj/fl7mwgh55hxclltynvxr4k9jp5tcyl/T/tmp3HV4Hc/HOSTNAME/context.sh | |
| cloudinit.util: DEBUG: Running command ['bash', '-e'] with allowed return codes [0] (shell=False, capture=True) | |
| cloudinit.util: DEBUG: Reading from /var/folders/xj/fl7mwgh55hxclltynvxr4k9jp5tcyl/T/tmp3HV4Hc/PUBLIC_IP/context.sh (quiet=False) | |
| cloudinit.util: DEBUG: Read 65 bytes from /var/folders/xj/fl7mwgh55hxclltynvxr4k9jp5tcyl/T/tmp3HV4Hc/PUBLIC_IP/context.sh | |
| cloudinit.util: DEBUG: Running command ['bash', '-e'] with allowed return codes [0] (shell=False, capture=True) | |
| cloudinit.util: DEBUG: Reading from /var/folders/xj/fl7mwgh55hxclltynvxr4k9jp5tcyl/T/tmp3HV4Hc/IP_PUBLIC/context.sh (quiet=False) | |
| cloudinit.util: DEBUG: Read 65 bytes from /var/folders/xj/fl7mwgh55hxclltynvxr4k9jp5tcyl/T/tmp3HV4Hc/IP_PUBLIC/context.sh | |
| cloudinit.util: DEBUG: Running command ['bash', '-e'] with allowed return codes [0] (shell=False, capture=True) | |
| cloudinit.util: DEBUG: Reading from /var/folders/xj/fl7mwgh55hxclltynvxr4k9jp5tcyl/T/tmp3HV4Hc/ETH0_IP/context.sh (quiet=False) | |
| cloudinit.util: DEBUG: Read 63 bytes from /var/folders/xj/fl7mwgh55hxclltynvxr4k9jp5tcyl/T/tmp3HV4Hc/ETH0_IP/context.sh | |
| cloudinit.util: DEBUG: Running command ['bash', '-e'] with allowed return codes [0] (shell=False, capture=True) | |
| cloudinit.util: DEBUG: Running command ['/sbin/ip', 'link'] 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 "/Users/jxharlow/Dev/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 "/Users/jxharlow/Dev/cloud-init/cloudinit/sources/DataSourceOpenNebula.py", line 410, in read_context_disk_dir | |
| (out, _) = util.subp(['/sbin/ip', 'link']) | |
| File "/Users/jxharlow/Dev/cloud-init/cloudinit/util.py", line 1719, in subp | |
| errno=e.errno) | |
| ProcessExecutionError: Unexpected error while running command. | |
| Command: ['/sbin/ip', 'link'] | |
| Exit code: - | |
| Reason: [Errno 2] No such file or directory | |
| Stdout: '' | |
| Stderr: '' | |
| -------------------- >> begin captured logging << -------------------- | |
| cloudinit.util: DEBUG: Reading from /var/folders/xj/fl7mwgh55hxclltynvxr4k9jp5tcyl/T/tmpfSs5FU/seed/opennebula/context.sh (quiet=False) | |
| cloudinit.util: DEBUG: Read 62 bytes from /var/folders/xj/fl7mwgh55hxclltynvxr4k9jp5tcyl/T/tmpfSs5FU/seed/opennebula/context.sh | |
| cloudinit.util: DEBUG: Running command ['bash', '-e'] with allowed return codes [0] (shell=False, capture=True) | |
| cloudinit.util: DEBUG: Running command ['/sbin/ip', 'link'] with allowed return codes [0] (shell=False, capture=True) | |
| --------------------- >> end captured logging << --------------------- | |
| ====================================================================== | |
| FAIL: test_password_given (tests.unittests.test_datasource.test_azure.TestAzureDataSource) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/jxharlow/Dev/cloud-init/tests/unittests/test_datasource/test_azure.py", line 265, in test_password_given | |
| defuser['passwd'][0:pos])) | |
| AssertionError: '$6kN.gRE7VgBw' != '$.9QaxzG7w1x.' | |
| - $6kN.gRE7VgBw | |
| + $.9QaxzG7w1x. | |
| -------------------- >> begin captured logging << -------------------- | |
| cloudinit.sources.DataSourceAzure: DEBUG: found datasource in /var/folders/xj/fl7mwgh55hxclltynvxr4k9jp5tcyl/T/tmpUL10S7/seed/azure | |
| cloudinit.util: DEBUG: Reading from /sys/firmware/acpi/tables/OEM0 (quiet=True) | |
| cloudinit.util: DEBUG: Read 0 bytes from /sys/firmware/acpi/tables/OEM0 | |
| cloudinit.util: DEBUG: Writing to /var/folders/xj/fl7mwgh55hxclltynvxr4k9jp5tcyl/T/tmpUL10S7/var/lib/waagent/ovf-env.xml - wb: [384] 889 bytes | |
| cloudinit.sources.DataSourceAzure: DEBUG: waiting for files took 0.000 seconds | |
| cloudinit.sources.DataSourceAzure: DEBUG: no default fabric formated ephemeral0.1 found | |
| --------------------- >> end captured logging << --------------------- | |
| ====================================================================== | |
| FAIL: test_generate_certificate_uses_tmpdir (tests.unittests.test_datasource.test_azure_helper.TestOpenSSLManager) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/jxharlow/Dev/cloud-init/tests/unittests/test_datasource/test_azure_helper.py", line 280, in test_generate_certificate_uses_tmpdir | |
| self.assertEqual(manager.tmpdir, subp_directory['path']) | |
| AssertionError: '/var/folders/xj/fl7mwgh55hxclltynvxr4k9jp5tcyl/T/tmpYILwfF' != '/private/var/folders/xj/fl7mwgh55hxclltynvxr4k9jp5tcyl/T/tmpYILwfF' | |
| - /var/folders/xj/fl7mwgh55hxclltynvxr4k9jp5tcyl/T/tmpYILwfF | |
| + /private/var/folders/xj/fl7mwgh55hxclltynvxr4k9jp5tcyl/T/tmpYILwfF | |
| ? ++++++++ | |
| -------------------- >> begin captured logging << -------------------- | |
| cloudinit.sources.helpers.azure: DEBUG: Generating certificate for communication with fabric... | |
| cloudinit.sources.helpers.azure: DEBUG: New certificate generated. | |
| --------------------- >> end captured logging << --------------------- | |
| ====================================================================== | |
| FAIL: Make sure the selinux guard is called correctly. | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/jxharlow/Dev/cloud-init/tests/unittests/test_util.py", line 145, in test_restorecon_if_possible_is_called | |
| self.assertEqual(1, len(fake_se.restored)) | |
| AssertionError: 1 != 0 | |
| ---------------------------------------------------------------------- | |
| Ran 635 tests in 3.464s | |
| FAILED (SKIP=5, errors=10, failures=3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment