Skip to content

Instantly share code, notes, and snippets.

@harlowja
Created June 10, 2016 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harlowja/aa2b506c069fe874a51a774cd65a745c to your computer and use it in GitHub Desktop.
Save harlowja/aa2b506c069fe874a51a774cd65a745c to your computer and use it in GitHub Desktop.
$ remote_tester
----------------------------------------------------------------------
Connecting to jxharlow@josh-testr2.cloud.phx3.gdg...
Tarring up /Users/jxharlow/Dev/cloud-init -> /var/folders/xj/fl7mwgh55hxclltynvxr4k9jp5tcyl/T/tmphq3Zmx.cloud-init.tar...
Removing old /home/jxharlow/cloud-init...
Copying /var/folders/xj/fl7mwgh55hxclltynvxr4k9jp5tcyl/T/tmphq3Zmx.cloud-init.tar to /home/jxharlow/cloud-init/tmphq3Zmx.cloud-init.tar...
Extracting /home/jxharlow/cloud-init/tmphq3Zmx.cloud-init.tar...
Running tox with venv py27...
----------------------------------------------------------------------
GLOB sdist-make: /home/jxharlow/cloud-init/setup.py
py27 create: /home/jxharlow/cloud-init/.tox/py27
py27 installdeps: -r/home/jxharlow/cloud-init/test-requirements.txt, -r/home/jxharlow/cloud-init/requirements.txt
py27 inst: /home/jxharlow/cloud-init/.tox/dist/cloud-init-0.7.7.zip
py27 runtests: commands[0] | python -m nose tests
\................SSSS|../..-.\...|.../..........................-..........\............|................................/..................-.............\.............|.../....-......................\.....|......./..-....\............|............../....-.......\..................................................|........./.............\|/.-...\..|/-..\..|./...................-..................................\...............................................................................|/.........................-............................\....................................................................
======================================================================
ERROR: test_apt_srcl_custom
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jxharlow/cloud-init/tests/unittests/test_handler/test_handler_apt_configure_sources_list.py", line 157, in test_apt_srcl_custom
LOG, None)
File "/home/jxharlow/cloud-init/cloudinit/config/cc_apt_configure.py", line 59, in handle
mirrors = find_apt_mirror_info(cloud, cfg)
File "/home/jxharlow/cloud-init/cloudinit/config/cc_apt_configure.py", line 314, in find_apt_mirror_info
mirror_info = cloud.datasource.get_package_mirror_info()
File "/home/jxharlow/cloud-init/cloudinit/sources/__init__.py", line 228, in get_package_mirror_info
return self.distro.get_package_mirror_info(data_source=self)
File "/home/jxharlow/cloud-init/cloudinit/distros/__init__.py", line 127, in get_package_mirror_info
arch_info = self._get_arch_package_mirror_info(arch)
File "/home/jxharlow/cloud-init/cloudinit/distros/__init__.py", line 121, in _get_arch_package_mirror_info
arch = self.get_primary_arch()
File "/home/jxharlow/cloud-init/cloudinit/distros/debian.py", line 185, in get_primary_arch
(arch, _err) = util.subp(['dpkg', '--print-architecture'])
File "/home/jxharlow/cloud-init/cloudinit/util.py", line 1719, in subp
errno=e.errno)
ProcessExecutionError: Unexpected error while running command.
Command: ['dpkg', '--print-architecture']
Exit code: -
Reason: [Errno 2] No such file or directory
Stdout: ''
Stderr: ''
-------------------- >> begin captured logging << --------------------
cloudinit.util: DEBUG: Attempting to load yaml from string of length 770 with allowed root types (<type 'dict'>,)
cloudinit.util: DEBUG: Running command ['dpkg', '--print-architecture'] with allowed return codes [0] (shell=False, capture=True)
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: test_apt_src_keyid_real
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jxharlow/cloud-init/tests/unittests/test_handler/test_handler_apt_source.py", line 451, in test_apt_src_keyid_real
mockobj.assert_called_with(EXPECTEDKEY)
File "/home/jxharlow/cloud-init/.tox/py27/lib/python2.7/site-packages/mock/mock.py", line 937, in assert_called_with
six.raise_from(AssertionError(_error_message(cause)), cause)
File "/home/jxharlow/cloud-init/.tox/py27/lib/python2.7/site-packages/six.py", line 718, in raise_from
raise value
AssertionError: Expected call: add_key_raw('-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: GnuPG v1\n\nmI0ESuZLUgEEAKkqq3idtFP7g9hzOu1a8+v8ImawQN4TrvlygfScMU1TIS1eC7UQ\nNUA8Qqgr9iUaGnejb0VciqftLrU9D6WYHSKz+EITefgdyJ6SoQxjoJdsCpJ7o9Jy\n8PQnpRttiFm4qHu6BVnKnBNxw/z3ST9YMqW5kbMQpfxbGe+obRox59NpABEBAAG0\nHUxhdW5jaHBhZCBQUEEgZm9yIFNjb3R0IE1vc2VyiLYEEwECACAFAkrmS1ICGwMG\nCwkIBwMCBBUCCAMEFgIDAQIeAQIXgAAKCRAGILvPA2g/d3aEA/9tVjc10HOZwV29\nOatVuTeERjjrIbxflO586GLA8cp0C9RQCwgod/R+cKYdQcHjbqVcP0HqxveLg0RZ\nFJpWLmWKamwkABErwQLGlM/Hwhjfade8VvEQutH5/0JgKHmzRsoqfR+LMO6OS+Sm\nS0ORP6HXET3+jC8BMG4tBWCTK/XEZw==\n=ACB2\n-----END PGP PUBLIC KEY BLOCK-----')
Actual call: add_key_raw('-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: GnuPG v2.0.22 (GNU/Linux)\n\nmI0ESuZLUgEEAKkqq3idtFP7g9hzOu1a8+v8ImawQN4TrvlygfScMU1TIS1eC7UQ\nNUA8Qqgr9iUaGnejb0VciqftLrU9D6WYHSKz+EITefgdyJ6SoQxjoJdsCpJ7o9Jy\n8PQnpRttiFm4qHu6BVnKnBNxw/z3ST9YMqW5kbMQpfxbGe+obRox59NpABEBAAG0\nHUxhdW5jaHBhZCBQUEEgZm9yIFNjb3R0IE1vc2VyiLYEEwECACAFAkrmS1ICGwMG\nCwkIBwMCBBUCCAMEFgIDAQIeAQIXgAAKCRAGILvPA2g/d3aEA/9tVjc10HOZwV29\nOatVuTeERjjrIbxflO586GLA8cp0C9RQCwgod/R+cKYdQcHjbqVcP0HqxveLg0RZ\nFJpWLmWKamwkABErwQLGlM/Hwhjfade8VvEQutH5/0JgKHmzRsoqfR+LMO6OS+Sm\nS0ORP6HXET3+jC8BMG4tBWCTK/XEZw==\n=ACB2\n-----END PGP PUBLIC KEY BLOCK-----')
-------------------- >> begin captured logging << --------------------
cloudinit.util: DEBUG: Running command ['lsb_release', '-cs'] with allowed return codes [0] (shell=False, capture=True)
cloudinit.util: DEBUG: Created temporary file /tmp/tmpaJvCDW.sh
cloudinit.util: DEBUG: Running command ['/bin/sh', '/tmp/tmpaJvCDW.sh', '03683F77', 'keyserver.ubuntu.com'] with allowed return codes [0] (shell=False, capture=True)
cloudinit.util: DEBUG: Attempting to remove /tmp/tmpaJvCDW.sh
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: test_apt_src_longkeyid_real
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/jxharlow/cloud-init/tests/unittests/test_handler/test_handler_apt_source.py", line 469, in test_apt_src_longkeyid_real
mockobj.assert_called_with(EXPECTEDKEY)
File "/home/jxharlow/cloud-init/.tox/py27/lib/python2.7/site-packages/mock/mock.py", line 925, in assert_called_with
raise AssertionError('Expected call: %s\nNot called' % (expected,))
AssertionError: Expected call: add_key_raw('-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: GnuPG v1\n\nmI0ESuZLUgEEAKkqq3idtFP7g9hzOu1a8+v8ImawQN4TrvlygfScMU1TIS1eC7UQ\nNUA8Qqgr9iUaGnejb0VciqftLrU9D6WYHSKz+EITefgdyJ6SoQxjoJdsCpJ7o9Jy\n8PQnpRttiFm4qHu6BVnKnBNxw/z3ST9YMqW5kbMQpfxbGe+obRox59NpABEBAAG0\nHUxhdW5jaHBhZCBQUEEgZm9yIFNjb3R0IE1vc2VyiLYEEwECACAFAkrmS1ICGwMG\nCwkIBwMCBBUCCAMEFgIDAQIeAQIXgAAKCRAGILvPA2g/d3aEA/9tVjc10HOZwV29\nOatVuTeERjjrIbxflO586GLA8cp0C9RQCwgod/R+cKYdQcHjbqVcP0HqxveLg0RZ\nFJpWLmWKamwkABErwQLGlM/Hwhjfade8VvEQutH5/0JgKHmzRsoqfR+LMO6OS+Sm\nS0ORP6HXET3+jC8BMG4tBWCTK/XEZw==\n=ACB2\n-----END PGP PUBLIC KEY BLOCK-----')
Not called
-------------------- >> begin captured logging << --------------------
cloudinit.util: DEBUG: Running command ['lsb_release', '-cs'] with allowed return codes [0] (shell=False, capture=True)
cloudinit.util: DEBUG: Created temporary file /tmp/tmpWcV0IP.sh
cloudinit.util: DEBUG: Running command ['/bin/sh', '/tmp/tmpWcV0IP.sh', 'B59D 5F15 97A5 04B7 E230 6DCA 0620 BBCF 0368 3F77', 'keyserver.ubuntu.com'] with allowed return codes [0] (shell=False, capture=True)
cloudinit.util: DEBUG: Attempting to remove /tmp/tmpWcV0IP.sh
--------------------- >> end captured logging << ---------------------
----------------------------------------------------------------------
Ran 618 tests in 6.581s
FAILED (SKIP=5, errors=1, failures=2)
ERROR: InvocationError: '/home/jxharlow/cloud-init/.tox/py27/bin/python -m nose tests'
___________________________________ summary ____________________________________
ERROR: py27: commands failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment