When calling libvirt get_console_output with a pty I'm getting the following failure:
File "/home/dprince/projects/nova/nova/virt/libvirt/connection.py", line 991, in get_console_output
console_log = self._get_console_log_path(instance_name)
NameError: global name 'instance_name' is not defined
** Impact **
When calling libvirt get_console_output with a pty I'm getting the following failure:
File "/home/ dprince/ projects/ nova/nova/ virt/libvirt/ connection. py", line 991, in get_console_output console_ log_path( instance_ name)
console_log = self._get_
NameError: global name 'instance_name' is not defined
** Development Fix **
This has been fixed in the development trunk at https:/ /review. openstack. org/6897 and in quantal.
** Stable fix **
This has been fixed in the stable/essex tree at https:/ /review. openstack. org/7790.
** Test Case **
Run the following test cases:
test_ get_console_ output_ pty get_console_ output_ file
test_
** Regression Potential **
None this fixes a traceback when running euca-get-console.