hello,

I am trying to upgrade from ha linx V1 to V2 and I have 2 issues with trying to get HA V2 to work, this first one is I can’t get the gui to work. Whenever I try to log in I get the following error. I have my user in the haclient and hb_client groups, it also doesn't work if I use root.

[EMAIL PROTECTED] ~]# Traceback (most recent call last):
File "/usr/bin/hb_gui", line 1598, in on_login
if not manager.login(server, user, password):
File "/usr/bin/hb_gui", line 1943, in login
ret = mgmt_connect(ip, username, password, port)
TypeError: mgmt_connect() argument 4 must be string, not None

The next issue that I have is if I use anything but the auto generated cib.xml file crm_mon doesn't seem to work nor any of my resources. I have tried copying an exact example off of the web page and those don’t work either. If I try to use the python script to convert my old HA V1 resources to a V2 cib file it gives me an error and says cib.xml already exists even if I delete it right before running the python script. We are using Redhat EL 4U4 with heartbeat-2.0.8-2.el4.centos.i386.rpm packages.

Any help would be greatly apreciated
Thanks,
Daryl

*Old haresources file /etc/ha.d/haresources*

voiptest1.ucalgary.ca IPaddr2::10.1.2.229/24/eth1/10.1.2.255 asterisk

*/etc/ha.d/ha.cf*

logfile /var/log/ha-log
debugfile /var/log/ha-debug
#debug 1
keepalive 2
deadtime 10
warntime 10
initdead 10
auto_failback off
udpport 695
bcast eth1
node voiptest1.ucalgary.ca voiptest2.ucalgary.ca
#ping 10.1.2.1
#respawn hacluster /usr/lib/heartbeat/ipfail
#apiauth ipfail gid=haclient uid=hacluster
crm on
#apiauth mgmtd uid=root
respawn root /usr/lib/heartbeat/mgmtd –v

*/var/lib/heartbeat/crm/cib.xml*

<cib generated="true" admin_epoch="0" have_quorum="true" ignore_dtd="false" num_peers="1" ccm_transition="3" cib_feature_revision="1.3" dc_uuid="8d3040d6-36db-4115-9fbe-5546cfd5d9b6" epoch="2" num_updates="24" cib-last-written="Thu Jun 21 10:33:23 2007">
<configuration>
<crm_config/>
<nodes>
<node id="1d53a8f0-87dd-4ba8-bbc3-cf9628c25332" uname="voiptest2.ucalgary.ca" type="normal"/> <node id="8d3040d6-36db-4115-9fbe-5546cfd5d9b6" uname="voiptest1.ucalgary.ca" type="normal"/>
</nodes>
<resources>
<group id="group_1">
<primitive class="ocf" id="IPaddr_1" provider="heartbeat" type="IPaddr">
<operations>
<op id="1" interval="5s" name="monitor" timeout="5s"/>
</operations>
<instance_attributes>
<attributes>
<nvpair name="ip" value="10.1.2.229"/>
<nvpair name="netmask" value="24"/>
<nvpair name="nic" value="eth1"/>
</attributes>
</instance_attributes>
</primitive>
</group>
</resources>
<constraints/>
</configuration>
</cib>

_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to