Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error logging InvalidNetworkType exception #1316

Open
jlongstaf opened this issue Jun 18, 2018 · 0 comments
Open

Error logging InvalidNetworkType exception #1316

jlongstaf opened this issue Jun 18, 2018 · 0 comments
Assignees
Labels

Comments

@jlongstaf
Copy link
Contributor

Agent Version

9.6.0

Operating System

RedHat

OpenStack Release

Neutron

Description

Error generated when agent attempts to log an InvalidNetworkType exception.

2018-06-08 08:39:00.266 8833 ERROR f5_openstack_agent.lbaasv2.drivers.bigip.agent_manager
Jun 8 08:39:00 cvs1lco02 f5-oslbaasv2-agent: 2018-06-08 08:39:00.266 8833 ERROR f5_openstack_agent.lbaasv2.drivers.bigip.agent_manager [-] Unable to sync state: 'InvalidNetworkType' object has no attribute 'msg'
Jun 8 08:39:00 cvs1lco02 f5-oslbaasv2-agent: 2018-06-08 08:39:00.266 8833 ERROR f5_openstack_agent.lbaasv2.drivers.bigip.agent_manager Traceback (most recent call last):
Jun 8 08:39:00 cvs1lco02 f5-oslbaasv2-agent: 2018-06-08 08:39:00.266 8833 ERROR f5_openstack_agent.lbaasv2.drivers.bigip.agent_manager File "/usr/lib/python2.7/site-packages/f5_openstack_agent/lbaasv2/drivers/bigip/agent_manager.py", line 599, in sync_state
Jun 8 08:39:00 cvs1lco02 f5-oslbaasv2-agent: 2018-06-08 08:39:00.266 8833 ERROR f5_openstack_agent.lbaasv2.drivers.bigip.agent_manager self._validate_services(all_loadbalancer_ids)
Jun 8 08:39:00 cvs1lco02 f5-oslbaasv2-agent: 2018-06-08 08:39:00.266 8833 ERROR f5_openstack_agent.lbaasv2.drivers.bigip.agent_manager File "/usr/lib/python2.7/site-packages/f5_openstack_agent/lbaasv2/drivers/bigip/agent_manager.py", line 670, in _validate_services
Jun 8 08:39:00 cvs1lco02 f5-oslbaasv2-agent: 2018-06-08 08:39:00.266 8833 ERROR f5_openstack_agent.lbaasv2.drivers.bigip.agent_manager self.validate_service(lb_id)
Jun 8 08:39:00 cvs1lco02 f5-oslbaasv2-agent: 2018-06-08 08:39:00.266 8833 ERROR f5_openstack_agent.lbaasv2.drivers.bigip.agent_manager File "/usr/lib/python2.7/site-packages/oslo_log/helpers.py", line 48, in wrapper
Jun 8 08:39:00 cvs1lco02 f5-oslbaasv2-agent: 2018-06-08 08:39:00.266 8833 ERROR f5_openstack_agent.lbaasv2.drivers.bigip.agent_manager return method(*args, **kwargs)
Jun 8 08:39:00 cvs1lco02 f5-oslbaasv2-agent: 2018-06-08 08:39:00.266 8833 ERROR f5_openstack_agent.lbaasv2.drivers.bigip.agent_manager File "/usr/lib/python2.7/site-packages/f5_openstack_agent/lbaasv2/drivers/bigip/agent_manager.py", line 689, in validate_service
Jun 8 08:39:00 cvs1lco02 f5-oslbaasv2-agent: 2018-06-08 08:39:00.266 8833 ERROR f5_openstack_agent.lbaasv2.drivers.bigip.agent_manager LOG.warning(exc.msg)
Jun 8 08:39:00 cvs1lco02 f5-oslbaasv2-agent: 2018-06-08 08:39:00.266 8833 ERROR f5_openstack_agent.lbaasv2.drivers.bigip.agent_manager AttributeError: 'InvalidNetworkType' object has no attribute 'msg'

@jlongstaf jlongstaf added the bug label Jun 18, 2018
@jlongstaf jlongstaf self-assigned this Jun 18, 2018
jlongstaf added a commit to jlongstaf/f5-openstack-agent that referenced this issue Jun 18, 2018
Issues:
Fixes F5Networks#1316

Problem: Agent logs exception that object has not attribute msg when logging InvalidNetworkType
exception.

Analysis: Code incorrectly passes .msg attribute. It should pass .message attribute instead.

Tests:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant