dhcpd.conf is not updated after package install

Bug #1055935 reported by Diogo Matsubara
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
Julian Edwards
maas (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Once you install the latest package 0.1+bzr1049+dfsg-0+1063+94~ppa0~quantal1 and set up MAAS to be the dhcp server for the network the /etc/dhcp/dhcpd.conf is not updated to pull in the information in /etc/maas/dhcpd.conf

Note also:
<bigjools> also dhcpd.conf written world readable and it has a shared secret in it

Related branches

description: updated
Changed in maas (Ubuntu):
status: New → Confirmed
Changed in maas (Ubuntu):
status: Confirmed → Invalid
Changed in maas:
status: New → Triaged
importance: Undecided → Critical
assignee: nobody → Jeroen T. Vermeulen (jtv)
Revision history for this message
Julian Edwards (julian-edwards) wrote :

This is caused because the interfaces file is not written out.

Changed in maas:
status: Triaged → Fix Released
Revision history for this message
Scott Moser (smoser) wrote :

Julian,
 Just a comment. If a bug affects upstream, you do not need to mark it as invalid against Ubuntu. The bug is valid against ubuntu, and normally we would hope that its fix would be tracked in ubuntu as well.

Revision history for this message
Diogo Matsubara (matsubara) wrote :

I tried this package 0.1+bzr1063+dfsg-0+1080+96~ppa0~quantal1 in the QA lab and still no maas dhcp server. If I try to start the service manually after install: sudo service maas-dhcp-server start, it doesn't start.

/var/lib/maas/ doesn't have a dhcp dir and no dhcp related config.

and I get the traceback in the celery.log:

2012-09-26 17:42:11,146: ERROR/MainProcess] Task provisioningserver.tasks.upload_dhcp_leases[2a966d3d-a686-4ab2-8271-89dd9c25efc4] raised exception: IOError(2, 'No such file or directory')
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/celery/execute/trace.py", line 181, in trace_task
    R = retval = fun(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/provisioningserver/tasks.py", line 261, in upload_dhcp_leases
    upload_leases()
  File "/usr/lib/python2.7/dist-packages/provisioningserver/dhcp/leases.py", line 153, in upload_leases
    timestamp, leases = parse_leases_file()
  File "/usr/lib/python2.7/dist-packages/provisioningserver/dhcp/leases.py", line 76, in parse_leases_file
    with open(DHCP_LEASES_FILE, 'rb') as leases_file:
IOError: [Errno 2] No such file or directory

Revision history for this message
Julian Edwards (julian-edwards) wrote :

Matsubara, that's odd because it worked for me. :/
Scott, ok, thanks.

Revision history for this message
Julian Edwards (julian-edwards) wrote : Re: [Bug 1055935] Re: dhcpd.conf is not updated after package install

Ok now I've re-created this on a new canonistack instance. Very odd, I am
investigating.

Revision history for this message
Julian Edwards (julian-edwards) wrote :

This is the queue name transition problem, I'm linking the branch that fixes it.

Changed in maas:
status: Fix Released → Triaged
Changed in maas:
status: Triaged → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
assignee: Jeroen T. Vermeulen (jtv) → Julian Edwards (julian-edwards)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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