juju ssh fails on local provider: pty-allocation-request-failed-on-channel-0

Bug #903318 reported by Mark Mims
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
pyjuju
Fix Released
High
Unassigned
lxc (Ubuntu)
Fix Released
High
Unassigned

Bug Description

juju ssh fails using a local provider.

Using juju with a local provider,

    hawk:~ $ cat .juju/environments.yaml
    default: gmail
    environments:
      gmail:
        <cut out>
      demo:
        <cut out>
      local:
        type: local
        data-dir: /home/mmm/.juju/local-dev
        admin-secret: b3a5dee4fb8c4fc9a4db04751e5936f4
        default-series: oneiric

    hawk:~ $ juju bootstrap -elocal
    hawk:~ $ juju deploy -elocal --repository . local:mysql

but when the service is "up", I can not ssh to the machine

    hawk:~ $ juju ssh -elocal mysql/0

fails with pty-allocation-request-failed-on-channel-0.

Tags: local lxc
Revision history for this message
Mark Mims (mark-mims) wrote :

Workaround: clear the lxc cache

First, destroy any local juju environment you might have running, then 'rm -Rf /var/cache/lxc/'
I additionally purged packages but suspect the cache clear is all that's necessary. I'll test this out next time around.

Remember that the first lxc deploy after a cache wipe will take a long time while it's rebuilt.

This usually gets me another two weeks or so of heavy local provider usage before the problem creeps up again.

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

I have hit this as well. Could anyone affected by this please post the output of 'apt-cache policy juju'

Thanks!

Changed in juju:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Juan L. Negron (negronjl) wrote :

Here is mine:

juju:
  Installed: 0.5+bzr427-1juju2~oneiric1
  Candidate: 0.5+bzr427-1juju2~oneiric1
  Version table:
 *** 0.5+bzr427-1juju2~oneiric1 0
        500 http://ppa.launchpad.net/juju/pkgs/ubuntu/ oneiric/main amd64 Packages
        100 /var/lib/dpkg/status
     0.5+bzr398-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ oneiric/universe amd64 Packages

Revision history for this message
Kapil Thangavelu (hazmat) wrote :

this sounds like an lxc issue.

tags: added: local lxc
Revision history for this message
Clint Byrum (clint-fewbar) wrote :

Agreed. I think this has to do with the fact that the LXC 'ubuntu' template does not fail on errors, and there are operations which it does that may fail, such as chrooting in and installing things.

One hypothesis I have is that the lxcguest package isn't installed successfully because the networking details have changed.

Anyway, marking as affecting the lxc Ubuntu package.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Hm, the template does fail on several errors, but yes it does not fail when lxcguest fails to install.

It might be best to make the script set -e.

I'll create a new bug to track fixing that.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

opened bug 922645

Dave Walker (davewalker)
Changed in lxc (Ubuntu):
importance: Undecided → High
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Hi,

bug 922645 in lxc has been fixed (in precise). Does that close this bug?

Changed in lxc (Ubuntu):
status: New → Incomplete
Changed in lxc (Ubuntu):
status: Incomplete → Fix Released
Changed in juju:
status: Confirmed → Fix Released
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.