Bug 1601431

Summary: Detach volume to an instance does not trigger a Target Refresh
Product: Red Hat CloudForms Management Engine Reporter: Ido Ovadia <iovadia>
Component: ProvidersAssignee: Sam Lucidi <slucidi>
Status: CLOSED CURRENTRELEASE QA Contact: Ido Ovadia <iovadia>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.10.0CC: cpelland, gblomqui, jfrey, jhardy, maufart, obarenbo, simaishi
Target Milestone: GA   
Target Release: 5.10.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: openstack:storage
Fixed In Version: 5.10.0.6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-02-11 14:00:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Openstack Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1532796    

Description Ido Ovadia 2018-07-16 12:00:17 UTC
Description of problem:
=======================
Detach volume to an instance does not trigger a Target Refresh

Version-Release number of selected component:
=============================================
CFME 5.10.0.4

How reproducible:
=================
100%

Steps to Reproduce:
===================
1. Create an instance
2. Create a volume
3. Attach the volume to the instance
3. Browse: Storage --> Block Storage --> Volumes
4. Click on cloud volume 
5. Click Configuration --> Detach this Cloud Volume from an Instance 

Actual results:
===============
Target Refresh of storage manager Cinder does not triggers 
Therefor volume status update to available only after manual refresh    

Expected results:
=================
Target Refresh of storage manager Cinder triggers and volume status should update about 1-2 Min.  

Additional info:
================
I verified the event does exists by the following ways:

-On Ceilometer:
ceilometer event-list -q "event_type=volume.detach.end"

-On evm.log
INFO -- : MIQ(ManageIQ::Providers::Openstack::StorageManager::CinderManager::EventCatcher::Runner#queue_event) EMS [10.0.0.101] as [admin] Caught event [volume.detach.end]

Comment 2 Ido Ovadia 2018-08-21 11:53:44 UTC
Verified
========
5.10.0.11