q-dhcp agent fails to start on Ubuntu 12.04

Bug #1337698 reported by Hemanth Ravi
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Invalid
High
Hemanth Ravi

Bug Description

The fix for this bug https://bugs.launchpad.net/neutron/+bug/1212401 breaks q-dhcp agent on ubuntu 12.04 since dnsmasq --version can only be run as root and neutron/agent/linux/utils.py/create_process() is not invoked with root_helper. Bug fix for 1212401 addressed by https://review.openstack.org/#/c/96976/

This is breaking the 3rd party plugin CI

Tags: l3-ipam-dhcp
tags: added: l3-ipam-dhcp
Changed in neutron:
importance: Undecided → High
Revision history for this message
Carl Baldwin (carl-baldwin) wrote :

I can run dnsmasq --version as root on Ubuntu 12.04. I've never had trouble with this.

I can't imagine this is a High importance bug. Please provide more information about why you are unable to run dnsmasq --version as a non-root user and I am able to.

Changed in neutron:
status: New → Incomplete
Revision history for this message
Hemanth Ravi (hemanth-ravi) wrote :

dnsmasq --version does run as root.

However when stack.sh is invoked by a non root user (user does exist in sudoers list), dhcp-agent fails to start since neutron/agent/linux/utils.py/create_process() is invoked with root_helper set to NULL. This causes dnsmasq --version in that function to fail and the process to exit.

Revision history for this message
Hemanth Ravi (hemanth-ravi) wrote :

The issue appears to be due to /usr/sbin missing from the shell PATH. Importance can be lowered, should be able to resolve this on the CI setup.

Changed in neutron:
assignee: nobody → Hemanth Ravi (hemanth-ravi)
status: Incomplete → In Progress
Revision history for this message
Hemanth Ravi (hemanth-ravi) wrote :

User error: Issue was due to /usr/sbin missing in the PATH for the user running stack.sh.

Changed in neutron:
status: In Progress → Invalid
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.