[ovirt-users] Hosted Engine fail after upgrading to 3.5

Stefano Stagnaro stefanos at prisma-eng.com
Mon Oct 27 13:07:52 EDT 2014


Hi Jirka,

after truncating the metadata file the Engine is running again.

Unfortunately now the HA migration is not working anymore. If I put the host with the running Engine in local maintenance, the HA go trough EngineMigratingAway -> ReinitializeFSM -> LocalMaintenance but the VM never migrates.

I can read this error in the agent.log:

MainThread::ERROR::2014-10-27 18:02:51,053::hosted_engine::867::ovirt_hosted_engine_ha.agent.hosted_engine.HostedEngine::(_monitor_migration) Failed to migrate
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/agent/hosted_engine.py", line 863, in _monitor_migration
    vm_id,
  File "/usr/lib/python2.6/site-packages/ovirt_hosted_engine_ha/lib/vds_client.py", line 85, in run_vds_client_cmd
    response['status']['message'])
DetailedError: Error 12 from migrateStatus: Fatal error during migration

Thank you,
-- 
Stefano Stagnaro

Prisma Engineering S.r.l.
Via Petrocchi, 4
20127 Milano – Italy

Tel. 02 26113507 int 339
e-mail: stefanos at prisma-eng.com
skype: stefano.stagnaro


On Fri, 2014-10-24 at 15:00 +0200, Jiri Moskovcak wrote:
> On 10/24/2014 02:12 PM, Stefano Stagnaro wrote:
> > Hi Jirka,
> >
> > thank you for the reply. I've uploaded all the relevant logs in here: https://www.dropbox.com/sh/qh2rbews45ky2g8/AAC4_4_j94cw6sI_hfaSFg-Fa?dl=0
> >
> > Thank you,
> >
> 
> Hi Stefano,
> I'd say, that agent is not able to parse the metadata from the previous 
> version, so as a workaround before I fix it you can try to zero out the 
> metadata file (backup the original just in case..)
> 
> 1. stop agent and broker on all hosts
> 2. truncate the file
> 
> this should do the trick:
> 
> $ service ovirt-ha-agent stop; service ovirt-ha-broker stop;
> $ truncate --size 0 
> /rhev/data-center/mnt/ov0nfs:_engine/e4e8282e-6bde-4332-ad68-313287b4fc65/ha_agent/hosted-engine.metadata 
> 
> $ truncate --size 1M 
> /rhev/data-center/mnt/ov0nfs:_engine/e4e8282e-6bde-4332-ad68-313287b4fc65/ha_agent/hosted-engine.metadata
> $ service ovirt-ha-broker start; service ovirt-ha-agent start
> 
> 
> --Jirka



More information about the Users mailing list