Bug 1093303 - Unable to upgrade rhevh - Please select an ISO with major version 6.x
Summary: Unable to upgrade rhevh - Please select an ISO with major version 6.x
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.4.0
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: 3.4.0
Assignee: Douglas Schilling Landgraf
QA Contact: sefi litmanovich
URL:
Whiteboard: infra
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-01 09:13 UTC by Tareq Alayan
Modified: 2016-02-10 19:08 UTC (History)
17 users (show)

Fixed In Version: org.ovirt.engine-root-3.4.0-17
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-12 14:04:17 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
logs (1.44 MB, application/x-bzip)
2014-05-01 09:22 UTC, Tareq Alayan
no flags Details
engineloggz (10.07 KB, application/x-tar-gz)
2014-05-08 13:45 UTC, Tareq Alayan
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 27395 0 master MERGED backend: upgrade - process symbolic link files Never
oVirt gerrit 27464 0 ovirt-engine-3.4 MERGED backend: upgrade - process symbolic link files Never
oVirt gerrit 27467 0 ovirt-engine-3.4.1 MERGED backend: upgrade - process symbolic link files Never

Description Tareq Alayan 2014-05-01 09:13:08 UTC
Description of problem:
Unable to upgrade/reinstall rhevh

Version-Release number of selected component (if applicable):
rhevm.noarch 0:3.4.0-0.1000.36.783a553.beta3.el6ev

How reproducible:
always 

Steps to Reproduce:
1. add host with rhevh to 3.4 engine
2. yum install rhev-hypervisor6
3. put host to maintenance
4. reinstall host

Actual results:
installation fails, host moves to non-operational state

Expected results:
re-installation succedes and host moves to up state.

Additional info:
2014-04-29 17:00:19,258 INFO  [org.ovirt.engine.core.bll.InstallVdsCommand] (ajp-/127.0.0.1:8702-1) [3de8ae44] Lock Acquired to object EngineLock [exclusiveLocks= key: 24c97fea-12b5-40dc-b90f-030341c888a3 value: VDS
, sharedLocks= ]
2014-04-29 17:00:19,310 WARN  [org.ovirt.engine.core.bll.InstallVdsCommand] (ajp-/127.0.0.1:8702-1) [3de8ae44] CanDoAction of action InstallVds failed. Reasons:VDS_CANNOT_UPGRADE_BETWEEN_MAJOR_VERSION,$IsoVersion 6
2014-04-29 17:00:19,311 INFO  [org.ovirt.engine.core.bll.InstallVdsCommand] (ajp-/127.0.0.1:8702-1) [3de8ae44] Lock freed to object EngineLock [exclusiveLocks= key: 24c97fea-12b5-40dc-b90f-030341c888a3 value: VDS
, sharedLocks= ]
2014-04-29 17:00:19,314 ERROR [org.ovirt.engine.core.bll.UpdateVdsCommand] (ajp-/127.0.0.1:8702-1) [3de8ae44] Installation/upgrade of Host 24c97fea-12b5-40dc-b90f-030341c888a3,cinteg26.ci.lab.tlv.redhat.com failed due to: Cannot upgrade Host. Host version is not compatible with selected ISO version. Please select an ISO with major version 6.x. 
2014-04-29 17:00:19,357 INFO  [org.ovirt.engine.core.bll.UpdateVdsCommand] (ajp-/127.0.0.1:8702-1) [3de8ae44] Command [id=a3562da0-4421-4b39-8401-690a71ba77eb]: Compensating CHANGED_STATUS_ONLY of org.ovirt.engine.core.common.businessentities.VdsDynamic; snapshot: EntityStatusSnapshot [id=24c97fea-12b5-40dc-b90f-030341c888a3, status=Maintenance].
2014-04-29 17:00:19,396 INFO  [org.ovirt.engine.core.bll.UpdateVdsCommand] (ajp-/127.0.0.1:8702-1) [3de8ae44] Command [id=a3562da0-4421-4b39-8401-690a71ba77eb]: Compensating CHANGED_ENTITY of org.ovirt.engine.core.common.businessentities.VdsStatic; snapshot: id=24c97fea-12b5-40dc-b90f-030341c888a3.
2014-04-29 17:00:19,462 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (ajp-/127.0.0.1:8702-1) [3de8ae44] Correlation ID: 3de8ae44, Call Stack: null, Custom Event ID: -1, Message: Failed to update Host cinteg26.ci.lab.tlv.redhat.com (User: admin).
2014-04-29 17:00:19,462 ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (ajp-/127.0.0.1:8702-1) Operation Failed: [Cannot upgrade Host. Host version is not compatible with selected ISO version. Please select an ISO with major version 6.x.]

Comment 1 Tareq Alayan 2014-05-01 09:22:00 UTC
Created attachment 891421 [details]
logs

Comment 6 Douglas Schilling Landgraf 2014-05-06 01:33:55 UTC
Reproduced with this script:

#!/bin/sh -x

url="https://192.168.xx.xx:8443/ovirt-engine/api"
user="admin@internal"
password="mysuperadminpassword"
host="fd61be82-23af-4120-8f8f-5d924dcd71fd" # got from vdc_static table

curl \
--insecure \
--request POST \
--header "Accept: application/xml" \
--header "Content-Type: application/xml" \
--user "${user}:${password}" \
--data "
<action>
  <async>false</async>
  <grace_period>
    <expiry>10</expiry>
  </grace_period>
  <root_password>mysuperrootpassword</root_password>
  <image>rhevh-latest-6.iso</image>
</action>
" \
${url}/hosts/${host}/install

Comment 7 Tareq Alayan 2014-05-08 13:44:02 UTC
I installed rhevh RHEV Hypervisor - 6.5 - 20140501.1.el6ev 

and via rest tried to reinstall it and the result was Installation failed ...

version:
 rhevm-3.4.0-0.1000.0.f68f9a9.rc.el6ev.noarch

Events:
Host monique-vds04 installation failed. SSH session timeout host 'root.2.48'.
Failed to install Host monique-vds04. Processing stopped due to timeout.
Installing Host monique-vds04. Sending file /usr/share/rhev-hypervisor/rhevh-latest-6.iso to /data/updates/ovirt-node-image.iso.



\log is attached

Comment 8 Tareq Alayan 2014-05-08 13:45:45 UTC
Created attachment 893632 [details]
engineloggz

{talayan-laptop:~} % cat reinstall.sh

#!/bin/sh -x

url="https://10.35.161.144/ovirt-engine/api"
user="admin@internal"
password="XXXXXXXXXXX"
host="4da1b351-1c5c-4697-bd8f-b60625824440" # got from vdc_static table

curl \
        --insecure \
        --request POST \
        --header "Accept: application/xml" \
        --header "Content-Type: application/xml" \
        --user "${user}:${password}" \
        --data "
<action>
  <async>false</async>
    <grace_period>
    <expiry>10</expiry>
    </grace_period>
    <root_password>XXXXXXXXXXXXXXXXXXXX</root_password>
    <image>rhevh-latest-6.iso</image>
</action>
" \
${url}/hosts/${host}/install

Comment 9 Kiril Nesenko 2014-05-08 15:18:37 UTC
We still see this issue in our CI. Please contact Tareq and Ohad for more info.

- Kiril

Comment 10 Douglas Schilling Landgraf 2014-05-08 17:16:09 UTC
Hello,

(In reply to Tareq Alayan from comment #7)
> I installed rhevh RHEV Hypervisor - 6.5 - 20140501.1.el6ev 
> 
> and via rest tried to reinstall it and the result was Installation failed ...
> 
> version:
>  rhevm-3.4.0-0.1000.0.f68f9a9.rc.el6ev.noarch
> 
> Events:
> Host monique-vds04 installation failed. SSH session timeout host
> 'root.2.48'.
> Failed to install Host monique-vds04. Processing stopped due to timeout.
> Installing Host monique-vds04. Sending file
> /usr/share/rhev-hypervisor/rhevh-latest-6.iso to
> /data/updates/ovirt-node-image.iso.

It's not related to this bugzilla, please go to the below bugzilla and request the 3.4. flags. Glad that I am not the only one reporting this issue.

timeout, install failed: Sending iso from ovirt-engine to ovirt-node during upgrad
https://bugzilla.redhat.com/show_bug.cgi?id=1093882

Thanks!

Comment 11 sefi litmanovich 2014-05-11 16:42:28 UTC
Verified with rhevm-3.4.0-0.18.el6ev.noarch.

upgraded rhev-h host with rhevh-6.5-20140501.1.el6ev.iso installed to
rhev-hypervisor6-6.5-20140508.0.el6ev.noarch:

/bin/sh -x

url="https://10.35.xx.xx:8443/ovirt-engine/api"
user="admin@internal"
password=xxxxxxxxxxxx
host="3c1379f9-5460-470b-a9e0-5d24d101611f"

curl \
--insecure \
--request POST \
--header "Accept: application/xml" \
--header "Content-Type: application/xml" \
--user "${user}:${password}" \
--data "
<action>
  <async>false</async>
  <grace_period>
    <expiry>10</expiry>
  </grace_period>
  <root_password>xxxxxxxxxxx</root_password>
  <image>rhevh-latest-6.iso</image>
</action>
" \
${url}/hosts/${host}/install

action was successful.

Comment 12 Itamar Heim 2014-06-12 14:04:17 UTC
Closing as part of 3.4.0


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