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

Bug 1085402

Summary: [engine-backend] [external-provider] Refresh images list of a glance domain fails when integrating a Glance (RHOS Ice-house) repository with RHEV
Product: Red Hat Enterprise Virtualization Manager Reporter: Elad <ebenahar>
Component: openstack-java-sdkAssignee: Federico Simoncelli <fsimonce>
Status: CLOSED CURRENTRELEASE QA Contact: Elad <ebenahar>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.4.0CC: acathrow, amureini, gklein, iheim, lpeer, Rhev-m-bugs, scohen, yeylon
Target Milestone: ---Keywords: Regression
Target Release: 3.4.0Flags: amureini: Triaged+
Hardware: x86_64   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: rhevm-3.4.0-0.17.el6ev Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-12 14:05:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
engine.log none

Description Elad 2014-04-08 14:09:20 UTC
Created attachment 884093 [details]
engine.log

Description of problem:
When integrating a Glance repository (ice-house) with RHEV as an external provider, engine is unable to refresh the images list of the Glance storage domain.

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


How reproducible:
AV5
rhevm-3.4.0-0.12.beta2.el6ev.noarch
Ice-house RHOS Glance repository


Steps to Reproduce:
1. Integrate a Glance repository (RHOS OpenStack - Ice-house version) with RHEV as an external provider
2. Go to 'Images' sub-tab under the Glance storage domain, refresh the list 


Actual results:
Images list doesn't get refreshed, engine doesn't recognize the "virtual_size" column which is a new field in the new RHOS Glance version (Ice-house) 

2014-04-08 16:33:22,223 ERROR [org.ovirt.engine.core.bll.GetImagesListQuery] (ajp-/127.0.0.1:8702-2) Query GetImagesListQuery failed. Exception message is org.codehaus.jackson.map.exc.UnrecognizedPropertyException
: Unrecognized field "virtual_size" (Class com.woorea.openstack.glance.model.Image), not marked as ignorable
 at [Source: org.jboss.resteasy.client.core.SelfExpandingBufferredInputStream@701db71; line: 1, column: 443] (through reference chain: com.woorea.openstack.glance.model.Images["images"]->com.woorea.openstack.glanc
e.model.Image["virtual_size"]) : org.jboss.resteasy.spi.ReaderException: org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "virtual_size" (Class com.woorea.openstack.glance.model.Image
), not marked as ignorable
 at [Source: org.jboss.resteasy.client.core.SelfExpandingBufferredInputStream@701db71; line: 1, column: 443] (through reference chain: com.woorea.openstack.glance.model.Images["images"]->com.woorea.openstack.glanc
e.model.Image["virtual_size"]): org.jboss.resteasy.spi.ReaderException: org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "virtual_size" (Class com.woorea.openstack.glance.model.Image)
, not marked as ignorable
 at [Source: org.jboss.resteasy.client.core.SelfExpandingBufferredInputStream@701db71; line: 1, column: 443] (through reference chain: com.woorea.openstack.glance.model.Images["images"]->com.woorea.openstack.glanc
e.model.Image["virtual_size"])


Expected results:
Engine should recognize the new field 

Additional info: engine.log

Comment 2 Itamar Heim 2014-04-08 19:57:46 UTC
we should make sure we read the fields we know, and ignore those we don't, to be as compatible with different versions.

Comment 4 Federico Simoncelli 2014-05-15 09:35:55 UTC
Given that:

$ rpm -qRp rhevm-3.4.0-0.17.el6ev.noarch.rpm | grep rhevm-dependencies
rhevm-dependencies >= 3.4.0-1

And rhevm-dependencies ChangeLog:

2014-05-02 - Version 3.4.0

 * -openstack-java-sdk-3.0.1 - rhbz#1048880, rhbz#1064749, rhbz#1085402
 * +openstack-java-sdk-3.0.4 - rhbz#1048880, rhbz#1064749, rhbz#1085402
 * +snmp4j-2.2.3 - rhbz#1032661


This was fixed in rhevm-3.4.0-0.17.el6ev.

Comment 5 Elad 2014-05-15 13:09:48 UTC
Images list of a glance domain is refreshed successfully when the glance repository integrated is ICE-HOUSE RHOS.

2014-05-15 15:54:16,941 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (ajp-/127.0.0.1:8702-3) Correlation ID: null, Call Stack: null, Custom Event ID: -1, Message: Refresh image list succeeded for domain(s): glance (All file type)


Verified using av9.1 with ICE-HOUSE RHOS glance repository

Comment 6 Itamar Heim 2014-06-12 14:05:10 UTC
Closing as part of 3.4.0