yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #89891
[Bug 1572548] Re: metering-agent failed to get traffic counters when no router-namespace where meter-label-rules were added
Bug closed due to lack of activity, please feel free to reopen if
needed.
** Changed in: neutron
Status: Incomplete => 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/1572548
Title:
metering-agent failed to get traffic counters when no router-namespace
where meter-label-rules were added
Status in neutron:
Won't Fix
Bug description:
Removing router from l3 agent cause errors from neutron-metering-
agent. The neutron-meter-agent continues try to get traffic counters
from iptables on router-namespace, which is not exist after removing
router from l3-agent.
Steps to reproduce:
1. Create internal net, subnet, router. Set external gateway for router, add interface to router for created net.
2. Create neutron-meter-label
3. Use 'neutron l3-agent-router-remove' command to remove a router from a L3 agent
Trace in neutron-metering-agent logs:
2016-04-20 12:28:26.699 ERROR neutron.agent.linux.utils [-] Exit code: 1; Stdin: ; Stdout: ; Stderr: Cannot open network namespace "qrouter-c8acd926-88e5-4292-883e-e928fb3f6d32": No such file or directory
2016-04-20 12:28:26.700 ERROR neutron.services.metering.drivers.iptables.iptables_driver [-] Failed to get traffic counters, router: {u'status': u'ACTIVE', u'name': u'router05', u'gw_port_id': u'f36b30d3-5290-4896-837c-108b8cd4f3dc', u'admin_state_up': True, u'tenant_id': u'1c0eb24bdbb1406bb7d1346f36064ebd', u'_metering_labels': [{u'rules': [{u'remote_ip_prefix': u'0.0.0.0/0', u'direction': u'egress', u'metering_label_id': u'67dae290-38cb-4962-80ab-d6d3404dc6df', u'id': u'799f3361-6f90-4e36-a338-311d6e7c9d5b', u'excluded': False}], u'id': u'67dae290-38cb-4962-80ab-d6d3404dc6df'}], u'id': u'c8acd926-88e5-4292-883e-e928fb3f6d32'}
2016-04-20 12:28:26.700 TRACE neutron.services.metering.drivers.iptables.iptables_driver Traceback (most recent call last):
2016-04-20 12:28:26.700 TRACE neutron.services.metering.drivers.iptables.iptables_driver File "/opt/stack/neutron/neutron/services/metering/drivers/iptables/iptables_driver.py", line 355, in get_traffic_counters
2016-04-20 12:28:26.700 TRACE neutron.services.metering.drivers.iptables.iptables_driver chain, wrap=False, zero=True)
2016-04-20 12:28:26.700 TRACE neutron.services.metering.drivers.iptables.iptables_driver File "/opt/stack/neutron/neutron/agent/linux/iptables_manager.py", line 712, in get_traffic_counters
2016-04-20 12:28:26.700 TRACE neutron.services.metering.drivers.iptables.iptables_driver current_table = self.execute(args, run_as_root=True)
2016-04-20 12:28:26.700 TRACE neutron.services.metering.drivers.iptables.iptables_driver File "/opt/stack/neutron/neutron/agent/linux/utils.py", line 137, in execute
2016-04-20 12:28:26.700 TRACE neutron.services.metering.drivers.iptables.iptables_driver raise RuntimeError(msg)
2016-04-20 12:28:26.700 TRACE neutron.services.metering.drivers.iptables.iptables_driver RuntimeError: Exit code: 1; Stdin: ; Stdout: ; Stderr: Cannot open network namespace "qrouter-c8acd926-88e5-4292-883e-e928fb3f6d32": No such file or directory
2016-04-20 12:28:26.700 TRACE neutron.services.metering.drivers.iptables.iptables_driver
2016-04-20 12:28:26.700 TRACE neutron.services.metering.drivers.iptables.iptables_driver
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1572548/+subscriptions
References