← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1528868] Re: Neutron-metering-agent failed to get traffic counters when xtables is locked

 

** Changed in: neutron
       Status: In Progress => Won't Fix

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

Title:
  Neutron-metering-agent failed to get traffic counters when xtables is
  locked

Status in neutron:
  Won't Fix

Bug description:
  In some cases, if we try to show iptables on router namespace manualy,
  where exist some rules created by meter-agent, we can see the
  following traces in meter-agent logs:

  2015-12-17 08:49:14.709 ERROR neutron.agent.linux.utils [-] Exit code:
  4; Stdin: ; Stdout: ; Stderr: Another app is currently holding the
  xtables lock. Perhaps you want to use the -w option?

  2015-12-17 08:49:14.710 ERROR neutron.services.metering.drivers.iptables.iptables_driver [-] Failed to get traffic counters, router: {u'status': u'ACTIVE', u'name': u'router1', u'gw_port_id': u'00e8ce89-0ebe-4e8a-b1ca-c2993210a8db', u'admin_state_up': True, u'tenant_id': u'f8267bb3db654ca2a26a07d9757ec280', u'_metering_labels': [{u'rules': [{u'remote_ip_prefix': u'0.0.0.0/0', u'direction': u'egress', u'metering_label_id': u'ef4f1dab-cafe-4058-aa6a-85a79a10c67e', u'id': u'986d6cfe-719b-43a7-96d1-79e97eb93567', u'excluded': False}], u'id': u'ef4f1dab-cafe-4058-aa6a-85a79a10c67e'}], u'id': u'8aef2cba-45b1-42f3-b7a4-8ea992d6cded'}
  2015-12-17 08:49:14.710 TRACE neutron.services.metering.drivers.iptables.iptables_driver Traceback (most recent call last):
  2015-12-17 08:49:14.710 TRACE neutron.services.metering.drivers.iptables.iptables_driver   File "/opt/stack/neutron/neutron/services/metering/drivers/iptables/iptables_driver.py", line 354, in get_traffic_counters
  2015-12-17 08:49:14.710 TRACE neutron.services.metering.drivers.iptables.iptables_driver     chain, wrap=False, zero=True)
  2015-12-17 08:49:14.710 TRACE neutron.services.metering.drivers.iptables.iptables_driver   File "/opt/stack/neutron/neutron/agent/linux/iptables_manager.py", line 661, in get_traffic_counters
  2015-12-17 08:49:14.710 TRACE neutron.services.metering.drivers.iptables.iptables_driver     current_table = self.execute(args, run_as_root=True)
  2015-12-17 08:49:14.710 TRACE neutron.services.metering.drivers.iptables.iptables_driver   File "/opt/stack/neutron/neutron/agent/linux/utils.py", line 140, in execute
  2015-12-17 08:49:14.710 TRACE neutron.services.metering.drivers.iptables.iptables_driver     raise RuntimeError(msg)
  2015-12-17 08:49:14.710 TRACE neutron.services.metering.drivers.iptables.iptables_driver RuntimeError: Exit code: 4; Stdin: ; Stdout: ; Stderr: Another app is currently holding the xtables lock. Perhaps you want to use the -w option?
  2015-12-17 08:49:14.710 TRACE neutron.services.metering.drivers.iptables.iptables_driver
  2015-12-17 08:49:14.710 TRACE neutron.services.metering.drivers.iptables.iptables_driver

  
  Steps to reproduce:
  1. Create neutron-meter-label
  2. Find router's namespace, where rules added by meter-agent
  3. run:
  sudo watch -n 1 ip net e %namespace-name% iptables -L -v -x -n
  4. See logs of meter-agent

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



References