neutronclient.tests.functional.core.test_readonly_neutron.SimpleReadOnlyNeutronClientTest.test_neutron_dhcp_agent_list_hosting_net repeatedly fails

Bug #1936965 reported by Takashi Kajinami
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-neutronclient
Fix Released
Undecided
Bernard Cafarelli

Bug Description

Currently the neutronclient-functional job always fails because of the following test case.

```
neutronclient.tests.functional.core.test_readonly_neutron.SimpleReadOnlyNeutronClientTest.test_neutron_dhcp_agent_list_hosting_net
----------------------------------------------------------------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):

      File "/home/zuul/src/opendev.org/openstack/python-neutronclient/neutronclient/tests/functional/core/test_readonly_neutron.py", line 55, in test_neutron_dhcp_agent_list_hosting_net
    self.neutron('dhcp-agent-list-hosting-net',

      File "/home/zuul/src/opendev.org/openstack/python-neutronclient/neutronclient/tests/functional/base.py", line 69, in neutron
    return self.clients.neutron(*args, **kwargs)

      File "/home/zuul/src/opendev.org/openstack/python-neutronclient/.tox/functional/lib/python3.8/site-packages/tempest/lib/cli/base.py", line 311, in neutron
    return self.cmd_with_auth(

      File "/home/zuul/src/opendev.org/openstack/python-neutronclient/.tox/functional/lib/python3.8/site-packages/tempest/lib/cli/base.py", line 394, in cmd_with_auth
    return execute(cmd, action, flags, params, fail_ok, merge_stderr,

      File "/home/zuul/src/opendev.org/openstack/python-neutronclient/.tox/functional/lib/python3.8/site-packages/tempest/lib/cli/base.py", line 63, in execute
    raise exceptions.CommandFailed(proc.returncode,

    tempest.lib.exceptions.CommandFailed: Command '['/home/zuul/src/opendev.org/openstack/python-neutronclient/.tox/functional/bin/neutron', '--os-username', 'admin', '--os-project-name', 'admin', '--os-password', 'secretadmin', '--os-auth-url', 'http://158.69.75.185/identity', '--os-user-domain-id', 'default', '--os-project-domain-id', 'default', '--endpoint-type', 'publicURL', 'dhcp-agent-list-hosting-net', 'private']' returned non-zero exit status 1.
stdout:
b''
stderr:
b"neutron CLI is deprecated and will be removed in the Z cycle. Use openstack CLI instead.\nThe resource could not be found.\nNeutron server returns request_ids: ['req-fb801512-842c-42ab-8292-936f76f1ee1d']\n"
```

An example can be found here:
https://zuul.opendev.org/t/openstack/build/c587b6812cc14c55b08c62d414752106

This is likely to be an failure caused by recent switch from ovs to ovn.

Tags: gate-failure
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-neutronclient (master)
Changed in python-neutronclient:
status: New → In Progress
Changed in python-neutronclient:
assignee: nobody → Bernard Cafarelli (bcafarel)
tags: added: gate-failure
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-neutronclient (master)

Reviewed: https://review.opendev.org/c/openstack/python-neutronclient/+/801997
Committed: https://opendev.org/openstack/python-neutronclient/commit/2f047b15957308e84dcb72baee3415b8bf5a470a
Submitter: "Zuul (22348)"
Branch: master

commit 2f047b15957308e84dcb72baee3415b8bf5a470a
Author: Bernard Cafarelli <email address hidden>
Date: Fri Jul 23 11:23:22 2021 +0200

    Set ML2/OVS backend explicitly for functional job

    After default backend change to OVN, some client tests related to DHCP
    or L3 agents are not working fine. Switch the job to ML2/OVS, as it was
    done in openstack-client in changeset
    Idf6466a59c6cf96be2f1d53e696f0564584fa233

    test_neutron_dhcp_agent_list_hosting_net was skipped temporarily
    to pass the gate in the parent commit. It is re-enabled now.

    Change-Id: I91d03d13adcd38d46ba1b042239a290ae2c99ea4
    Closes-Bug: #1936965

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

This issue was fixed in the openstack/python-neutronclient 7.6.0 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.