cannot install packages using MCC in diskless chroot

Bug #214074 reported by laga
26
This bug affects 2 people
Affects Status Importance Assigned to Milestone
mythbuntu-control-centre (Ubuntu)
Won't Fix
Medium
laga

Bug Description

Binary package hint: mythbuntu-control-centre

Steps to reproduce:

* Create mythbuntu-diskless chroot

* Click the button that gives you a shell inside the chroot

* run mythbuntu-control-centre

* try to install a package inside the newly spawned MCC instance

* Observe breakage.

This also works if you manually chroot inside the chroot (set up the bind mount for /tmp/.X11-unix/ beforehand) and run mcc.

Mario, I'm assigning this to you because you're most familiar with MCC. I've tried to debug it some time ago but I couldn't find anything.

laga (laga)
Changed in mythbuntu-control-centre:
assignee: nobody → superm1
Revision history for this message
Mario Limonciello (superm1) wrote :

Fixed in latest bzr

Changed in mythbuntu-control-centre:
importance: Undecided → Medium
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mythbuntu-control-centre - 0.27-0ubuntu1

---------------
mythbuntu-control-centre (0.27-0ubuntu1) hardy; urgency=low

  * Correct error in checking diskless dictionaries for dhcp3
    server. (LP: #215174)
  * Bindmount dev, sys, and proc when in the chroot. This
    allows us to do more powerful things like control
    virtual ttys and check running processes. (LP: #214074)

 -- Mario Limonciello <email address hidden> Thu, 10 Apr 2008 23:01:44 -0500

Changed in mythbuntu-control-centre:
status: Fix Committed → Fix Released
Revision history for this message
Andrew Barbaccia (andrew-barbaccia) wrote :

Mario,

I think this might be back open for Jaunty.

The install hangs when going to configure packages (like when you enable automatic login) in the diskless chroot.

Let me know if you need anything to help debug / reproduce.

-andy

Revision history for this message
Mario Limonciello (superm1) wrote : Re: [Bug 214074] Re: cannot install packages using MCC in diskless chroot

Andy, automatic login is a special case (and might be a different bug). Can
you Please check for crashed runs of mcc when trying and open another bug?
Any bugs will have to be fixed by an SRU at this point.

On Fri, Apr 17, 2009 at 08:30, Andrew Barbaccia
<email address hidden>wrote:

> Mario,
>
> I think this might be back open for Jaunty.
>
> The install hangs when going to configure packages (like when you enable
> automatic login) in the diskless chroot.
>
> Let me know if you need anything to help debug / reproduce.
>
> -andy
>
> --
> cannot install packages using MCC in diskless chroot
> https://bugs.launchpad.net/bugs/214074
> You received this bug notification because you are a member of Mythbuntu
> Developers, which is subscribed to mythbuntu-control-centre in ubuntu.
>

--
Mario Limonciello
<email address hidden>
Sent from Austin, Texas, United States

Revision history for this message
Andrew Barbaccia (andrew-barbaccia) wrote :

I think it happened on other packages as well. I'll check when I'm home
tonight.
It's difficult to debug because it crashes in the chroot and I don't know
where the logs are (help here).

Also, hangs is a better word than crashes since it just sits there without
doing anything.

-a

Revision history for this message
ddempsey3 (ddempsey3) wrote :

Can this bug be reopened? I am currently having this install issue in Jaunty.

I am not able to install any packages using MCC, for example MPlayer. Whenever I select MPlayer and Apply the packages are downloaded but then the installation hangs. Python takes 100% of my CPU.

Revision history for this message
ddempsey3 (ddempsey3) wrote :

I am currently having this install issue in Jaunty.

I am not able to install any packages for the diskless client using MCC. The packages are downloaded but then the installation hangs. Python takes 100% of the CPU.

Changed in mythbuntu-control-centre (Ubuntu):
status: Fix Released → Incomplete
Revision history for this message
Portico (portico) wrote :

I am currently having this install issue in Jaunty.

I am not able to install any packages for the diskless client using MCC. The packages are downloaded but then the installation hangs. Python takes 100% of the CPU.

I can pull logs if I knew what was needed.

Revision history for this message
Martijn (bagger) wrote :

The problem with the packages is still there as far as I can tell.
The problem with automatic is something else. I found out that the script was trying to chown a the .dmrc file in the user's home directory while it was not there. I worked around that by creating this file by hand.

Revision history for this message
Jack Perveiler (perveilerj) wrote :

I think I have this solved, but since there are a couple of problems described in this thread I'll state the problem I was seeing:

1) Open mythbuntu-control-centre
2) Click diskless server -> open terminal
3) in terminal (that is now in the changeroot) run "mythbuntu-control-centre"
4) click applications and plugins
5) click something (eg mythcontrols)
6) click apply
7) in confirmation box, click apply

The progress box then appears and hangs, with cpu going to 100% on a python process

My example isn't the only way to cause the problem, but I wanted to give a specific reproducer.

The root cause of the problem was that the forkpty in InstallProgressAdapter::fork() was failing. Thus, no child process came along to update the progress box which was hanging in InstallProgressAdapter::waitChild() waiting for the nonexisting child to exit.

The forkpty failed because /dev/pts isn't mounted in the changeroot. My patch updates MythbuntuControlCentre's core.py to mount --bind and unmount /dev/pts in the approprate places in ControlCentre.

--Jack

Revision history for this message
ddempsey3 (ddempsey3) wrote :

Jack-
  Thanks for the patch and it fixed my install issues. I am now able to install any package that MCC allows and the CPU does not hit 100%.

Martijn-
  Thanks for the tip on .dmrc. Adding this to my users home directory allowed configuration of Automatic Login, for that user. If this file does not exist in the users home directory, it appears that MCC hangs when trying to enable automatic login. The progress bar just stops at "Configuring Automatic Login"

So it seems both updates are needed to get diskless clients working again.

I have not tried to boot from this image yet, but seems like it should work.

Changed in mythbuntu-control-centre (Ubuntu):
assignee: Mario Limonciello (superm1) → laga (laga)
status: Incomplete → New
Revision history for this message
Andrew Codrington (andrew-codrington) wrote :

Chipping in with thanks for the patch and for the tip about .dmrc file.
They got me a few steps further towards creating a working image with my Mythbuntu 9.04 system.
It's now stalling at 'Configuring VNC Service', but that's another story and maybe another bug.

Revision history for this message
ddempsey3 (ddempsey3) wrote :

When I enabled VNC service I had to add an xorg.conf file. It appears that enabling VNC service needs that file to be in /etc/X11/

Revision history for this message
Mario Limonciello (superm1) wrote :

As ddempsey3 is in the process of overhauling diskless, this bug is not valid for now. diskless will need to have a fresh check when all the new code is in place.

Changed in mythbuntu-control-centre (Ubuntu):
status: New → Won't Fix
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.