Public bug reported:

When masternodegroup.set_up_dhcp() is called, the script /usr/sbin/maas-
provision is used to write the DHCP configuration.  That script is run
using sudo in order to be able to write the config into
/etc/dhcp/dhcpd.conf.

The sudo rule to allow that sudo command to be run is missing from
debian/extras/99-maas-sudoers:  The complete command is: "sudo maas-
provision atomic-write --filename /etc/dhcp/dhcpd.conf --mode 744" so I
suggest adding something like: "maas ALL= NOPASSWD: /usr/sbin/maas-
provision" in debian/extras/99-maas-sudoers. (note that I've tested that
fix manually and it solves the problem)

** Affects: maas (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to maas in Ubuntu.
https://bugs.launchpad.net/bugs/1046397

Title:
  The DHCP config file does not get written.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/maas/+bug/1046397/+subscriptions

-- 
Ubuntu-server-bugs mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to