[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-04-09 Thread Loïc Minier
(Not reopening as we have a workaround for Ubuntu (rm of the .pid file) and this is an upstream bug; please reopen if you want to track this in Ubuntu) -- error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists https://bugs.launchpad.net/bugs/510658 You

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-04-09 Thread Loïc Minier
(Not reopening as we have a workaround for Ubuntu (rm of the .pid file) and this is an upstream bug; please reopen if you want to track this in Ubuntu) -- error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists https://bugs.launchpad.net/bugs/510658 You

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-04-08 Thread Loïc Minier
On a): what I meant here is not that libvirt should catch all cases of itself disappearing, but rather that the other daemons don't have a rm on the .pid file; I didn't check what the other daemons to, I guess they are checking for a running process with that pid and whether it's the same program

Re: [Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-04-08 Thread Dustin Kirkland
Thanks for the research, Loic. The logic is perfectly sound, to me. I wholeheartedly agree that the upstream daemon (or whatever creates the bloody pid file) should clean up the damn thing. But as you said, for Lucid, we probably shouldn't go mucking about in the daemon's internals. What we

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-04-08 Thread Loïc Minier
For lucid, I'm happy enough with the rm before starting the process -- upstart should already track life and death, so we don't need to do the ps tricks IMO. -- error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists https://bugs.launchpad.net/bugs/510658

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-04-08 Thread Launchpad Bug Tracker
This bug was fixed in the package libvirt - 0.7.5-5ubuntu20 --- libvirt (0.7.5-5ubuntu20) lucid; urgency=low * debian/libvirt-bin.upstart: - remove unnecessary pid file existence test, LP: #510658 - revert virbr0 up/down hack added in 0.7.5-5ubuntu17, LP: #345485 -- Dustin

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-04-08 Thread Launchpad Bug Tracker
This bug was fixed in the package libvirt - 0.7.5-5ubuntu20 --- libvirt (0.7.5-5ubuntu20) lucid; urgency=low * debian/libvirt-bin.upstart: - remove unnecessary pid file existence test, LP: #510658 - revert virbr0 up/down hack added in 0.7.5-5ubuntu17, LP: #345485 -- Dustin

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-04-08 Thread Loïc Minier
On a): what I meant here is not that libvirt should catch all cases of itself disappearing, but rather that the other daemons don't have a rm on the .pid file; I didn't check what the other daemons to, I guess they are checking for a running process with that pid and whether it's the same program

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-04-08 Thread Loïc Minier
So I checked what two other popular daemons were doing. If started manually, bind9 just ignores the contents of the .pid file and starts again: if the .pid file is present and mentions a pid which was kill-9-ed, it starts and writes its pid in it instead; if the .pid file is present and mentions

Re: [Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-04-08 Thread Dustin Kirkland
Thanks for the research, Loic. The logic is perfectly sound, to me. I wholeheartedly agree that the upstream daemon (or whatever creates the bloody pid file) should clean up the damn thing. But as you said, for Lucid, we probably shouldn't go mucking about in the daemon's internals. What we

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-04-08 Thread Loïc Minier
For lucid, I'm happy enough with the rm before starting the process -- upstart should already track life and death, so we don't need to do the ps tricks IMO. -- error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists https://bugs.launchpad.net/bugs/510658

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-04-07 Thread Loïc Minier
a) shouldn't libvirtd handle this by itself as the other daemons do? I realize upstart is in the proper position to know that the service crashed, but upstart doesn't care about the pid file b) perhaps this: [ -f /var/run/libvirtd.pid ] rm -f /var/run/libvirtd.pid could simply be: rm -f

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-04-07 Thread Dustin Kirkland
Hi Loic- a) If it was kill -9'd, I don't think the daemon can trap and handle that. b) Agreed. I'll change this in the next upload. c) I'm up for other ideas, here, but I think pidof() is about the best we can do at this point. I don't think this is about working around upstart bugs as

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-04-07 Thread Jamie Strandboge
Dustin's right on 'a'. Can't catch -9 and if libvirtd dies for some reason, its pid file is left around. However, Loic is right about 'c' because of qemu:///session (I forgot about this when we discussed this initially). Since the upstart job is only for qemu:///system, and only the libvirtd for

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-04-07 Thread Dustin Kirkland
Cool, thanks, Jamie. I'm uploading that now ... ** Changed in: libvirt (Ubuntu Lucid) Status: In Progress = Fix Committed -- error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists https://bugs.launchpad.net/bugs/510658 You received this bug

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-04-07 Thread Dustin Kirkland
Uploaded libvirt_0.7.5-5ubuntu21_source.changes to the queue. -- error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists https://bugs.launchpad.net/bugs/510658 You received this bug notification because you are a member of Ubuntu Server Team, which is

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-04-07 Thread Loïc Minier
a) shouldn't libvirtd handle this by itself as the other daemons do? I realize upstart is in the proper position to know that the service crashed, but upstart doesn't care about the pid file b) perhaps this: [ -f /var/run/libvirtd.pid ] rm -f /var/run/libvirtd.pid could simply be: rm -f

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-04-07 Thread Dustin Kirkland
Hi Loic- a) If it was kill -9'd, I don't think the daemon can trap and handle that. b) Agreed. I'll change this in the next upload. c) I'm up for other ideas, here, but I think pidof() is about the best we can do at this point. I don't think this is about working around upstart bugs as

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-04-07 Thread Jamie Strandboge
Dustin's right on 'a'. Can't catch -9 and if libvirtd dies for some reason, its pid file is left around. However, Loic is right about 'c' because of qemu:///session (I forgot about this when we discussed this initially). Since the upstart job is only for qemu:///system, and only the libvirtd for

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-04-07 Thread Dustin Kirkland
Cool, thanks, Jamie. I'm uploading that now ... ** Changed in: libvirt (Ubuntu Lucid) Status: In Progress = Fix Committed -- error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists https://bugs.launchpad.net/bugs/510658 You received this bug

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-04-07 Thread Dustin Kirkland
Uploaded libvirt_0.7.5-5ubuntu21_source.changes to the queue. -- error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists https://bugs.launchpad.net/bugs/510658 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-04-02 Thread Launchpad Bug Tracker
This bug was fixed in the package libvirt - 0.7.5-5ubuntu16 --- libvirt (0.7.5-5ubuntu16) lucid; urgency=low * debian/libvirt-bin.upstart: libvirt has a nasty habit of leaving it's pidfile lying around when/if it crashes; add a pre-start check that removes the pidfile if it

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-04-02 Thread Launchpad Bug Tracker
This bug was fixed in the package libvirt - 0.7.5-5ubuntu16 --- libvirt (0.7.5-5ubuntu16) lucid; urgency=low * debian/libvirt-bin.upstart: libvirt has a nasty habit of leaving it's pidfile lying around when/if it crashes; add a pre-start check that removes the pidfile if it

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-04-01 Thread Dustin Kirkland
** Changed in: libvirt (Ubuntu) Assignee: (unassigned) = Dustin Kirkland (kirkland) ** Also affects: libvirt (Ubuntu Lucid) Importance: Medium Assignee: Dustin Kirkland (kirkland) Status: Triaged ** Changed in: libvirt (Ubuntu Lucid) Status: Triaged = In Progress **

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-04-01 Thread Dustin Kirkland
** Changed in: libvirt (Ubuntu) Assignee: (unassigned) = Dustin Kirkland (kirkland) ** Also affects: libvirt (Ubuntu Lucid) Importance: Medium Assignee: Dustin Kirkland (kirkland) Status: Triaged ** Changed in: libvirt (Ubuntu Lucid) Status: Triaged = In Progress **

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-02-27 Thread IAN DELANEY
Would like to add, realise I'm a regular user, not technical advocate like Arnd and Dustin Kirkland. On my system, ide...@karmic:~$ sudo /etc/init.d/libvirt-bin restart * Restarting libvirt management daemon /usr/sbin/libvirtd [fail] ide...@karmic:~$ sudo libvirtd

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-02-02 Thread Arnd
Just wanted to drop a line that the problem is still present in libvirt- bin 0.7.5-5ubuntu4. Howto reproduce: Simulate a crash of libvirtd: sudokillall -9 libvirtd Start libvirtd manually 10:08:04.344: error : qemudWritePidFile:494 : Failed to open pid file '/var/run/libvirtd.pid' : File

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-02-02 Thread Arnd
After thinking some time about this, I'm not convinced anymore that libvirtd itself should handle this. If libvirtd is started and finds the stale pid file there. It could check if the process with the pid contained in that file is running anymore. But even if libvirtd crashed, in the meantime

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-02-02 Thread Arnd
Just wanted to drop a line that the problem is still present in libvirt- bin 0.7.5-5ubuntu4. Howto reproduce: Simulate a crash of libvirtd: sudokillall -9 libvirtd Start libvirtd manually 10:08:04.344: error : qemudWritePidFile:494 : Failed to open pid file '/var/run/libvirtd.pid' : File

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-02-02 Thread Arnd
After thinking some time about this, I'm not convinced anymore that libvirtd itself should handle this. If libvirtd is started and finds the stale pid file there. It could check if the process with the pid contained in that file is running anymore. But even if libvirtd crashed, in the meantime

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-01-27 Thread Dustin Kirkland
This is likely a problem with Libvirt's new upstart script. -- error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists https://bugs.launchpad.net/bugs/510658 You received this bug notification because you are a member of Ubuntu Server Team, which is

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-01-27 Thread Jamie Strandboge
This can happen if libvirtd is stopped unexpectedly (crash, kill -9). I doubt it is the upstart job (though I haven't looked at it). -- error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists https://bugs.launchpad.net/bugs/510658 You received this bug

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-01-27 Thread Dustin Kirkland
** Changed in: libvirt (Ubuntu) Status: Confirmed = Triaged ** Changed in: libvirt (Ubuntu) Assignee: (unassigned) = Dustin Kirkland (kirkland) -- error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists https://bugs.launchpad.net/bugs/510658

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-01-27 Thread Dustin Kirkland
Ah, well, I'll unassign myself this bug, then. If it turns out to be a problem with the upstart script, let me know and I'll try to fix it there. ** Changed in: libvirt (Ubuntu) Assignee: Dustin Kirkland (kirkland) = (unassigned) -- error : qemudWritePidFile:498 : Failed to open pid file

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-01-27 Thread Dustin Kirkland
This is likely a problem with Libvirt's new upstart script. -- error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists https://bugs.launchpad.net/bugs/510658 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-01-27 Thread Jamie Strandboge
This can happen if libvirtd is stopped unexpectedly (crash, kill -9). I doubt it is the upstart job (though I haven't looked at it). -- error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists https://bugs.launchpad.net/bugs/510658 You received this bug

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-01-27 Thread Dustin Kirkland
** Changed in: libvirt (Ubuntu) Status: Confirmed = Triaged ** Changed in: libvirt (Ubuntu) Assignee: (unassigned) = Dustin Kirkland (kirkland) -- error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists https://bugs.launchpad.net/bugs/510658

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-01-27 Thread Dustin Kirkland
Ah, well, I'll unassign myself this bug, then. If it turns out to be a problem with the upstart script, let me know and I'll try to fix it there. ** Changed in: libvirt (Ubuntu) Assignee: Dustin Kirkland (kirkland) = (unassigned) -- error : qemudWritePidFile:498 : Failed to open pid file

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-01-25 Thread Chuck Short
Looks like pid file is not being removed after it crashes in the upstart script. Can you try remove the /var/run/libvirt.pid file? chuck ** Changed in: libvirt (Ubuntu) Importance: Undecided = Medium ** Changed in: libvirt (Ubuntu) Status: New = Confirmed -- error :

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-01-25 Thread Arnd
@chuck Well, that was obviously the point I tried to explain. libvirt should have removed the pid file, by itself. Off course it works if I remove the file manually. -- error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-01-25 Thread Chuck Short
Looks like pid file is not being removed after it crashes in the upstart script. Can you try remove the /var/run/libvirt.pid file? chuck ** Changed in: libvirt (Ubuntu) Importance: Undecided = Medium ** Changed in: libvirt (Ubuntu) Status: New = Confirmed -- error :

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-01-25 Thread Arnd
@chuck Well, that was obviously the point I tried to explain. libvirt should have removed the pid file, by itself. Off course it works if I remove the file manually. -- error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-01-21 Thread Arnd
** Attachment added: Dependencies.txt http://launchpadlibrarian.net/38187826/Dependencies.txt -- error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists https://bugs.launchpad.net/bugs/510658 You received this bug notification because you are a member

[Bug 510658] Re: error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists

2010-01-21 Thread Arnd
** Attachment added: Dependencies.txt http://launchpadlibrarian.net/38187826/Dependencies.txt -- error : qemudWritePidFile:498 : Failed to open pid file '/var/run/libvirtd.pid' : File exists https://bugs.launchpad.net/bugs/510658 You received this bug notification because you are a member