yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #40041
[Bug 1505715] [NEW] Functional tests falls, if global cfg.CONF tried to register the same option twice
Public bug reported:
There is an functional test, that register "metadata_proxy_socket" option in global cfg.CONF: https://github.com/openstack/neutron/blob/master/neutron/tests/functional/agent/l3/test_keepalived_state_change.py#L28
If we tried to run another functional test, that also should register "metadata_proxy_socket" option (for example new functional tests of dhcp-agent: https://review.openstack.org/#/c/136834/) and we will run all functional tests in the scope, one of them will be fall with error "oslo_config.cfg.DuplicateOptError: duplicate option: metadata_proxy_socket": http://paste.openstack.org/show/476026/
That because in test_keepalived_state_change test "metadata_proxy_socket" option register with 'Location of Metadata Proxy UNIX domain socket' help message, and functional test of dhcp tried to register "metadata_proxy_socket" option with "Location for Metadata Proxy UNIX domain socket." help message (yes, help messages are different), therefore second test falls with DuplicateOptError.
** Affects: neutron
Importance: Undecided
Assignee: Sergey Belous (sbelous)
Status: New
** Changed in: neutron
Assignee: (unassigned) => Sergey Belous (sbelous)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1505715
Title:
Functional tests falls, if global cfg.CONF tried to register the same
option twice
Status in neutron:
New
Bug description:
There is an functional test, that register "metadata_proxy_socket" option in global cfg.CONF: https://github.com/openstack/neutron/blob/master/neutron/tests/functional/agent/l3/test_keepalived_state_change.py#L28
If we tried to run another functional test, that also should register "metadata_proxy_socket" option (for example new functional tests of dhcp-agent: https://review.openstack.org/#/c/136834/) and we will run all functional tests in the scope, one of them will be fall with error "oslo_config.cfg.DuplicateOptError: duplicate option: metadata_proxy_socket": http://paste.openstack.org/show/476026/
That because in test_keepalived_state_change test "metadata_proxy_socket" option register with 'Location of Metadata Proxy UNIX domain socket' help message, and functional test of dhcp tried to register "metadata_proxy_socket" option with "Location for Metadata Proxy UNIX domain socket." help message (yes, help messages are different), therefore second test falls with DuplicateOptError.
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1505715/+subscriptions
Follow ups