cloud-init-dev team mailing list archive
-
cloud-init-dev team
-
Mailing list archive
-
Message #04999
[Merge] ~chad.smith/cloud-init:tests/integration-simplified-failure-output into cloud-init:master
The proposal to merge ~chad.smith/cloud-init:tests/integration-simplified-failure-output into cloud-init:master has been updated.
Description changed to:
verbose test output before:
OK (skipped=2)
2018-06-12 18:39:47,003 - tests.cloud_tests - WARNING - test: platform='lxd', os='artful' failed 1 tests
2018-06-12 18:39:47,003 - tests.cloud_tests - DEBUG - verify results: {'lxd': {'artful': {'modules/apt_pipelining_disable': {'passed': True, 'failures': []}, 'modules/runcmd': {'passed': True, 'failures': []}, 'modules/salt_minion': {'passed': True, 'failures': []}, 'modules/user_groups': {'passed': True, 'failures': []}, 'modules/ssh_auth_key_fingerprints_enable': {'passed': True, 'failures': []}, 'modules/bootcmd': {'passed': True, 'failures': []}, 'modules/keys_to_console': {'passed': True, 'failures': []}, 'main/command_output_simple': {'passed': True, 'failures': []}, 'modules/set_password_expire': {'passed': True, 'failures': []}, 'modules/timezone': {'passed': True, 'failures': []}, 'modules/seed_random_data': {'passed': True, 'failures': []}, 'modules/apt_configure_sources_key': {'passed': True, 'failures': []}, 'modules/write_files': {'passed': True, 'failures': []}, 'modules/lxd_dir': {'passed': True, 'failures': []}, 'modules/ntp_servers': {'passed': True, 'failures': []}, 'modules/apt_configure_proxy': {'passed': True, 'failures': []}, 'modules/snappy': {'passed': True, 'failures': []}, 'modules/set_password': {'passed': True, 'failures': []}, 'modules/ssh_import_id': {'passed': True, 'failures': []}, 'modules/ntp_chrony': {'passed': False, 'failures': [{'traceback': 'Traceback (most recent call last):\n File "/var/lib/jenkins/slaves/torkoal/workspace/cloud-init-integration-lxd-a/cloud-init/tests/cloud_tests/testcases/base.py", line 132, in test_no_stages_errors\n .format(status[stage][\'errors\'], stage))\nAssertionError: 1 != 0 : errors [\'(\\\'ntp\\\', ProcessExecutionError("Unexpected error while running command.\\\\nCommand: [\\\'eatmydata\\\', \\\'apt-get\\\', \\\'--option=Dpkg::Options::=--force-confold\\\', \\\'--option=Dpkg::options::=--force-unsafe-io\\\', \\\'--assume-yes\\\', \\\'--quiet\\\', \\\'install\\\', \\\'chrony\\\']\\\\nExit code: 100\\\\nReason: -\\\\nStdout: -\\\\nStderr: -",))\'] were encountered in stage modules-config\n', 'module': 'tests.cloud_tests.testcases.modules.ntp_chrony', 'function': 'test_no_stages_errors', 'class': 'TestNtpChrony', 'error': 'AssertionError: 1 != 0 : errors [\'(\\\'ntp\\\', ProcessExecutionError("Unexpected error while running command.\\\\nCommand: [\\\'eatmydata\\\', \\\'apt-get\\\', \\\'--option=Dpkg::Options::=--force-confold\\\', \\\'--option=Dpkg::options::=--force-unsafe-io\\\', \\\'--assume-yes\\\', \\\'--quiet\\\', \\\'install\\\', \\\'chrony\\\']\\\\nExit code: 100\\\\nReason: -\\\\nStdout: -\\\\nStderr: -",))\'] were encountered in stage modules-config'}, {'traceback': 'Traceback (most recent call last):\n File "/var/lib/jenkins/slaves/torkoal/workspace/cloud-init-integration-lxd-a/cloud-init/tests/cloud_tests/testcases/base.py", line 149, in test_no_warnings_in_log\n [], warnings, msg="\'WARN\' found inside cloud-init.log")\nAssertionError: Lists differ: [] != ["2018-06-12 12:11:09,883 - util.py[WARNIN[128 chars]led"]\n\nSecond list contains 1 additional elements.\nFirst extra element 0:\n"2018-06-12 12:11:09,883 - util.py[WARNING]: Running module ntp (<module \'cloudinit.config.cc_ntp\' from \'/usr/lib/python3/dist-packages/cloudinit/config/cc_ntp.py\'>) failed"\n\n- []\n+ [\'2018-06-12 12:11:09,883 - util.py[WARNING]: Running module ntp (<module \'\n+ "\'cloudinit.config.cc_ntp\' from "\n+ "\'/usr/lib/python3/dist-packages/cloudinit/config/cc_ntp.py\'>) failed"] : \'WARN\' found inside cloud-init.log\n', 'module': 'tests.cloud_tests.testcases.modules.ntp_chrony', 'function': 'test_no_warnings_in_log', 'class': 'TestNtpChrony', 'error': '+ "\'/usr/lib/python3/dist-packages/cloudinit/config/cc_ntp.py\'>) failed"] : \'WARN\' found inside cloud-init.log'}]}, 'modules/ntp_pools': {'passed': True, 'failures': []}, 'modules/ssh_auth_key_fingerprints_disable': {'passed': True, 'failures': []}, 'modules/apt_configure_security': {'passed': True, 'failures': []}, 'modules/set_hostname': {'passed': True, 'failures': []}, 'modules/set_password_list': {'passed': True, 'failures': []}, 'modules/apt_configure_sources_ppa': {'passed': True, 'failures': []}, 'modules/set_hostname_fqdn': {'passed': True, 'failures': []}, 'modules/locale': {'passed': True, 'failures': []}, 'modules/ca_certs': {'passed': True, 'failures': []}, 'modules/apt_configure_primary': {'passed': True, 'failures': []}, 'modules/package_update_upgrade_install': {'passed': True, 'failures': []}, 'modules/debug_disable': {'passed': True, 'failures': []}, 'modules/final_message': {'passed': True, 'failures': []}, 'modules/apt_pipelining_os': {'passed': True, 'failures': []}, 'modules/lxd_bridge': {'passed': True, 'failures': []}, 'modules/ntp_timesyncd': {'passed': True, 'failures': []}, 'modules/snap': {'passed': True, 'failures': []}, 'modules/debug_enable': {'passed': True, 'failures': []}, 'modules/apt_configure_sources_list': {'passed': True, 'failures': []}, 'bugs/lp1628337': {'passed': True, 'failures': []}, 'modules/apt_configure_disable_suites': {'passed': True, 'failures': []}, 'modules/apt_configure_sources_keyserver': {'passed': True, 'failures': []}, 'modules/byobu': {'passed': True, 'failures': []}, 'modules/set_password_list_string': {'passed': True, 'failures': []}, 'modules/apt_configure_conf': {'passed': True, 'failures': []}, 'modules/ssh_keys_generate': {'passed': True, 'failures': []}, 'modules/ntp': {'passed': True, 'failures': []}}}}
verbose integration test output after this branch:
OK (skipped=2)
2018-06-12 18:39:13,854 - tests.cloud_tests - WARNING - test: platform='lxd', os='artful' failed 1 tests
2018-06-12 18:39:13,854 - tests.cloud_tests - DEBUG -
---- Verify summarized results:
- Platform: lxd
Distro: artful
test modules passed:46 tests failed:2
test failures:
* tests.cloud_tests.testcases.modules.ntp_chrony.TestNtpChrony.test_no_stages_errors
AssertionError: 1 != 0 : errors ['(\'ntp\', ProcessExecutionError("Unexpected error while running command.\\nCommand: [\'eatmydata\', \'apt-get\', \'--option=Dpkg::Options::=--force-confold\', \'--option=Dpkg::options::=--force-unsafe-io\', \'--assume-yes\', \'--quiet\', \'install\', \'chrony\']\\nExit code: 100\\nReason: -\\nStdout: -\\nStderr: -",))'] were encountered in stage modules-config
* tests.cloud_tests.testcases.modules.ntp_chrony.TestNtpChrony.test_no_warnings_in_log
+ "'/usr/lib/python3/dist-packages/cloudinit/config/cc_ntp.py'>) failed"] : 'WARN' found inside cloud-init.log
For more details, see:
https://code.launchpad.net/~chad.smith/cloud-init/+git/cloud-init/+merge/347833
--
Your team cloud-init commiters is requested to review the proposed merge of ~chad.smith/cloud-init:tests/integration-simplified-failure-output into cloud-init:master.
References