KeyError: 'periodic_tasks' in taas_agent logs

Bug #1958373 reported by Lajos Katona
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tap-as-a-service
Fix Released
Undecided
Lajos Katona

Bug Description

In q-agt logs the following traceback appears:
Jan 18 17:40:12.329974 ubuntu-focal-iweb-mtl01-0028059695 neutron-openvswitch-agent[115386]: DEBUG neutron_taas.services.taas.agents.common.taas_agent [-] Invoking Driver for periodic_tasks from agent {{(pid=115386) _invoke_driver_for_plugin_api /opt/stack/tap-as-a-service/neutron_taas/services/taas/agents/common/taas_agent.py:132}}
Jan 18 17:40:12.331635 ubuntu-focal-iweb-mtl01-0028059695 neutron-openvswitch-agent[115386]: ERROR oslo.service.loopingcall [-] Fixed interval looping call 'neutron_taas.services.taas.agents.common.taas_agent.TaasAgentRpcCallback.periodic_tasks' failed: KeyError: 'periodic_tasks'
Jan 18 17:40:12.331635 ubuntu-focal-iweb-mtl01-0028059695 neutron-openvswitch-agent[115386]: ERROR oslo.service.loopingcall Traceback (most recent call last):
Jan 18 17:40:12.331635 ubuntu-focal-iweb-mtl01-0028059695 neutron-openvswitch-agent[115386]: ERROR oslo.service.loopingcall File "/usr/local/lib/python3.8/dist-packages/oslo_service/loopingcall.py", line 150, in _run_loop
Jan 18 17:40:12.331635 ubuntu-focal-iweb-mtl01-0028059695 neutron-openvswitch-agent[115386]: ERROR oslo.service.loopingcall result = func(*self.args, **self.kw)
Jan 18 17:40:12.331635 ubuntu-focal-iweb-mtl01-0028059695 neutron-openvswitch-agent[115386]: ERROR oslo.service.loopingcall File "/opt/stack/tap-as-a-service/neutron_taas/services/taas/agents/common/taas_agent.py", line 226, in periodic_tasks
Jan 18 17:40:12.331635 ubuntu-focal-iweb-mtl01-0028059695 neutron-openvswitch-agent[115386]: ERROR oslo.service.loopingcall return self._invoke_driver_for_plugin_api(
Jan 18 17:40:12.331635 ubuntu-focal-iweb-mtl01-0028059695 neutron-openvswitch-agent[115386]: ERROR oslo.service.loopingcall File "/opt/stack/tap-as-a-service/neutron_taas/services/taas/agents/common/taas_agent.py", line 135, in _invoke_driver_for_plugin_api
Jan 18 17:40:12.331635 ubuntu-focal-iweb-mtl01-0028059695 neutron-openvswitch-agent[115386]: ERROR oslo.service.loopingcall status_msg = {'id': args[self.func_dict[func_name]['msg_name']]['id']}
Jan 18 17:40:12.331635 ubuntu-focal-iweb-mtl01-0028059695 neutron-openvswitch-agent[115386]: ERROR oslo.service.loopingcall KeyError: 'periodic_tasks'
Jan 18 17:40:12.331635 ubuntu-focal-iweb-mtl01-0028059695 neutron-openvswitch-agent[115386]: ERROR oslo.service.loopingcall

Example: https://storage.gra.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_7e4/817449/6/check/tap-as-a-service-tempest-plugin/7e48876/controller/logs/screen-q-agt.txt

Changed in tap-as-a-service:
status: New → Confirmed
assignee: nobody → Lajos Katona (lajos-katona)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tap-as-a-service (master)
Changed in tap-as-a-service:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tap-as-a-service (master)

Reviewed: https://review.opendev.org/c/openstack/tap-as-a-service/+/825299
Committed: https://opendev.org/openstack/tap-as-a-service/commit/7c862f7d2cfdcd97a799b53268571447dbfbb3f4
Submitter: "Zuul (22348)"
Branch: master

commit 7c862f7d2cfdcd97a799b53268571447dbfbb3f4
Author: elajkat <email address hidden>
Date: Wed Jan 19 11:14:48 2022 +0100

    Do not try to call status setting methods in case of periodic task

    [0] enhanced the failure handling of taas agent, but the handling of
    periodic_task was left out, which resulted in exceptions:
    KeyError: 'periodic_tasks'.
    To avoid such exception TaasAgentRpcCallback's self.func_dict must be
    extended with periodic_task entry.

    [0]: https://review.opendev.org/c/openstack/tap-as-a-service/+/681946

    Change-Id: I623e373b391605f69e9f3ed8f50c6d99f15198bf
    Closes-Bug: #1958373

Changed in tap-as-a-service:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tap-as-a-service 10.0.0.0rc1

This issue was fixed in the openstack/tap-as-a-service 10.0.0.0rc1 release candidate.

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.