Public bug reported:
All tests from test_smartos.py fail in a chroot as follows (only first
failure shown):
$ nosetests tests/unittests/test_datasource/test_smartos.py
FFFFFFFFFFFFFFFFFFFFF
======================================================================
FAIL: test_b64_keys
(tests.unittests.test_datasource.test_smartos.TestSmartOSDataSource)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/mocker.py", line 146, in
test_method_wrapper
result = test_method()
File "/root/cloud-init/tests/unittests/test_datasource/test_smartos.py", line
270, in test_b64_keys
self.assertTrue(ret)
AssertionError: False is not true
-------------------- >> begin captured logging << --------------------
cloudinit.importer: DEBUG: Looking for modules ['cloudinit.mergers.m_list']
that have attributes ['Merger']
cloudinit.importer: DEBUG: Found m_list with attributes ['Merger'] in
['cloudinit.mergers.m_list']
cloudinit.importer: DEBUG: Looking for modules ['cloudinit.mergers.m_dict']
that have attributes ['Merger']
cloudinit.importer: DEBUG: Found m_dict with attributes ['Merger'] in
['cloudinit.mergers.m_dict']
cloudinit.importer: DEBUG: Looking for modules ['cloudinit.mergers.m_str'] that
have attributes ['Merger']
cloudinit.importer: DEBUG: Found m_str with attributes ['Merger'] in
['cloudinit.mergers.m_str']
cloudinit.mergers: DEBUG: Merging 'dict' into 'dict' using method
'_handle_unknown' of 'LookupMerger: (3)'
cloudinit.mergers: DEBUG: Merging using located merger 'DictMerger:
(method=no_replace,recurse_str=False,recurse_dict=True,recurse_array=False,allow_delete=False)'
since it had method '_on_dict'
cloudinit.sources.DataSourceSmartOS: DEBUG: Host does not appear to be on
SmartOS
--------------------- >> end captured logging << ---------------------
This is because DataSourceSmartOS.get_data() bails out if it can't find
the seed (/dev/ttyS1), which obviously doesn't exist in a pbuilder
chroot. The check for /dev/ttyS1 needs to be subbed out.
** Affects: cloud-init (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1316597
Title:
test_smartos fails in a chroot
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1316597/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs