Product:
Search Type:

Virtuozzo related task fails with error "Connection to vzagent was closed"

Article ID: 3012 
Last Review: May,04 2008
APPLIES TO:
  • Parallels Automation (PEM)

SYMPTOMS

Virtuozzo related task fails with the following error message
ERRCODE 5000 ERRCODE_MINOR -4 VZALib error, code: -4, msg: Connection to vzagent was closed

 

CAUSE

Most probably there are some network issues between PSA management node and SVE of the Virtuozzo node, mentioned in the task.
 

RESOLUTION

PSA Management Node communicates with SVE (VE with id 1 on a registered node) using ssh protocol on port 22/tcp.
One may perform the following actions to investigate/fix such kind of issues:

1. Check connection between the Management Node and the SVE. Execute the following on the Management Node:
$ telnet <sve_ip> 22
    the command above must connect successfully, else - there are network issues to be addressed.

2. Try to restart VZAgent:
login to the node as root and run
# vzagent_ctl restart
   try to resubmit the task after that.

3. If the problem persists, try to login as vzagent0 user from the Management Mode to the SVE:
$ ssh vzagent0@<sve_ip> -i /usr/local/pem/etc/ssh-keys/vem.key.sec
   if login fails it could mean that the node was not registered in PSA yet or that the corresponding RSA key was removed from the SVE. Keys can be checked at ~vzagent0/.ssh/authorized_keys on the SVE (one could login there using vzctl enter 1 from the node), the authorized_keys file should contain the content of /usr/local/pem/etc/ssh-keys/vem.key.sec.pub file from the Management Node.
 

Additional information

1. It is recommended to have Virtuozzo Tools updated on the hardware node. Please install available updates for Virtuozzo Tools using vzup2date utility.

WARNING: Do not upgrade Virtuozzo to the next major version (4.x), it is not supported by PSA yet.

See the following article for details about vzup2date usage:
1170  How do I keep Virtuozzo installation up-to-date?

2. To determine ip address of the SVE, one may execute vzlist -a 1 command on the node., also it could be taken from the PCP interface: Top > Service Director > Virtuozzo Manager > VPS Hardware Nodes > (node) > IP Address of Service VPS.
Keywords: vzagent vps

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
*Please type the code you can see.
* - required fields