Archived community.zenoss.org | full text search
Skip navigation
1289 Views 1 Reply Latest reply: Oct 27, 2012 4:02 PM by daydreamblighter RSS
Court Harris Rank: White Belt 25 posts since
Aug 27, 2012
Currently Being Moderated

Oct 26, 2012 4:41 PM

Zenoss VM failover with high availability problem.

We are trying to setup Zenoss 4 high availability by running a VM on top of Hyper-V. We have two Hyper-V host machines with a different set of hardware for each. Replication between the two host machines has been setup and is working properly. The site1 Zenoss VM has been up and running without any problems, and we can successfully fail the host machine over to site2. We had to setup a cron job to check what site the VM is currently residing in, and then make IP configuration changes due to IP, subnet, and MAC address needing to be different. Everything fails over fine between site1 and site2, but when Zenoss goes to start on site2 the Zenhub will not start with the following errors:

 

OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)") 2012-10-24 12:25:59,841 WARNING zen.ZenHub: Connection to ZODB interrupted, will try to reconnect again in 1 seconds. 2012-10-24 12:26:01,461 WARNING relstorage.adapters.mysql: Unable to connect: (2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)") 2012-10-24 12:26:01,461 WARNING zen.ZenHub: Connection to ZODB interrupted, will try to reconnect again in 2 seconds. 2012-10-24 12:26:04,083 WARNING relstorage.adapters.mysql: Unable to connect: (2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)") 2012-10-24 12:26:04,083 WARNING zen.ZenHub: Connection to ZODB interrupted, will try to reconnect again in 4 seconds. 2012-10-24 12:26:08,321 WARNING relstorage.adapters.mysql: Unable to connect: (2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)") 2012-10-24 12:26:08,321 WARNING zen.ZenHub: Connection to ZODB interrupted, will try to reconnect again in 6 seconds. 2012-10-24 12:26:10,627 WARNING relstorage.adapters.mysql: Unable to connect: (2002, "Can't connect to local MySQL server through socket

 

In the scenario above, what needs to change in order for the Zenhub to start? MySQL is running without any problems, so I am thinking it has to do with the ethernet interface changes that happen. Everything else on the Zenoss framework daemons are running ok, just Zenhub is down and will not start. Any help is appreciated.

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points