← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1769952] Re: test_net.TestGenerateFallbackConfig.test_unstable_names is sensitive to host environment

 

This bug is believed to be fixed in cloud-init in version 18.3. If this
is still a problem for you, please make a comment and set the state back
to New

Thank you.

** Changed in: cloud-init
       Status: Fix Committed => 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/1769952

Title:
  test_net.TestGenerateFallbackConfig.test_unstable_names is sensitive
  to host environment

Status in cloud-init:
  Fix Released

Bug description:
  The test_unstable_names test expects cloudinit.util.udevadm_settle to
  be called once:

    self.assertEqual(1, mock_settle.call_count)

  But cloudinit.net.find_fallback_nic inspects /proc/cmdline for the
  net.ifnames=0 parameter, and if found will not call udevadm_settle,
  which causes the test to fail.

  The unit tests should not rely on information from the host
  environment.

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


References