Reviewed:  https://review.opendev.org/c/openstack/neutron/+/948180
Committed: 
https://opendev.org/openstack/neutron/commit/408800a46f2990441f4d3da148811ca21a6e373a
Submitter: "Zuul (22348)"
Branch:    master

commit 408800a46f2990441f4d3da148811ca21a6e373a
Author: yatinkarel <yka...@redhat.com>
Date:   Fri Apr 25 13:51:42 2025 +0530

    [UT] Keep metadata disabled in no_dhcp_release6 check test
    
    It's not needed in this test to keep metadata enabled
    and causing some random failures, so disabling it.
    
    Closes-Bug: #2109326
    Change-Id: I2f60913400ce2b0d840d67700e1ade438f3d1b27


** Changed in: neutron
       Status: In Progress => Fix Released

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

Title:
  test_release_for_ipv6_lease_no_dhcp_release6 unit tests fails randomly

Status in neutron:
  Fix Released

Bug description:
  Seen twice:-
  
https://storage.gra.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_3a2/openstack/3a26661945814d28a6ab71ccd3c75993/testr_results.html
  
https://67124bd1531d12ea1be9-8946da12cdfdb956046885a8164b96c6.ssl.cf2.rackcdn.com/openstack/818fc98e05db4e90b5a247313736fe3d/testr_results.html

  Fails as:-
  ft1.89: 
neutron.tests.unit.agent.linux.test_dhcp.TestDnsmasq.test_release_for_ipv6_lease_no_dhcp_release6testtools.testresult.real._StringException:
 pythonlogging:'': {{{
  ERROR [neutron.agent.linux.external_process] haproxy for MetadataPath with 
uuid host_metadata_proxy not found. The process should not have died
   WARNING [oslo.privsep.daemon] privsep log: sudo: a terminal is required to 
read the password; either use the -S option to read from standard input or 
configure an askpass helper
   WARNING [oslo.privsep.daemon] privsep log: sudo: a password is required
  CRITICAL [oslo.privsep.daemon] privsep helper command exited non-zero (1)
     ERROR [neutron.agent.linux.external_process] Could not delete file 
/tmp/tmplqbo1f3c/tmpj022lxy5/external/pids/host_metadata_proxy.pid.haproxy, 
haproxy could fail to start. Exception: privsep helper command exited non-zero 
(1)
  }}}

  Traceback (most recent call last):
    File "/home/zuul/src/opendev.org/openstack/neutron/neutron/tests/base.py", 
line 178, in func
      return f(self, *args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^
    File 
"/home/zuul/src/opendev.org/openstack/neutron/neutron/tests/unit/agent/linux/test_dhcp.py",
 line 2526, in test_release_for_ipv6_lease_no_dhcp_release6
      ipw.assert_not_called()
    File "/usr/lib/python3.12/unittest/mock.py", line 905, in assert_not_called
      raise AssertionError(msg)
  AssertionError: Expected 'execute' to not have been called. Called 1 times.
  Calls: [call(['haproxy', '-f', '/fake/host_metadata_proxy.haproxy.conf', 
'-p', 
'/tmp/tmplqbo1f3c/tmpj022lxy5/external/pids/host_metadata_proxy.pid.haproxy'], 
addl_env={'PROCESS_TAG': 'haproxy-host_metadata_proxy'}, run_as_root=True)].

  The test shouldn't need metadata to be enabled, so can be disabled
  with override config

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


-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to