Unauthorized command: kill -9

Bug #1233368 reported by Joe Gordon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Sam Betts

Bug Description

 Stderr: '/usr/local/bin/neutron-rootwrap: Unauthorized command: kill -9 30601 (no filter matched)\n'

2013-09-30 17:56:22.682 2684 ERROR neutron.agent.dhcp_agent [-] Unable to disable dhcp.
2013-09-30 17:56:22.682 2684 TRACE neutron.agent.dhcp_agent Traceback (most recent call last):
2013-09-30 17:56:22.682 2684 TRACE neutron.agent.dhcp_agent File "/opt/stack/new/neutron/neutron/agent/dhcp_agent.py", line 126, in call_driver
2013-09-30 17:56:22.682 2684 TRACE neutron.agent.dhcp_agent getattr(driver, action)(**action_kwargs)
2013-09-30 17:56:22.682 2684 TRACE neutron.agent.dhcp_agent File "/opt/stack/new/neutron/neutron/agent/linux/dhcp.py", line 180, in disable
2013-09-30 17:56:22.682 2684 TRACE neutron.agent.dhcp_agent utils.execute(cmd, self.root_helper)
2013-09-30 17:56:22.682 2684 TRACE neutron.agent.dhcp_agent File "/opt/stack/new/neutron/neutron/agent/linux/utils.py", line 61, in execute
2013-09-30 17:56:22.682 2684 TRACE neutron.agent.dhcp_agent raise RuntimeError(m)
2013-09-30 17:56:22.682 2684 TRACE neutron.agent.dhcp_agent RuntimeError:
2013-09-30 17:56:22.682 2684 TRACE neutron.agent.dhcp_agent Command: ['sudo', '/usr/local/bin/neutron-rootwrap', '/etc/neutron/rootwrap.conf', 'kill', '-9', '30601']
2013-09-30 17:56:22.682 2684 TRACE neutron.agent.dhcp_agent Exit code: 99
2013-09-30 17:56:22.682 2684 TRACE neutron.agent.dhcp_agent Stdout: ''
2013-09-30 17:56:22.682 2684 TRACE neutron.agent.dhcp_agent Stderr: '/usr/local/bin/neutron-rootwrap: Unauthorized command: kill -9 30601 (no filter matched)\n'
2013-09-30 17:56:22.682 2684 TRACE neutron.agent.dhcp_agent

http://logs.openstack.org/03/47503/16/check/check-tempest-devstack-vm-neutron/0b35b85/logs/screen-q-dhcp.txt.gz?level=TRACE

logstash query: "Unauthorized command: kill -9" shows this has happened about 100 times in past 24 hours and sometimes happens on 'successful' tempest runs.

Revision history for this message
Akihiro Motoki (amotoki) wrote :

http://logs.openstack.org/03/47503/16/check/check-tempest-devstack-vm-neutron/0b35b85/logs/screen-q-dhcp.txt.gz?#_2013-09-30_17_56_22_169

"kill -9 30601" is called twice. KillFilter checks a specified PID exists and the process PID 30601 no longer exists when the second call exists. This causes Unauthorized command error.

This seems to be caused by race condition in network delete (RPC call error for the network and network_delete notification).

Anyway dnsmasq process is removed as expected, so it is not critical.

Changed in neutron:
status: New → Confirmed
importance: Undecided → Medium
tags: added: havana-rc-potential
Revision history for this message
Akihiro Motoki (amotoki) wrote :

both bug 1234026 and this come from the race condition in disable_dhcp_helper.

The difference is this error is caused from the race condition of refresh_dhcp_helper (from subnet_delete_end)
and disable_delete_helper (from network_delete_end).
Before this error, three notification: port_delete, subnet_delete, and network_delete are received almost at the same time (looks consecutive events).

http://logs.openstack.org/03/47503/16/check/check-tempest-devstack-vm-neutron/0b35b85/logs/screen-q-dhcp.txt.gz?#_2013-09-30_17_56_21_785

Akihiro Motoki (amotoki)
tags: added: l3-ipam-dhcp
ZhiQiang Fan (aji-zqfan)
Changed in neutron:
assignee: nobody → ZhiQiang Fan (aji-zqfan)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.openstack.org/49472

Changed in neutron:
status: Confirmed → In Progress
Thierry Carrez (ttx)
tags: added: havana-backport-potential
removed: havana-rc-potential
ZhiQiang Fan (aji-zqfan)
Changed in neutron:
assignee: ZhiQiang Fan (aji-zqfan) → nobody
Sam Betts (sambetts)
Changed in neutron:
assignee: nobody → Sam Betts (sambetts)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/113617

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron (master)

Change abandoned by Sam Betts (<email address hidden>) on branch: master
Review: https://review.openstack.org/113617
Reason: Bugs already fixed by https://review.openstack.org/56785.

Revision history for this message
Sam Betts (sambetts) wrote :
Changed in neutron:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.