WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] about xen xmlrpc-tcp-server

To: "xen-users" <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] about xen xmlrpc-tcp-server
From: "pine_tan" <pine_tan@xxxxxxx>
Date: Thu, 29 Nov 2007 12:05:15 +0800
Delivery-date: Wed, 28 Nov 2007 20:06:13 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi all,
 
    Now I have some questions about the xen's xmlrpc-tcp server and XenMan's remote management.
 
    Q1. I have modified the /etc/xen/xend-config.sxp as follows:
        (xend-tcp-xmlrpc-server yes)
        (xen-tcp-xmlrpc-server-address 'localhost')
        (xen-tcp-xmlrpc-server-port 8006)
        (xend-address '')
 
        So I have open the xmlrpc-tcp server, and I can get correct result with "netstat -a|grep 8006".
        If I use "telnet localhost 8006", it is ok. It gives me the information as follows:
 
        Try 127.0.0.1...
        Connected to localhost.localdomain (127.0.0.1)
        Escape character is '^]'
 
        But if I want to use "telnet 172.19.11.14 8006" (assumed my machine's IP is 172.19.11.14 ), it is error:
 
        Trying 172.19.11.14...
        telnet: connect to address 172.19.11.14: Connection refused
        telnet: Unable to connect to remote host: Connection refused
 
        Why? Because of authentication? Or else?
 
  Q2. In /etc/xen/xend-config.sxp, there are
        #(xend-tcp-xmlrpc-server-ssl-key-file  /etc/xen/xmlrpc.key)
        #(xend-tcp-xmlrpc-server-ssl-cert-file /etc/xen/xmlrpc.crt)
 
        Is it implies that xend use ssh as its xmlrpc server's connection protocol?
        Can change it to traditional telnet protocol, though telnet is not security?
 
  Q3: I am trying XenMan v0.6 to manage remote xen hosts, but I meet some problems.
        When I use xenman to connect remote host, it always tell me that
        no element fount: line 1, column 0
 
        I try to debug the source code, exception are
         File "/usr/lib/python2.4/xmlrpclib.py", line 527, in feed
           self._parse.Parse(data,0)
 
       I debug XenNode.py separately
......
 
if __name__ == "__main__":
    host = "172.19.11.14"
    username = 'root'
    passwd = 'XXX'
    
    managed_node = XenNode(hostname=host,
                           username = username,
                           password = passwd,
                           isRemote=remote)
 
   managed_node.refresh()
 
   And it can get the correct result.
   Moreover, I have added some debug code in remote host's xend source code,
   remote xend always can give the ecorrect domains' information.
   But why I cannot get correct one?
 
   I use CentOS 5, Python 2.4, Xen 3.1 Paramiko 1.7.1, pycrypto-2.0.1
 
Q4: Can I use normal telnet while not ssh as XenMan's connection protocol? If Xen allow that.
 
 
 
How can I solve the problems?
 
   Thanks a lot.
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] about xen xmlrpc-tcp-server, pine_tan <=