Bug 1022569

Summary: [engine-backend] [external-provider] importing a snapshot image from glance fails with "Error during CanDoActionFailure.: java.lang.IllegalStateException: Connection manager has been shut down"
Product: Red Hat Enterprise Virtualization Manager Reporter: Elad <ebenahar>
Component: ovirt-engineAssignee: Federico Simoncelli <fsimonce>
Status: CLOSED CURRENTRELEASE QA Contact: Elad <ebenahar>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.3.0CC: acathrow, amureini, iheim, linuxdev-rhev, lpeer, parsonsa, Rhev-m-bugs, yeylon
Target Milestone: ---Flags: amureini: Triaged+
Target Release: 3.3.0   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: is23 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-21 22:15:53 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:
Bug Depends On:    
Bug Blocks: 1032811    
Attachments:
Description Flags
engine.log none

Description Elad 2013-10-23 14:37:21 UTC
Created attachment 815440 [details]
engine.log

Description of problem:
On glance integration: When trying to import a snapshot image from glance, engine fails with this exception:

2013-10-23 17:29:33,139 ERROR [org.ovirt.engine.core.bll.ImportRepoImageCommand] (ajp-/127.0.0.1:8702-2) [1bb47e10] Error during CanDoActionFailure.: java.lang.IllegalStateException: Connection manager has been sh
utdown

on UI:

"Error while executing action: General command validation failure."

Version-Release number of selected component (if applicable):
rhevm-3.3.0-0.27.beta1.el6ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. create an instance on openstack from image
2. create a snapshot to the instance
3. add glance as an external provider to RHEVM
4. import the snapshot image to RHEVM storage domain

Actual results:
We are failing to import the image.



Additional info: engine.log

Comment 1 Federico Simoncelli 2013-10-31 16:15:24 UTC
(In reply to Elad from comment #0)
> 2013-10-23 17:29:33,139 ERROR
> [org.ovirt.engine.core.bll.ImportRepoImageCommand] (ajp-/127.0.0.1:8702-2)
> [1bb47e10] Error during CanDoActionFailure.:
> java.lang.IllegalStateException: Connection manager has been sh
> utdown

This new exception has been triggered by the upgrade to jboss 7.3 and more specifically to org.apache.httpcomponents:httpclient:4.2

Essentially there's nothing going wrong here, we just need to catch the exception and discard it.

Comment 2 Elad 2013-11-19 09:21:58 UTC
I'm getting a proper message on log:

2013-11-19 10:15:18,928 ERROR [org.ovirt.engine.core.bll.ImportRepoImageCommand] (ajp-/127.0.0.1:8702-5) [5b44672d] Unable to get the disk image from the provider proxy: Unsuppo
rted container format: ovf (UNSUPPORTED_CONTAINER_FORMAT)

Verified with is23:
rhevm-3.3.0-0.33.beta1.el6ev.noarch

Comment 3 Sergey Gotliv 2013-12-01 09:55:02 UTC
*** Bug 1035530 has been marked as a duplicate of this bug. ***

Comment 4 Itamar Heim 2014-01-21 22:15:53 UTC
Closing - RHEV 3.3 Released

Comment 5 Itamar Heim 2014-01-21 22:22:51 UTC
Closing - RHEV 3.3 Released