virt-manager fails if target system uses tcsh as root shell

Bug #605172 reported by Hadmut Danisch
36
This bug affects 5 people
Affects Status Importance Assigned to Milestone
virt-manager
Won't Fix
Medium
libvirt (Ubuntu)
Fix Released
Undecided
Marc Deslauriers
Lucid
Won't Fix
Undecided
Unassigned
Maverick
Fix Released
Undecided
Marc Deslauriers
virt-manager (Ubuntu)
Fix Released
Undecided
Marc Deslauriers
Lucid
Won't Fix
Undecided
Unassigned
Maverick
Fix Released
Undecided
Marc Deslauriers

Bug Description

Binary package hint: virt-manager

Hi,

virt-manager fails if the target system (where kvm runs) has the root shell set to /bin/tcsh

Unfortunately, there is a patch in

./debian/patches/autodetect-nc-params.patch

which replaces the nc call to check whether the nc version on the target system requires a particular option or not (to provide compatibilty to fedora).

The syntax fails if the target system uses a tcsh as the root shell.

Isn't compatiblity to ubuntu system more important than to fedora?

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: virt-manager 0.8.2-2ubuntu8
ProcVersionSignature: Ubuntu 2.6.32-22.36-generic 2.6.32.11+drm33.2
Uname: Linux 2.6.32-22-generic x86_64
Architecture: amd64
Date: Tue Jul 13 22:26:58 2010
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100427.1)
PackageArchitecture: all
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.utf8
 SHELL=/bin/tcsh
SourcePackage: virt-manager

Revision history for this message
Hadmut Danisch (hadmut) wrote :
Revision history for this message
Alvin (alvind) wrote :

Not only the root shell. If you try to connect with username@host, virt-manager also fails to connect.

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

Upstream commits:

http://hg.fedorahosted.org/hg/virt-manager/rev/f09702cfdb03
http://hg.fedorahosted.org/hg/virt-manager/rev/907ee61e5558

I'll prepare an SRU for lucid. libvirt may need to get changed also.

Changed in virt-manager (Ubuntu):
status: New → Confirmed
assignee: nobody → Marc Deslauriers (mdeslaur)
Changed in virt-manager (Ubuntu Lucid):
status: New → Confirmed
assignee: nobody → Marc Deslauriers (mdeslaur)
Revision history for this message
Hadmut Danisch (hadmut) wrote :

Yup, I tried to change the code in console.py (and remove the .pyc), but it does not make a difference. It still takes the same if/else command from

/usr/lib/libvirt.so.0

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package virt-manager - 0.8.4-3ubuntu5

---------------
virt-manager (0.8.4-3ubuntu5) maverick; urgency=low

  * debian/patches/fix-nc-with-zsh.patch: Fix connecting to a remote server
    when using zsh or tcsh. (LP: #605172)
 -- Marc Deslauriers <email address hidden> Tue, 13 Jul 2010 16:59:47 -0400

Changed in virt-manager (Ubuntu Maverick):
status: Confirmed → Fix Released
Changed in libvirt (Ubuntu Lucid):
assignee: nobody → Marc Deslauriers (mdeslaur)
Changed in libvirt (Ubuntu Maverick):
assignee: nobody → Marc Deslauriers (mdeslaur)
status: New → Confirmed
Changed in libvirt (Ubuntu Lucid):
status: New → Confirmed
Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

The virt-manager upload to maverick didn't actually fix it for tcsh.

Changed in virt-manager (Ubuntu Maverick):
status: Fix Released → Confirmed
Revision history for this message
In , Marc (marc-redhat-bugs-1) wrote :

The shellcode that detects nc options in src/virtManager/console.py now works for zsh, but still doesn't work when the remote shell is tcsh.

Revision history for this message
In , Marc (marc-redhat-bugs-1) wrote :

s/shellcode/shell script/

Revision history for this message
Andy (andy-xillean) wrote :

will this be fixed in lucid?

Revision history for this message
In , Cole (cole-redhat-bugs) wrote :

I think this is fixed now upstream, please let me know if that commit doesn't work for you, since this stuff is obviously pretty hairy:

http://hg.fedorahosted.org/hg/virt-manager/rev/16fcbf77e47e

Revision history for this message
Dave Walker (davewalker) wrote :

@Marc, Would you be able to provide an update with the status of this bug please? :)

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package virt-manager - 0.8.4-3ubuntu6

---------------
virt-manager (0.8.4-3ubuntu6) maverick; urgency=low

  * debian/patches/fix-nc-with-zsh.patch: Add a new upstream commit to
    really fix compatibility with tcsh. (LP: #605172)
 -- Marc Deslauriers <email address hidden> Wed, 25 Aug 2010 12:22:38 -0400

Changed in virt-manager (Ubuntu Maverick):
status: Confirmed → Fix Released
Revision history for this message
In , Marc (marc-redhat-bugs-1) wrote :

Works great, thanks Cole!

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libvirt - 0.8.3-1ubuntu8

---------------
libvirt (0.8.3-1ubuntu8) maverick; urgency=low

  * debian/patches/9009-autodetect-nc-params.patch: updated to fix
    connecting to a remote server when using zsh or tcsh. (LP: #605172)
 -- Marc Deslauriers <email address hidden> Wed, 25 Aug 2010 12:41:25 -0400

Changed in libvirt (Ubuntu Maverick):
status: Confirmed → Fix Released
Changed in libvirt (Ubuntu Lucid):
assignee: Marc Deslauriers (mdeslaur) → nobody
Changed in virt-manager (Ubuntu Lucid):
assignee: Marc Deslauriers (mdeslaur) → nobody
Revision history for this message
Rolf Leggewie (r0lf) wrote :

lucid has seen the end of its life and is no longer receiving any updates. Marking the lucid task for this ticket as "Won't Fix".

Changed in virt-manager (Ubuntu Lucid):
status: Confirmed → Won't Fix
Changed in libvirt (Ubuntu Lucid):
status: Confirmed → Won't Fix
Changed in virt-manager:
importance: Unknown → Medium
status: Unknown → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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