Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1277386

Summary: ovirt-ha-agent stopped, on non-SPM host after upgrade from 3.5 to 3.6
Product: [oVirt] ovirt-hosted-engine-ha Reporter: Artyom <alukiano>
Component: AgentAssignee: Simone Tiraboschi <stirabos>
Status: CLOSED CURRENTRELEASE QA Contact: Artyom <alukiano>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 1.3.1CC: alukiano, bugs, cshao, gklein, huiwa, huzhao, mavital, sbonazzo, stirabos, ycui, ylavi
Target Milestone: ovirt-3.6.0-rc3Keywords: Reopened, Triaged
Target Release: 1.3.2.1Flags: rule-engine: ovirt-3.6.0+
rule-engine: blocker+
ylavi: planning_ack+
sbonazzo: devel_ack+
rule-engine: testing_ack+
Hardware: x86_64   
OS: Linux   
Whiteboard: integration
Fixed In Version: Doc Type: Bug Fix
Doc Text:
The upgrade from 3.5 to 3.6 was failing on the SPM host, fixing it.
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-22 13:29:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1285700    
Attachments:
Description Flags
vdsm and agent logs from not spm host none

Description Artyom 2015-11-03 08:39:30 UTC
Created attachment 1088825 [details]
vdsm and agent logs from not spm host

Description of problem:
ovirt-ha-agent stopped, on non-SPM host after upgrade from 3.5 to 3.6 with error:
MainThread::ERROR::2015-11-02 13:56:11,297::agent::205::ovirt_hosted_engine_ha.agent.agent.Agent::(_run_agent) Error: 'Unable to check SPM: Unknown pool id, pool not connected: ('8c3e6ead-1478-4661-bf5c-50a8cbf07981',)

Version-Release number of selected component (if applicable):
From:

Hosts(RHEL7.1) - ovirt-hosted-engine-setup-1.2.6.1-1.el7ev.noarch
                 ovirt-hosted-engine-ha-1.2.8-1.el7ev.noarch
                 vdsm-4.16.28-1.el7ev.x86_64
                 libvirt-1.2.8-16.el7_1.5.x86_64
                 
Engine(RHEL6.7) - rhevm-3.5.6.1-0.1.el6ev.noarch

To: 

Engine(RHEL6.7) - rhevm-3.6.0.2-0.1.el6.noarch

Hosts(RHEL7.2) - ovirt-hosted-engine-setup-1.3.0-1.el7ev.noarch
                 ovirt-hosted-engine-ha-1.3.1-1.el7ev.noarch
                 vdsm-4.17.10-5.el7ev.noarch
                 libvirt-1.2.17-13.el7.x86_64


How reproducible:
Always

Steps to Reproduce:
1. Deploy hosted-engine on two hosts under 3.5
2. Set global maintenance
3. Upgrade engine to 3.6
4. Put host without engine vm to maintenance
4. Upgrade host without engine vm to 3.6
5. reboot host

Actual results:
ovirt-ha-agent stopped, on non-SPM host after upgrade from 3.5 to 3.6 with error:
MainThread::ERROR::2015-11-02 13:56:11,297::agent::205::ovirt_hosted_engine_ha.agent.agent.Agent::(_run_agent) Error: 'Unable to check SPM: Unknown pool id, pool not connected: ('8c3e6ead-1478-4661-bf5c-50a8cbf07981',)

Expected results:
ovirt-ha-agent run on non-SPM host without any errors

Additional info:

Comment 1 Red Hat Bugzilla Rules Engine 2015-11-03 11:09:17 UTC
Fixed bug tickets must have version flags set prior to fixing them. Please set the correct version flags and move the bugs back to the previous status after this is corrected.

Comment 2 Simone Tiraboschi 2015-11-03 11:18:19 UTC
Fixed in ovirt-hosted-engine-ha-1.3.2.1-1.el7ev.noarch.rpm

Comment 3 Simone Tiraboschi 2015-11-03 11:21:41 UTC

*** This bug has been marked as a duplicate of bug 1234906 ***

Comment 4 Gil Klein 2015-11-03 14:57:53 UTC
(In reply to Simone Tiraboschi from comment #3)
> 
> *** This bug has been marked as a duplicate of bug 1234906 ***
Simone, I would like to keep this BZ open for verification sake, so QE would keep attention to this specific issue on upgrade flow.

The other BZ does not reflect the problem found here.

Comment 5 Red Hat Bugzilla Rules Engine 2015-11-03 14:58:16 UTC
Fixed bug tickets must have version flags set prior to fixing them. Please set the correct version flags and move the bugs back to the previous status after this is corrected.

Comment 6 Red Hat Bugzilla Rules Engine 2015-11-09 09:29:30 UTC
Fixed bug tickets must have version flags set prior to fixing them. Please set the correct version flags and move the bugs back to the previous status after this is corrected.

Comment 7 Red Hat Bugzilla Rules Engine 2015-11-09 09:29:30 UTC
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.

Comment 8 Artyom 2015-12-01 16:24:07 UTC
Verified on ovirt-hosted-engine-ha-1.3.3-1.el7ev.noarch
1) Deploy hosted-engine 3.5 on two hosts and on NFS storage
2) Put first host to maintenance via webadmin
3) Upgrade packages and restart host(restart host W/A because bug https://bugzilla.redhat.com/show_bug.cgi?id=1282187)
4) Wait for correct status via hosted-engine --vm-status(can take around 5-7 minutes)
5) Activate host via webadmin
6) Put second host to maintenance(wait until all vms migrated and he vm migrate on first host)
7) Upgrade packages and restart second host
8) Wait for correct status via hosted-engine --vm-status(can take around 5-7 minutes)
9) Activate second host via webadmin
10) Put environment to global maintenance
11) Update rhevm-setup.noarch package on engine
12) Run engine-setup on vm and finish upgrade process
13) Disable global maintenance via webadmin

Comment 9 Sandro Bonazzola 2015-12-22 13:29:58 UTC
oVirt 3.6.0 has been released and the bz verified, moving to closed current release.