upstart job state switched to running before the sock file created
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | libvirt (Ubuntu) |
High
|
Edward Hope-Morley | ||
| | Trusty |
High
|
Edward Hope-Morley | ||
| | Utopic |
High
|
Edward Hope-Morley | ||
| | Vivid |
High
|
Edward Hope-Morley | ||
| | Wily |
High
|
Edward Hope-Morley | ||
Bug Description
[Impact]
* Dependent upstart services fail to start because they cannot connect to libvirt through the sock file
[Test Case]
* This is a race, and can sometimes be hit by stopping libvirt-bin and the dependent upstart services, and restarting them again.
[Regression Potential]
* None
Dependent services get kicked off before libvirtd is really ready for serving incoming requests - the libvirt-sock sock file hasn't been created.
| Changed in libvirt (Ubuntu): | |
| assignee: | nobody → Liang Chen (cbjchen) |
| status: | New → In Progress |
| description: | updated |
| tags: | added: patch |
| tags: | added: cpec |
| Changed in libvirt (Ubuntu): | |
| importance: | Undecided → High |
| Changed in libvirt (Ubuntu Wily): | |
| assignee: | Liang Chen (cbjchen) → Edward Hope-Morley (hopem) |
| Changed in libvirt (Ubuntu Vivid): | |
| assignee: | nobody → Edward Hope-Morley (hopem) |
| Changed in libvirt (Ubuntu Utopic): | |
| assignee: | nobody → Edward Hope-Morley (hopem) |
| Changed in libvirt (Ubuntu Trusty): | |
| assignee: | nobody → Edward Hope-Morley (hopem) |
| Changed in libvirt (Ubuntu Vivid): | |
| status: | New → In Progress |
| Changed in libvirt (Ubuntu Utopic): | |
| status: | New → In Progress |
| Changed in libvirt (Ubuntu Trusty): | |
| status: | New → In Progress |
| Changed in libvirt (Ubuntu Vivid): | |
| importance: | Undecided → High |
| Changed in libvirt (Ubuntu Utopic): | |
| importance: | Undecided → High |
| Changed in libvirt (Ubuntu Trusty): | |
| importance: | Undecided → High |
| Martin Pitt (pitti) wrote : | #7 |
This would certainly affect the Debian package as well, no? Can you please submit this to Debian?
| Martin Pitt (pitti) wrote : | #8 |
Is there an upstream bug for this? I guess the proper way forward is to add a systemd unit and a .socket unit for it to avoid that race, and having to poll for the socket. But this should be tracked somewhere, instead of carrying that delta in Ubuntu forever. Thanks!
| Edward Hope-Morley (hopem) wrote : | #12 |
| Launchpad Janitor (janitor) wrote : | #13 |
This bug was fixed in the package libvirt - 1.2.15-0ubuntu4
---------------
libvirt (1.2.15-0ubuntu4) wily; urgency=medium
* Add post-start to upstart (/etc/init/
sysv (/etc/init.
created before up (LP: #1455608)
-- Edward Hope-Morley <email address hidden> Thu, 28 May 2015 16:06:44 +0100
| Changed in libvirt (Ubuntu Wily): | |
| status: | In Progress → Fix Released |
| Stefan Bader (smb) wrote : | #14 |
Guess any feedback for wily is slightly too late. But I throw in my few cents anyway. :-P Having a retry limit I like better. Not sure one needs a message while waiting every 2s (even though its only 5 times). I would agree that not having the socket should be considered a failure of the daemon start. In that case, should not the upstart variant also "exit 1"?
| Edward Hope-Morley (hopem) wrote : | #15 |
@smb i'm happy to remove the "waiting on..." as it is just debug fluff on top of the other two messages that provide enough info on their own. As for the upstart exit code, i agree it should be 1 not 0, as in the sysv. I'll get that fixed. Thanks for the review!
| Edward Hope-Morley (hopem) wrote : | #16 |
| Edward Hope-Morley (hopem) wrote : | #17 |
| Edward Hope-Morley (hopem) wrote : | #18 |
| Serge Hallyn (serge-hallyn) wrote : | #19 |
Should we do this for precise as well?
| Edward Hope-Morley (hopem) wrote : | #20 |
@serge-hallyn I suppose we would need to backport to the Precise Icehouse UCA. Afaik that should be a straight copy although I see that P+I has 1.2.2-0ubuntu13
Hello Liang, or anyone else affected,
Accepted libvirt into trusty-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-
Further information regarding the verification process can be found at https:/
| Changed in libvirt (Ubuntu Trusty): | |
| status: | In Progress → Fix Committed |
| tags: | added: verification-needed |
| Chris J Arges (arges) wrote : | #22 |
Hello Liang, or anyone else affected,
Accepted libvirt into utopic-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-
Further information regarding the verification process can be found at https:/
| Changed in libvirt (Ubuntu Utopic): | |
| status: | In Progress → Fix Committed |
| Changed in libvirt (Ubuntu Vivid): | |
| status: | In Progress → Fix Committed |
| Chris J Arges (arges) wrote : | #23 |
Hello Liang, or anyone else affected,
Accepted libvirt into vivid-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-
Further information regarding the verification process can be found at https:/
| Edward Hope-Morley (hopem) wrote : | #24 |
@arges I have tested these trusty-proposed packages on T/U/V and all seems good.
| tags: |
added: verification-done removed: verification-needed |
| Launchpad Janitor (janitor) wrote : | #25 |
This bug was fixed in the package libvirt - 1.2.2-0ubuntu13
---------------
libvirt (1.2.2-
[ Seyeong Kim ]
* d/p/fix_
(LP: #1464175)
-- Chris J Arges <email address hidden> Wed, 08 Jul 2015 10:52:41 -0500
| Changed in libvirt (Ubuntu Trusty): | |
| status: | Fix Committed → Fix Released |
| Launchpad Janitor (janitor) wrote : | #26 |
This bug was fixed in the package libvirt - 1.2.8-0ubuntu11.8
---------------
libvirt (1.2.8-0ubuntu11.8) utopic; urgency=medium
[ Seyeong Kim ]
* d/p/fix_
(LP: #1464175)
[ Edward Hope-Morley ]
* Add post-start to upstart (/etc/init/
sysv (/etc/init.
created before up (LP: #1455608)
-- Chris J Arges <email address hidden> Wed, 08 Jul 2015 11:55:28 -0500
| Changed in libvirt (Ubuntu Utopic): | |
| status: | Fix Committed → Fix Released |
| Chris J Arges (arges) wrote : Update Released | #27 |
The verification of the Stable Release Update for libvirt has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.
| Launchpad Janitor (janitor) wrote : | #28 |
This bug was fixed in the package libvirt - 1.2.12-0ubuntu14.1
---------------
libvirt (1.2.12-
[ Seyeong Kim ]
* d/p/fix_
(LP: #1464175)
[ Edward Hope-Morley ]
* Add post-start to upstart (/etc/init/
sysv (/etc/init.
created before up (LP: #1455608)
[ Chris J Arges ]
* Add d/p/PowerPC-
d/p/
d/p/
To fix issues with libvirt on ppc64el.(LP: #1468247)
-- Chris J Arges <email address hidden> Wed, 08 Jul 2015 12:51:16 -0500
| Changed in libvirt (Ubuntu Vivid): | |
| status: | Fix Committed → Fix Released |


The attachment "libvirt_ 1.2.2-0ubuntu13 .1.11-lp1455608 .patch" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]