Bug 1278467 - Not able to upgrade hypervisor using Ovirt engine api
Summary: Not able to upgrade hypervisor using Ovirt engine api
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.5.4
Hardware: All
OS: Linux
Target Milestone: ovirt-3.6.1
: ---
Assignee: Moti Asayag
QA Contact: Pavol Brilla
Depends On:
Blocks: 1279461
TreeView+ depends on / blocked
Reported: 2015-11-05 14:45 UTC by nijin ashok
Modified: 2019-09-12 09:17 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1279461 (view as bug list)
Last Closed: 2016-03-09 21:14:16 UTC
oVirt Team: Infra
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2016:0376 0 normal SHIPPED_LIVE Red Hat Enterprise Virtualization Manager 3.6.0 2016-03-10 01:20:52 UTC
oVirt gerrit 48137 0 master MERGED engine: Invoke UpgradeOvirtNodeCommand when image is provided Never
oVirt gerrit 48262 0 ovirt-engine-3.6 MERGED engine: Invoke UpgradeOvirtNodeCommand when image is provided Never
oVirt gerrit 48281 0 ovirt-engine-3.5 MERGED engine: Invoke UpgradeOvirtNodeCommand when image is provided Never

Description nijin ashok 2015-11-05 14:45:15 UTC
Description of problem:

In RHEV-M 3.5.x it's not able to upgrade the hypervisor through api.  I have tried with

curl -X POST -H  "Content-type: application/xml" -u admin@internal:mypass
 --insecure -d "<action><root_password>mypass</root_password><image>rhevh-latest-6.iso</image></action>"

Seems it is triggering only the "InstallVdsInternalCommand" according to
the engine logs. It is just doing the  reinitialization of the hypervisor
which is  same as that of we use the "Reinstall" option from the RHEV
Manager. It doesn't seems to be detecting or transferring the iso image from
the Manager to the hypervisor.

When we use the "upgrade" from the RHEV Manager GUI I can see that the
UpgradeOvirtNodeInternalCommand is triggered in the engine logs.

The above command is working in 3.4, but not in 3.5 . The one difference I can see between 3.4 and 3.5 is that in 3.5 we have two option in GUI to upgrade and reinstall which initiate  InstallVdsInternalCommand and  UpgradeOvirtNodeInternalCommand respectively. But in 3.4 it has only one option which always initiate InstallVdsInternalCommand.

I can see /upgrade option in the upstream ovirt 3.6.

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

Red Hat Enterprise Virtualization 3.5

How reproducible:


Steps to Reproduce:

1. Try to upgrade a host using the command

curl -X POST -H  "Content-type: application/xml" -u admin@internal:mypass
 --insecure -d "<action><root_password>mypass</root_password><image>rhevh-latest-6.iso</image></action>"
in RHEV 3.5 

2. The command only triggers InstallVdsInternalCommand and there is no option to upgrade the hypervisor.

Actual results:

No option to upgrade the hypervisor through api

Expected results:

Hypervisor upgrade should be possible through api.

Additional info:

Comment 7 Pavol Brilla 2015-12-10 11:22:53 UTC
Jenkins automation unit test passed:

17:46:50 2015-12-03 17:46:53,627 - MainThread - plmanagement.unittest_loader - INFO - tearDown: UpgradeHosts.test_upgrade_rhevh_hosts
17:46:50 2015-12-03 17:46:53,906 - MainThread - plmanagement.unittest_loader - INFO - Status: Pass

Comment 9 errata-xmlrpc 2016-03-09 21:14:16 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.