cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sheng Yang <>
Subject CLOUDSTACK-1732
Date Wed, 10 Apr 2013 18:44:48 GMT
Hi Marcus,

I found this 4.2 blocker bug caused by your commit
to change the communication mechanism for KVM systemvm.

As I said, I am not very familiar with python, but seems "\r\n" would
generated "^M" rather than normal unix return character. I've tried
following fix and it works. But I am not sure if it's the right fix,
because obviously "\r\n" is more complex than "\n", so you should had
reason to do so.

yasker@yasker-devbox:~/develop/cloudstack-oss$ git diff
diff --git a/scripts/vm/hypervisor/kvm/patchviasocket.plb/scripts/vm/hypervisor/kvm/
index 443d6e4..7bcd245 100644
--- a/scripts/vm/hypervisor/kvm/
+++ b/scripts/vm/hypervisor/kvm/
@@ -53,6 +53,6 @@ my $msg = "pubkey:" . $key . "\ncmdline:" . $cmdline;

 my $socket = IO::Socket::UNIX->new(Peer=>$sockfile,Type=>SOCK_STREAM)
     or die "ERROR: unable to connect to $sockfile - $^E\n";
-print $socket "$msg\r\n";
+print $socket "$msg\n";
 close $socket;

So could you shed some lights on it?



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message