← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1421037] Re: [metering agent] Failed to get any traffic data if the first chain is missing

 

** Changed in: neutron
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1421037

Title:
  [metering agent] Failed to get any traffic data if the first chain is
  missing

Status in OpenStack Neutron (virtual network service):
  Fix Released

Bug description:
  Based on current implement, if there is any reason caused the chain of
  metering label is missing, the whole function of
  iptables_driver.get_traffic_counters() will be broken, see
  https://github.com/openstack/neutron/blob/master/neutron/services/metering/drivers/iptables/iptables_driver.py#L275

  
  2015-02-03 22:47:25.486 6384 ERROR neutron.services.metering.agents.metering_agent [req-47dbfc00-1812-423a-9f68-ce26dc54243a None] Driver neutron.services.metering.drivers.iptables.iptables_driver.IptablesMeteringDriver:get_traffic_counters runtime error
  2015-02-03 22:47:25.486 6384 TRACE neutron.services.metering.agents.metering_agent Traceback (most recent call last):
  2015-02-03 22:47:25.486 6384 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
  2015-02-03 22:47:25.486 6384 TRACE neutron.services.metering.agents.metering_agent     return getattr(self.metering_driver, func_name)(context, meterings)
  2015-02-03 22:47:25.486 6384 TRACE neutron.services.metering.agents.metering_agent   File "/usr/lib/python2.7/dist-packages/neutron/common/log.py", line 34, in wrapper
  2015-02-03 22:47:25.486 6384 TRACE neutron.services.metering.agents.metering_agent     return method(*args, **kwargs)
  2015-02-03 22:47:25.486 6384 TRACE neutron.services.metering.agents.metering_agent   File "/usr/lib/python2.7/dist-packages/neutron/services/metering/drivers/iptables/iptables_driver.py", line 275, in get_traffic_counters
  2015-02-03 22:47:25.486 6384 TRACE neutron.services.metering.agents.metering_agent     chain, wrap=False, zero=True)
  2015-02-03 22:47:25.486 6384 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
  2015-02-03 22:47:25.486 6384 TRACE neutron.services.metering.agents.metering_agent     root_helper=self.root_helper))
  2015-02-03 22:47:25.486 6384 TRACE neutron.services.metering.agents.metering_agent   File "/usr/lib/python2.7/dist-packages/neutron/agent/linux/utils.py", line 82, in execute
  2015-02-03 22:47:25.486 6384 TRACE neutron.services.metering.agents.metering_agent     raise RuntimeError(m)
  2015-02-03 22:47:25.486 6384 TRACE neutron.services.metering.agents.metering_agent RuntimeError:
  2015-02-03 22:47:25.486 6384 TRACE neutron.services.metering.agents.metering_agent Command: ['sudo', 'neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'ip', 'netns', 'exec', 'qrouter-a9123cfe-9277-49ea-a2c5-1c9581e277d2', 'iptables', '-t', 'filter', '-L', 'neutron-meter-l-c760740b-33a', '-n', '-v', '-x', '-Z']
  2015-02-03 22:47:25.486 6384 TRACE neutron.services.metering.agents.metering_agent Exit code: 1
  2015-02-03 22:47:25.486 6384 TRACE neutron.services.metering.agents.metering_agent Stdout: ''
  2015-02-03 22:47:25.486 6384 TRACE neutron.services.metering.agents.metering_agent Stderr: 'iptables: No chain/target/match by that name.\n'
  2015-02-03 22:47:25.486 6384 TRACE neutron.services.metering.agents.metering_agent

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1421037/+subscriptions


References