Re: [Autotest] autotest exception in windows 2003 guest (ValueError: invalid literal for int() with base 10: '%errorlevel%)

2009-08-03 Thread sudhir kumar
On 7/27/09, Michael Goldish mgold...@redhat.com wrote:
 It looks like you're using opensshd with cygwin -- not the one we normally
 install on guests, but rather one that outputs colorful text. Is that right?
 Which server are you using exactly?
 There's not much I can do against colorful text, because it's difficult to
 automatically strip the weird formatting characters from the output.

 I suggest that you:

 - Use another server, like the cygwin+opensshd we normally use for Windows
 guests (http://sshwindows.webheat.co.uk/), or if you're not using SCP with
This does not install the server on my win2k8 Datacentre 64. Though
client works fine.

 Windows, you can use rss.exe which I posted recently -- it's the easiest to
 install and works with all Windows versions (ssh doesn't always work). If
Can you please share the binary? I wana give it a try.

 you use rss.exe make sure you use telnet as a client (not ssh) by setting
 use_telnet = yes for the relevant guest in kvm_tests.cfg. The best client
 is actually raw nc, which I'll post patches to support soon, but telnet
 should work too (though it will produce a double echo for each command).

 - Use a more recent version of KVM-Autotest. kvm_subprocess recently got
 into the tree, and it handles weird responses to echo %errorlevel% better
 (especially double echo), but as long as the output is colored, it still
 won't work. If you upgrade, make sure you also apply the patch that fixes
 kvm_subprocess on Python 2.6 (if you use 2.6), or just wait until Lucas
 applies the patch to the tree.

 I know this seems a little messy, but if you wait a little while everything
 will sort itself out -- if I understand correctly, we are moving towards
 using rss.exe on all Windows guests, with nc as a client, and with
 kvm_subprocess controlling the client, and then most of the problems should
 go away (hopefully).
I will be so happy. At present autotes is almost of no use for windows
with copssh and openssh. boot reboot code works fine  but migrate code
cause problem due to the colorful text of the prompt. I wana get out
of this issue as soon as possible. please share the binaries with me
so that we can come to know of issues if any and make this ssh server
more robust.
thanks in advance.


 Thanks,
 Michael

 - Original Message -
 From: sudhir kumar smalik...@gmail.com
 To: Autotest mailing list autot...@test.kernel.org
 Cc: Lucas Meneghel Rodrigues mrodr...@redhat.com, kvm-devel
 kvm@vger.kernel.org
 Sent: Monday, July 27, 2009 2:16:06 PM (GMT+0200) Auto-Detected
 Subject: [Autotest] autotest exception in windows 2003 guest (ValueError:
 invalid literal for int() with base 10: '%errorlevel%)

 Hi I have been getting the following exception in autotest for windows
 2003 datacenter.
   status =
 int(\n.join(status.splitlines()[1:-1]).strip())
   ValueError: invalid literal for int() with base 10:
 '%errorlevel%\n\x1b]0;~\x07\n\x1b[32madministra...@ibm-n81hj962hdx
 \x1b[33m~\x1b[0m'

 Is there any other command with which we can replace
 ssh_status_test_command = echo %errorlevel%

 echo $? also does not work in windows.


 --
 Sudhir Kumar
 ___
 Autotest mailing list
 autot...@test.kernel.org
 http://test.kernel.org/cgi-bin/mailman/listinfo/autotest



-- 
Sudhir Kumar
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [Autotest] autotest exception in windows 2003 guest (ValueError: invalid literal for int() with base 10: '%errorlevel%)

2009-08-03 Thread Lucas Meneghel Rodrigues
On Mon, Aug 3, 2009 at 8:54 AM, sudhir kumarsmalik...@gmail.com wrote:
 On 7/27/09, Michael Goldish mgold...@redhat.com wrote:
 I know this seems a little messy, but if you wait a little while everything
 will sort itself out -- if I understand correctly, we are moving towards
 using rss.exe on all Windows guests, with nc as a client, and with
 kvm_subprocess controlling the client, and then most of the problems should
 go away (hopefully).
 I will be so happy. At present autotes is almost of no use for windows
 with copssh and openssh. boot reboot code works fine  but migrate code
 cause problem due to the colorful text of the prompt. I wana get out
 of this issue as soon as possible. please share the binaries with me
 so that we can come to know of issues if any and make this ssh server
 more robust.
 thanks in advance.

No problem, I have just compiled rss.exe, will send you the binary on
a separate message.
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [Autotest] autotest exception in windows 2003 guest (ValueError: invalid literal for int() with base 10: '%errorlevel%)

2009-07-27 Thread Michael Goldish
It looks like you're using opensshd with cygwin -- not the one we normally 
install on guests, but rather one that outputs colorful text. Is that right? 
Which server are you using exactly?
There's not much I can do against colorful text, because it's difficult to 
automatically strip the weird formatting characters from the output.

I suggest that you:

- Use another server, like the cygwin+opensshd we normally use for Windows 
guests (http://sshwindows.webheat.co.uk/), or if you're not using SCP with 
Windows, you can use rss.exe which I posted recently -- it's the easiest to 
install and works with all Windows versions (ssh doesn't always work). If you 
use rss.exe make sure you use telnet as a client (not ssh) by setting 
use_telnet = yes for the relevant guest in kvm_tests.cfg. The best client is 
actually raw nc, which I'll post patches to support soon, but telnet should 
work too (though it will produce a double echo for each command).

- Use a more recent version of KVM-Autotest. kvm_subprocess recently got into 
the tree, and it handles weird responses to echo %errorlevel% better 
(especially double echo), but as long as the output is colored, it still won't 
work. If you upgrade, make sure you also apply the patch that fixes 
kvm_subprocess on Python 2.6 (if you use 2.6), or just wait until Lucas applies 
the patch to the tree.

I know this seems a little messy, but if you wait a little while everything 
will sort itself out -- if I understand correctly, we are moving towards using 
rss.exe on all Windows guests, with nc as a client, and with kvm_subprocess 
controlling the client, and then most of the problems should go away 
(hopefully).

Thanks,
Michael

- Original Message -
From: sudhir kumar smalik...@gmail.com
To: Autotest mailing list autot...@test.kernel.org
Cc: Lucas Meneghel Rodrigues mrodr...@redhat.com, kvm-devel 
kvm@vger.kernel.org
Sent: Monday, July 27, 2009 2:16:06 PM (GMT+0200) Auto-Detected
Subject: [Autotest] autotest exception in windows 2003 guest (ValueError: 
invalid literal for int() with base 10: '%errorlevel%)

Hi I have been getting the following exception in autotest for windows
2003 datacenter.
  status = int(\n.join(status.splitlines()[1:-1]).strip())
  ValueError: invalid literal for int() with base 10:
'%errorlevel%\n\x1b]0;~\x07\n\x1b[32madministra...@ibm-n81hj962hdx
\x1b[33m~\x1b[0m'

Is there any other command with which we can replace
ssh_status_test_command = echo %errorlevel%

echo $? also does not work in windows.


-- 
Sudhir Kumar
___
Autotest mailing list
autot...@test.kernel.org
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [Autotest] autotest exception in windows 2003 guest (ValueError: invalid literal for int() with base 10: '%errorlevel%)

2009-07-27 Thread Lucas Meneghel Rodrigues
On Mon, Jul 27, 2009 at 10:15 AM, Michael Goldishmgold...@redhat.com wrote:
 It looks like you're using opensshd with cygwin -- not the one we normally 
 install on guests, but rather one that outputs colorful text. Is that right? 
 Which server are you using exactly?
 There's not much I can do against colorful text, because it's difficult to 
 automatically strip the weird formatting characters from the output.

 I suggest that you:

 - Use another server, like the cygwin+opensshd we normally use for Windows 
 guests (http://sshwindows.webheat.co.uk/), or if you're not using SCP with 
 Windows, you can use rss.exe which I posted recently -- it's the easiest to 
 install and works with all Windows versions (ssh doesn't always work). If you 
 use rss.exe make sure you use telnet as a client (not ssh) by setting 
 use_telnet = yes for the relevant guest in kvm_tests.cfg. The best client 
 is actually raw nc, which I'll post patches to support soon, but telnet 
 should work too (though it will produce a double echo for each command).

 - Use a more recent version of KVM-Autotest. kvm_subprocess recently got into 
 the tree, and it handles weird responses to echo %errorlevel% better 
 (especially double echo), but as long as the output is colored, it still 
 won't work. If you upgrade, make sure you also apply the patch that fixes 
 kvm_subprocess on Python 2.6 (if you use 2.6), or just wait until Lucas 
 applies the patch to the tree.

Applied it today.

 I know this seems a little messy, but if you wait a little while everything 
 will sort itself out -- if I understand correctly, we are moving towards 
 using rss.exe on all Windows guests, with nc as a client, and with 
 kvm_subprocess controlling the client, and then most of the problems should 
 go away (hopefully).

Yep, let's work to get this done as soon as possible.

 Thanks,
 Michael

 - Original Message -
 From: sudhir kumar smalik...@gmail.com
 To: Autotest mailing list autot...@test.kernel.org
 Cc: Lucas Meneghel Rodrigues mrodr...@redhat.com, kvm-devel 
 kvm@vger.kernel.org
 Sent: Monday, July 27, 2009 2:16:06 PM (GMT+0200) Auto-Detected
 Subject: [Autotest] autotest exception in windows 2003 guest (ValueError: 
 invalid literal for int() with base 10: '%errorlevel%)

 Hi I have been getting the following exception in autotest for windows
 2003 datacenter.
                      status = 
 int(\n.join(status.splitlines()[1:-1]).strip())
                  ValueError: invalid literal for int() with base 10:
 '%errorlevel%\n\x1b]0;~\x07\n\x1b[32madministra...@ibm-n81hj962hdx
 \x1b[33m~\x1b[0m'

 Is there any other command with which we can replace
        ssh_status_test_command = echo %errorlevel%

 echo $? also does not work in windows.


 --
 Sudhir Kumar
 ___
 Autotest mailing list
 autot...@test.kernel.org
 http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
 ___
 Autotest mailing list
 autot...@test.kernel.org
 http://test.kernel.org/cgi-bin/mailman/listinfo/autotest




-- 
Lucas Meneghel
--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html