neutron-ovn-metadata-agent AttributeError: 'MetadataAgent' object has no attribute 'sb_idl'

Bug #1953295 reported by shanyunfan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Undecided
Unassigned

Bug Description

It is similar to bug [1]neutron-ovn-metadata-agent AttributeError: 'MetadataProxyHandler' object has no attribute 'sb_idl' but this failure is in MetadataAgent process.
When I start neutron-ovn-metadata-agent,it will reports mistakes by Sporadically

Stacktrace of Attribute error:

ERROR ovsdbapp.event [- req=None - - - - -] Unexpected exception in notify_loop: AttributeError: 'MetadadaAgent' object has no attribute 'sb_idl'
ERROR ovsdbapp.event Tracebask (most recent call last):
ERROR ovsdbapp.event File "/var/lib/kolla/venv/lib/python3.6/site-packages/ovsdbapp/event.py", line 159, in notify_loop
ERROR ovsdbapp.event match.run(event, row, updates)
ERROR ovsdbapp.event File "/var/lib/kolla/venv/lib/python3.6/site-packages/neutron/agent/ovn/metadata/agent.py", line 188, in run
ERROR ovsdbapp.event self.agent.sb_idl.db_set(
ERROR ovsdbapp.event AttributeError: 'MetadataAgent' object has no attribute 'sb_idl'
ERROR ovsdbapp.event

[1]https://bugs.launchpad.net/ubuntu/+source/neutron/+bug/1928031

Revision history for this message
shanyunfan (shanyunfan) wrote :

I wil submit a patch shortly for review.

Revision history for this message
Rodolfo Alonso (rodolfo-alonso-hernandez) wrote :

Hi shanyunfan:

What version are you using? If possible, the git hash will be perfect.

Regards.

Revision history for this message
shanyunfan33 (shanyunfan33) wrote :

Hi Rodolfo Alonso:
I changed my account, now I use shanyunfan33
my openstack version is rocky

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

Fix proposed to branch: master
Review: https://review.opendev.org/c/openstack/neutron/+/821927

Changed in neutron:
status: New → In Progress
Revision history for this message
shanyunfan33 (shanyunfan33) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.opendev.org/c/openstack/neutron/+/821927
Committed: https://opendev.org/openstack/neutron/commit/385b0ad203da40a2c0110948c0f46feb78ead2be
Submitter: "Zuul (22348)"
Branch: master

commit 385b0ad203da40a2c0110948c0f46feb78ead2be
Author: shanyunfan33 <email address hidden>
Date: Thu Dec 16 10:48:53 2021 +0800

    Add wait event for metadataagent sb_idl

    resolve bug:'MetadataAgent' object has no attribute 'sb_idl'

    Closes-Bug: #1953295
    Change-Id: Id83bee82e5c476395ff422dcaf89c0095e74a8ec

Changed in neutron:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (stable/xena)

Fix proposed to branch: stable/xena
Review: https://review.opendev.org/c/openstack/neutron/+/823828

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

Fix proposed to branch: stable/wallaby
Review: https://review.opendev.org/c/openstack/neutron/+/823829

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

Fix proposed to branch: stable/victoria
Review: https://review.opendev.org/c/openstack/neutron/+/823850

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

Fix proposed to branch: stable/ussuri
Review: https://review.opendev.org/c/openstack/neutron/+/823851

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

Reviewed: https://review.opendev.org/c/openstack/neutron/+/823828
Committed: https://opendev.org/openstack/neutron/commit/876e42eb782ad19530c26ea0d2ba1e5dc4a2ed69
Submitter: "Zuul (22348)"
Branch: stable/xena

commit 876e42eb782ad19530c26ea0d2ba1e5dc4a2ed69
Author: shanyunfan33 <email address hidden>
Date: Thu Dec 16 10:48:53 2021 +0800

    Add wait event for metadataagent sb_idl

    resolve bug:'MetadataAgent' object has no attribute 'sb_idl'

    Closes-Bug: #1953295
    Change-Id: Id83bee82e5c476395ff422dcaf89c0095e74a8ec
    (cherry picked from commit 385b0ad203da40a2c0110948c0f46feb78ead2be)

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

Reviewed: https://review.opendev.org/c/openstack/neutron/+/823829
Committed: https://opendev.org/openstack/neutron/commit/301deb87e761afb05082575e963ee8b6964e2ba8
Submitter: "Zuul (22348)"
Branch: stable/wallaby

commit 301deb87e761afb05082575e963ee8b6964e2ba8
Author: shanyunfan33 <email address hidden>
Date: Thu Dec 16 10:48:53 2021 +0800

    Add wait event for metadataagent sb_idl

    resolve bug:'MetadataAgent' object has no attribute 'sb_idl'

    Closes-Bug: #1953295
    Change-Id: Id83bee82e5c476395ff422dcaf89c0095e74a8ec
    (cherry picked from commit 385b0ad203da40a2c0110948c0f46feb78ead2be)

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

Reviewed: https://review.opendev.org/c/openstack/neutron/+/823851
Committed: https://opendev.org/openstack/neutron/commit/ea364deb01a2bc70945bc955d69205d75f9c8a0d
Submitter: "Zuul (22348)"
Branch: stable/ussuri

commit ea364deb01a2bc70945bc955d69205d75f9c8a0d
Author: shanyunfan33 <email address hidden>
Date: Thu Dec 16 10:48:53 2021 +0800

    Add wait event for metadataagent sb_idl

    resolve bug:'MetadataAgent' object has no attribute 'sb_idl'

    Closes-Bug: #1953295
    Change-Id: Id83bee82e5c476395ff422dcaf89c0095e74a8ec
    (cherry picked from commit 385b0ad203da40a2c0110948c0f46feb78ead2be)

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

Reviewed: https://review.opendev.org/c/openstack/neutron/+/823850
Committed: https://opendev.org/openstack/neutron/commit/97088a732ecb82800aa1404e862678544e6ffecb
Submitter: "Zuul (22348)"
Branch: stable/victoria

commit 97088a732ecb82800aa1404e862678544e6ffecb
Author: shanyunfan33 <email address hidden>
Date: Thu Dec 16 10:48:53 2021 +0800

    Add wait event for metadataagent sb_idl

    resolve bug:'MetadataAgent' object has no attribute 'sb_idl'

    Closes-Bug: #1953295
    Change-Id: Id83bee82e5c476395ff422dcaf89c0095e74a8ec
    (cherry picked from commit 385b0ad203da40a2c0110948c0f46feb78ead2be)

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

This issue was fixed in the openstack/neutron 20.0.0.0rc1 release candidate.

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

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

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

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

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

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/networking-ovn train-eol

This issue was fixed in the openstack/networking-ovn train-eol release.

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

This issue was fixed in the openstack/neutron ussuri-eol 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.