yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #17303
[Bug 1342142] [NEW] Netron metering agent don't work with more than one network node
Public bug reported:
Hi Guys,
With more than one L3 agent node neutron metering agent services returns this error:
2014-07-15 12:20:56.005 12584 ERROR neutron.services.metering.agents.metering_agent [req-121072ee-794b-4272-b8a9-b1a7ada7efe0 None] Driver neutron.services.metering.drivers.iptables.iptables_driver.IptablesMeteringDriver:get_traffic_counters runtime error
2014-07-15 12:20:56.005 12584 TRACE neutron.services.metering.agents.metering_agent Traceback (most recent call last):
2014-07-15 12:20:56.005 12584 TRACE neutron.services.metering.agents.metering_agent File "/usr/lib/python2.7/dist-packages/neutron/services/metering/agents/metering_agent.py", line 177, in _invoke_driver
2014-07-15 12:20:56.005 12584 TRACE neutron.services.metering.agents.metering_agent return getattr(self.metering_driver, func_name)(context, meterings)
2014-07-15 12:20:56.005 12584 TRACE neutron.services.metering.agents.metering_agent File "/usr/lib/python2.7/dist-packages/neutron/common/log.py", line 34, in wrapper
2014-07-15 12:20:56.005 12584 TRACE neutron.services.metering.agents.metering_agent return method(*args, **kwargs)
2014-07-15 12:20:56.005 12584 TRACE neutron.services.metering.agents.metering_agent File "/usr/lib/python2.7/dist-packages/neutron/services/metering/drivers/iptables/iptables_driver.py", line 272, in get_traffic_counters
2014-07-15 12:20:56.005 12584 TRACE neutron.services.metering.agents.metering_agent chain, wrap=False, zero=True)
2014-07-15 12:20:56.005 12584 TRACE neutron.services.metering.agents.metering_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/iptables_manager.py", line 627, in get_traffic_counters
2014-07-15 12:20:56.005 12584 TRACE neutron.services.metering.agents.metering_agent root_helper=self.root_helper))
2014-07-15 12:20:56.005 12584 TRACE neutron.services.metering.agents.metering_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/utils.py", line 76, in execute
2014-07-15 12:20:56.005 12584 TRACE neutron.services.metering.agents.metering_agent raise RuntimeError(m)
2014-07-15 12:20:56.005 12584 TRACE neutron.services.metering.agents.metering_agent RuntimeError:
2014-07-15 12:20:56.005 12584 TRACE neutron.services.metering.agents.metering_agent Command: ['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'netns', 'exec', 'qrouter-c1b46e53-08ac-458f-bc80-3d05ac3d97a3', 'iptables', '-t', 'filter', '-L', 'neutron-meter-l-9263ed54-f97', '-n', '-v', '-x', '-Z']
2014-07-15 12:20:56.005 12584 TRACE neutron.services.metering.agents.metering_agent Exit code: 1
2014-07-15 12:20:56.005 12584 TRACE neutron.services.metering.agents.metering_agent Stdout: ''
2014-07-15 12:20:56.005 12584 TRACE neutron.services.metering.agents.metering_agent Stderr: 'Cannot open network namespace: No such file or directory\n'
2014-07-15 12:20:56.005 12584 TRACE neutron.services.metering.agents.metering_agent
This happens because each network nodes expect to have all network namespace, but it isn't because the router namespaces are divided across multiple nodes.
Do you have any idea to fix this bug?
Daniel
** Affects: neutron
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1342142
Title:
Netron metering agent don't work with more than one network node
Status in OpenStack Neutron (virtual network service):
New
Bug description:
Hi Guys,
With more than one L3 agent node neutron metering agent services returns this error:
2014-07-15 12:20:56.005 12584 ERROR neutron.services.metering.agents.metering_agent [req-121072ee-794b-4272-b8a9-b1a7ada7efe0 None] Driver neutron.services.metering.drivers.iptables.iptables_driver.IptablesMeteringDriver:get_traffic_counters runtime error
2014-07-15 12:20:56.005 12584 TRACE neutron.services.metering.agents.metering_agent Traceback (most recent call last):
2014-07-15 12:20:56.005 12584 TRACE neutron.services.metering.agents.metering_agent File "/usr/lib/python2.7/dist-packages/neutron/services/metering/agents/metering_agent.py", line 177, in _invoke_driver
2014-07-15 12:20:56.005 12584 TRACE neutron.services.metering.agents.metering_agent return getattr(self.metering_driver, func_name)(context, meterings)
2014-07-15 12:20:56.005 12584 TRACE neutron.services.metering.agents.metering_agent File "/usr/lib/python2.7/dist-packages/neutron/common/log.py", line 34, in wrapper
2014-07-15 12:20:56.005 12584 TRACE neutron.services.metering.agents.metering_agent return method(*args, **kwargs)
2014-07-15 12:20:56.005 12584 TRACE neutron.services.metering.agents.metering_agent File "/usr/lib/python2.7/dist-packages/neutron/services/metering/drivers/iptables/iptables_driver.py", line 272, in get_traffic_counters
2014-07-15 12:20:56.005 12584 TRACE neutron.services.metering.agents.metering_agent chain, wrap=False, zero=True)
2014-07-15 12:20:56.005 12584 TRACE neutron.services.metering.agents.metering_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/iptables_manager.py", line 627, in get_traffic_counters
2014-07-15 12:20:56.005 12584 TRACE neutron.services.metering.agents.metering_agent root_helper=self.root_helper))
2014-07-15 12:20:56.005 12584 TRACE neutron.services.metering.agents.metering_agent File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/utils.py", line 76, in execute
2014-07-15 12:20:56.005 12584 TRACE neutron.services.metering.agents.metering_agent raise RuntimeError(m)
2014-07-15 12:20:56.005 12584 TRACE neutron.services.metering.agents.metering_agent RuntimeError:
2014-07-15 12:20:56.005 12584 TRACE neutron.services.metering.agents.metering_agent Command: ['sudo', '/usr/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'netns', 'exec', 'qrouter-c1b46e53-08ac-458f-bc80-3d05ac3d97a3', 'iptables', '-t', 'filter', '-L', 'neutron-meter-l-9263ed54-f97', '-n', '-v', '-x', '-Z']
2014-07-15 12:20:56.005 12584 TRACE neutron.services.metering.agents.metering_agent Exit code: 1
2014-07-15 12:20:56.005 12584 TRACE neutron.services.metering.agents.metering_agent Stdout: ''
2014-07-15 12:20:56.005 12584 TRACE neutron.services.metering.agents.metering_agent Stderr: 'Cannot open network namespace: No such file or directory\n'
2014-07-15 12:20:56.005 12584 TRACE neutron.services.metering.agents.metering_agent
This happens because each network nodes expect to have all network namespace, but it isn't because the router namespaces are divided across multiple nodes.
Do you have any idea to fix this bug?
Daniel
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1342142/+subscriptions
Follow ups
References