functional test test_cleanup_stale_devices fails with "ValueError: foo_host is not a valid host address"

Bug #1689019 reported by Akihiro Motoki
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Critical
YAMAMOTO Takashi

Bug Description

neutron.tests.functional.agent.linux.test_dhcp.TestDhcp test_cleanup_stale_devices fails with:

ft1.1: neutron.tests.functional.agent.linux.test_dhcp.TestDhcp.test_cleanup_stale_devices_StringException: Empty attachments:
  stderr
  stdout

pythonlogging:'': {{{
DEBUG [stevedore.extension] found extension EntryPoint.parse('rabbit = oslo_messaging._drivers.impl_rabbit:RabbitDriver')
   DEBUG [stevedore.extension] found extension EntryPoint.parse('fake = oslo_messaging._drivers.impl_fake:FakeDriver')
   DEBUG [stevedore.extension] found extension EntryPoint.parse('kafka = oslo_messaging._drivers.impl_kafka:KafkaDriver')
   DEBUG [stevedore.extension] found extension EntryPoint.parse('amqp = oslo_messaging._drivers.impl_amqp1:ProtonDriver')
   DEBUG [stevedore.extension] found extension EntryPoint.parse('kombu = oslo_messaging._drivers.impl_rabbit:RabbitDriver')
   DEBUG [stevedore.extension] found extension EntryPoint.parse('zmq = oslo_messaging._drivers.impl_zmq:ZmqDriver')
   DEBUG [stevedore.extension] found extension EntryPoint.parse('pika = oslo_messaging._drivers.impl_pika:PikaDriver')
   DEBUG [stevedore.extension] found extension EntryPoint.parse('rabbit = oslo_messaging._drivers.impl_rabbit:RabbitDriver')
   DEBUG [stevedore.extension] found extension EntryPoint.parse('fake = oslo_messaging._drivers.impl_fake:FakeDriver')
   DEBUG [stevedore.extension] found extension EntryPoint.parse('kafka = oslo_messaging._drivers.impl_kafka:KafkaDriver')
   DEBUG [stevedore.extension] found extension EntryPoint.parse('amqp = oslo_messaging._drivers.impl_amqp1:ProtonDriver')
   DEBUG [stevedore.extension] found extension EntryPoint.parse('kombu = oslo_messaging._drivers.impl_rabbit:RabbitDriver')
   DEBUG [stevedore.extension] found extension EntryPoint.parse('zmq = oslo_messaging._drivers.impl_zmq:ZmqDriver')
   DEBUG [stevedore.extension] found extension EntryPoint.parse('pika = oslo_messaging._drivers.impl_pika:PikaDriver')
   DEBUG [stevedore.extension] found extension EntryPoint.parse('rabbit = oslo_messaging._drivers.impl_rabbit:RabbitDriver')
   DEBUG [stevedore.extension] found extension EntryPoint.parse('fake = oslo_messaging._drivers.impl_fake:FakeDriver')
   DEBUG [stevedore.extension] found extension EntryPoint.parse('kafka = oslo_messaging._drivers.impl_kafka:KafkaDriver')
   DEBUG [stevedore.extension] found extension EntryPoint.parse('amqp = oslo_messaging._drivers.impl_amqp1:ProtonDriver')
   DEBUG [stevedore.extension] found extension EntryPoint.parse('kombu = oslo_messaging._drivers.impl_rabbit:RabbitDriver')
   DEBUG [stevedore.extension] found extension EntryPoint.parse('zmq = oslo_messaging._drivers.impl_zmq:ZmqDriver')
   DEBUG [stevedore.extension] found extension EntryPoint.parse('pika = oslo_messaging._drivers.impl_pika:PikaDriver')
   DEBUG [stevedore.extension] found extension EntryPoint.parse('rabbit = oslo_messaging._drivers.impl_rabbit:RabbitDriver')
   DEBUG [stevedore.extension] found extension EntryPoint.parse('fake = oslo_messaging._drivers.impl_fake:FakeDriver')
   DEBUG [stevedore.extension] found extension EntryPoint.parse('kafka = oslo_messaging._drivers.impl_kafka:KafkaDriver')
   DEBUG [stevedore.extension] found extension EntryPoint.parse('amqp = oslo_messaging._drivers.impl_amqp1:ProtonDriver')
   DEBUG [stevedore.extension] found extension EntryPoint.parse('kombu = oslo_messaging._drivers.impl_rabbit:RabbitDriver')
   DEBUG [stevedore.extension] found extension EntryPoint.parse('zmq = oslo_messaging._drivers.impl_zmq:ZmqDriver')
   DEBUG [stevedore.extension] found extension EntryPoint.parse('pika = oslo_messaging._drivers.impl_pika:PikaDriver')
   DEBUG [oslo_policy._cache_handler] Reloading cached file /opt/stack/new/neutron/neutron/tests/etc/policy.json
   DEBUG [oslo_policy.policy] Reloaded policy file: /opt/stack/new/neutron/neutron/tests/etc/policy.json
}}}

Traceback (most recent call last):
  File "neutron/tests/functional/agent/linux/test_dhcp.py", line 39, in setUp
    conf.set_override('host', 'foo_host')
  File "/opt/stack/new/neutron/.tox/dsvm-functional/local/lib/python2.7/site-packages/debtcollector/removals.py", line 261, in wrapper
    return f(*args, **kwargs)
  File "/opt/stack/new/neutron/.tox/dsvm-functional/local/lib/python2.7/site-packages/oslo_config/cfg.py", line 2314, in __inner
    result = f(self, *args, **kwargs)
  File "/opt/stack/new/neutron/.tox/dsvm-functional/local/lib/python2.7/site-packages/oslo_config/cfg.py", line 2638, in set_override
    opt_info['opt'], override, enforce_type)
  File "/opt/stack/new/neutron/.tox/dsvm-functional/local/lib/python2.7/site-packages/oslo_config/cfg.py", line 2667, in _get_enforced_type_value
    converted = self._convert_value(value, opt)
  File "/opt/stack/new/neutron/.tox/dsvm-functional/local/lib/python2.7/site-packages/oslo_config/cfg.py", line 2945, in _convert_value
    return opt.type(value)
  File "/opt/stack/new/neutron/.tox/dsvm-functional/local/lib/python2.7/site-packages/oslo_config/types.py", line 798, in __call__
    raise ValueError("%s is not a valid host address" % (value,))
ValueError: foo_host is not a valid host address

Revision history for this message
Akihiro Motoki (amotoki) wrote :

6 hits since 2017-05-06T07:00:03.049+09:00.

6 hits in the last 2 days, but no hits before then (at least in the 7 day window)

Changed in neutron:
importance: Undecided → High
Changed in neutron:
status: New → Confirmed
Changed in neutron:
assignee: nobody → YAMAMOTO Takashi (yamamoto)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.openstack.org/463238

Changed in neutron:
status: Confirmed → In Progress
Akihiro Motoki (amotoki)
Changed in neutron:
importance: High → Critical
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.openstack.org/463238
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=26920b8712859ab3c44641ff33ca7f0ecfc45bc2
Submitter: Jenkins
Branch: master

commit 26920b8712859ab3c44641ff33ca7f0ecfc45bc2
Author: YAMAMOTO Takashi <email address hidden>
Date: Mon May 8 13:58:48 2017 +0900

    test_dhcp: Use a safer host name

    We use "foo_host" as a hostname in a test.
    Usually "_" is not allowed in a hostname. (See RFC 952 etc)
    Oslo.config (correctly) complains on that.

    Closes-Bug: #1689019
    Change-Id: Ife817d4f9f904ab1cecb1d8501b94069d5468bdf

Changed in neutron:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 11.0.0.0b2

This issue was fixed in the openstack/neutron 11.0.0.0b2 development milestone.

tags: added: neutron-proactive-backport-potential
tags: added: neutron-easy-proactive-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/ocata)

Fix proposed to branch: stable/ocata
Review: https://review.openstack.org/474261

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/newton)

Fix proposed to branch: stable/newton
Review: https://review.openstack.org/474262

tags: added: neutron-
removed: neutron-easy-proactive-backport-potential neutron-proactive-backport-potential
tags: removed: neutron-
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/ocata)

Reviewed: https://review.openstack.org/474261
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=258dc0281bef87d14ab4976eaf99269c58939a64
Submitter: Jenkins
Branch: stable/ocata

commit 258dc0281bef87d14ab4976eaf99269c58939a64
Author: YAMAMOTO Takashi <email address hidden>
Date: Mon May 8 13:58:48 2017 +0900

    test_dhcp: Use a safer host name

    We use "foo_host" as a hostname in a test.
    Usually "_" is not allowed in a hostname. (See RFC 952 etc)
    Oslo.config (correctly) complains on that.

    Closes-Bug: #1689019
    Change-Id: Ife817d4f9f904ab1cecb1d8501b94069d5468bdf
    (cherry picked from commit 26920b8712859ab3c44641ff33ca7f0ecfc45bc2)

tags: added: in-stable-ocata
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (stable/newton)

Reviewed: https://review.openstack.org/474262
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=c5b6c12ec91f70366e4d39b46261bc7a20fc426f
Submitter: Jenkins
Branch: stable/newton

commit c5b6c12ec91f70366e4d39b46261bc7a20fc426f
Author: YAMAMOTO Takashi <email address hidden>
Date: Mon May 8 13:58:48 2017 +0900

    test_dhcp: Use a safer host name

    We use "foo_host" as a hostname in a test.
    Usually "_" is not allowed in a hostname. (See RFC 952 etc)
    Oslo.config (correctly) complains on that.

    Closes-Bug: #1689019
    Change-Id: Ife817d4f9f904ab1cecb1d8501b94069d5468bdf
    (cherry picked from commit 26920b8712859ab3c44641ff33ca7f0ecfc45bc2)

tags: added: in-stable-newton
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 9.4.1

This issue was fixed in the openstack/neutron 9.4.1 release.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron 10.0.3

This issue was fixed in the openstack/neutron 10.0.3 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.