← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1550008] [NEW] Hostname mismatch on test_get_device_id

 

Public bug reported:

I'm using an environment with a FQDN. As result,  test_get_device_id
fails with the following error

(py34) user@user-host:~/stack/neutron (master*) $ testr run test_get_device_id                                                                                     [60/1907]
running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_LOG_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./neutron/tests/unit} --list 
Guru mediation now registers SIGUSR1 and SIGUSR2 by default for backward compatibility. SIGUSR1 will no longer be registered in a future release, so please use SIGUSR2 to generate reports.
running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_LOG_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./neutron/tests/unit}  --load-list /tmp/tmptnp9alse
Guru mediation now registers SIGUSR1 and SIGUSR2 by default for backward compatibility. SIGUSR1 will no longer be registered in a future release, so please use SIGUSR2 to generate reports.
======================================================================
FAIL: neutron.tests.unit.agent.dhcp.test_agent.TestDeviceManager.test_get_device_id
tags: worker-0
----------------------------------------------------------------------
Empty attachments:
  stderr
  stdout

pythonlogging:'': {{{WARNING [oslo_config.cfg] Option "verbose" from
group "DEFAULT" is deprecated for removal.  Its value may be silently
ignored in the future.}}}

Traceback (most recent call last):
  File "/opt/stack/neutron/neutron/tests/unit/agent/dhcp/test_agent.py", line 1521, in test_get_device_id
    uuid5.assert_called_once_with(uuid.NAMESPACE_DNS, cfg.CONF.host)
  File "/opt/stack/neutron/.tox/py34/lib/python3.4/site-packages/mock/mock.py", line 948, in assert_called_once_with
    return self.assert_called_with(*args, **kwargs)
  File "/opt/stack/neutron/.tox/py34/lib/python3.4/site-packages/mock/mock.py", line 937, in assert_called_with
    six.raise_from(AssertionError(_error_message(cause)), cause)
  File "<string>", line 2, in raise_from
AssertionError: Expected call: uuid5(UUID('6ba7b810-9dad-11d1-80b4-00c04fd430c8'), 'user-host.company.com')
Actual call: uuid5(UUID('6ba7b810-9dad-11d1-80b4-00c04fd430c8'), 'user-host')
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=1 encoding='UTF-8'>
/opt/stack/neutron/.tox/py34/lib64/python3.4/importlib/_bootstrap.py:2150: ImportWarning: sys.meta_path is empty
Ran 1 (-6930) tests in 0.194s (-1638.876s)
FAILED (id=44, failures=1)

** Affects: neutron
     Importance: Undecided
     Assignee: Victor Morales (electrocucaracha)
         Status: New

** Changed in: neutron
     Assignee: (unassigned) => Victor Morales (electrocucaracha)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1550008

Title:
  Hostname mismatch on test_get_device_id

Status in neutron:
  New

Bug description:
  I'm using an environment with a FQDN. As result,  test_get_device_id
  fails with the following error

  (py34) user@user-host:~/stack/neutron (master*) $ testr run test_get_device_id                                                                                     [60/1907]
  running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_LOG_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./neutron/tests/unit} --list 
  Guru mediation now registers SIGUSR1 and SIGUSR2 by default for backward compatibility. SIGUSR1 will no longer be registered in a future release, so please use SIGUSR2 to generate reports.
  running=OS_STDOUT_CAPTURE=1 OS_STDERR_CAPTURE=1 OS_LOG_CAPTURE=1 ${PYTHON:-python} -m subunit.run discover -t ./ ${OS_TEST_PATH:-./neutron/tests/unit}  --load-list /tmp/tmptnp9alse
  Guru mediation now registers SIGUSR1 and SIGUSR2 by default for backward compatibility. SIGUSR1 will no longer be registered in a future release, so please use SIGUSR2 to generate reports.
  ======================================================================
  FAIL: neutron.tests.unit.agent.dhcp.test_agent.TestDeviceManager.test_get_device_id
  tags: worker-0
  ----------------------------------------------------------------------
  Empty attachments:
    stderr
    stdout

  pythonlogging:'': {{{WARNING [oslo_config.cfg] Option "verbose" from
  group "DEFAULT" is deprecated for removal.  Its value may be silently
  ignored in the future.}}}

  Traceback (most recent call last):
    File "/opt/stack/neutron/neutron/tests/unit/agent/dhcp/test_agent.py", line 1521, in test_get_device_id
      uuid5.assert_called_once_with(uuid.NAMESPACE_DNS, cfg.CONF.host)
    File "/opt/stack/neutron/.tox/py34/lib/python3.4/site-packages/mock/mock.py", line 948, in assert_called_once_with
      return self.assert_called_with(*args, **kwargs)
    File "/opt/stack/neutron/.tox/py34/lib/python3.4/site-packages/mock/mock.py", line 937, in assert_called_with
      six.raise_from(AssertionError(_error_message(cause)), cause)
    File "<string>", line 2, in raise_from
  AssertionError: Expected call: uuid5(UUID('6ba7b810-9dad-11d1-80b4-00c04fd430c8'), 'user-host.company.com')
  Actual call: uuid5(UUID('6ba7b810-9dad-11d1-80b4-00c04fd430c8'), 'user-host')
  sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name=1 encoding='UTF-8'>
  /opt/stack/neutron/.tox/py34/lib64/python3.4/importlib/_bootstrap.py:2150: ImportWarning: sys.meta_path is empty
  Ran 1 (-6930) tests in 0.194s (-1638.876s)
  FAILED (id=44, failures=1)

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1550008/+subscriptions