yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #63747
[Bug 1617248] Re: Metering-agent fail to create iptables rule for add_metering_label_rule
Reviewed: https://review.openstack.org/449830
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=29652e0aff760bf445fd7ffef8eeede61a6710e3
Submitter: Jenkins
Branch: master
commit 29652e0aff760bf445fd7ffef8eeede61a6710e3
Author: Brian Haley <bhaley@xxxxxxxxxx>
Date: Fri Mar 24 17:41:17 2017 -0400
Verify metering label exists before applying rule
If the metering-agent receives a label rule before it
has added the label, it will fail to update the iptables
rules as there are no existing chains.
When the action is "create", check if there is an existing
label, and create one and the corresponding iptables chains,
before trying to add the rule.
Closes-Bug: #1617248
Change-Id: Ia0ec1361188cca53023667d249c2b1e10bc22089
** Changed in: neutron
Status: In Progress => 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/1617248
Title:
Metering-agent fail to create iptables rule for
add_metering_label_rule
Status in neutron:
Fix Released
Bug description:
When metering-agent process add_metering_label_rule from neutron-
server, it may fail to create iptables rule.
2016-08-24 18:59:52.393 50507 ERROR neutron.services.metering.agents.metering_agent -I neutron-meter-r-00599199-632 1 -i qg-f0732f6f-8e -d 192.168.10.0/24 -j neutron-meter-l-00599199-632
2016-08-24 18:59:52.393 50507 ERROR neutron.services.metering.agents.metering_agent COMMIT
2016-08-24 18:59:52.393 50507 ERROR neutron.services.metering.agents.metering_agent # Completed by iptables_manager
2016-08-24 18:59:52.393 50507 ERROR neutron.services.metering.agents.metering_agent # Generated by iptables_manager
2016-08-24 18:59:52.393 50507 ERROR neutron.services.metering.agents.metering_agent *raw
2016-08-24 18:59:52.393 50507 ERROR neutron.services.metering.agents.metering_agent -I OUTPUT 1 -j neutron-meter-OUTPUT
2016-08-24 18:59:52.393 50507 ERROR neutron.services.metering.agents.metering_agent -D OUTPUT 3
2016-08-24 18:59:52.393 50507 ERROR neutron.services.metering.agents.metering_agent -I PREROUTING 1 -j neutron-meter-PREROUTING
2016-08-24 18:59:52.393 50507 ERROR neutron.services.metering.agents.metering_agent -D PREROUTING 3
2016-08-24 18:59:52.393 50507 ERROR neutron.services.metering.agents.metering_agent COMMIT
2016-08-24 18:59:52.393 50507 ERROR neutron.services.metering.agents.metering_agent # Completed by iptables_manager
2016-08-24 18:59:52.393 50507 ERROR neutron.services.metering.agents.metering_agent ; Stdout: ; Stderr: iptables-restore v1.4.21: Couldn't load target `neutron-meter-l-00599199-632':No such file or directory
2016-08-24 18:59:52.393 50507 ERROR neutron.services.metering.agents.metering_agent
2016-08-24 18:59:52.393 50507 ERROR neutron.services.metering.agents.metering_agent Error occurred at line: 17
2016-08-24 18:59:52.393 50507 ERROR neutron.services.metering.agents.metering_agent Try `iptables-restore -h' or 'iptables-restore --help' for more information.
2016-08-24 18:59:52.393 50507 ERROR neutron.services.metering.agents.metering_agent
2016-08-24 18:59:52.393 50507 ERROR neutron.services.metering.agents.metering_agent
2016-08-24 18:59:52.395 50507 DEBUG oslo_concurrency.lockutils [req-60259460-b6d3-4c75-8ccf-a09ac4a6f3c8 5c7ad3780e3e4a8393cc0668d7ae594d cce3835f1f07431788f2df68c685a1b7 - - -] Lock "metering-agent" released by "neutron.services.metering.agents.metering_agent._invoke_driver" :: held 0.142s inner /usr/lib/python2.7/site-packages/oslo_concurrency/lockutils.py:282
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1617248/+subscriptions
References