← Back to team overview

maas-devel team mailing list archive

Re: Testing SRU/trunk packages in the QA Lab

 

On 19/11/12 18:40, Jeroen Vermeulen wrote:
> On 2012-11-19 09:32, Raphaël Badin wrote:
> 
>>> 2. /var/lib/maas/dhcp/ is set to be root-owned by the upstart script,
>>> which means the dhcpd cannot re-write the leases file when it starts up.
>>
>> Weird, as soon as I fix the apparmor stuff, the dhcplease gets written
>> ok (upgrade issue again?):

I have apparmor fixed and running and I still see the problem.

>> ls -lart /var/lib/maas/dhcp/
>> total 12
>> drwxr-xr-x 6 maas  maas  4096 Nov 19 08:24 ..
>> drwxr-xr-x 2 root  root  4096 Nov 19 08:24 .
>> -rw-r--r-- 1 dhcpd dhcpd 1517 Nov 19 08:27 dhcpd.leases 

I don't see how it can write a file in a root-owned r/o dir when running
as dhcpd!

> Everyone's probably aware of this but it can't hurt to mention it: in
> Precise, dhcpd owned this file and we assumed that it needed to.  In
> Quantal, it insists that the file be root-owned.
> 
> So what the upstart script does here is appropriate for Quantal, but may
> or may not break Precise.
> 
> 
> Jeroen

I previously fixed the upstart script for the most part, but I will have
to fix this one as well.


References