Bug 1085402 - [engine-backend] [external-provider] Refresh images list of a glance domain fails when integrating a Glance (RHOS Ice-house) repository with RHEV
Summary: [engine-backend] [external-provider] Refresh images list of a glance domain f...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: openstack-java-sdk
Version: 3.4.0
Hardware: x86_64
OS: Unspecified
unspecified
high
Target Milestone: ---
: 3.4.0
Assignee: Federico Simoncelli
QA Contact: Elad
URL:
Whiteboard: storage
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-08 14:09 UTC by Elad
Modified: 2016-02-10 19:19 UTC (History)
8 users (show)

Fixed In Version: rhevm-3.4.0-0.17.el6ev
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-12 14:05:10 UTC
oVirt Team: Storage
Target Upstream Version:
Embargoed:
amureini: Triaged+


Attachments (Terms of Use)
engine.log (920.78 KB, application/x-gzip)
2014-04-08 14:09 UTC, Elad
no flags Details

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


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