← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1316597] Re: test_smartos fails in a chroot

 

fixed in 0.7.6

** Also affects: cloud-init
   Importance: Undecided
       Status: New

** Changed in: cloud-init
       Status: New => Fix Released

-- 
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/1316597

Title:
  test_smartos fails in a chroot

Status in Init scripts for use on cloud images:
  Fix Released
Status in “cloud-init” package in Ubuntu:
  Fix Released

Bug description:
  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1316597/+subscriptions