I am trying to test the new ssh modeling feature of zenoss following the 
instructions outlined here:

http://www.zenoss.com/community/docs/zenoss-guide/2.4.0/ch03s05.html

I have double checked that the zenoss user can ssh to the target machine using 
a key located at ~/.ssh/id_dsa. It can also ssh to the target machine using the 
user and password I have filled out in ZcommandUsername and ZcommandPassword. 

Nothing I have tried so far works. The target machine doesn't even show a 
connection attempt from zenoss. 

Output from zenmodeler run -v 10 -d TARGET_MACHINE shows the following error:

DEBUG:zen.SshClient:Creating new SSH connection...
DEBUG:zen.SshClient:Sorted list of authentication methods: ['publickey', 
'keyboard-interactive']
DEBUG:zen.SshClient:Attempting method publickey
DEBUG:zen.SshClient:Expanded SSH public key path from zKeyPath ~/.ssh/id_dsa to 
/home/zenoss/.ssh/id_dsa
/opt/zenoss/Products/DataCollector/SshClient.py:300: DeprecationWarning: 
getPublicKeyString is deprecated since Twisted Conch 0.9.  Use Key.fromString().
  return keys.getPublicKeyString( path + '.pub' )
DEBUG:zen.SshClient:Expanded SSH private key path from zKeyPath ~/.ssh/id_dsa 
to /home/zenoss/.ssh/id_dsa
/opt/zenoss/Products/DataCollector/SshClient.py:393: DeprecationWarning: 
getPrivateKeyObject is deprecated since Twisted Conch 0.9.  Use 
Key.fromString().
  passphrase=self.factory.password))
Traceback (most recent call last):
  File "/opt/zenoss/lib/python/twisted/internet/selectreactor.py", line 146, in 
_doReadOrWrite
    why = getattr(selectable, method)()
  File "/opt/zenoss/lib/python/twisted/internet/tcp.py", line 362, in doRead
    return self.protocol.dataReceived(data)
  File "/opt/zenoss/lib/python/twisted/conch/ssh/transport.py", line 314, in 
dataReceived
    self.dispatchMessage(messageNum, packet[1:])
  File "/opt/zenoss/lib/python/twisted/conch/ssh/transport.py", line 336, in 
dispatchMessage
    messageNum, payload)
--- <exception caught here> ---
  File "/opt/zenoss/lib/python/twisted/python/log.py", line 51, in 
callWithLogger
    return callWithContext({"system": lp}, func, *args, **kw)
  File "/opt/zenoss/lib/python/twisted/python/log.py", line 36, in 
callWithContext
    return context.call({ILogContext: newCtx}, func, *args, **kw)
  File "/opt/zenoss/lib/python/twisted/python/context.py", line 59, in 
callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/opt/zenoss/lib/python/twisted/python/context.py", line 37, in 
callWithContext
    return func(*args,**kw)
  File "/opt/zenoss/lib/python/twisted/conch/ssh/service.py", line 44, in 
packetReceived
    return f(packet)
  File "/opt/zenoss/lib/python/twisted/conch/ssh/userauth.py", line 274, in 
ssh_USERAUTH_PK_OK
    d  = self.signData(publicKey, b)
  File "/opt/zenoss/lib/python/twisted/conch/ssh/userauth.py", line 370, in 
signData
    key = self.getPrivateKey()
  File "/opt/zenoss/Products/DataCollector/SshClient.py", line 393, in 
getPrivateKey
    passphrase=self.factory.password))
  File "/opt/zenoss/lib/python/twisted/conch/ssh/keys.py", line 700, in 
getPrivateKeyObject
    return Key.fromFile(filename, passphrase=passphrase).keyObject
  File "/opt/zenoss/lib/python/twisted/conch/ssh/keys.py", line 60, in fromFile
    return Class.fromString(file(filename, 'rb').read(), type, passphrase)
  File "/opt/zenoss/lib/python/twisted/conch/ssh/keys.py", line 88, in 
fromString
    return method(data, passphrase)
  File "/opt/zenoss/lib/python/twisted/conch/ssh/keys.py", line 191, in 
_fromString_PRIVATE_OPENSSH
    p, q, g, y, x = decodedKey[1: 6]
exceptions.ValueError: need more than 1 value to unpack
DEBUG:zen.ZenModeler:Running 1 clients
DEBUG:zen.ZenModeler:Running 1 clients

>From this point on it just prints out the "Running 1 clients" line until the 
>model process times out. 

I have tried this on a fresh install of 2.4.0 on both Centos 5.2 and Ubuntu. 
The problem persists across both distros. 

Any ideas?




-------------------- m2f --------------------

Read this topic online here:
http://forums.zenoss.com/viewtopic.php?p=34578#34578

-------------------- m2f --------------------



_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to