Skip to main content

error message: getNetworkProfiles() takes exactly 4 arguments (3 given

  • March 19, 2014
  • 2 replies
  • 10 views

Navin_C
Forum|alt.badge.img+2
Hello,

I am trying to add a new node to an existing cluster.
used update vertica script with add host parameter which ran successfully
Through admintools: when trying to add node, I get this.

               Checking full connectivity


adminTools Last Chance Error Handler running...
raised error:  <type 'exceptions.TypeError'>
error message: getNetworkProfiles() takes exactly 4 arguments (3 given)
trace file:  /opt/vertica/log/adminTools-dbadmin.errors
REPORT THIS INFORMATION TO TECHNICAL SUPPORT
AND INCLUDE CONTENTS OF THE TRACE FILE IN YOUR REPORT

Anyone with a solution to this.

2 replies

Nimmi_gupta
Forum|alt.badge.img
  • Participating Frequently
  • April 22, 2014
Hi Navin, not sure,  are you still having this problem? If yes, could you share the /opt/vertica/log/adminTools-dbadmin.errors file.

thanks

Navin_C
Forum|alt.badge.img+2
  • Author
  • Participating Frequently
  • April 22, 2014
Hello Nimmi,

It seems there was bug in SSH.py file.

changed the definition of getNetworkProfies function.

It was expecting 4 mandatory paramenters

def getNetworkProfiles(nodeHosts, userName, subnet, logger):

Changed it to 

def getNetworkProfiles(nodeHosts, userName, subnet, logger=BasicLogger()):

I think the logger parameter was meant to be optional.

Hope this helps.