yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #74430
[Bug 1788967] [NEW] test_apt_v3_mirror_search_dns case failed for cloud-init v18.3 integration test
Public bug reported:
test_apt_v3_mirror_search_dns case failed for cloud-init v18.3
integration test
OS VERSION="16.04 LTS (Xenial Xerus)"
cmd:
peter@U1604CloudinitTools:~/cloud-init$ tox
GLOB sdist-make: /home/peter/cloud-init/setup.py
py27 inst-nodeps: /home/peter/cloud-init/.tox/dist/cloud-init-18.3.zip
py27 installed: certifi==2018.8.24,chardet==3.0.4,cloud-init==18.3,configobj==5.0.6,contextlib2==0.5.5,coverage==4.5.1,funcsigs==1.0.2,functools32==3.2.3.post2,httpretty==0.9.5,idna==2.7,Jinja2==2.10,jsonpatch==1.23,jsonpointer==2.0,jsonschema==2.6.0,linecache2==1.0.0,MarkupSafe==1.0,mock==2.0.0,nose==1.3.7,oauthlib==2.1.0,pbr==4.2.0,PyYAML==3.13,requests==2.19.1,six==1.11.0,traceback2==1.4.0,unittest2==1.1.0,urllib3==1.23
py27 runtests: PYTHONHASHSEED='3706408151'
py27 runtests: commands[0] | python -m nose tests/unittests cloudinit
---------------log snip-----------
======================================================================
FAIL: test_apt_v3_mirror_search_dns - Test searching dns patterns
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/peter/cloud-init/tests/unittests/test_handler/test_handler_apt_source_v3.py", line 981, in test_apt_v3_mirror_search_dns
mockse.assert_has_calls(calls)
File "/usr/lib/python3.5/unittest/mock.py", line 824, in assert_has_calls
) from cause
AssertionError: Calls not found.
Expected: [call(None), call(['http://ubuntu-mirror.localdomain/ubuntu', 'http://ubuntu-mirror/ubuntu']), call(None), call(['http://ubuntu-security-mirror.localdomain/ubuntu', 'http://ubuntu-security-mirror/ubuntu'])]
Actual: [call(None),
call(['http://ubuntu-mirror.eng.vmware.com/ubuntu', 'http://ubuntu-mirror.localdomain/ubuntu', 'http://ubuntu-mirror/ubuntu']),
call(None),
call(['http://ubuntu-security-mirror.eng.vmware.com/ubuntu', 'http://ubuntu-security-mirror.localdomain/ubuntu', 'http://ubuntu-security-mirror/ubuntu'])]
-------------------- >> begin captured logging << --------------------
tests.unittests.test_handler.test_handler_apt_configure_sources_list_v3: DEBUG: got primary mirror: http://mocked/foo
tests.unittests.test_handler.test_handler_apt_configure_sources_list_v3: DEBUG: got security mirror: http://mocked/foo
tests.unittests.test_handler.test_handler_apt_configure_sources_list_v3: DEBUG: got primary mirror: http://mocked/foo
tests.unittests.test_handler.test_handler_apt_configure_sources_list_v3: DEBUG: got security mirror: http://mocked/foo
cloudinit.util: DEBUG: Reading from /tmp/tmpqwuvgqnh/etc/hosts (quiet=False)
cloudinit.util: DEBUG: Reading from /tmp/tmpqwuvgqnh/etc/hosts (quiet=False)
tests.unittests.test_handler.test_handler_apt_configure_sources_list_v3: DEBUG: got primary mirror: phit
cloudinit.util: DEBUG: Reading from /tmp/tmpqwuvgqnh/etc/hosts (quiet=False)
cloudinit.util: DEBUG: Reading from /tmp/tmpqwuvgqnh/etc/hosts (quiet=False)
tests.unittests.test_handler.test_handler_apt_configure_sources_list_v3: DEBUG: got security mirror: shit
--------------------- >> end captured logging << ---------------------
Note: our network env do set search domain to "eng.vmware.com" and we
have some internal mirror repos for ubuntu
** Affects: cloud-init
Importance: Undecided
Status: New
** Tags: testcase
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to cloud-init.
https://bugs.launchpad.net/bugs/1788967
Title:
test_apt_v3_mirror_search_dns case failed for cloud-init v18.3
integration test
Status in cloud-init:
New
Bug description:
test_apt_v3_mirror_search_dns case failed for cloud-init v18.3
integration test
OS VERSION="16.04 LTS (Xenial Xerus)"
cmd:
peter@U1604CloudinitTools:~/cloud-init$ tox
GLOB sdist-make: /home/peter/cloud-init/setup.py
py27 inst-nodeps: /home/peter/cloud-init/.tox/dist/cloud-init-18.3.zip
py27 installed: certifi==2018.8.24,chardet==3.0.4,cloud-init==18.3,configobj==5.0.6,contextlib2==0.5.5,coverage==4.5.1,funcsigs==1.0.2,functools32==3.2.3.post2,httpretty==0.9.5,idna==2.7,Jinja2==2.10,jsonpatch==1.23,jsonpointer==2.0,jsonschema==2.6.0,linecache2==1.0.0,MarkupSafe==1.0,mock==2.0.0,nose==1.3.7,oauthlib==2.1.0,pbr==4.2.0,PyYAML==3.13,requests==2.19.1,six==1.11.0,traceback2==1.4.0,unittest2==1.1.0,urllib3==1.23
py27 runtests: PYTHONHASHSEED='3706408151'
py27 runtests: commands[0] | python -m nose tests/unittests cloudinit
---------------log snip-----------
======================================================================
FAIL: test_apt_v3_mirror_search_dns - Test searching dns patterns
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/peter/cloud-init/tests/unittests/test_handler/test_handler_apt_source_v3.py", line 981, in test_apt_v3_mirror_search_dns
mockse.assert_has_calls(calls)
File "/usr/lib/python3.5/unittest/mock.py", line 824, in assert_has_calls
) from cause
AssertionError: Calls not found.
Expected: [call(None), call(['http://ubuntu-mirror.localdomain/ubuntu', 'http://ubuntu-mirror/ubuntu']), call(None), call(['http://ubuntu-security-mirror.localdomain/ubuntu', 'http://ubuntu-security-mirror/ubuntu'])]
Actual: [call(None),
call(['http://ubuntu-mirror.eng.vmware.com/ubuntu', 'http://ubuntu-mirror.localdomain/ubuntu', 'http://ubuntu-mirror/ubuntu']),
call(None),
call(['http://ubuntu-security-mirror.eng.vmware.com/ubuntu', 'http://ubuntu-security-mirror.localdomain/ubuntu', 'http://ubuntu-security-mirror/ubuntu'])]
-------------------- >> begin captured logging << --------------------
tests.unittests.test_handler.test_handler_apt_configure_sources_list_v3: DEBUG: got primary mirror: http://mocked/foo
tests.unittests.test_handler.test_handler_apt_configure_sources_list_v3: DEBUG: got security mirror: http://mocked/foo
tests.unittests.test_handler.test_handler_apt_configure_sources_list_v3: DEBUG: got primary mirror: http://mocked/foo
tests.unittests.test_handler.test_handler_apt_configure_sources_list_v3: DEBUG: got security mirror: http://mocked/foo
cloudinit.util: DEBUG: Reading from /tmp/tmpqwuvgqnh/etc/hosts (quiet=False)
cloudinit.util: DEBUG: Reading from /tmp/tmpqwuvgqnh/etc/hosts (quiet=False)
tests.unittests.test_handler.test_handler_apt_configure_sources_list_v3: DEBUG: got primary mirror: phit
cloudinit.util: DEBUG: Reading from /tmp/tmpqwuvgqnh/etc/hosts (quiet=False)
cloudinit.util: DEBUG: Reading from /tmp/tmpqwuvgqnh/etc/hosts (quiet=False)
tests.unittests.test_handler.test_handler_apt_configure_sources_list_v3: DEBUG: got security mirror: shit
--------------------- >> end captured logging << ---------------------
Note: our network env do set search domain to "eng.vmware.com" and we
have some internal mirror repos for ubuntu
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1788967/+subscriptions
Follow ups