[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: "xen-users" <xen-users@xxxxxxxxxxxxxxxxxxx>
  • 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
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.