SRU: nbd-client is killed during diskless client shutdown

Bug #292319 reported by laga
30
This bug affects 4 people
Affects Status Importance Assigned to Milestone
mythbuntu-diskless (Ubuntu)
Expired
Undecided
Unassigned
Intrepid
Invalid
Undecided
Unassigned

Bug Description

This is a regression from Hardy.

In Hardy, /etc/init.d/sendsigs checked /var/run/sendsigs.omit.d/ for PIDs which shouldn't be killed. In Intrepid, this directory has become /lib/init/rw/sendsigs.omit.d/.

The following debdiff updates the init script to account for this change.

Revision history for this message
laga (laga) wrote :

Let me know if the version number is correct. Jaunty isn't open yet, so I'm not sure how to proceed. I appended 8.10 to the version string as described in https://wiki.ubuntu.com/SecurityUpdateProcedures#Preparing%20an%20update

Revision history for this message
laga (laga) wrote :

Impact: This bug breaks shutdown for mythbuntu-diskless clients.

TEST CASE: On intrepid, create a mythbuntu-diskless client. Boot it. Shut it down and watch it hang because nbd-client was killed (nbd-client basically provides the root file system for the client).

Revision history for this message
John Dong (jdong) wrote :

ACK from motu-sru for the meat of the patch but I advice using version 0ubuntu1.1 for consistency with how other SRUs are typically versioned.

Also, once you prep your final debdiff, whatever versioning scheme you choose, please assign the main bug to yourself to say that you will take care of uploading this fix into Jaunty.

Revision history for this message
map7 (map7777) wrote :

I'm running Mythbuntu 8.10 and I had the same problem with my diskless clients. I manually changed my mythbuntu-diskless-client as per the laga diff and it still didn't work. I also had to change:

mkdir -p /var/run/sendsigs.omit.d/
to
mkdir -p /lib/init/rw/sendsigs.omit.d/

Revision history for this message
laga (laga) wrote :

I've just pushed 0.10 of mythbuntu-diskless to lp:~mythbuntu/mythbuntu/mb-diskless/

This includes the changes needed to fix this bug in Jaunty. I'll attach an updated debdiff for the intrepid SRU in a few minutes. This will contain an additional change: the call to configure-x.sh is unnecessary as it's been removed by LTSP upstream - X is configless these days.

Revision history for this message
laga (laga) wrote :

Oh, I've also taken map7's comment into account. Thanks for that.

Revision history for this message
Barney Livingston (ubuntu-barnoid) wrote :

That patch does

mkdir -p /lib/init/rw/sendsigs.omit.d/nbd-client

so it creates the intended destination of the pid file as a directory causing the next line to fail.

Revision history for this message
jap1968 (jap1968) wrote :

I am also suffering the same problem.

It is not a mythubuntu install, but just a standard ubuntu installation into a diskless computer.

Version Karmic, with patches up to date (2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009 i686 GNU/Linux)

The file /lib/init/rw/sendsigs.omit.d/nbd-client is created properly and it contains the PID of nbd-client, but I obtain errors when trying to power off or reboot the diskless computer, just as described here.

The question is that I am using just one computer with RW access to the nbd area. I am afraid that my root filesystem can become corrupt.

Revision history for this message
Alex Valavanis (valavanisalex) wrote :

Intrepid Ibex reached end-of-life on 30 April 2010 so I am closing the
report. Can anyone confirm whether this issue still exists in later versions of Ubuntu?

Changed in mythbuntu-diskless (Ubuntu Intrepid):
status: New → Invalid
Changed in mythbuntu-diskless (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for mythbuntu-diskless (Ubuntu) because there has been no activity for 60 days.]

Changed in mythbuntu-diskless (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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