[Bug 807091] Re: "internal error character device (null) is not using a PTY" when using virsh console
Hi, I wanted to use "virtsh console instance-" as described here: http://www.jaredlog.com/?p=1484 for debugging this issue: https://ask.openstack.org/en/question/89583/cant-ping-machine-after- unrescue/ but I encountered this problem. My goal was to connect to the instance and see the console log and get a console to the machine because ssh doesn't work (details in the referenced link) -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/807091 Title: "internal error character device (null) is not using a PTY" when using virsh console To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nova/+bug/807091/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 807091] Re: "internal error character device (null) is not using a PTY" when using virsh console
You can use the following: virsh console --devname serial1 instance- ** Changed in: nova (Ubuntu) Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/807091 Title: "internal error character device (null) is not using a PTY" when using virsh console To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nova/+bug/807091/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 807091] Re: "internal error character device (null) is not using a PTY" when using virsh console
Its quite likely that this is intended function - the console output of the instance is mapped to a log file so that 'nova console-log' can be used to retrieve log data via the public API of nova. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/807091 Title: "internal error character device (null) is not using a PTY" when using virsh console To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nova/+bug/807091/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 807091] Re: "internal error character device (null) is not using a PTY" when using virsh console
However that may not be usable - anyway I think this is by design - end users won't normally have direct access to compute hosts! -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/807091 Title: "internal error character device (null) is not using a PTY" when using virsh console To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nova/+bug/807091/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 807091] Re: "internal error character device (null) is not using a PTY" when using virsh console
I'm seeing this on trusty/icehouse: root@furud:~# virsh list --all IdName State 32instance-2bb1 running 37instance-2bb2 running 4237 instance-6b86 running 4238 instance-6b87 running root@furud:~# virsh console instance-6b87 Connected to domain instance-6b87 Escape character is ^] error: internal error: character device is not using a PTY ** Changed in: nova (Ubuntu) Status: Fix Released => New -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/807091 Title: "internal error character device (null) is not using a PTY" when using virsh console To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nova/+bug/807091/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 807091] Re: "internal error character device (null) is not using a PTY" when using virsh console
This should be fixed now, please re-open if you are still having problems. Regards chuck ** Changed in: nova (Ubuntu) Status: Triaged => Fix Released -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/807091 Title: "internal error character device (null) is not using a PTY" when using virsh console To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nova/+bug/807091/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 807091] Re: "internal error character device (null) is not using a PTY" when using virsh console
Also, it seems moving the serial tag makes no difference for what I can see -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/807091 Title: "internal error character device (null) is not using a PTY" when using virsh console To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nova/+bug/807091/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 807091] Re: "internal error character device (null) is not using a PTY" when using virsh console
So, I've tried the latest oneiric cloud images from today and two days ago and I still get the "PTY allocation request failed on channel 0" connecting via ssh. With euca-get-console-output I still get (from nova-api.log): (nova.api): TRACE: RemoteError: Error local variable 'fpath' referenced before assignment (nova.api): TRACE: [u'Traceback (most recent call last):\n', u' File "/usr/lib/pymodules/python2.7/nova/rpc.py", line 232, in _process_data\n rval = node_func(context=ctxt, **node_args)\n', u' File "/usr/lib/pymodules/python2.7/nova/exception.py", line 97, in wrapped\n return f(*args, **kw)\n', u' File "/usr/lib/pymodules/python2.7/nova/compute/manager.py", line 1023, in get_console_output\noutput = self.driver.get_console_output(instance_ref)\n', u' File "/usr/lib/pymodules/python2.7/nova/exception.py", line 124, in wrapped\n raise Error(str(e))\n', u"Error: local variable 'fpath' referenced before assignment\n"] However, on the compute node I can see the correctly booted system with 'virsh -c lxc:/// console ' -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/807091 Title: "internal error character device (null) is not using a PTY" when using virsh console To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nova/+bug/807091/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 807091] Re: "internal error character device (null) is not using a PTY" when using virsh console
@Tom, can you provide an update if that resolved the issue? Thanks. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/807091 Title: "internal error character device (null) is not using a PTY" when using virsh console To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nova/+bug/807091/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 807091] Re: "internal error character device (null) is not using a PTY" when using virsh console
** Changed in: nova (Ubuntu) Status: New => Triaged -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/807091 Title: "internal error character device (null) is not using a PTY" when using virsh console To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nova/+bug/807091/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 807091] Re: "internal error character device (null) is not using a PTY" when using virsh console
** Changed in: nova (Ubuntu) Status: Incomplete => New -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/807091 Title: "internal error character device (null) is not using a PTY" when using virsh console To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nova/+bug/807091/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 807091] Re: "internal error character device (null) is not using a PTY" when using virsh console
@Chuck Yes, tried todays daily oneiric image on diablo-3 and still see the same issue: ubuntu@sugarloaf:~/images$ euca-describe-instances RESERVATION r-vchanq4i projdefault INSTANCEi-0023 ami-0008192.168.3.3 192.168.3.3 running psekey (proj, perce)0 m1.small 2011-08-02T10:00:06Z nova ubuntu@sugarloaf:~/images$ ping 192.168.3.3 -c 1 PING 192.168.3.3 (192.168.3.3) 56(84) bytes of data. 64 bytes from 192.168.3.3: icmp_req=1 ttl=64 time=0.155 ms --- 192.168.3.3 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.155/0.155/0.155/0.000 ms ubuntu@sugarloaf:~/images$ ssh ubuntu@192.168.3.3 -i ~/creds/psekey.priv PTY allocation request failed on channel 0 FYI, I'm using VLAN network mode. euca-get-console-output shows: UnknownError: An unknown error has occurred. Please try your request again. A much better error was produced in nova-api.log though, attached. ** Attachment added: "nova-api-trace.log" https://bugs.launchpad.net/ubuntu/+source/nova/+bug/807091/+attachment/2249159/+files/nova-api-trace.log -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/807091 Title: "internal error character device (null) is not using a PTY" when using virsh console To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nova/+bug/807091/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 807091] Re: "internal error character device (null) is not using a PTY" when using virsh console
@Matt Interesting, I'll have a play around with it. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/807091 Title: "internal error character device (null) is not using a PTY" when using virsh console To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nova/+bug/807091/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 807091] Re: "internal error character device (null) is not using a PTY" when using virsh console
Hi All, I was able to replicate this running --libvirt_type=qemu, and see similar "virsh dumpxml" output as reported in https://www.redhat.com/archives/libvir-list/2009-July/msg00460.html. If I move the tag above in libvirt.xml (despite libvirt.xml stating that the order should be "file" first), I can connect to console but cannot see console output using using "euca-get-console-output". Previously, I couldn't connect to console, but could see console output. Interestingly, but as an aside, when using --libvirt_type=uml, I by default can connect to the console but cannot see console output using "euca-get-console-output". Anyway, after reading the libvirt-list post pasted above, I'm inclined to think only one tag should be defined in libvirt.xml, but perhaps someone more familiar w/ libvirt can clarify? -Matt -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/807091 Title: "internal error character device (null) is not using a PTY" when using virsh console To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nova/+bug/807091/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 807091] Re: "internal error character device (null) is not using a PTY" when using virsh console
Tom, Is this still a problem for you? Regards chuck ** Changed in: nova (Ubuntu) Importance: Undecided => Low ** Changed in: nova (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/807091 Title: "internal error character device (null) is not using a PTY" when using virsh console To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nova/+bug/807091/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 807091] Re: "internal error character device (null) is not using a PTY" when using virsh console
I wonder if it's an issue with Nova (for example, does eucalyptus succeed in the same situation), with libvirt, or with the Ubuntu cloud images... ** Summary changed: - error: internal error character device (null) is not using a PTY + "internal error character device (null) is not using a PTY" when using virsh console -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/807091 Title: "internal error character device (null) is not using a PTY" when using virsh console To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nova/+bug/807091/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs