← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1464565] Re: LBaaS: neutron user is not permitted to kill nobody's process

 

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

** Changed in: neutron
    Milestone: None => liberty-2

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

Title:
  LBaaS: neutron user is not permitted to kill nobody's process

Status in neutron:
  Fix Released

Bug description:
  User of a neutron-lbaasv2-agent daemon is neutron.
  User of a haproxy daemon is nobody.

  Neutron is not permitted to kill nobody's process.
  Should add run_as_root to  linux_utils.execute.

  
  Traceback:
  2015-06-12 15:41:33.016 20728 ERROR neutron_lbaas.drivers.haproxy.namespace_driver [req-9ba75529-0f96-4303-8286-7729cce336bf ] Unable to kill haproxy process: 30506
  2015-06-12 15:41:33.016 20728 TRACE neutron_lbaas.drivers.haproxy.namespace_driver Traceback (most recent call last):
  2015-06-12 15:41:33.016 20728 TRACE neutron_lbaas.drivers.haproxy.namespace_driver   File "/opt/rh/python27/root/usr/lib/python2.7/site-packages/neutron_lbaas/drivers/haproxy/namespace_driver.py", line 611, in kill_pids_in_file
  2015-06-12 15:41:33.016 20728 TRACE neutron_lbaas.drivers.haproxy.namespace_driver     linux_utils.execute(['kill', '-9', pid])
  2015-06-12 15:41:33.016 20728 TRACE neutron_lbaas.drivers.haproxy.namespace_driver   File "/opt/rh/python27/root/usr/lib/python2.7/site-packages/neutron/agent/linux/utils.py", line 137, in execute
  2015-06-12 15:41:33.016 20728 TRACE neutron_lbaas.drivers.haproxy.namespace_driver     raise RuntimeError(m)
  2015-06-12 15:41:33.016 20728 TRACE neutron_lbaas.drivers.haproxy.namespace_driver RuntimeError: 
  2015-06-12 15:41:33.016 20728 TRACE neutron_lbaas.drivers.haproxy.namespace_driver Command: ['kill', '-9', '30506']
  2015-06-12 15:41:33.016 20728 TRACE neutron_lbaas.drivers.haproxy.namespace_driver Exit code: 1
  2015-06-12 15:41:33.016 20728 TRACE neutron_lbaas.drivers.haproxy.namespace_driver Stdin: 
  2015-06-12 15:41:33.016 20728 TRACE neutron_lbaas.drivers.haproxy.namespace_driver Stdout: 
  2015-06-12 15:41:33.016 20728 TRACE neutron_lbaas.drivers.haproxy.namespace_driver Stderr: kill 30506: Operation not permitted
  2015-06-12 15:41:33.016 20728 TRACE neutron_lbaas.drivers.haproxy.namespace_driver 
  2015-06-12 15:41:33.016 20728 TRACE neutron_lbaas.drivers.haproxy.namespace_driver

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


References