Problem Adding Remote KVM RHEL5.5 Server

Seek and render assistance on all issues related to downloading, deploying and configuring ConVirt 2.0 here.

Problem Adding Remote KVM RHEL5.5 Server

Postby bramuchachos on Thu Jul 29, 2010 3:11 pm

I am running my CMS on a Fedora 12 workstation and convirt is starting up fine it prompts me for the SSH key when starting as expected.
Convirt is running as the user convirt and not root on the CMS.

[convirt@charis convirt]$ ./convirt-ctl start
Trying to source ./../tg2env/bin/activate
virtualenv set to /home/convirt/tg2env


Using /home/convirt/.ssh/cms_id_rsa
Enter passphrase for /home/convirt/.ssh/cms_id_rsa:
Identity added: /home/convirt/.ssh/cms_id_rsa (/home/convirt/.ssh/cms_id_rsa)
ssh key added to agent
Starting ConVirt using virtualenv : /home/convirt/tg2env
Default character encoding is utf-8
Entering daemon mode
ConVirt Started


The managed_server has the following specs:
[castor:/usr/lib/convirt/convirture-tools-2.0/install/managed_server/scripts]# ./convirt-tool --skip_setup_bridge setup
DISTRO RedHat
VER 5.5
CODENAME Tikanga
KERNEL 2.6.18-194.el5
ARCH x86_64
Info: Sourcing /usr/lib/convirt/convirture-tools-2.0/install/managed_server/scripts/../../../common/scripts/RedHat_functions
Virtualization platform KVM Version 83-164.el5
interface eth0 already part of bridge. skiping it
interface eth1 already part of bridge. skiping it
interface eth2 already part of bridge. skiping it
interface eth3 already part of bridge. skiping it
BRIDGE NAME=br1
Opened firewall port 8002
Saving firewall rules to /etc/sysconfig/iptables: [ OK ]
Firewall rules saved successfully.
Saving firewall rules to /etc/sysconfig/iptables: [ OK ]
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: filter [ OK ]
Applying iptables firewall rules: [ OK ]
Loading additional iptables modules: ip_conntrack_netbios_n[ OK ]
Firewall restarted successfully.
Setup successful.

The firewall is fine on the managed_server:
[castor:/usr/lib/convirt/convirture-tools-2.0/install/managed_server/scripts]# iptables -nL| grep 800
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:8002

netsta return nothing
[castor:~]# netstat -an | grep 800
[castor:~]#

When I try to add this managed_server from the CMS workstation I get the following error:

Traceback (most recent call last):
File "/home/convirt/convirt/src/convirt/web/convirt/convirt/viewModel/NodeService.py", line 478, in add_node
node.connect();
File "/home/convirt/convirt/src/convirt/web/convirt/convirt/model/VNode.py", line 287, in connect
self.get_vmm().connect()
File "/home/convirt/convirt/src/convirt/web/convirt/convirt/model/VNode.py", line 245, in get_vmm
self._vmm = self._init_vmm()
File "/home/convirt/convirt/src/convirt/web/convirt/convirt/core/platforms/kvm/KVMNode.py", line 126, in _init_vmm
return KVMProxy(self)
File "/home/convirt/convirt/src/convirt/web/convirt/convirt/core/platforms/kvm/KVMProxy.py", line 95, in __init__
if self.node_proxy.file_exists("/usr/libexec/qemu-kvm"):
File "/home/convirt/convirt/src/convirt/web/convirt/convirt/core/utils/NodeProxy.py", line 157, in locked
return fn(*args, **kwargs)
File "/home/convirt/convirt/src/convirt/web/convirt/convirt/core/utils/NodeProxy.py", line 451, in file_exists
file_attribs = self.sftp_client.lstat(filename)
File "/home/convirt/convirt/src/convirt/web/convirt/convirt/core/utils/NodeProxy.py", line 203, in __getattr__
return self._init_sftp()
File "/home/convirt/convirt/src/convirt/web/convirt/convirt/core/utils/NodeProxy.py", line 190, in _init_sftp
paramiko.SFTPClient.from_transport(self.ssh_transport)
File "/usr/lib/python2.6/site-packages/paramiko/sftp_client.py", line 105, in from_transport
chan.invoke_subsystem('sftp')
File "/usr/lib/python2.6/site-packages/paramiko/channel.py", line 240, in invoke_subsystem
self._wait_for_event()
File "/usr/lib/python2.6/site-packages/paramiko/channel.py", line 1084, in _wait_for_event
raise e
SSHException: Channel closed.

What could be causing the Channel closed exception?

BTW, I can ssh to the managed server as convirt and root user with public key and password for both.
bramuchachos
 
Posts: 1
Joined: Thu Jul 29, 2010 2:53 pm

Re: Problem Adding Remote KVM RHEL5.5 Server

Postby jd_jedi on Sun Aug 01, 2010 8:55 pm

Check if sftp is allowed. Look for /etc/ssh/sshd_config.
Can you do sftp from CMS account to root@managed sever ?
jd_jedi
 
Posts: 984
Joined: Mon Mar 09, 2009 6:22 pm


Return to Installation & Configurations Help

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron